diff --git a/.changelog/2470ef454a7c434dbb1df0070dc5aedd.json b/.changelog/2470ef454a7c434dbb1df0070dc5aedd.json new file mode 100644 index 00000000000..693d9291c65 --- /dev/null +++ b/.changelog/2470ef454a7c434dbb1df0070dc5aedd.json @@ -0,0 +1,8 @@ +{ + "id": "2470ef45-4a7c-434d-bb1d-f0070dc5aedd", + "type": "documentation", + "description": "Remove unused InvalidParameterException from CreateParticipant API", + "modules": [ + "service/connect" + ] +} \ No newline at end of file diff --git a/.changelog/636bd2173e4e466998f0a50f57a02b05.json b/.changelog/636bd2173e4e466998f0a50f57a02b05.json new file mode 100644 index 00000000000..a82370d38b8 --- /dev/null +++ b/.changelog/636bd2173e4e466998f0a50f57a02b05.json @@ -0,0 +1,8 @@ +{ + "id": "636bd217-3e4e-4669-98f0-a50f57a02b05", + "type": "feature", + "description": "DescribeDomainNodes: A new API that provides configuration information for nodes part of the domain", + "modules": [ + "service/opensearch" + ] +} \ No newline at end of file diff --git a/.changelog/7c48c984134340e9a3d7638942e23b0b.json b/.changelog/7c48c984134340e9a3d7638942e23b0b.json new file mode 100644 index 00000000000..df4b6389d1a --- /dev/null +++ b/.changelog/7c48c984134340e9a3d7638942e23b0b.json @@ -0,0 +1,8 @@ +{ + "id": "7c48c984-1343-40e9-a3d7-638942e23b0b", + "type": "feature", + "description": "Add support for Topic, Dataset parameters and VPC", + "modules": [ + "service/quicksight" + ] +} \ No newline at end of file diff --git a/.changelog/8040218daf8941c38eb7c73ec23d1e10.json b/.changelog/8040218daf8941c38eb7c73ec23d1e10.json new file mode 100644 index 00000000000..7198badd3a4 --- /dev/null +++ b/.changelog/8040218daf8941c38eb7c73ec23d1e10.json @@ -0,0 +1,8 @@ +{ + "id": "8040218d-af89-41c3-8eb7-c73ec23d1e10", + "type": "feature", + "description": "Updated ResourceType enum with new resource types onboarded by AWS Config in April 2023.", + "modules": [ + "service/configservice" + ] +} \ No newline at end of file diff --git a/.changelog/875bf73e03174aad870f7d30dc3d1716.json b/.changelog/875bf73e03174aad870f7d30dc3d1716.json new file mode 100644 index 00000000000..ec4c39b7022 --- /dev/null +++ b/.changelog/875bf73e03174aad870f7d30dc3d1716.json @@ -0,0 +1,8 @@ +{ + "id": "875bf73e-0317-4aad-870f-7d30dc3d1716", + "type": "feature", + "description": "This release enables customers to call SQS using AWS JSON-1.0 protocol.", + "modules": [ + "service/sqs" + ] +} \ No newline at end of file diff --git a/.changelog/ae77866799534dd38a28ca6d24636dd8.json b/.changelog/ae77866799534dd38a28ca6d24636dd8.json new file mode 100644 index 00000000000..e4bacf27e5e --- /dev/null +++ b/.changelog/ae77866799534dd38a28ca6d24636dd8.json @@ -0,0 +1,8 @@ +{ + "id": "ae778667-9953-4dd3-8a28-ca6d24636dd8", + "type": "feature", + "description": "This release adds a new attribute FaceOccluded. Additionally, you can now select attributes individually (e.g. [\"DEFAULT\", \"FACE_OCCLUDED\", \"AGE_RANGE\"] instead of [\"ALL\"]), which can reduce response time.", + "modules": [ + "service/rekognition" + ] +} \ No newline at end of file diff --git a/.changelog/af27cd6cee1b4db0a02a93c977abc96c.json b/.changelog/af27cd6cee1b4db0a02a93c977abc96c.json new file mode 100644 index 00000000000..e92de91eb93 --- /dev/null +++ b/.changelog/af27cd6cee1b4db0a02a93c977abc96c.json @@ -0,0 +1,8 @@ +{ + "id": "af27cd6c-ee1b-4db0-a02a-93c977abc96c", + "type": "feature", + "description": "This release adds support for the Suricata REJECT option in midstream exception configurations.", + "modules": [ + "service/networkfirewall" + ] +} \ No newline at end of file diff --git a/.changelog/b55601fda608436aa3a4eece79dc19fd.json b/.changelog/b55601fda608436aa3a4eece79dc19fd.json new file mode 100644 index 00000000000..4f3e4f68708 --- /dev/null +++ b/.changelog/b55601fda608436aa3a4eece79dc19fd.json @@ -0,0 +1,8 @@ +{ + "id": "b55601fd-a608-436a-a3a4-eece79dc19fd", + "type": "documentation", + "description": "Documentation updates for Amazon S3", + "modules": [ + "service/s3" + ] +} \ No newline at end of file diff --git a/.changelog/c81f60c34a234c11a660b26e18f8f128.json b/.changelog/c81f60c34a234c11a660b26e18f8f128.json new file mode 100644 index 00000000000..51b261e5d81 --- /dev/null +++ b/.changelog/c81f60c34a234c11a660b26e18f8f128.json @@ -0,0 +1,8 @@ +{ + "id": "c81f60c3-4a23-4c11-a660-b26e18f8f128", + "type": "feature", + "description": "Add support for Finding History.", + "modules": [ + "service/securityhub" + ] +} \ No newline at end of file diff --git a/.changelog/dd212ef0cd354b8b848345490e49ef2d.json b/.changelog/dd212ef0cd354b8b848345490e49ef2d.json new file mode 100644 index 00000000000..d02d0a53b03 --- /dev/null +++ b/.changelog/dd212ef0cd354b8b848345490e49ef2d.json @@ -0,0 +1,8 @@ +{ + "id": "dd212ef0-cd35-4b8b-8483-45490e49ef2d", + "type": "feature", + "description": "We added support for ml.inf2 and ml.trn1 family of instances on Amazon SageMaker for deploying machine learning (ML) models for Real-time and Asynchronous inference. You can use these instances to achieve high performance at a low cost for generative artificial intelligence (AI) models.", + "modules": [ + "service/sagemaker" + ] +} \ No newline at end of file diff --git a/.changelog/e509f7f6506d4b8581cf8e60fa0bca6b.json b/.changelog/e509f7f6506d4b8581cf8e60fa0bca6b.json new file mode 100644 index 00000000000..c135b15da44 --- /dev/null +++ b/.changelog/e509f7f6506d4b8581cf8e60fa0bca6b.json @@ -0,0 +1,8 @@ +{ + "id": "e509f7f6-506d-4b85-81cf-8e60fa0bca6b", + "type": "feature", + "description": "Adds support for filtering by metric names in CloudWatch Metric Streams.", + "modules": [ + "service/cloudwatch" + ] +} \ No newline at end of file diff --git a/.changelog/f16e0b2274c74487ad77ae646d4a934b.json b/.changelog/f16e0b2274c74487ad77ae646d4a934b.json new file mode 100644 index 00000000000..3984cf2246b --- /dev/null +++ b/.changelog/f16e0b2274c74487ad77ae646d4a934b.json @@ -0,0 +1,8 @@ +{ + "id": "f16e0b22-74c7-4487-ad77-ae646d4a934b", + "type": "feature", + "description": "Documentation update for new error type NamespaceNotFoundException for CreateCluster and UpdateCluster", + "modules": [ + "service/ecs" + ] +} \ No newline at end of file diff --git a/internal/protocoltest/awsrestjson/internal/endpoints/endpoints.go b/internal/protocoltest/awsrestjson/internal/endpoints/endpoints.go index f22801f6a64..2134593cd0f 100644 --- a/internal/protocoltest/awsrestjson/internal/endpoints/endpoints.go +++ b/internal/protocoltest/awsrestjson/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -212,6 +214,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "restjson-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "restjson.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/internal/protocoltest/ec2query/internal/endpoints/endpoints.go b/internal/protocoltest/ec2query/internal/endpoints/endpoints.go index 9fb7e434738..c8c3a06abf9 100644 --- a/internal/protocoltest/ec2query/internal/endpoints/endpoints.go +++ b/internal/protocoltest/ec2query/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -212,6 +214,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "awsec2-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "awsec2.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/internal/protocoltest/jsonrpc/internal/endpoints/endpoints.go b/internal/protocoltest/jsonrpc/internal/endpoints/endpoints.go index c0f6e05d9fa..c292ffa7337 100644 --- a/internal/protocoltest/jsonrpc/internal/endpoints/endpoints.go +++ b/internal/protocoltest/jsonrpc/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -212,6 +214,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "jsonprotocol-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "jsonprotocol.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/internal/protocoltest/jsonrpc10/internal/endpoints/endpoints.go b/internal/protocoltest/jsonrpc10/internal/endpoints/endpoints.go index d285c881eae..77b3f978f23 100644 --- a/internal/protocoltest/jsonrpc10/internal/endpoints/endpoints.go +++ b/internal/protocoltest/jsonrpc10/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -212,6 +214,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "jsonrpc10-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "jsonrpc10.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/internal/protocoltest/query/internal/endpoints/endpoints.go b/internal/protocoltest/query/internal/endpoints/endpoints.go index 32100a9cd7b..70d0e1bdb09 100644 --- a/internal/protocoltest/query/internal/endpoints/endpoints.go +++ b/internal/protocoltest/query/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -212,6 +214,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "awsquery-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "awsquery.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/internal/protocoltest/restxml/internal/endpoints/endpoints.go b/internal/protocoltest/restxml/internal/endpoints/endpoints.go index c850fefba1c..77b1b78fd1e 100644 --- a/internal/protocoltest/restxml/internal/endpoints/endpoints.go +++ b/internal/protocoltest/restxml/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -212,6 +214,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "restxml-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "restxml.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/internal/protocoltest/restxmlwithnamespace/internal/endpoints/endpoints.go b/internal/protocoltest/restxmlwithnamespace/internal/endpoints/endpoints.go index 7724e5c3325..c6060a23492 100644 --- a/internal/protocoltest/restxmlwithnamespace/internal/endpoints/endpoints.go +++ b/internal/protocoltest/restxmlwithnamespace/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -212,6 +214,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "restxmlwithnamespace-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "restxmlwithnamespace.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/accessanalyzer/internal/endpoints/endpoints.go b/service/accessanalyzer/internal/endpoints/endpoints.go index 8f2b8e83cf6..4e8ef4b4f4f 100644 --- a/service/accessanalyzer/internal/endpoints/endpoints.go +++ b/service/accessanalyzer/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -378,6 +380,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "access-analyzer-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "access-analyzer.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/account/internal/endpoints/endpoints.go b/service/account/internal/endpoints/endpoints.go index ea1bf87cca8..461f9682db1 100644 --- a/service/account/internal/endpoints/endpoints.go +++ b/service/account/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -234,6 +236,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "account-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "account.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/acm/internal/endpoints/endpoints.go b/service/acm/internal/endpoints/endpoints.go index 583d90898b8..93a71ed5a1b 100644 --- a/service/acm/internal/endpoints/endpoints.go +++ b/service/acm/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -378,6 +380,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "acm-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "acm.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/acmpca/internal/endpoints/endpoints.go b/service/acmpca/internal/endpoints/endpoints.go index 9bba733fc4f..9a68d4cdacf 100644 --- a/service/acmpca/internal/endpoints/endpoints.go +++ b/service/acmpca/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -370,6 +372,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "acm-pca-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "acm-pca.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/alexaforbusiness/internal/endpoints/endpoints.go b/service/alexaforbusiness/internal/endpoints/endpoints.go index bbd45a34305..deed0e687df 100644 --- a/service/alexaforbusiness/internal/endpoints/endpoints.go +++ b/service/alexaforbusiness/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -217,6 +219,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "a4b-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "a4b.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/amp/internal/endpoints/endpoints.go b/service/amp/internal/endpoints/endpoints.go index afd7a6505f2..05f9935d713 100644 --- a/service/amp/internal/endpoints/endpoints.go +++ b/service/amp/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -244,6 +246,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "aps-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "aps.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/amplify/internal/endpoints/endpoints.go b/service/amplify/internal/endpoints/endpoints.go index 0073dcf8cb6..e48a1e57ff4 100644 --- a/service/amplify/internal/endpoints/endpoints.go +++ b/service/amplify/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -271,6 +273,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "amplify-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "amplify.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/amplifybackend/internal/endpoints/endpoints.go b/service/amplifybackend/internal/endpoints/endpoints.go index 1387c979b0b..09a14806049 100644 --- a/service/amplifybackend/internal/endpoints/endpoints.go +++ b/service/amplifybackend/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -268,6 +270,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "amplifybackend-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "amplifybackend.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/amplifyuibuilder/internal/endpoints/endpoints.go b/service/amplifyuibuilder/internal/endpoints/endpoints.go index 3766b15d9d9..4b764751f95 100644 --- a/service/amplifyuibuilder/internal/endpoints/endpoints.go +++ b/service/amplifyuibuilder/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -268,6 +270,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "amplifyuibuilder-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "amplifyuibuilder.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/apigateway/internal/endpoints/endpoints.go b/service/apigateway/internal/endpoints/endpoints.go index 3fe9a371aab..5ce5c7b92ea 100644 --- a/service/apigateway/internal/endpoints/endpoints.go +++ b/service/apigateway/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -383,6 +385,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "apigateway-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "apigateway.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/apigatewaymanagementapi/internal/endpoints/endpoints.go b/service/apigatewaymanagementapi/internal/endpoints/endpoints.go index b03735cc5a3..492afccf068 100644 --- a/service/apigatewaymanagementapi/internal/endpoints/endpoints.go +++ b/service/apigatewaymanagementapi/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -212,6 +214,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "execute-api-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "execute-api.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/apigatewayv2/internal/endpoints/endpoints.go b/service/apigatewayv2/internal/endpoints/endpoints.go index f99d7556d69..8018fe86228 100644 --- a/service/apigatewayv2/internal/endpoints/endpoints.go +++ b/service/apigatewayv2/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -383,6 +385,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "apigateway-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "apigateway.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/appconfig/internal/endpoints/endpoints.go b/service/appconfig/internal/endpoints/endpoints.go index 6c0c5be0a55..a78f41c2d7d 100644 --- a/service/appconfig/internal/endpoints/endpoints.go +++ b/service/appconfig/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -316,6 +318,27 @@ var defaultPartitions = endpoints.Partitions{ }: endpoints.Endpoint{}, }, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "appconfig-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "appconfig.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/appconfigdata/internal/endpoints/endpoints.go b/service/appconfigdata/internal/endpoints/endpoints.go index af702d3636b..15452d90c7b 100644 --- a/service/appconfigdata/internal/endpoints/endpoints.go +++ b/service/appconfigdata/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -316,6 +318,27 @@ var defaultPartitions = endpoints.Partitions{ }: endpoints.Endpoint{}, }, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "appconfigdata-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "appconfigdata.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/appflow/internal/endpoints/endpoints.go b/service/appflow/internal/endpoints/endpoints.go index 7eed3d29f40..157122f2716 100644 --- a/service/appflow/internal/endpoints/endpoints.go +++ b/service/appflow/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -262,6 +264,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "appflow-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "appflow.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/appintegrations/internal/endpoints/endpoints.go b/service/appintegrations/internal/endpoints/endpoints.go index 790a4d752a9..14e6ad0c693 100644 --- a/service/appintegrations/internal/endpoints/endpoints.go +++ b/service/appintegrations/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -244,6 +246,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "app-integrations-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "app-integrations.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/applicationautoscaling/internal/endpoints/endpoints.go b/service/applicationautoscaling/internal/endpoints/endpoints.go index f9f98ef8c0c..4003b10956d 100644 --- a/service/applicationautoscaling/internal/endpoints/endpoints.go +++ b/service/applicationautoscaling/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -316,6 +318,27 @@ var defaultPartitions = endpoints.Partitions{ }: endpoints.Endpoint{}, }, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "application-autoscaling-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "application-autoscaling.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/applicationcostprofiler/internal/endpoints/endpoints.go b/service/applicationcostprofiler/internal/endpoints/endpoints.go index 5b9213639ad..4c96969e5d5 100644 --- a/service/applicationcostprofiler/internal/endpoints/endpoints.go +++ b/service/applicationcostprofiler/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -212,6 +214,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "application-cost-profiler-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "application-cost-profiler.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/applicationdiscoveryservice/internal/endpoints/endpoints.go b/service/applicationdiscoveryservice/internal/endpoints/endpoints.go index e5bf5ae8d0b..b56630e5d77 100644 --- a/service/applicationdiscoveryservice/internal/endpoints/endpoints.go +++ b/service/applicationdiscoveryservice/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -235,6 +237,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "discovery-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "discovery.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/applicationinsights/internal/endpoints/endpoints.go b/service/applicationinsights/internal/endpoints/endpoints.go index 2c5f5d35fad..2b08e7480cf 100644 --- a/service/applicationinsights/internal/endpoints/endpoints.go +++ b/service/applicationinsights/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -288,6 +290,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "applicationinsights-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "applicationinsights.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/appmesh/internal/endpoints/endpoints.go b/service/appmesh/internal/endpoints/endpoints.go index b24c04a92c2..baf09316edf 100644 --- a/service/appmesh/internal/endpoints/endpoints.go +++ b/service/appmesh/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -537,6 +539,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "appmesh-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "appmesh.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/apprunner/internal/endpoints/endpoints.go b/service/apprunner/internal/endpoints/endpoints.go index 87f85c4b2ea..af630db1727 100644 --- a/service/apprunner/internal/endpoints/endpoints.go +++ b/service/apprunner/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -283,6 +285,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "apprunner-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "apprunner.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/appstream/internal/endpoints/endpoints.go b/service/appstream/internal/endpoints/endpoints.go index e66fbfb8598..d2b07bc3b58 100644 --- a/service/appstream/internal/endpoints/endpoints.go +++ b/service/appstream/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -304,6 +306,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "appstream2-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "appstream2.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/appsync/internal/endpoints/endpoints.go b/service/appsync/internal/endpoints/endpoints.go index eafdf29cd0b..a81c6df5342 100644 --- a/service/appsync/internal/endpoints/endpoints.go +++ b/service/appsync/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -300,6 +302,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "appsync-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "appsync.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/arczonalshift/internal/endpoints/endpoints.go b/service/arczonalshift/internal/endpoints/endpoints.go index 3fdf8eeb8bc..65e3e3ce037 100644 --- a/service/arczonalshift/internal/endpoints/endpoints.go +++ b/service/arczonalshift/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -295,6 +297,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "arc-zonal-shift-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "arc-zonal-shift.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/athena/internal/endpoints/endpoints.go b/service/athena/internal/endpoints/endpoints.go index 5c9ac6b82b0..c0198652ce3 100644 --- a/service/athena/internal/endpoints/endpoints.go +++ b/service/athena/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -497,6 +499,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "athena-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "athena.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/auditmanager/internal/endpoints/endpoints.go b/service/auditmanager/internal/endpoints/endpoints.go index 272c192afd1..7831d572d8f 100644 --- a/service/auditmanager/internal/endpoints/endpoints.go +++ b/service/auditmanager/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -250,6 +252,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "auditmanager-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "auditmanager.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/autoscaling/internal/endpoints/endpoints.go b/service/autoscaling/internal/endpoints/endpoints.go index 8b8a1d54dc1..4bc90fc2456 100644 --- a/service/autoscaling/internal/endpoints/endpoints.go +++ b/service/autoscaling/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -318,6 +320,27 @@ var defaultPartitions = endpoints.Partitions{ }: endpoints.Endpoint{}, }, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "autoscaling-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "autoscaling.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/autoscalingplans/internal/endpoints/endpoints.go b/service/autoscalingplans/internal/endpoints/endpoints.go index 28ff7ef1a47..2b2b494e868 100644 --- a/service/autoscalingplans/internal/endpoints/endpoints.go +++ b/service/autoscalingplans/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -288,6 +290,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "autoscaling-plans-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "autoscaling-plans.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/backup/internal/endpoints/endpoints.go b/service/backup/internal/endpoints/endpoints.go index 909db593569..a50318d26f6 100644 --- a/service/backup/internal/endpoints/endpoints.go +++ b/service/backup/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -303,6 +305,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "backup-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "backup.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/backupgateway/internal/endpoints/endpoints.go b/service/backupgateway/internal/endpoints/endpoints.go index 9d61096f017..d113441c27f 100644 --- a/service/backupgateway/internal/endpoints/endpoints.go +++ b/service/backupgateway/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -277,6 +279,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "backup-gateway-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "backup-gateway.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/backupstorage/internal/endpoints/endpoints.go b/service/backupstorage/internal/endpoints/endpoints.go index b2a3b311661..528d1c47c48 100644 --- a/service/backupstorage/internal/endpoints/endpoints.go +++ b/service/backupstorage/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -226,6 +228,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "backupstorage-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "backupstorage.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/batch/internal/endpoints/endpoints.go b/service/batch/internal/endpoints/endpoints.go index de10dc1d3f2..11f917b2d40 100644 --- a/service/batch/internal/endpoints/endpoints.go +++ b/service/batch/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -360,6 +362,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "batch-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "batch.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/billingconductor/internal/endpoints/endpoints.go b/service/billingconductor/internal/endpoints/endpoints.go index 4d6b9087161..eab391d5e98 100644 --- a/service/billingconductor/internal/endpoints/endpoints.go +++ b/service/billingconductor/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -223,6 +225,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "billingconductor-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "billingconductor.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/braket/internal/endpoints/endpoints.go b/service/braket/internal/endpoints/endpoints.go index db8fa40ecff..d6a647abd80 100644 --- a/service/braket/internal/endpoints/endpoints.go +++ b/service/braket/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -226,6 +228,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "braket-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "braket.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/budgets/internal/endpoints/endpoints.go b/service/budgets/internal/endpoints/endpoints.go index 9c657213a08..7166b6efcd2 100644 --- a/service/budgets/internal/endpoints/endpoints.go +++ b/service/budgets/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -234,6 +236,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "budgets-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "budgets.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/chime/internal/endpoints/endpoints.go b/service/chime/internal/endpoints/endpoints.go index 2ea5b320962..fac65f7fa52 100644 --- a/service/chime/internal/endpoints/endpoints.go +++ b/service/chime/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -224,6 +226,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "chime-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "chime.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/chimesdkidentity/internal/endpoints/endpoints.go b/service/chimesdkidentity/internal/endpoints/endpoints.go index d6a1cc09cad..8e4395eedee 100644 --- a/service/chimesdkidentity/internal/endpoints/endpoints.go +++ b/service/chimesdkidentity/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -235,6 +237,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "identity-chime-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "identity-chime.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/chimesdkmediapipelines/internal/endpoints/endpoints.go b/service/chimesdkmediapipelines/internal/endpoints/endpoints.go index 00bd62fff2e..3911830fd27 100644 --- a/service/chimesdkmediapipelines/internal/endpoints/endpoints.go +++ b/service/chimesdkmediapipelines/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -256,6 +258,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "media-pipelines-chime-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "media-pipelines-chime.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/chimesdkmeetings/internal/endpoints/endpoints.go b/service/chimesdkmeetings/internal/endpoints/endpoints.go index 402644181b8..d7ca95e42bd 100644 --- a/service/chimesdkmeetings/internal/endpoints/endpoints.go +++ b/service/chimesdkmeetings/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -256,6 +258,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "meetings-chime-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "meetings-chime.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/chimesdkmessaging/internal/endpoints/endpoints.go b/service/chimesdkmessaging/internal/endpoints/endpoints.go index 76b7c77f4c7..dd77ad69ec5 100644 --- a/service/chimesdkmessaging/internal/endpoints/endpoints.go +++ b/service/chimesdkmessaging/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -235,6 +237,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "messaging-chime-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "messaging-chime.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/chimesdkvoice/internal/endpoints/endpoints.go b/service/chimesdkvoice/internal/endpoints/endpoints.go index 8ed92fa9e9d..3f4169d3223 100644 --- a/service/chimesdkvoice/internal/endpoints/endpoints.go +++ b/service/chimesdkvoice/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -286,6 +288,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "voice-chime-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "voice-chime.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/cleanrooms/internal/endpoints/endpoints.go b/service/cleanrooms/internal/endpoints/endpoints.go index cf1eaeb046b..0655027d043 100644 --- a/service/cleanrooms/internal/endpoints/endpoints.go +++ b/service/cleanrooms/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -247,6 +249,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "cleanrooms-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "cleanrooms.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/cloud9/internal/endpoints/endpoints.go b/service/cloud9/internal/endpoints/endpoints.go index 496c7cb4434..dcee2c44561 100644 --- a/service/cloud9/internal/endpoints/endpoints.go +++ b/service/cloud9/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -277,6 +279,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "cloud9-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "cloud9.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/cloudcontrol/internal/endpoints/endpoints.go b/service/cloudcontrol/internal/endpoints/endpoints.go index 3920ac659bf..0eb3e949dbe 100644 --- a/service/cloudcontrol/internal/endpoints/endpoints.go +++ b/service/cloudcontrol/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -378,6 +380,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "cloudcontrolapi-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "cloudcontrolapi.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/clouddirectory/internal/endpoints/endpoints.go b/service/clouddirectory/internal/endpoints/endpoints.go index e8f6d1993b1..b3410680344 100644 --- a/service/clouddirectory/internal/endpoints/endpoints.go +++ b/service/clouddirectory/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -241,6 +243,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "clouddirectory-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "clouddirectory.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/cloudformation/internal/endpoints/endpoints.go b/service/cloudformation/internal/endpoints/endpoints.go index cc61d5ced92..9cafcd8bb25 100644 --- a/service/cloudformation/internal/endpoints/endpoints.go +++ b/service/cloudformation/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -376,6 +378,27 @@ var defaultPartitions = endpoints.Partitions{ }: endpoints.Endpoint{}, }, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "cloudformation-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "cloudformation.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/cloudfront/internal/endpoints/endpoints.go b/service/cloudfront/internal/endpoints/endpoints.go index 275f8d27998..f2d44c4546a 100644 --- a/service/cloudfront/internal/endpoints/endpoints.go +++ b/service/cloudfront/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -236,6 +238,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "cloudfront-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "cloudfront.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/cloudhsm/internal/endpoints/endpoints.go b/service/cloudhsm/internal/endpoints/endpoints.go index da41e955056..3de2e5f1dd2 100644 --- a/service/cloudhsm/internal/endpoints/endpoints.go +++ b/service/cloudhsm/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -217,6 +219,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "cloudhsm-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "cloudhsm.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/cloudhsmv2/internal/endpoints/endpoints.go b/service/cloudhsmv2/internal/endpoints/endpoints.go index c995b22b3e7..da7911f5bc1 100644 --- a/service/cloudhsmv2/internal/endpoints/endpoints.go +++ b/service/cloudhsmv2/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -298,6 +300,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "cloudhsmv2-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "cloudhsmv2.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/cloudsearch/internal/endpoints/endpoints.go b/service/cloudsearch/internal/endpoints/endpoints.go index 045fb6dfb9a..aad42c66958 100644 --- a/service/cloudsearch/internal/endpoints/endpoints.go +++ b/service/cloudsearch/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -244,6 +246,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "cloudsearch-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "cloudsearch.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/cloudsearchdomain/internal/endpoints/endpoints.go b/service/cloudsearchdomain/internal/endpoints/endpoints.go index 1c7918c64bc..2058a24239c 100644 --- a/service/cloudsearchdomain/internal/endpoints/endpoints.go +++ b/service/cloudsearchdomain/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -212,6 +214,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "cloudsearchdomain-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "cloudsearchdomain.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/cloudtrail/internal/endpoints/endpoints.go b/service/cloudtrail/internal/endpoints/endpoints.go index 1e782e1c062..2c27823fcc7 100644 --- a/service/cloudtrail/internal/endpoints/endpoints.go +++ b/service/cloudtrail/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -376,6 +378,27 @@ var defaultPartitions = endpoints.Partitions{ }: endpoints.Endpoint{}, }, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "cloudtrail-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "cloudtrail.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/cloudtraildata/internal/endpoints/endpoints.go b/service/cloudtraildata/internal/endpoints/endpoints.go index 8c80054b13b..77838b38c37 100644 --- a/service/cloudtraildata/internal/endpoints/endpoints.go +++ b/service/cloudtraildata/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -280,6 +282,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "cloudtrail-data-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "cloudtrail-data.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/cloudwatch/api_op_PutMetricAlarm.go b/service/cloudwatch/api_op_PutMetricAlarm.go index e4b8d4111f7..aa5760d971a 100644 --- a/service/cloudwatch/api_op_PutMetricAlarm.go +++ b/service/cloudwatch/api_op_PutMetricAlarm.go @@ -32,9 +32,10 @@ import ( // AWSServiceRoleForCloudWatchEvents and // AWSServiceRoleForCloudWatchAlarms_ActionSSM . For more information, see Amazon // Web Services service-linked role (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html#iam-term-service-linked-role) -// . Cross-account alarms You can set an alarm on metrics in the current account, -// or in another account. To create a cross-account alarm that watches a metric in -// a different account, you must have completed the following pre-requisites: +// . Each PutMetricAlarm action has a maximum uncompressed payload of 120 KB. +// Cross-account alarms You can set an alarm on metrics in the current account, or +// in another account. To create a cross-account alarm that watches a metric in a +// different account, you must have completed the following pre-requisites: // - The account where the metrics are located (the sharing account) must // already have a sharing role named CloudWatch-CrossAccountSharingRole. If it does // not already have this role, you must create it using the instructions in Set up @@ -109,7 +110,7 @@ type PutMetricAlarmInput struct { // - // arn:aws:autoscaling:region:account-id:scalingPolicy:policy-id:autoScalingGroupName/group-friendly-name:policyName/policy-friendly-name // - // SSN notification action: + // SNS notification action: // - // arn:aws:sns:region:account-id:sns-topic-name:autoScalingGroupName/group-friendly-name:policyName/policy-friendly-name // @@ -161,7 +162,7 @@ type PutMetricAlarmInput struct { // - // arn:aws:autoscaling:region:account-id:scalingPolicy:policy-id:autoScalingGroupName/group-friendly-name:policyName/policy-friendly-name // - // SSN notification action: + // SNS notification action: // - // arn:aws:sns:region:account-id:sns-topic-name:autoScalingGroupName/group-friendly-name:policyName/policy-friendly-name // @@ -209,7 +210,7 @@ type PutMetricAlarmInput struct { // - // arn:aws:autoscaling:region:account-id:scalingPolicy:policy-id:autoScalingGroupName/group-friendly-name:policyName/policy-friendly-name // - // SSN notification action: + // SNS notification action: // - // arn:aws:sns:region:account-id:sns-topic-name:autoScalingGroupName/group-friendly-name:policyName/policy-friendly-name // diff --git a/service/cloudwatch/deserializers.go b/service/cloudwatch/deserializers.go index e0d6a1ca5fd..40baa7b6554 100644 --- a/service/cloudwatch/deserializers.go +++ b/service/cloudwatch/deserializers.go @@ -9364,6 +9364,12 @@ func awsAwsquery_deserializeDocumentMetricStreamFilter(v **types.MetricStreamFil originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { + case strings.EqualFold("MetricNames", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsAwsquery_deserializeDocumentMetricStreamFilterMetricNames(&sv.MetricNames, nodeDecoder); err != nil { + return err + } + case strings.EqualFold("Namespace", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -9391,6 +9397,86 @@ func awsAwsquery_deserializeDocumentMetricStreamFilter(v **types.MetricStreamFil return nil } +func awsAwsquery_deserializeDocumentMetricStreamFilterMetricNames(v *[]string, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []string + if *v == nil { + sv = make([]string, 0) + } else { + sv = *v + } + + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + decoder = memberDecoder + switch { + case strings.EqualFold("member", t.Name.Local): + var col string + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + col = xtv + } + sv = append(sv, col) + + default: + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsAwsquery_deserializeDocumentMetricStreamFilterMetricNamesUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string + if *v == nil { + sv = make([]string, 0) + } else { + sv = *v + } + + switch { + default: + var mv string + t := decoder.StartEl + _ = t + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + mv = xtv + } + sv = append(sv, mv) + } + *v = sv + return nil +} func awsAwsquery_deserializeDocumentMetricStreamFilters(v *[]types.MetricStreamFilter, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) diff --git a/service/cloudwatch/internal/endpoints/endpoints.go b/service/cloudwatch/internal/endpoints/endpoints.go index f7426500d2d..909ee942902 100644 --- a/service/cloudwatch/internal/endpoints/endpoints.go +++ b/service/cloudwatch/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -376,6 +378,27 @@ var defaultPartitions = endpoints.Partitions{ }: endpoints.Endpoint{}, }, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "monitoring-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "monitoring.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/cloudwatch/serializers.go b/service/cloudwatch/serializers.go index 24a07c01829..a18e005f858 100644 --- a/service/cloudwatch/serializers.go +++ b/service/cloudwatch/serializers.go @@ -2890,6 +2890,13 @@ func awsAwsquery_serializeDocumentMetricStreamFilter(v *types.MetricStreamFilter object := value.Object() _ = object + if v.MetricNames != nil { + objectKey := object.Key("MetricNames") + if err := awsAwsquery_serializeDocumentMetricStreamFilterMetricNames(v.MetricNames, objectKey); err != nil { + return err + } + } + if v.Namespace != nil { objectKey := object.Key("Namespace") objectKey.String(*v.Namespace) @@ -2898,6 +2905,16 @@ func awsAwsquery_serializeDocumentMetricStreamFilter(v *types.MetricStreamFilter return nil } +func awsAwsquery_serializeDocumentMetricStreamFilterMetricNames(v []string, value query.Value) error { + array := value.Array("member") + + for i := range v { + av := array.Value() + av.String(v[i]) + } + return nil +} + func awsAwsquery_serializeDocumentMetricStreamFilters(v []types.MetricStreamFilter, value query.Value) error { array := value.Array("member") diff --git a/service/cloudwatch/types/types.go b/service/cloudwatch/types/types.go index 66551500205..7df06affac1 100644 --- a/service/cloudwatch/types/types.go +++ b/service/cloudwatch/types/types.go @@ -920,13 +920,25 @@ type MetricStreamEntry struct { noSmithyDocumentSerde } -// This structure contains the name of one of the metric namespaces that is listed -// in a filter of a metric stream. The namespace can contain only ASCII printable -// characters (ASCII range 32 through 126). It must contain at least one -// non-whitespace character. +// This structure contains a metric namespace and optionally, a list of metric +// names, to either include in a metric stream or exclude from a metric stream. A +// metric stream's filters can include up to 1000 total names. This limit applies +// to the sum of namespace names and metric names in the filters. For example, this +// could include 10 metric namespace filters with 99 metrics each, or 20 namespace +// filters with 49 metrics specified in each filter. type MetricStreamFilter struct { - // The name of the metric namespace in the filter. + // The names of the metrics to either include or exclude from the metric stream. + // If you omit this parameter, all metrics in the namespace are included or + // excluded, depending on whether this filter is specified as an exclude filter or + // an include filter. Each metric name can contain only ASCII printable characters + // (ASCII range 32 through 126). Each metric name must contain at least one + // non-whitespace character. + MetricNames []string + + // The name of the metric namespace for this filter. The namespace can contain + // only ASCII printable characters (ASCII range 32 through 126). It must contain at + // least one non-whitespace character. Namespace *string noSmithyDocumentSerde diff --git a/service/cloudwatchevents/internal/endpoints/endpoints.go b/service/cloudwatchevents/internal/endpoints/endpoints.go index 8732c9ff7e5..f7d263756f5 100644 --- a/service/cloudwatchevents/internal/endpoints/endpoints.go +++ b/service/cloudwatchevents/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -376,6 +378,27 @@ var defaultPartitions = endpoints.Partitions{ }: endpoints.Endpoint{}, }, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "events-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "events.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/cloudwatchlogs/internal/endpoints/endpoints.go b/service/cloudwatchlogs/internal/endpoints/endpoints.go index 91ab36400c0..9016bf803a4 100644 --- a/service/cloudwatchlogs/internal/endpoints/endpoints.go +++ b/service/cloudwatchlogs/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -376,6 +378,27 @@ var defaultPartitions = endpoints.Partitions{ }: endpoints.Endpoint{}, }, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "logs-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "logs.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/codeartifact/internal/endpoints/endpoints.go b/service/codeartifact/internal/endpoints/endpoints.go index cfbccc49f14..525678cb37f 100644 --- a/service/codeartifact/internal/endpoints/endpoints.go +++ b/service/codeartifact/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -253,6 +255,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "codeartifact-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "codeartifact.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/codebuild/internal/endpoints/endpoints.go b/service/codebuild/internal/endpoints/endpoints.go index 55b93cd34cd..9284a3681bd 100644 --- a/service/codebuild/internal/endpoints/endpoints.go +++ b/service/codebuild/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -360,6 +362,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "codebuild-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "codebuild.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/codecatalyst/internal/endpoints/endpoints.go b/service/codecatalyst/internal/endpoints/endpoints.go index f7a9880cbae..2da2ce9a2f2 100644 --- a/service/codecatalyst/internal/endpoints/endpoints.go +++ b/service/codecatalyst/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -220,6 +222,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "codecatalyst-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "codecatalyst.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/codecommit/internal/endpoints/endpoints.go b/service/codecommit/internal/endpoints/endpoints.go index 3405c91f1db..ca9ed2fb1c6 100644 --- a/service/codecommit/internal/endpoints/endpoints.go +++ b/service/codecommit/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -378,6 +380,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "codecommit-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "codecommit.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/codedeploy/internal/endpoints/endpoints.go b/service/codedeploy/internal/endpoints/endpoints.go index 16184d15284..8f846e122c9 100644 --- a/service/codedeploy/internal/endpoints/endpoints.go +++ b/service/codedeploy/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -376,6 +378,27 @@ var defaultPartitions = endpoints.Partitions{ }: endpoints.Endpoint{}, }, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "codedeploy-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "codedeploy.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/codeguruprofiler/internal/endpoints/endpoints.go b/service/codeguruprofiler/internal/endpoints/endpoints.go index b5c1496d874..03149f2bcf2 100644 --- a/service/codeguruprofiler/internal/endpoints/endpoints.go +++ b/service/codeguruprofiler/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -212,6 +214,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "codeguru-profiler-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "codeguru-profiler.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/codegurureviewer/internal/endpoints/endpoints.go b/service/codegurureviewer/internal/endpoints/endpoints.go index d3d3bdac9a4..2b55ec0cd52 100644 --- a/service/codegurureviewer/internal/endpoints/endpoints.go +++ b/service/codegurureviewer/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -244,6 +246,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "codeguru-reviewer-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "codeguru-reviewer.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/codepipeline/internal/endpoints/endpoints.go b/service/codepipeline/internal/endpoints/endpoints.go index d916ac08c02..22557660d3e 100644 --- a/service/codepipeline/internal/endpoints/endpoints.go +++ b/service/codepipeline/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -360,6 +362,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "codepipeline-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "codepipeline.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ @@ -404,6 +427,9 @@ var defaultPartitions = endpoints.Partitions{ }, Deprecated: aws.TrueTernary, }, + endpoints.EndpointKey{ + Region: "us-gov-east-1", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "us-gov-west-1", }: endpoints.Endpoint{}, diff --git a/service/codestar/internal/endpoints/endpoints.go b/service/codestar/internal/endpoints/endpoints.go index e254c80a818..3534d1e01ba 100644 --- a/service/codestar/internal/endpoints/endpoints.go +++ b/service/codestar/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -253,6 +255,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "codestar-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "codestar.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/codestarconnections/internal/endpoints/endpoints.go b/service/codestarconnections/internal/endpoints/endpoints.go index dc864c2c163..cfcbe9253cd 100644 --- a/service/codestarconnections/internal/endpoints/endpoints.go +++ b/service/codestarconnections/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -262,6 +264,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "codestar-connections-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "codestar-connections.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/codestarnotifications/internal/endpoints/endpoints.go b/service/codestarnotifications/internal/endpoints/endpoints.go index 7469b211d71..20f6f37dd69 100644 --- a/service/codestarnotifications/internal/endpoints/endpoints.go +++ b/service/codestarnotifications/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -268,6 +270,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "codestar-notifications-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "codestar-notifications.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/cognitoidentity/internal/endpoints/endpoints.go b/service/cognitoidentity/internal/endpoints/endpoints.go index 85f4b0226d1..447941fc0eb 100644 --- a/service/cognitoidentity/internal/endpoints/endpoints.go +++ b/service/cognitoidentity/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -318,6 +320,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "cognito-identity-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "cognito-identity.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/cognitoidentityprovider/internal/endpoints/endpoints.go b/service/cognitoidentityprovider/internal/endpoints/endpoints.go index 450787b4b05..e4bacabd1a4 100644 --- a/service/cognitoidentityprovider/internal/endpoints/endpoints.go +++ b/service/cognitoidentityprovider/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -328,6 +330,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "cognito-idp-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "cognito-idp.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/cognitosync/internal/endpoints/endpoints.go b/service/cognitosync/internal/endpoints/endpoints.go index c9c793a869c..737209e990a 100644 --- a/service/cognitosync/internal/endpoints/endpoints.go +++ b/service/cognitosync/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -247,6 +249,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "cognito-sync-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "cognito-sync.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/comprehend/internal/endpoints/endpoints.go b/service/comprehend/internal/endpoints/endpoints.go index 525607c422b..5f2f42b464f 100644 --- a/service/comprehend/internal/endpoints/endpoints.go +++ b/service/comprehend/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -300,6 +302,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "comprehend-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "comprehend.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/comprehendmedical/internal/endpoints/endpoints.go b/service/comprehendmedical/internal/endpoints/endpoints.go index 18a4f7e4750..b7c8ab2db3b 100644 --- a/service/comprehendmedical/internal/endpoints/endpoints.go +++ b/service/comprehendmedical/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -280,6 +282,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "comprehendmedical-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "comprehendmedical.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/computeoptimizer/internal/endpoints/endpoints.go b/service/computeoptimizer/internal/endpoints/endpoints.go index ddf23777745..263585ad92c 100644 --- a/service/computeoptimizer/internal/endpoints/endpoints.go +++ b/service/computeoptimizer/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -400,6 +402,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "compute-optimizer-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "compute-optimizer.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/configservice/internal/endpoints/endpoints.go b/service/configservice/internal/endpoints/endpoints.go index 912cf2450d8..5ea9ffd791c 100644 --- a/service/configservice/internal/endpoints/endpoints.go +++ b/service/configservice/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -376,6 +378,27 @@ var defaultPartitions = endpoints.Partitions{ }: endpoints.Endpoint{}, }, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "config-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "config.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/configservice/types/enums.go b/service/configservice/types/enums.go index 911a8736f0e..5befe4e31c4 100644 --- a/service/configservice/types/enums.go +++ b/service/configservice/types/enums.go @@ -638,280 +638,303 @@ type ResourceType string // Enum values for ResourceType const ( - ResourceTypeCustomerGateway ResourceType = "AWS::EC2::CustomerGateway" - ResourceTypeEip ResourceType = "AWS::EC2::EIP" - ResourceTypeHost ResourceType = "AWS::EC2::Host" - ResourceTypeInstance ResourceType = "AWS::EC2::Instance" - ResourceTypeInternetGateway ResourceType = "AWS::EC2::InternetGateway" - ResourceTypeNetworkAcl ResourceType = "AWS::EC2::NetworkAcl" - ResourceTypeNetworkInterface ResourceType = "AWS::EC2::NetworkInterface" - ResourceTypeRouteTable ResourceType = "AWS::EC2::RouteTable" - ResourceTypeSecurityGroup ResourceType = "AWS::EC2::SecurityGroup" - ResourceTypeSubnet ResourceType = "AWS::EC2::Subnet" - ResourceTypeTrail ResourceType = "AWS::CloudTrail::Trail" - ResourceTypeVolume ResourceType = "AWS::EC2::Volume" - ResourceTypeVpc ResourceType = "AWS::EC2::VPC" - ResourceTypeVPNConnection ResourceType = "AWS::EC2::VPNConnection" - ResourceTypeVPNGateway ResourceType = "AWS::EC2::VPNGateway" - ResourceTypeRegisteredHAInstance ResourceType = "AWS::EC2::RegisteredHAInstance" - ResourceTypeNatGateway ResourceType = "AWS::EC2::NatGateway" - ResourceTypeEgressOnlyInternetGateway ResourceType = "AWS::EC2::EgressOnlyInternetGateway" - ResourceTypeVPCEndpoint ResourceType = "AWS::EC2::VPCEndpoint" - ResourceTypeVPCEndpointService ResourceType = "AWS::EC2::VPCEndpointService" - ResourceTypeFlowLog ResourceType = "AWS::EC2::FlowLog" - ResourceTypeVPCPeeringConnection ResourceType = "AWS::EC2::VPCPeeringConnection" - ResourceTypeDomain ResourceType = "AWS::Elasticsearch::Domain" - ResourceTypeGroup ResourceType = "AWS::IAM::Group" - ResourceTypePolicy ResourceType = "AWS::IAM::Policy" - ResourceTypeRole ResourceType = "AWS::IAM::Role" - ResourceTypeUser ResourceType = "AWS::IAM::User" - ResourceTypeLoadBalancerV2 ResourceType = "AWS::ElasticLoadBalancingV2::LoadBalancer" - ResourceTypeCertificate ResourceType = "AWS::ACM::Certificate" - ResourceTypeDBInstance ResourceType = "AWS::RDS::DBInstance" - ResourceTypeDBSubnetGroup ResourceType = "AWS::RDS::DBSubnetGroup" - ResourceTypeDBSecurityGroup ResourceType = "AWS::RDS::DBSecurityGroup" - ResourceTypeDBSnapshot ResourceType = "AWS::RDS::DBSnapshot" - ResourceTypeDBCluster ResourceType = "AWS::RDS::DBCluster" - ResourceTypeDBClusterSnapshot ResourceType = "AWS::RDS::DBClusterSnapshot" - ResourceTypeEventSubscription ResourceType = "AWS::RDS::EventSubscription" - ResourceTypeBucket ResourceType = "AWS::S3::Bucket" - ResourceTypeAccountPublicAccessBlock ResourceType = "AWS::S3::AccountPublicAccessBlock" - ResourceTypeCluster ResourceType = "AWS::Redshift::Cluster" - ResourceTypeClusterSnapshot ResourceType = "AWS::Redshift::ClusterSnapshot" - ResourceTypeClusterParameterGroup ResourceType = "AWS::Redshift::ClusterParameterGroup" - ResourceTypeClusterSecurityGroup ResourceType = "AWS::Redshift::ClusterSecurityGroup" - ResourceTypeClusterSubnetGroup ResourceType = "AWS::Redshift::ClusterSubnetGroup" - ResourceTypeRedshiftEventSubscription ResourceType = "AWS::Redshift::EventSubscription" - ResourceTypeManagedInstanceInventory ResourceType = "AWS::SSM::ManagedInstanceInventory" - ResourceTypeAlarm ResourceType = "AWS::CloudWatch::Alarm" - ResourceTypeStack ResourceType = "AWS::CloudFormation::Stack" - ResourceTypeLoadBalancer ResourceType = "AWS::ElasticLoadBalancing::LoadBalancer" - ResourceTypeAutoScalingGroup ResourceType = "AWS::AutoScaling::AutoScalingGroup" - ResourceTypeLaunchConfiguration ResourceType = "AWS::AutoScaling::LaunchConfiguration" - ResourceTypeScalingPolicy ResourceType = "AWS::AutoScaling::ScalingPolicy" - ResourceTypeScheduledAction ResourceType = "AWS::AutoScaling::ScheduledAction" - ResourceTypeTable ResourceType = "AWS::DynamoDB::Table" - ResourceTypeProject ResourceType = "AWS::CodeBuild::Project" - ResourceTypeRateBasedRule ResourceType = "AWS::WAF::RateBasedRule" - ResourceTypeRule ResourceType = "AWS::WAF::Rule" - ResourceTypeRuleGroup ResourceType = "AWS::WAF::RuleGroup" - ResourceTypeWebACL ResourceType = "AWS::WAF::WebACL" - ResourceTypeRegionalRateBasedRule ResourceType = "AWS::WAFRegional::RateBasedRule" - ResourceTypeRegionalRule ResourceType = "AWS::WAFRegional::Rule" - ResourceTypeRegionalRuleGroup ResourceType = "AWS::WAFRegional::RuleGroup" - ResourceTypeRegionalWebACL ResourceType = "AWS::WAFRegional::WebACL" - ResourceTypeDistribution ResourceType = "AWS::CloudFront::Distribution" - ResourceTypeStreamingDistribution ResourceType = "AWS::CloudFront::StreamingDistribution" - ResourceTypeFunction ResourceType = "AWS::Lambda::Function" - ResourceTypeNetworkFirewallFirewall ResourceType = "AWS::NetworkFirewall::Firewall" - ResourceTypeNetworkFirewallFirewallPolicy ResourceType = "AWS::NetworkFirewall::FirewallPolicy" - ResourceTypeNetworkFirewallRuleGroup ResourceType = "AWS::NetworkFirewall::RuleGroup" - ResourceTypeApplication ResourceType = "AWS::ElasticBeanstalk::Application" - ResourceTypeApplicationVersion ResourceType = "AWS::ElasticBeanstalk::ApplicationVersion" - ResourceTypeEnvironment ResourceType = "AWS::ElasticBeanstalk::Environment" - ResourceTypeWebACLV2 ResourceType = "AWS::WAFv2::WebACL" - ResourceTypeRuleGroupV2 ResourceType = "AWS::WAFv2::RuleGroup" - ResourceTypeIPSetV2 ResourceType = "AWS::WAFv2::IPSet" - ResourceTypeRegexPatternSetV2 ResourceType = "AWS::WAFv2::RegexPatternSet" - ResourceTypeManagedRuleSetV2 ResourceType = "AWS::WAFv2::ManagedRuleSet" - ResourceTypeEncryptionConfig ResourceType = "AWS::XRay::EncryptionConfig" - ResourceTypeAssociationCompliance ResourceType = "AWS::SSM::AssociationCompliance" - ResourceTypePatchCompliance ResourceType = "AWS::SSM::PatchCompliance" - ResourceTypeProtection ResourceType = "AWS::Shield::Protection" - ResourceTypeRegionalProtection ResourceType = "AWS::ShieldRegional::Protection" - ResourceTypeConformancePackCompliance ResourceType = "AWS::Config::ConformancePackCompliance" - ResourceTypeResourceCompliance ResourceType = "AWS::Config::ResourceCompliance" - ResourceTypeStage ResourceType = "AWS::ApiGateway::Stage" - ResourceTypeRestApi ResourceType = "AWS::ApiGateway::RestApi" - ResourceTypeStageV2 ResourceType = "AWS::ApiGatewayV2::Stage" - ResourceTypeApi ResourceType = "AWS::ApiGatewayV2::Api" - ResourceTypePipeline ResourceType = "AWS::CodePipeline::Pipeline" - ResourceTypeCloudFormationProvisionedProduct ResourceType = "AWS::ServiceCatalog::CloudFormationProvisionedProduct" - ResourceTypeCloudFormationProduct ResourceType = "AWS::ServiceCatalog::CloudFormationProduct" - ResourceTypePortfolio ResourceType = "AWS::ServiceCatalog::Portfolio" - ResourceTypeQueue ResourceType = "AWS::SQS::Queue" - ResourceTypeKey ResourceType = "AWS::KMS::Key" - ResourceTypeQLDBLedger ResourceType = "AWS::QLDB::Ledger" - ResourceTypeSecret ResourceType = "AWS::SecretsManager::Secret" - ResourceTypeTopic ResourceType = "AWS::SNS::Topic" - ResourceTypeFileData ResourceType = "AWS::SSM::FileData" - ResourceTypeBackupPlan ResourceType = "AWS::Backup::BackupPlan" - ResourceTypeBackupSelection ResourceType = "AWS::Backup::BackupSelection" - ResourceTypeBackupVault ResourceType = "AWS::Backup::BackupVault" - ResourceTypeBackupRecoveryPoint ResourceType = "AWS::Backup::RecoveryPoint" - ResourceTypeECRRepository ResourceType = "AWS::ECR::Repository" - ResourceTypeECSCluster ResourceType = "AWS::ECS::Cluster" - ResourceTypeECSService ResourceType = "AWS::ECS::Service" - ResourceTypeECSTaskDefinition ResourceType = "AWS::ECS::TaskDefinition" - ResourceTypeEFSAccessPoint ResourceType = "AWS::EFS::AccessPoint" - ResourceTypeEFSFileSystem ResourceType = "AWS::EFS::FileSystem" - ResourceTypeEKSCluster ResourceType = "AWS::EKS::Cluster" - ResourceTypeOpenSearchDomain ResourceType = "AWS::OpenSearch::Domain" - ResourceTypeTransitGateway ResourceType = "AWS::EC2::TransitGateway" - ResourceTypeKinesisStream ResourceType = "AWS::Kinesis::Stream" - ResourceTypeKinesisStreamConsumer ResourceType = "AWS::Kinesis::StreamConsumer" - ResourceTypeCodeDeployApplication ResourceType = "AWS::CodeDeploy::Application" - ResourceTypeCodeDeployDeploymentConfig ResourceType = "AWS::CodeDeploy::DeploymentConfig" - ResourceTypeCodeDeployDeploymentGroup ResourceType = "AWS::CodeDeploy::DeploymentGroup" - ResourceTypeLaunchTemplate ResourceType = "AWS::EC2::LaunchTemplate" - ResourceTypeECRPublicRepository ResourceType = "AWS::ECR::PublicRepository" - ResourceTypeGuardDutyDetector ResourceType = "AWS::GuardDuty::Detector" - ResourceTypeEMRSecurityConfiguration ResourceType = "AWS::EMR::SecurityConfiguration" - ResourceTypeSageMakerCodeRepository ResourceType = "AWS::SageMaker::CodeRepository" - ResourceTypeRoute53ResolverResolverEndpoint ResourceType = "AWS::Route53Resolver::ResolverEndpoint" - ResourceTypeRoute53ResolverResolverRule ResourceType = "AWS::Route53Resolver::ResolverRule" - ResourceTypeRoute53ResolverResolverRuleAssociation ResourceType = "AWS::Route53Resolver::ResolverRuleAssociation" - ResourceTypeDMSReplicationSubnetGroup ResourceType = "AWS::DMS::ReplicationSubnetGroup" - ResourceTypeDMSEventSubscription ResourceType = "AWS::DMS::EventSubscription" - ResourceTypeMSKCluster ResourceType = "AWS::MSK::Cluster" - ResourceTypeStepFunctionsActivity ResourceType = "AWS::StepFunctions::Activity" - ResourceTypeWorkSpacesWorkspace ResourceType = "AWS::WorkSpaces::Workspace" - ResourceTypeWorkSpacesConnectionAlias ResourceType = "AWS::WorkSpaces::ConnectionAlias" - ResourceTypeSageMakerModel ResourceType = "AWS::SageMaker::Model" - ResourceTypeListenerV2 ResourceType = "AWS::ElasticLoadBalancingV2::Listener" - ResourceTypeStepFunctionsStateMachine ResourceType = "AWS::StepFunctions::StateMachine" - ResourceTypeBatchJobQueue ResourceType = "AWS::Batch::JobQueue" - ResourceTypeBatchComputeEnvironment ResourceType = "AWS::Batch::ComputeEnvironment" - ResourceTypeAccessAnalyzerAnalyzer ResourceType = "AWS::AccessAnalyzer::Analyzer" - ResourceTypeAthenaWorkGroup ResourceType = "AWS::Athena::WorkGroup" - ResourceTypeAthenaDataCatalog ResourceType = "AWS::Athena::DataCatalog" - ResourceTypeDetectiveGraph ResourceType = "AWS::Detective::Graph" - ResourceTypeGlobalAcceleratorAccelerator ResourceType = "AWS::GlobalAccelerator::Accelerator" - ResourceTypeGlobalAcceleratorEndpointGroup ResourceType = "AWS::GlobalAccelerator::EndpointGroup" - ResourceTypeGlobalAcceleratorListener ResourceType = "AWS::GlobalAccelerator::Listener" - ResourceTypeTransitGatewayAttachment ResourceType = "AWS::EC2::TransitGatewayAttachment" - ResourceTypeTransitGatewayRouteTable ResourceType = "AWS::EC2::TransitGatewayRouteTable" - ResourceTypeDMSCertificate ResourceType = "AWS::DMS::Certificate" - ResourceTypeAppConfigApplication ResourceType = "AWS::AppConfig::Application" - ResourceTypeAppSyncGraphQLApi ResourceType = "AWS::AppSync::GraphQLApi" - ResourceTypeDataSyncLocationSMB ResourceType = "AWS::DataSync::LocationSMB" - ResourceTypeDataSyncLocationFSxLustre ResourceType = "AWS::DataSync::LocationFSxLustre" - ResourceTypeDataSyncLocationS3 ResourceType = "AWS::DataSync::LocationS3" - ResourceTypeDataSyncLocationEFS ResourceType = "AWS::DataSync::LocationEFS" - ResourceTypeDataSyncTask ResourceType = "AWS::DataSync::Task" - ResourceTypeDataSyncLocationNFS ResourceType = "AWS::DataSync::LocationNFS" - ResourceTypeNetworkInsightsAccessScopeAnalysis ResourceType = "AWS::EC2::NetworkInsightsAccessScopeAnalysis" - ResourceTypeEKSFargateProfile ResourceType = "AWS::EKS::FargateProfile" - ResourceTypeGlueJob ResourceType = "AWS::Glue::Job" - ResourceTypeGuardDutyThreatIntelSet ResourceType = "AWS::GuardDuty::ThreatIntelSet" - ResourceTypeGuardDutyIPSet ResourceType = "AWS::GuardDuty::IPSet" - ResourceTypeSageMakerWorkteam ResourceType = "AWS::SageMaker::Workteam" - ResourceTypeSageMakerNotebookInstanceLifecycleConfig ResourceType = "AWS::SageMaker::NotebookInstanceLifecycleConfig" - ResourceTypeServiceDiscoveryService ResourceType = "AWS::ServiceDiscovery::Service" - ResourceTypeServiceDiscoveryPublicDnsNamespace ResourceType = "AWS::ServiceDiscovery::PublicDnsNamespace" - ResourceTypeSESContactList ResourceType = "AWS::SES::ContactList" - ResourceTypeSESConfigurationSet ResourceType = "AWS::SES::ConfigurationSet" - ResourceTypeRoute53HostedZone ResourceType = "AWS::Route53::HostedZone" - ResourceTypeIoTEventsInput ResourceType = "AWS::IoTEvents::Input" - ResourceTypeIoTEventsDetectorModel ResourceType = "AWS::IoTEvents::DetectorModel" - ResourceTypeIoTEventsAlarmModel ResourceType = "AWS::IoTEvents::AlarmModel" - ResourceTypeServiceDiscoveryHttpNamespace ResourceType = "AWS::ServiceDiscovery::HttpNamespace" - ResourceTypeEventsEventBus ResourceType = "AWS::Events::EventBus" - ResourceTypeImageBuilderContainerRecipe ResourceType = "AWS::ImageBuilder::ContainerRecipe" - ResourceTypeImageBuilderDistributionConfiguration ResourceType = "AWS::ImageBuilder::DistributionConfiguration" - ResourceTypeImageBuilderInfrastructureConfiguration ResourceType = "AWS::ImageBuilder::InfrastructureConfiguration" - ResourceTypeDataSyncLocationObjectStorage ResourceType = "AWS::DataSync::LocationObjectStorage" - ResourceTypeDataSyncLocationHDFS ResourceType = "AWS::DataSync::LocationHDFS" - ResourceTypeGlueClassifier ResourceType = "AWS::Glue::Classifier" - ResourceTypeRoute53RecoveryReadinessCell ResourceType = "AWS::Route53RecoveryReadiness::Cell" - ResourceTypeRoute53RecoveryReadinessReadinessCheck ResourceType = "AWS::Route53RecoveryReadiness::ReadinessCheck" - ResourceTypeECRRegistryPolicy ResourceType = "AWS::ECR::RegistryPolicy" - ResourceTypeBackupReportPlan ResourceType = "AWS::Backup::ReportPlan" - ResourceTypeLightsailCertificate ResourceType = "AWS::Lightsail::Certificate" - ResourceTypeRUMAppMonitor ResourceType = "AWS::RUM::AppMonitor" - ResourceTypeEventsEndpoint ResourceType = "AWS::Events::Endpoint" - ResourceTypeSESReceiptRuleSet ResourceType = "AWS::SES::ReceiptRuleSet" - ResourceTypeEventsArchive ResourceType = "AWS::Events::Archive" - ResourceTypeEventsApiDestination ResourceType = "AWS::Events::ApiDestination" - ResourceTypeLightsailDisk ResourceType = "AWS::Lightsail::Disk" - ResourceTypeFISExperimentTemplate ResourceType = "AWS::FIS::ExperimentTemplate" - ResourceTypeDataSyncLocationFSxWindows ResourceType = "AWS::DataSync::LocationFSxWindows" - ResourceTypeSESReceiptFilter ResourceType = "AWS::SES::ReceiptFilter" - ResourceTypeGuardDutyFilter ResourceType = "AWS::GuardDuty::Filter" - ResourceTypeSESTemplate ResourceType = "AWS::SES::Template" - ResourceTypeAmazonMQBroker ResourceType = "AWS::AmazonMQ::Broker" - ResourceTypeAppConfigEnvironment ResourceType = "AWS::AppConfig::Environment" - ResourceTypeAppConfigConfigurationProfile ResourceType = "AWS::AppConfig::ConfigurationProfile" - ResourceTypeCloud9EnvironmentEC2 ResourceType = "AWS::Cloud9::EnvironmentEC2" - ResourceTypeEventSchemasRegistry ResourceType = "AWS::EventSchemas::Registry" - ResourceTypeEventSchemasRegistryPolicy ResourceType = "AWS::EventSchemas::RegistryPolicy" - ResourceTypeEventSchemasDiscoverer ResourceType = "AWS::EventSchemas::Discoverer" - ResourceTypeFraudDetectorLabel ResourceType = "AWS::FraudDetector::Label" - ResourceTypeFraudDetectorEntityType ResourceType = "AWS::FraudDetector::EntityType" - ResourceTypeFraudDetectorVariable ResourceType = "AWS::FraudDetector::Variable" - ResourceTypeFraudDetectorOutcome ResourceType = "AWS::FraudDetector::Outcome" - ResourceTypeIoTAuthorizer ResourceType = "AWS::IoT::Authorizer" - ResourceTypeIoTSecurityProfile ResourceType = "AWS::IoT::SecurityProfile" - ResourceTypeIoTRoleAlias ResourceType = "AWS::IoT::RoleAlias" - ResourceTypeIoTDimension ResourceType = "AWS::IoT::Dimension" - ResourceTypeIoTAnalyticsDatastore ResourceType = "AWS::IoTAnalytics::Datastore" - ResourceTypeLightsailBucket ResourceType = "AWS::Lightsail::Bucket" - ResourceTypeLightsailStaticIp ResourceType = "AWS::Lightsail::StaticIp" - ResourceTypeMediaPackagePackagingGroup ResourceType = "AWS::MediaPackage::PackagingGroup" - ResourceTypeRoute53RecoveryReadinessRecoveryGroup ResourceType = "AWS::Route53RecoveryReadiness::RecoveryGroup" - ResourceTypeResilienceHubResiliencyPolicy ResourceType = "AWS::ResilienceHub::ResiliencyPolicy" - ResourceTypeTransferWorkflow ResourceType = "AWS::Transfer::Workflow" - ResourceTypeEKSIdentityProviderConfig ResourceType = "AWS::EKS::IdentityProviderConfig" - ResourceTypeEKSAddon ResourceType = "AWS::EKS::Addon" - ResourceTypeGlueMLTransform ResourceType = "AWS::Glue::MLTransform" - ResourceTypeIoTPolicy ResourceType = "AWS::IoT::Policy" - ResourceTypeIoTMitigationAction ResourceType = "AWS::IoT::MitigationAction" - ResourceTypeIoTTwinMakerWorkspace ResourceType = "AWS::IoTTwinMaker::Workspace" - ResourceTypeIoTTwinMakerEntity ResourceType = "AWS::IoTTwinMaker::Entity" - ResourceTypeIoTAnalyticsDataset ResourceType = "AWS::IoTAnalytics::Dataset" - ResourceTypeIoTAnalyticsPipeline ResourceType = "AWS::IoTAnalytics::Pipeline" - ResourceTypeIoTAnalyticsChannel ResourceType = "AWS::IoTAnalytics::Channel" - ResourceTypeIoTSiteWiseDashboard ResourceType = "AWS::IoTSiteWise::Dashboard" - ResourceTypeIoTSiteWiseProject ResourceType = "AWS::IoTSiteWise::Project" - ResourceTypeIoTSiteWisePortal ResourceType = "AWS::IoTSiteWise::Portal" - ResourceTypeIoTSiteWiseAssetModel ResourceType = "AWS::IoTSiteWise::AssetModel" - ResourceTypeIVSChannel ResourceType = "AWS::IVS::Channel" - ResourceTypeIVSRecordingConfiguration ResourceType = "AWS::IVS::RecordingConfiguration" - ResourceTypeIVSPlaybackKeyPair ResourceType = "AWS::IVS::PlaybackKeyPair" - ResourceTypeKinesisAnalyticsV2Application ResourceType = "AWS::KinesisAnalyticsV2::Application" - ResourceTypeRDSGlobalCluster ResourceType = "AWS::RDS::GlobalCluster" - ResourceTypeS3MultiRegionAccessPoint ResourceType = "AWS::S3::MultiRegionAccessPoint" - ResourceTypeDeviceFarmTestGridProject ResourceType = "AWS::DeviceFarm::TestGridProject" - ResourceTypeBudgetsBudgetsAction ResourceType = "AWS::Budgets::BudgetsAction" - ResourceTypeLexBot ResourceType = "AWS::Lex::Bot" - ResourceTypeCodeGuruReviewerRepositoryAssociation ResourceType = "AWS::CodeGuruReviewer::RepositoryAssociation" - ResourceTypeIoTCustomMetric ResourceType = "AWS::IoT::CustomMetric" - ResourceTypeRoute53ResolverFirewallDomainList ResourceType = "AWS::Route53Resolver::FirewallDomainList" - ResourceTypeRoboMakerRobotApplicationVersion ResourceType = "AWS::RoboMaker::RobotApplicationVersion" - ResourceTypeEC2TrafficMirrorSession ResourceType = "AWS::EC2::TrafficMirrorSession" - ResourceTypeIoTSiteWiseGateway ResourceType = "AWS::IoTSiteWise::Gateway" - ResourceTypeLexBotAlias ResourceType = "AWS::Lex::BotAlias" - ResourceTypeLookoutMetricsAlert ResourceType = "AWS::LookoutMetrics::Alert" - ResourceTypeIoTAccountAuditConfiguration ResourceType = "AWS::IoT::AccountAuditConfiguration" - ResourceTypeEC2TrafficMirrorTarget ResourceType = "AWS::EC2::TrafficMirrorTarget" - ResourceTypeS3StorageLens ResourceType = "AWS::S3::StorageLens" - ResourceTypeIoTScheduledAudit ResourceType = "AWS::IoT::ScheduledAudit" - ResourceTypeEventsConnection ResourceType = "AWS::Events::Connection" - ResourceTypeEventSchemasSchema ResourceType = "AWS::EventSchemas::Schema" - ResourceTypeMediaPackagePackagingConfiguration ResourceType = "AWS::MediaPackage::PackagingConfiguration" - ResourceTypeKinesisVideoSignalingChannel ResourceType = "AWS::KinesisVideo::SignalingChannel" - ResourceTypeAppStreamDirectoryConfig ResourceType = "AWS::AppStream::DirectoryConfig" - ResourceTypeLookoutVisionProject ResourceType = "AWS::LookoutVision::Project" - ResourceTypeRoute53RecoveryControlCluster ResourceType = "AWS::Route53RecoveryControl::Cluster" - ResourceTypeRoute53RecoveryControlSafetyRule ResourceType = "AWS::Route53RecoveryControl::SafetyRule" - ResourceTypeRoute53RecoveryControlControlPanel ResourceType = "AWS::Route53RecoveryControl::ControlPanel" - ResourceTypeRoute53RecoveryControlRoutingControl ResourceType = "AWS::Route53RecoveryControl::RoutingControl" - ResourceTypeRoute53RecoveryReadinessResourceSet ResourceType = "AWS::Route53RecoveryReadiness::ResourceSet" - ResourceTypeRoboMakerSimulationApplication ResourceType = "AWS::RoboMaker::SimulationApplication" - ResourceTypeRoboMakerRobotApplication ResourceType = "AWS::RoboMaker::RobotApplication" - ResourceTypeHealthLakeFHIRDatastore ResourceType = "AWS::HealthLake::FHIRDatastore" - ResourceTypePinpointSegment ResourceType = "AWS::Pinpoint::Segment" - ResourceTypePinpointApplicationSettings ResourceType = "AWS::Pinpoint::ApplicationSettings" - ResourceTypeEventsRule ResourceType = "AWS::Events::Rule" - ResourceTypeEC2DHCPOptions ResourceType = "AWS::EC2::DHCPOptions" - ResourceTypeEC2NetworkInsightsPath ResourceType = "AWS::EC2::NetworkInsightsPath" - ResourceTypeEC2TrafficMirrorFilter ResourceType = "AWS::EC2::TrafficMirrorFilter" - ResourceTypeEc2ipam ResourceType = "AWS::EC2::IPAM" - ResourceTypeIoTTwinMakerScene ResourceType = "AWS::IoTTwinMaker::Scene" - ResourceTypeNetworkManagerTransitGatewayRegistration ResourceType = "AWS::NetworkManager::TransitGatewayRegistration" - ResourceTypeCustomerProfilesDomain ResourceType = "AWS::CustomerProfiles::Domain" - ResourceTypeAutoScalingWarmPool ResourceType = "AWS::AutoScaling::WarmPool" - ResourceTypeConnectPhoneNumber ResourceType = "AWS::Connect::PhoneNumber" + ResourceTypeCustomerGateway ResourceType = "AWS::EC2::CustomerGateway" + ResourceTypeEip ResourceType = "AWS::EC2::EIP" + ResourceTypeHost ResourceType = "AWS::EC2::Host" + ResourceTypeInstance ResourceType = "AWS::EC2::Instance" + ResourceTypeInternetGateway ResourceType = "AWS::EC2::InternetGateway" + ResourceTypeNetworkAcl ResourceType = "AWS::EC2::NetworkAcl" + ResourceTypeNetworkInterface ResourceType = "AWS::EC2::NetworkInterface" + ResourceTypeRouteTable ResourceType = "AWS::EC2::RouteTable" + ResourceTypeSecurityGroup ResourceType = "AWS::EC2::SecurityGroup" + ResourceTypeSubnet ResourceType = "AWS::EC2::Subnet" + ResourceTypeTrail ResourceType = "AWS::CloudTrail::Trail" + ResourceTypeVolume ResourceType = "AWS::EC2::Volume" + ResourceTypeVpc ResourceType = "AWS::EC2::VPC" + ResourceTypeVPNConnection ResourceType = "AWS::EC2::VPNConnection" + ResourceTypeVPNGateway ResourceType = "AWS::EC2::VPNGateway" + ResourceTypeRegisteredHAInstance ResourceType = "AWS::EC2::RegisteredHAInstance" + ResourceTypeNatGateway ResourceType = "AWS::EC2::NatGateway" + ResourceTypeEgressOnlyInternetGateway ResourceType = "AWS::EC2::EgressOnlyInternetGateway" + ResourceTypeVPCEndpoint ResourceType = "AWS::EC2::VPCEndpoint" + ResourceTypeVPCEndpointService ResourceType = "AWS::EC2::VPCEndpointService" + ResourceTypeFlowLog ResourceType = "AWS::EC2::FlowLog" + ResourceTypeVPCPeeringConnection ResourceType = "AWS::EC2::VPCPeeringConnection" + ResourceTypeDomain ResourceType = "AWS::Elasticsearch::Domain" + ResourceTypeGroup ResourceType = "AWS::IAM::Group" + ResourceTypePolicy ResourceType = "AWS::IAM::Policy" + ResourceTypeRole ResourceType = "AWS::IAM::Role" + ResourceTypeUser ResourceType = "AWS::IAM::User" + ResourceTypeLoadBalancerV2 ResourceType = "AWS::ElasticLoadBalancingV2::LoadBalancer" + ResourceTypeCertificate ResourceType = "AWS::ACM::Certificate" + ResourceTypeDBInstance ResourceType = "AWS::RDS::DBInstance" + ResourceTypeDBSubnetGroup ResourceType = "AWS::RDS::DBSubnetGroup" + ResourceTypeDBSecurityGroup ResourceType = "AWS::RDS::DBSecurityGroup" + ResourceTypeDBSnapshot ResourceType = "AWS::RDS::DBSnapshot" + ResourceTypeDBCluster ResourceType = "AWS::RDS::DBCluster" + ResourceTypeDBClusterSnapshot ResourceType = "AWS::RDS::DBClusterSnapshot" + ResourceTypeEventSubscription ResourceType = "AWS::RDS::EventSubscription" + ResourceTypeBucket ResourceType = "AWS::S3::Bucket" + ResourceTypeAccountPublicAccessBlock ResourceType = "AWS::S3::AccountPublicAccessBlock" + ResourceTypeCluster ResourceType = "AWS::Redshift::Cluster" + ResourceTypeClusterSnapshot ResourceType = "AWS::Redshift::ClusterSnapshot" + ResourceTypeClusterParameterGroup ResourceType = "AWS::Redshift::ClusterParameterGroup" + ResourceTypeClusterSecurityGroup ResourceType = "AWS::Redshift::ClusterSecurityGroup" + ResourceTypeClusterSubnetGroup ResourceType = "AWS::Redshift::ClusterSubnetGroup" + ResourceTypeRedshiftEventSubscription ResourceType = "AWS::Redshift::EventSubscription" + ResourceTypeManagedInstanceInventory ResourceType = "AWS::SSM::ManagedInstanceInventory" + ResourceTypeAlarm ResourceType = "AWS::CloudWatch::Alarm" + ResourceTypeStack ResourceType = "AWS::CloudFormation::Stack" + ResourceTypeLoadBalancer ResourceType = "AWS::ElasticLoadBalancing::LoadBalancer" + ResourceTypeAutoScalingGroup ResourceType = "AWS::AutoScaling::AutoScalingGroup" + ResourceTypeLaunchConfiguration ResourceType = "AWS::AutoScaling::LaunchConfiguration" + ResourceTypeScalingPolicy ResourceType = "AWS::AutoScaling::ScalingPolicy" + ResourceTypeScheduledAction ResourceType = "AWS::AutoScaling::ScheduledAction" + ResourceTypeTable ResourceType = "AWS::DynamoDB::Table" + ResourceTypeProject ResourceType = "AWS::CodeBuild::Project" + ResourceTypeRateBasedRule ResourceType = "AWS::WAF::RateBasedRule" + ResourceTypeRule ResourceType = "AWS::WAF::Rule" + ResourceTypeRuleGroup ResourceType = "AWS::WAF::RuleGroup" + ResourceTypeWebACL ResourceType = "AWS::WAF::WebACL" + ResourceTypeRegionalRateBasedRule ResourceType = "AWS::WAFRegional::RateBasedRule" + ResourceTypeRegionalRule ResourceType = "AWS::WAFRegional::Rule" + ResourceTypeRegionalRuleGroup ResourceType = "AWS::WAFRegional::RuleGroup" + ResourceTypeRegionalWebACL ResourceType = "AWS::WAFRegional::WebACL" + ResourceTypeDistribution ResourceType = "AWS::CloudFront::Distribution" + ResourceTypeStreamingDistribution ResourceType = "AWS::CloudFront::StreamingDistribution" + ResourceTypeFunction ResourceType = "AWS::Lambda::Function" + ResourceTypeNetworkFirewallFirewall ResourceType = "AWS::NetworkFirewall::Firewall" + ResourceTypeNetworkFirewallFirewallPolicy ResourceType = "AWS::NetworkFirewall::FirewallPolicy" + ResourceTypeNetworkFirewallRuleGroup ResourceType = "AWS::NetworkFirewall::RuleGroup" + ResourceTypeApplication ResourceType = "AWS::ElasticBeanstalk::Application" + ResourceTypeApplicationVersion ResourceType = "AWS::ElasticBeanstalk::ApplicationVersion" + ResourceTypeEnvironment ResourceType = "AWS::ElasticBeanstalk::Environment" + ResourceTypeWebACLV2 ResourceType = "AWS::WAFv2::WebACL" + ResourceTypeRuleGroupV2 ResourceType = "AWS::WAFv2::RuleGroup" + ResourceTypeIPSetV2 ResourceType = "AWS::WAFv2::IPSet" + ResourceTypeRegexPatternSetV2 ResourceType = "AWS::WAFv2::RegexPatternSet" + ResourceTypeManagedRuleSetV2 ResourceType = "AWS::WAFv2::ManagedRuleSet" + ResourceTypeEncryptionConfig ResourceType = "AWS::XRay::EncryptionConfig" + ResourceTypeAssociationCompliance ResourceType = "AWS::SSM::AssociationCompliance" + ResourceTypePatchCompliance ResourceType = "AWS::SSM::PatchCompliance" + ResourceTypeProtection ResourceType = "AWS::Shield::Protection" + ResourceTypeRegionalProtection ResourceType = "AWS::ShieldRegional::Protection" + ResourceTypeConformancePackCompliance ResourceType = "AWS::Config::ConformancePackCompliance" + ResourceTypeResourceCompliance ResourceType = "AWS::Config::ResourceCompliance" + ResourceTypeStage ResourceType = "AWS::ApiGateway::Stage" + ResourceTypeRestApi ResourceType = "AWS::ApiGateway::RestApi" + ResourceTypeStageV2 ResourceType = "AWS::ApiGatewayV2::Stage" + ResourceTypeApi ResourceType = "AWS::ApiGatewayV2::Api" + ResourceTypePipeline ResourceType = "AWS::CodePipeline::Pipeline" + ResourceTypeCloudFormationProvisionedProduct ResourceType = "AWS::ServiceCatalog::CloudFormationProvisionedProduct" + ResourceTypeCloudFormationProduct ResourceType = "AWS::ServiceCatalog::CloudFormationProduct" + ResourceTypePortfolio ResourceType = "AWS::ServiceCatalog::Portfolio" + ResourceTypeQueue ResourceType = "AWS::SQS::Queue" + ResourceTypeKey ResourceType = "AWS::KMS::Key" + ResourceTypeQLDBLedger ResourceType = "AWS::QLDB::Ledger" + ResourceTypeSecret ResourceType = "AWS::SecretsManager::Secret" + ResourceTypeTopic ResourceType = "AWS::SNS::Topic" + ResourceTypeFileData ResourceType = "AWS::SSM::FileData" + ResourceTypeBackupPlan ResourceType = "AWS::Backup::BackupPlan" + ResourceTypeBackupSelection ResourceType = "AWS::Backup::BackupSelection" + ResourceTypeBackupVault ResourceType = "AWS::Backup::BackupVault" + ResourceTypeBackupRecoveryPoint ResourceType = "AWS::Backup::RecoveryPoint" + ResourceTypeECRRepository ResourceType = "AWS::ECR::Repository" + ResourceTypeECSCluster ResourceType = "AWS::ECS::Cluster" + ResourceTypeECSService ResourceType = "AWS::ECS::Service" + ResourceTypeECSTaskDefinition ResourceType = "AWS::ECS::TaskDefinition" + ResourceTypeEFSAccessPoint ResourceType = "AWS::EFS::AccessPoint" + ResourceTypeEFSFileSystem ResourceType = "AWS::EFS::FileSystem" + ResourceTypeEKSCluster ResourceType = "AWS::EKS::Cluster" + ResourceTypeOpenSearchDomain ResourceType = "AWS::OpenSearch::Domain" + ResourceTypeTransitGateway ResourceType = "AWS::EC2::TransitGateway" + ResourceTypeKinesisStream ResourceType = "AWS::Kinesis::Stream" + ResourceTypeKinesisStreamConsumer ResourceType = "AWS::Kinesis::StreamConsumer" + ResourceTypeCodeDeployApplication ResourceType = "AWS::CodeDeploy::Application" + ResourceTypeCodeDeployDeploymentConfig ResourceType = "AWS::CodeDeploy::DeploymentConfig" + ResourceTypeCodeDeployDeploymentGroup ResourceType = "AWS::CodeDeploy::DeploymentGroup" + ResourceTypeLaunchTemplate ResourceType = "AWS::EC2::LaunchTemplate" + ResourceTypeECRPublicRepository ResourceType = "AWS::ECR::PublicRepository" + ResourceTypeGuardDutyDetector ResourceType = "AWS::GuardDuty::Detector" + ResourceTypeEMRSecurityConfiguration ResourceType = "AWS::EMR::SecurityConfiguration" + ResourceTypeSageMakerCodeRepository ResourceType = "AWS::SageMaker::CodeRepository" + ResourceTypeRoute53ResolverResolverEndpoint ResourceType = "AWS::Route53Resolver::ResolverEndpoint" + ResourceTypeRoute53ResolverResolverRule ResourceType = "AWS::Route53Resolver::ResolverRule" + ResourceTypeRoute53ResolverResolverRuleAssociation ResourceType = "AWS::Route53Resolver::ResolverRuleAssociation" + ResourceTypeDMSReplicationSubnetGroup ResourceType = "AWS::DMS::ReplicationSubnetGroup" + ResourceTypeDMSEventSubscription ResourceType = "AWS::DMS::EventSubscription" + ResourceTypeMSKCluster ResourceType = "AWS::MSK::Cluster" + ResourceTypeStepFunctionsActivity ResourceType = "AWS::StepFunctions::Activity" + ResourceTypeWorkSpacesWorkspace ResourceType = "AWS::WorkSpaces::Workspace" + ResourceTypeWorkSpacesConnectionAlias ResourceType = "AWS::WorkSpaces::ConnectionAlias" + ResourceTypeSageMakerModel ResourceType = "AWS::SageMaker::Model" + ResourceTypeListenerV2 ResourceType = "AWS::ElasticLoadBalancingV2::Listener" + ResourceTypeStepFunctionsStateMachine ResourceType = "AWS::StepFunctions::StateMachine" + ResourceTypeBatchJobQueue ResourceType = "AWS::Batch::JobQueue" + ResourceTypeBatchComputeEnvironment ResourceType = "AWS::Batch::ComputeEnvironment" + ResourceTypeAccessAnalyzerAnalyzer ResourceType = "AWS::AccessAnalyzer::Analyzer" + ResourceTypeAthenaWorkGroup ResourceType = "AWS::Athena::WorkGroup" + ResourceTypeAthenaDataCatalog ResourceType = "AWS::Athena::DataCatalog" + ResourceTypeDetectiveGraph ResourceType = "AWS::Detective::Graph" + ResourceTypeGlobalAcceleratorAccelerator ResourceType = "AWS::GlobalAccelerator::Accelerator" + ResourceTypeGlobalAcceleratorEndpointGroup ResourceType = "AWS::GlobalAccelerator::EndpointGroup" + ResourceTypeGlobalAcceleratorListener ResourceType = "AWS::GlobalAccelerator::Listener" + ResourceTypeTransitGatewayAttachment ResourceType = "AWS::EC2::TransitGatewayAttachment" + ResourceTypeTransitGatewayRouteTable ResourceType = "AWS::EC2::TransitGatewayRouteTable" + ResourceTypeDMSCertificate ResourceType = "AWS::DMS::Certificate" + ResourceTypeAppConfigApplication ResourceType = "AWS::AppConfig::Application" + ResourceTypeAppSyncGraphQLApi ResourceType = "AWS::AppSync::GraphQLApi" + ResourceTypeDataSyncLocationSMB ResourceType = "AWS::DataSync::LocationSMB" + ResourceTypeDataSyncLocationFSxLustre ResourceType = "AWS::DataSync::LocationFSxLustre" + ResourceTypeDataSyncLocationS3 ResourceType = "AWS::DataSync::LocationS3" + ResourceTypeDataSyncLocationEFS ResourceType = "AWS::DataSync::LocationEFS" + ResourceTypeDataSyncTask ResourceType = "AWS::DataSync::Task" + ResourceTypeDataSyncLocationNFS ResourceType = "AWS::DataSync::LocationNFS" + ResourceTypeNetworkInsightsAccessScopeAnalysis ResourceType = "AWS::EC2::NetworkInsightsAccessScopeAnalysis" + ResourceTypeEKSFargateProfile ResourceType = "AWS::EKS::FargateProfile" + ResourceTypeGlueJob ResourceType = "AWS::Glue::Job" + ResourceTypeGuardDutyThreatIntelSet ResourceType = "AWS::GuardDuty::ThreatIntelSet" + ResourceTypeGuardDutyIPSet ResourceType = "AWS::GuardDuty::IPSet" + ResourceTypeSageMakerWorkteam ResourceType = "AWS::SageMaker::Workteam" + ResourceTypeSageMakerNotebookInstanceLifecycleConfig ResourceType = "AWS::SageMaker::NotebookInstanceLifecycleConfig" + ResourceTypeServiceDiscoveryService ResourceType = "AWS::ServiceDiscovery::Service" + ResourceTypeServiceDiscoveryPublicDnsNamespace ResourceType = "AWS::ServiceDiscovery::PublicDnsNamespace" + ResourceTypeSESContactList ResourceType = "AWS::SES::ContactList" + ResourceTypeSESConfigurationSet ResourceType = "AWS::SES::ConfigurationSet" + ResourceTypeRoute53HostedZone ResourceType = "AWS::Route53::HostedZone" + ResourceTypeIoTEventsInput ResourceType = "AWS::IoTEvents::Input" + ResourceTypeIoTEventsDetectorModel ResourceType = "AWS::IoTEvents::DetectorModel" + ResourceTypeIoTEventsAlarmModel ResourceType = "AWS::IoTEvents::AlarmModel" + ResourceTypeServiceDiscoveryHttpNamespace ResourceType = "AWS::ServiceDiscovery::HttpNamespace" + ResourceTypeEventsEventBus ResourceType = "AWS::Events::EventBus" + ResourceTypeImageBuilderContainerRecipe ResourceType = "AWS::ImageBuilder::ContainerRecipe" + ResourceTypeImageBuilderDistributionConfiguration ResourceType = "AWS::ImageBuilder::DistributionConfiguration" + ResourceTypeImageBuilderInfrastructureConfiguration ResourceType = "AWS::ImageBuilder::InfrastructureConfiguration" + ResourceTypeDataSyncLocationObjectStorage ResourceType = "AWS::DataSync::LocationObjectStorage" + ResourceTypeDataSyncLocationHDFS ResourceType = "AWS::DataSync::LocationHDFS" + ResourceTypeGlueClassifier ResourceType = "AWS::Glue::Classifier" + ResourceTypeRoute53RecoveryReadinessCell ResourceType = "AWS::Route53RecoveryReadiness::Cell" + ResourceTypeRoute53RecoveryReadinessReadinessCheck ResourceType = "AWS::Route53RecoveryReadiness::ReadinessCheck" + ResourceTypeECRRegistryPolicy ResourceType = "AWS::ECR::RegistryPolicy" + ResourceTypeBackupReportPlan ResourceType = "AWS::Backup::ReportPlan" + ResourceTypeLightsailCertificate ResourceType = "AWS::Lightsail::Certificate" + ResourceTypeRUMAppMonitor ResourceType = "AWS::RUM::AppMonitor" + ResourceTypeEventsEndpoint ResourceType = "AWS::Events::Endpoint" + ResourceTypeSESReceiptRuleSet ResourceType = "AWS::SES::ReceiptRuleSet" + ResourceTypeEventsArchive ResourceType = "AWS::Events::Archive" + ResourceTypeEventsApiDestination ResourceType = "AWS::Events::ApiDestination" + ResourceTypeLightsailDisk ResourceType = "AWS::Lightsail::Disk" + ResourceTypeFISExperimentTemplate ResourceType = "AWS::FIS::ExperimentTemplate" + ResourceTypeDataSyncLocationFSxWindows ResourceType = "AWS::DataSync::LocationFSxWindows" + ResourceTypeSESReceiptFilter ResourceType = "AWS::SES::ReceiptFilter" + ResourceTypeGuardDutyFilter ResourceType = "AWS::GuardDuty::Filter" + ResourceTypeSESTemplate ResourceType = "AWS::SES::Template" + ResourceTypeAmazonMQBroker ResourceType = "AWS::AmazonMQ::Broker" + ResourceTypeAppConfigEnvironment ResourceType = "AWS::AppConfig::Environment" + ResourceTypeAppConfigConfigurationProfile ResourceType = "AWS::AppConfig::ConfigurationProfile" + ResourceTypeCloud9EnvironmentEC2 ResourceType = "AWS::Cloud9::EnvironmentEC2" + ResourceTypeEventSchemasRegistry ResourceType = "AWS::EventSchemas::Registry" + ResourceTypeEventSchemasRegistryPolicy ResourceType = "AWS::EventSchemas::RegistryPolicy" + ResourceTypeEventSchemasDiscoverer ResourceType = "AWS::EventSchemas::Discoverer" + ResourceTypeFraudDetectorLabel ResourceType = "AWS::FraudDetector::Label" + ResourceTypeFraudDetectorEntityType ResourceType = "AWS::FraudDetector::EntityType" + ResourceTypeFraudDetectorVariable ResourceType = "AWS::FraudDetector::Variable" + ResourceTypeFraudDetectorOutcome ResourceType = "AWS::FraudDetector::Outcome" + ResourceTypeIoTAuthorizer ResourceType = "AWS::IoT::Authorizer" + ResourceTypeIoTSecurityProfile ResourceType = "AWS::IoT::SecurityProfile" + ResourceTypeIoTRoleAlias ResourceType = "AWS::IoT::RoleAlias" + ResourceTypeIoTDimension ResourceType = "AWS::IoT::Dimension" + ResourceTypeIoTAnalyticsDatastore ResourceType = "AWS::IoTAnalytics::Datastore" + ResourceTypeLightsailBucket ResourceType = "AWS::Lightsail::Bucket" + ResourceTypeLightsailStaticIp ResourceType = "AWS::Lightsail::StaticIp" + ResourceTypeMediaPackagePackagingGroup ResourceType = "AWS::MediaPackage::PackagingGroup" + ResourceTypeRoute53RecoveryReadinessRecoveryGroup ResourceType = "AWS::Route53RecoveryReadiness::RecoveryGroup" + ResourceTypeResilienceHubResiliencyPolicy ResourceType = "AWS::ResilienceHub::ResiliencyPolicy" + ResourceTypeTransferWorkflow ResourceType = "AWS::Transfer::Workflow" + ResourceTypeEKSIdentityProviderConfig ResourceType = "AWS::EKS::IdentityProviderConfig" + ResourceTypeEKSAddon ResourceType = "AWS::EKS::Addon" + ResourceTypeGlueMLTransform ResourceType = "AWS::Glue::MLTransform" + ResourceTypeIoTPolicy ResourceType = "AWS::IoT::Policy" + ResourceTypeIoTMitigationAction ResourceType = "AWS::IoT::MitigationAction" + ResourceTypeIoTTwinMakerWorkspace ResourceType = "AWS::IoTTwinMaker::Workspace" + ResourceTypeIoTTwinMakerEntity ResourceType = "AWS::IoTTwinMaker::Entity" + ResourceTypeIoTAnalyticsDataset ResourceType = "AWS::IoTAnalytics::Dataset" + ResourceTypeIoTAnalyticsPipeline ResourceType = "AWS::IoTAnalytics::Pipeline" + ResourceTypeIoTAnalyticsChannel ResourceType = "AWS::IoTAnalytics::Channel" + ResourceTypeIoTSiteWiseDashboard ResourceType = "AWS::IoTSiteWise::Dashboard" + ResourceTypeIoTSiteWiseProject ResourceType = "AWS::IoTSiteWise::Project" + ResourceTypeIoTSiteWisePortal ResourceType = "AWS::IoTSiteWise::Portal" + ResourceTypeIoTSiteWiseAssetModel ResourceType = "AWS::IoTSiteWise::AssetModel" + ResourceTypeIVSChannel ResourceType = "AWS::IVS::Channel" + ResourceTypeIVSRecordingConfiguration ResourceType = "AWS::IVS::RecordingConfiguration" + ResourceTypeIVSPlaybackKeyPair ResourceType = "AWS::IVS::PlaybackKeyPair" + ResourceTypeKinesisAnalyticsV2Application ResourceType = "AWS::KinesisAnalyticsV2::Application" + ResourceTypeRDSGlobalCluster ResourceType = "AWS::RDS::GlobalCluster" + ResourceTypeS3MultiRegionAccessPoint ResourceType = "AWS::S3::MultiRegionAccessPoint" + ResourceTypeDeviceFarmTestGridProject ResourceType = "AWS::DeviceFarm::TestGridProject" + ResourceTypeBudgetsBudgetsAction ResourceType = "AWS::Budgets::BudgetsAction" + ResourceTypeLexBot ResourceType = "AWS::Lex::Bot" + ResourceTypeCodeGuruReviewerRepositoryAssociation ResourceType = "AWS::CodeGuruReviewer::RepositoryAssociation" + ResourceTypeIoTCustomMetric ResourceType = "AWS::IoT::CustomMetric" + ResourceTypeRoute53ResolverFirewallDomainList ResourceType = "AWS::Route53Resolver::FirewallDomainList" + ResourceTypeRoboMakerRobotApplicationVersion ResourceType = "AWS::RoboMaker::RobotApplicationVersion" + ResourceTypeEC2TrafficMirrorSession ResourceType = "AWS::EC2::TrafficMirrorSession" + ResourceTypeIoTSiteWiseGateway ResourceType = "AWS::IoTSiteWise::Gateway" + ResourceTypeLexBotAlias ResourceType = "AWS::Lex::BotAlias" + ResourceTypeLookoutMetricsAlert ResourceType = "AWS::LookoutMetrics::Alert" + ResourceTypeIoTAccountAuditConfiguration ResourceType = "AWS::IoT::AccountAuditConfiguration" + ResourceTypeEC2TrafficMirrorTarget ResourceType = "AWS::EC2::TrafficMirrorTarget" + ResourceTypeS3StorageLens ResourceType = "AWS::S3::StorageLens" + ResourceTypeIoTScheduledAudit ResourceType = "AWS::IoT::ScheduledAudit" + ResourceTypeEventsConnection ResourceType = "AWS::Events::Connection" + ResourceTypeEventSchemasSchema ResourceType = "AWS::EventSchemas::Schema" + ResourceTypeMediaPackagePackagingConfiguration ResourceType = "AWS::MediaPackage::PackagingConfiguration" + ResourceTypeKinesisVideoSignalingChannel ResourceType = "AWS::KinesisVideo::SignalingChannel" + ResourceTypeAppStreamDirectoryConfig ResourceType = "AWS::AppStream::DirectoryConfig" + ResourceTypeLookoutVisionProject ResourceType = "AWS::LookoutVision::Project" + ResourceTypeRoute53RecoveryControlCluster ResourceType = "AWS::Route53RecoveryControl::Cluster" + ResourceTypeRoute53RecoveryControlSafetyRule ResourceType = "AWS::Route53RecoveryControl::SafetyRule" + ResourceTypeRoute53RecoveryControlControlPanel ResourceType = "AWS::Route53RecoveryControl::ControlPanel" + ResourceTypeRoute53RecoveryControlRoutingControl ResourceType = "AWS::Route53RecoveryControl::RoutingControl" + ResourceTypeRoute53RecoveryReadinessResourceSet ResourceType = "AWS::Route53RecoveryReadiness::ResourceSet" + ResourceTypeRoboMakerSimulationApplication ResourceType = "AWS::RoboMaker::SimulationApplication" + ResourceTypeRoboMakerRobotApplication ResourceType = "AWS::RoboMaker::RobotApplication" + ResourceTypeHealthLakeFHIRDatastore ResourceType = "AWS::HealthLake::FHIRDatastore" + ResourceTypePinpointSegment ResourceType = "AWS::Pinpoint::Segment" + ResourceTypePinpointApplicationSettings ResourceType = "AWS::Pinpoint::ApplicationSettings" + ResourceTypeEventsRule ResourceType = "AWS::Events::Rule" + ResourceTypeEC2DHCPOptions ResourceType = "AWS::EC2::DHCPOptions" + ResourceTypeEC2NetworkInsightsPath ResourceType = "AWS::EC2::NetworkInsightsPath" + ResourceTypeEC2TrafficMirrorFilter ResourceType = "AWS::EC2::TrafficMirrorFilter" + ResourceTypeEc2ipam ResourceType = "AWS::EC2::IPAM" + ResourceTypeIoTTwinMakerScene ResourceType = "AWS::IoTTwinMaker::Scene" + ResourceTypeNetworkManagerTransitGatewayRegistration ResourceType = "AWS::NetworkManager::TransitGatewayRegistration" + ResourceTypeCustomerProfilesDomain ResourceType = "AWS::CustomerProfiles::Domain" + ResourceTypeAutoScalingWarmPool ResourceType = "AWS::AutoScaling::WarmPool" + ResourceTypeConnectPhoneNumber ResourceType = "AWS::Connect::PhoneNumber" + ResourceTypeAppConfigDeploymentStrategy ResourceType = "AWS::AppConfig::DeploymentStrategy" + ResourceTypeAppFlowFlow ResourceType = "AWS::AppFlow::Flow" + ResourceTypeAuditManagerAssessment ResourceType = "AWS::AuditManager::Assessment" + ResourceTypeCloudWatchMetricStream ResourceType = "AWS::CloudWatch::MetricStream" + ResourceTypeDeviceFarmInstanceProfile ResourceType = "AWS::DeviceFarm::InstanceProfile" + ResourceTypeDeviceFarmProject ResourceType = "AWS::DeviceFarm::Project" + ResourceTypeEC2EC2Fleet ResourceType = "AWS::EC2::EC2Fleet" + ResourceTypeEC2SubnetRouteTableAssociation ResourceType = "AWS::EC2::SubnetRouteTableAssociation" + ResourceTypeECRPullThroughCacheRule ResourceType = "AWS::ECR::PullThroughCacheRule" + ResourceTypeGroundStationConfig ResourceType = "AWS::GroundStation::Config" + ResourceTypeImageBuilderImagePipeline ResourceType = "AWS::ImageBuilder::ImagePipeline" + ResourceTypeIoTFleetMetric ResourceType = "AWS::IoT::FleetMetric" + ResourceTypeIoTWirelessServiceProfile ResourceType = "AWS::IoTWireless::ServiceProfile" + ResourceTypeNetworkManagerDevice ResourceType = "AWS::NetworkManager::Device" + ResourceTypeNetworkManagerGlobalNetwork ResourceType = "AWS::NetworkManager::GlobalNetwork" + ResourceTypeNetworkManagerLink ResourceType = "AWS::NetworkManager::Link" + ResourceTypeNetworkManagerSite ResourceType = "AWS::NetworkManager::Site" + ResourceTypePanoramaPackage ResourceType = "AWS::Panorama::Package" + ResourceTypePinpointApp ResourceType = "AWS::Pinpoint::App" + ResourceTypeRedshiftScheduledAction ResourceType = "AWS::Redshift::ScheduledAction" + ResourceTypeRoute53ResolverFirewallRuleGroupAssociation ResourceType = "AWS::Route53Resolver::FirewallRuleGroupAssociation" + ResourceTypeSageMakerAppImageConfig ResourceType = "AWS::SageMaker::AppImageConfig" + ResourceTypeSageMakerImage ResourceType = "AWS::SageMaker::Image" ) // Values returns all known values for ResourceType. Note that this can be @@ -1193,6 +1216,29 @@ func (ResourceType) Values() []ResourceType { "AWS::CustomerProfiles::Domain", "AWS::AutoScaling::WarmPool", "AWS::Connect::PhoneNumber", + "AWS::AppConfig::DeploymentStrategy", + "AWS::AppFlow::Flow", + "AWS::AuditManager::Assessment", + "AWS::CloudWatch::MetricStream", + "AWS::DeviceFarm::InstanceProfile", + "AWS::DeviceFarm::Project", + "AWS::EC2::EC2Fleet", + "AWS::EC2::SubnetRouteTableAssociation", + "AWS::ECR::PullThroughCacheRule", + "AWS::GroundStation::Config", + "AWS::ImageBuilder::ImagePipeline", + "AWS::IoT::FleetMetric", + "AWS::IoTWireless::ServiceProfile", + "AWS::NetworkManager::Device", + "AWS::NetworkManager::GlobalNetwork", + "AWS::NetworkManager::Link", + "AWS::NetworkManager::Site", + "AWS::Panorama::Package", + "AWS::Pinpoint::App", + "AWS::Redshift::ScheduledAction", + "AWS::Route53Resolver::FirewallRuleGroupAssociation", + "AWS::SageMaker::AppImageConfig", + "AWS::SageMaker::Image", } } diff --git a/service/connect/api_op_CreateEvaluationForm.go b/service/connect/api_op_CreateEvaluationForm.go index 16f93f45f35..81e5b811215 100644 --- a/service/connect/api_op_CreateEvaluationForm.go +++ b/service/connect/api_op_CreateEvaluationForm.go @@ -14,9 +14,8 @@ import ( // Creates an evaluation form in the specified Amazon Connect instance. The form // can be used to define questions related to agent performance, and create -// sections to organize such questions. An evaluation form must have a unique title -// within an instance. Question and section identifiers cannot be duplicated within -// the same evaluation form. +// sections to organize such questions. Question and section identifiers cannot be +// duplicated within the same evaluation form. func (c *Client) CreateEvaluationForm(ctx context.Context, params *CreateEvaluationFormInput, optFns ...func(*Options)) (*CreateEvaluationFormOutput, error) { if params == nil { params = &CreateEvaluationFormInput{} @@ -46,7 +45,7 @@ type CreateEvaluationFormInput struct { // This member is required. Items []types.EvaluationFormItem - // A unique title of the evaluation form. + // A title of the evaluation form. // // This member is required. Title *string diff --git a/service/connect/api_op_UpdateEvaluationForm.go b/service/connect/api_op_UpdateEvaluationForm.go index 5314f5baedf..ab7054c5df0 100644 --- a/service/connect/api_op_UpdateEvaluationForm.go +++ b/service/connect/api_op_UpdateEvaluationForm.go @@ -13,10 +13,9 @@ import ( ) // Updates details about a specific evaluation form version in the specified -// Amazon Connect instance. An evaluation form must have a unique title within an -// instance. Question and section identifiers cannot be duplicated within the same -// evaluation form. This operation does not support partial updates. Instead it -// does a full update of evaluation form content. +// Amazon Connect instance. Question and section identifiers cannot be duplicated +// within the same evaluation form. This operation does not support partial +// updates. Instead it does a full update of evaluation form content. func (c *Client) UpdateEvaluationForm(ctx context.Context, params *UpdateEvaluationFormInput, optFns ...func(*Options)) (*UpdateEvaluationFormOutput, error) { if params == nil { params = &UpdateEvaluationFormInput{} @@ -56,7 +55,7 @@ type UpdateEvaluationFormInput struct { // This member is required. Items []types.EvaluationFormItem - // A unique title of the evaluation form. + // A title of the evaluation form. // // This member is required. Title *string diff --git a/service/connect/deserializers.go b/service/connect/deserializers.go index daf298671be..ee2cc318c70 100644 --- a/service/connect/deserializers.go +++ b/service/connect/deserializers.go @@ -2889,9 +2889,6 @@ func awsRestjson1_deserializeOpErrorCreateParticipant(response *smithyhttp.Respo case strings.EqualFold("InternalServiceException", errorCode): return awsRestjson1_deserializeErrorInternalServiceException(response, errorBody) - case strings.EqualFold("InvalidParameterException", errorCode): - return awsRestjson1_deserializeErrorInvalidParameterException(response, errorBody) - case strings.EqualFold("InvalidRequestException", errorCode): return awsRestjson1_deserializeErrorInvalidRequestException(response, errorBody) diff --git a/service/connect/internal/endpoints/endpoints.go b/service/connect/internal/endpoints/endpoints.go index 3234cae7f96..f124fcfb8ba 100644 --- a/service/connect/internal/endpoints/endpoints.go +++ b/service/connect/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -274,6 +276,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "connect-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "connect.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/connect/types/types.go b/service/connect/types/types.go index 6c667936204..7b685d515aa 100644 --- a/service/connect/types/types.go +++ b/service/connect/types/types.go @@ -842,7 +842,7 @@ type EvaluationForm struct { // This member is required. Status EvaluationFormVersionStatus - // A unique title of the evaluation form. + // A title of the evaluation form. // // This member is required. Title *string @@ -884,7 +884,7 @@ type EvaluationFormContent struct { // This member is required. Items []EvaluationFormItem - // A unique title of the evaluation form. + // A title of the evaluation form. // // This member is required. Title *string @@ -1217,7 +1217,7 @@ type EvaluationFormSummary struct { // This member is required. LatestVersion *int32 - // A unique title of the evaluation form. + // A title of the evaluation form. // // This member is required. Title *string @@ -1351,7 +1351,7 @@ type EvaluationSummary struct { // This member is required. EvaluationFormId *string - // A unique title of the evaluation form. + // A title of the evaluation form. // // This member is required. EvaluationFormTitle *string @@ -2100,8 +2100,8 @@ type NumberReference struct { // - Duration labels, such as NON_TALK_TIME , CONTACT_DURATION , // AGENT_INTERACTION_DURATION , CUSTOMER_HOLD_TIME have a minimum value of 0 and // maximum value of 28800. -// - Percantages have a minimum value of 0 and maximum value of 100. -// - NUMBER_OF_INTERRUPTIONS has a minimum value of 0 and maximum value of 100. +// - Percentages have a minimum value of 0 and maximum value of 100. +// - NUMBER_OF_INTERRUPTIONS has a minimum value of 0 and maximum value of 1000. type NumericQuestionPropertyValueAutomation struct { // The property label of the automation. @@ -3175,7 +3175,7 @@ type SingleSelectQuestionRuleCategoryAutomation struct { // This member is required. Condition SingleSelectQuestionRuleCategoryAutomationCondition - // The identifier of the answer option tha + // The identifier of the answer option. // // This member is required. OptionRefId *string diff --git a/service/connectcampaigns/internal/endpoints/endpoints.go b/service/connectcampaigns/internal/endpoints/endpoints.go index ba539ee4383..bbd219345bb 100644 --- a/service/connectcampaigns/internal/endpoints/endpoints.go +++ b/service/connectcampaigns/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -259,6 +261,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "connect-campaigns-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "connect-campaigns.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/connectcases/internal/endpoints/endpoints.go b/service/connectcases/internal/endpoints/endpoints.go index 37a77cc359f..71e69c2b29f 100644 --- a/service/connectcases/internal/endpoints/endpoints.go +++ b/service/connectcases/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -253,6 +255,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "cases-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "cases.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/connectcontactlens/internal/endpoints/endpoints.go b/service/connectcontactlens/internal/endpoints/endpoints.go index cb35f2a7af6..850f225e8d1 100644 --- a/service/connectcontactlens/internal/endpoints/endpoints.go +++ b/service/connectcontactlens/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -238,6 +240,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "contact-lens-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "contact-lens.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/connectparticipant/internal/endpoints/endpoints.go b/service/connectparticipant/internal/endpoints/endpoints.go index 7916fce6504..e534bdde2a4 100644 --- a/service/connectparticipant/internal/endpoints/endpoints.go +++ b/service/connectparticipant/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -274,6 +276,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "participant.connect-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "participant.connect.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/controltower/internal/endpoints/endpoints.go b/service/controltower/internal/endpoints/endpoints.go index a2750c13465..52bc71760b6 100644 --- a/service/controltower/internal/endpoints/endpoints.go +++ b/service/controltower/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -355,6 +357,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "controltower-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "controltower.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/costandusagereportservice/internal/endpoints/endpoints.go b/service/costandusagereportservice/internal/endpoints/endpoints.go index 7e359ca8a36..07267ec0fcb 100644 --- a/service/costandusagereportservice/internal/endpoints/endpoints.go +++ b/service/costandusagereportservice/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -222,6 +224,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "cur-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "cur.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/costexplorer/internal/endpoints/endpoints.go b/service/costexplorer/internal/endpoints/endpoints.go index 54c5c43671d..ac5e49a8412 100644 --- a/service/costexplorer/internal/endpoints/endpoints.go +++ b/service/costexplorer/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -234,6 +236,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "ce-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "ce.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/customerprofiles/internal/endpoints/endpoints.go b/service/customerprofiles/internal/endpoints/endpoints.go index 020d2905394..293e010f93a 100644 --- a/service/customerprofiles/internal/endpoints/endpoints.go +++ b/service/customerprofiles/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -244,6 +246,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "profile-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "profile.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/databasemigrationservice/internal/endpoints/endpoints.go b/service/databasemigrationservice/internal/endpoints/endpoints.go index da7bf19e1c0..4924a811115 100644 --- a/service/databasemigrationservice/internal/endpoints/endpoints.go +++ b/service/databasemigrationservice/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -502,6 +504,27 @@ var defaultPartitions = endpoints.Partitions{ }, }, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "dms-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "dms.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/databrew/internal/endpoints/endpoints.go b/service/databrew/internal/endpoints/endpoints.go index 6b3e2fd2a13..259c38c1026 100644 --- a/service/databrew/internal/endpoints/endpoints.go +++ b/service/databrew/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -339,6 +341,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "databrew-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "databrew.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/dataexchange/internal/endpoints/endpoints.go b/service/dataexchange/internal/endpoints/endpoints.go index 13e8e9438e9..076b349bc9d 100644 --- a/service/dataexchange/internal/endpoints/endpoints.go +++ b/service/dataexchange/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -247,6 +249,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "dataexchange-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "dataexchange.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/datapipeline/internal/endpoints/endpoints.go b/service/datapipeline/internal/endpoints/endpoints.go index 63f75e1891d..5e02eaf2f15 100644 --- a/service/datapipeline/internal/endpoints/endpoints.go +++ b/service/datapipeline/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -234,6 +236,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "datapipeline-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "datapipeline.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/datasync/internal/endpoints/endpoints.go b/service/datasync/internal/endpoints/endpoints.go index 47bdece5629..d572c82c6aa 100644 --- a/service/datasync/internal/endpoints/endpoints.go +++ b/service/datasync/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -375,6 +377,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "datasync-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "datasync.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/dax/internal/endpoints/endpoints.go b/service/dax/internal/endpoints/endpoints.go index 755ed30bf86..449913bb740 100644 --- a/service/dax/internal/endpoints/endpoints.go +++ b/service/dax/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -261,6 +263,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "dax-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "dax.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/detective/internal/endpoints/endpoints.go b/service/detective/internal/endpoints/endpoints.go index ca1c2e0f79f..3249e38ae06 100644 --- a/service/detective/internal/endpoints/endpoints.go +++ b/service/detective/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -334,6 +336,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "api.detective-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "api.detective.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/devicefarm/internal/endpoints/endpoints.go b/service/devicefarm/internal/endpoints/endpoints.go index ca581f081a9..9c0e8a02dae 100644 --- a/service/devicefarm/internal/endpoints/endpoints.go +++ b/service/devicefarm/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -217,6 +219,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "devicefarm-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "devicefarm.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/devopsguru/internal/endpoints/endpoints.go b/service/devopsguru/internal/endpoints/endpoints.go index 11c982388a1..d940b2f9de1 100644 --- a/service/devopsguru/internal/endpoints/endpoints.go +++ b/service/devopsguru/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -307,6 +309,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "devops-guru-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "devops-guru.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/directconnect/internal/endpoints/endpoints.go b/service/directconnect/internal/endpoints/endpoints.go index e2f4dba4600..388c834b040 100644 --- a/service/directconnect/internal/endpoints/endpoints.go +++ b/service/directconnect/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -376,6 +378,27 @@ var defaultPartitions = endpoints.Partitions{ }: endpoints.Endpoint{}, }, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "directconnect-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "directconnect.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/directoryservice/internal/endpoints/endpoints.go b/service/directoryservice/internal/endpoints/endpoints.go index 70cbea03b4c..7862473eaf5 100644 --- a/service/directoryservice/internal/endpoints/endpoints.go +++ b/service/directoryservice/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -391,6 +393,27 @@ var defaultPartitions = endpoints.Partitions{ }: endpoints.Endpoint{}, }, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "ds-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "ds.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/dlm/internal/endpoints/endpoints.go b/service/dlm/internal/endpoints/endpoints.go index 637dbd1e334..6ff1e6f0e3a 100644 --- a/service/dlm/internal/endpoints/endpoints.go +++ b/service/dlm/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -305,6 +307,27 @@ var defaultPartitions = endpoints.Partitions{ }: endpoints.Endpoint{}, }, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "dlm-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "dlm.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/docdb/internal/endpoints/endpoints.go b/service/docdb/internal/endpoints/endpoints.go index 37d334977bb..79e45f728e3 100644 --- a/service/docdb/internal/endpoints/endpoints.go +++ b/service/docdb/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -526,6 +528,27 @@ var defaultPartitions = endpoints.Partitions{ }: endpoints.Endpoint{}, }, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "rds-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "rds.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/docdbelastic/internal/endpoints/endpoints.go b/service/docdbelastic/internal/endpoints/endpoints.go index ac4f4525e07..d8da4cfc3cf 100644 --- a/service/docdbelastic/internal/endpoints/endpoints.go +++ b/service/docdbelastic/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -212,6 +214,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "docdb-elastic-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "docdb-elastic.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/drs/internal/endpoints/endpoints.go b/service/drs/internal/endpoints/endpoints.go index f9d37d1c7b2..eaff6d4e83b 100644 --- a/service/drs/internal/endpoints/endpoints.go +++ b/service/drs/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -280,6 +282,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "drs-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "drs.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/dynamodb/internal/endpoints/endpoints.go b/service/dynamodb/internal/endpoints/endpoints.go index e8b66b80bdb..5852715faed 100644 --- a/service/dynamodb/internal/endpoints/endpoints.go +++ b/service/dynamodb/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -402,6 +404,27 @@ var defaultPartitions = endpoints.Partitions{ }: endpoints.Endpoint{}, }, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "dynamodb-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "dynamodb.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/dynamodbstreams/internal/endpoints/endpoints.go b/service/dynamodbstreams/internal/endpoints/endpoints.go index 15b65116e67..cdb24b88c9d 100644 --- a/service/dynamodbstreams/internal/endpoints/endpoints.go +++ b/service/dynamodbstreams/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -361,6 +363,27 @@ var defaultPartitions = endpoints.Partitions{ }: endpoints.Endpoint{}, }, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "streams.dynamodb-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "streams.dynamodb.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/ebs/internal/endpoints/endpoints.go b/service/ebs/internal/endpoints/endpoints.go index 99b8f80029b..776cd783ecf 100644 --- a/service/ebs/internal/endpoints/endpoints.go +++ b/service/ebs/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -388,6 +390,27 @@ var defaultPartitions = endpoints.Partitions{ }: endpoints.Endpoint{}, }, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "ebs-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "ebs.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/ec2/internal/endpoints/endpoints.go b/service/ec2/internal/endpoints/endpoints.go index 8b9308e736f..47a020158ca 100644 --- a/service/ec2/internal/endpoints/endpoints.go +++ b/service/ec2/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -427,6 +429,27 @@ var defaultPartitions = endpoints.Partitions{ }: endpoints.Endpoint{}, }, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "ec2-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "ec2.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/ec2instanceconnect/internal/endpoints/endpoints.go b/service/ec2instanceconnect/internal/endpoints/endpoints.go index 56e575879af..3354e7a9f61 100644 --- a/service/ec2instanceconnect/internal/endpoints/endpoints.go +++ b/service/ec2instanceconnect/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -212,6 +214,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "ec2-instance-connect-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "ec2-instance-connect.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/ecr/internal/endpoints/endpoints.go b/service/ecr/internal/endpoints/endpoints.go index 53aaf4cf23b..e2a8a780640 100644 --- a/service/ecr/internal/endpoints/endpoints.go +++ b/service/ecr/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -656,6 +658,27 @@ var defaultPartitions = endpoints.Partitions{ }, }, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "api.ecr-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "api.ecr.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/ecrpublic/internal/endpoints/endpoints.go b/service/ecrpublic/internal/endpoints/endpoints.go index fa55caf017a..0f540b2c2d2 100644 --- a/service/ecrpublic/internal/endpoints/endpoints.go +++ b/service/ecrpublic/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -230,6 +232,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "api.ecr-public-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "api.ecr-public.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/ecs/deserializers.go b/service/ecs/deserializers.go index a7723ca9fa3..ad8d708c6b4 100644 --- a/service/ecs/deserializers.go +++ b/service/ecs/deserializers.go @@ -247,6 +247,9 @@ func awsAwsjson11_deserializeOpErrorCreateCluster(response *smithyhttp.Response, case strings.EqualFold("InvalidParameterException", errorCode): return awsAwsjson11_deserializeErrorInvalidParameterException(response, errorBody) + case strings.EqualFold("NamespaceNotFoundException", errorCode): + return awsAwsjson11_deserializeErrorNamespaceNotFoundException(response, errorBody) + case strings.EqualFold("ServerException", errorCode): return awsAwsjson11_deserializeErrorServerException(response, errorBody) @@ -5947,6 +5950,9 @@ func awsAwsjson11_deserializeOpErrorUpdateCluster(response *smithyhttp.Response, case strings.EqualFold("InvalidParameterException", errorCode): return awsAwsjson11_deserializeErrorInvalidParameterException(response, errorBody) + case strings.EqualFold("NamespaceNotFoundException", errorCode): + return awsAwsjson11_deserializeErrorNamespaceNotFoundException(response, errorBody) + case strings.EqualFold("ServerException", errorCode): return awsAwsjson11_deserializeErrorServerException(response, errorBody) diff --git a/service/ecs/internal/endpoints/endpoints.go b/service/ecs/internal/endpoints/endpoints.go index ceaf129e8c4..75a2889125c 100644 --- a/service/ecs/internal/endpoints/endpoints.go +++ b/service/ecs/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -376,6 +378,27 @@ var defaultPartitions = endpoints.Partitions{ }: endpoints.Endpoint{}, }, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "ecs-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "ecs.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/efs/internal/endpoints/endpoints.go b/service/efs/internal/endpoints/endpoints.go index c5c6c12739a..548660f84ef 100644 --- a/service/efs/internal/endpoints/endpoints.go +++ b/service/efs/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -796,6 +798,27 @@ var defaultPartitions = endpoints.Partitions{ }, }, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "elasticfilesystem-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "elasticfilesystem.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/eks/internal/endpoints/endpoints.go b/service/eks/internal/endpoints/endpoints.go index 086e7cdf56e..5fdca32bc3b 100644 --- a/service/eks/internal/endpoints/endpoints.go +++ b/service/eks/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -373,6 +375,27 @@ var defaultPartitions = endpoints.Partitions{ }: endpoints.Endpoint{}, }, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "eks-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "eks.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/elasticache/internal/endpoints/endpoints.go b/service/elasticache/internal/endpoints/endpoints.go index 2a3948419ed..a974fac0358 100644 --- a/service/elasticache/internal/endpoints/endpoints.go +++ b/service/elasticache/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -385,6 +387,27 @@ var defaultPartitions = endpoints.Partitions{ }: endpoints.Endpoint{}, }, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "elasticache-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "elasticache.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/elasticbeanstalk/internal/endpoints/endpoints.go b/service/elasticbeanstalk/internal/endpoints/endpoints.go index 32f550dd7b0..3fb4d515737 100644 --- a/service/elasticbeanstalk/internal/endpoints/endpoints.go +++ b/service/elasticbeanstalk/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -348,6 +350,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "elasticbeanstalk-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "elasticbeanstalk.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/elasticinference/internal/endpoints/endpoints.go b/service/elasticinference/internal/endpoints/endpoints.go index ab791bcc997..c3bba91c189 100644 --- a/service/elasticinference/internal/endpoints/endpoints.go +++ b/service/elasticinference/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -244,6 +246,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "api.elastic-inference-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "api.elastic-inference.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/elasticloadbalancing/internal/endpoints/endpoints.go b/service/elasticloadbalancing/internal/endpoints/endpoints.go index 191be6bec07..7e12c1fe1ec 100644 --- a/service/elasticloadbalancing/internal/endpoints/endpoints.go +++ b/service/elasticloadbalancing/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -380,6 +382,27 @@ var defaultPartitions = endpoints.Partitions{ }, }, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "elasticloadbalancing-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "elasticloadbalancing.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/elasticloadbalancingv2/internal/endpoints/endpoints.go b/service/elasticloadbalancingv2/internal/endpoints/endpoints.go index 58ae30885f0..df4b28788f1 100644 --- a/service/elasticloadbalancingv2/internal/endpoints/endpoints.go +++ b/service/elasticloadbalancingv2/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -380,6 +382,27 @@ var defaultPartitions = endpoints.Partitions{ }, }, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "elasticloadbalancing-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "elasticloadbalancing.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/elasticsearchservice/internal/endpoints/endpoints.go b/service/elasticsearchservice/internal/endpoints/endpoints.go index 63d659f305a..7f732a83b95 100644 --- a/service/elasticsearchservice/internal/endpoints/endpoints.go +++ b/service/elasticsearchservice/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -385,6 +387,27 @@ var defaultPartitions = endpoints.Partitions{ }: endpoints.Endpoint{}, }, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "es-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "es.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/elastictranscoder/internal/endpoints/endpoints.go b/service/elastictranscoder/internal/endpoints/endpoints.go index 6d57e38787c..2bbe501ed3e 100644 --- a/service/elastictranscoder/internal/endpoints/endpoints.go +++ b/service/elastictranscoder/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -238,6 +240,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "elastictranscoder-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "elastictranscoder.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/emr/internal/endpoints/endpoints.go b/service/emr/internal/endpoints/endpoints.go index e6949d56b63..e5cb6f65a27 100644 --- a/service/emr/internal/endpoints/endpoints.go +++ b/service/emr/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -393,6 +395,27 @@ var defaultPartitions = endpoints.Partitions{ }: endpoints.Endpoint{}, }, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "elasticmapreduce-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "elasticmapreduce.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/emrcontainers/internal/endpoints/endpoints.go b/service/emrcontainers/internal/endpoints/endpoints.go index 4931479bf6c..cb4cc1233ac 100644 --- a/service/emrcontainers/internal/endpoints/endpoints.go +++ b/service/emrcontainers/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -351,6 +353,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "emr-containers-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "emr-containers.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/emrserverless/internal/endpoints/endpoints.go b/service/emrserverless/internal/endpoints/endpoints.go index ca1593f0550..f22dd99dcf8 100644 --- a/service/emrserverless/internal/endpoints/endpoints.go +++ b/service/emrserverless/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -343,6 +345,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "emr-serverless-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "emr-serverless.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/eventbridge/internal/endpoints/endpoints.go b/service/eventbridge/internal/endpoints/endpoints.go index f29cfe9a12e..ee0fe746826 100644 --- a/service/eventbridge/internal/endpoints/endpoints.go +++ b/service/eventbridge/internal/endpoints/endpoints.go @@ -91,6 +91,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -98,6 +99,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -378,6 +380,27 @@ var defaultPartitions = endpoints.Partitions{ }: endpoints.Endpoint{}, }, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "events-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "events.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ @@ -521,6 +544,19 @@ func GetDNSSuffix(id string, options Options) (string, error) { } + case strings.EqualFold(id, "aws-iso-e"): + switch variant { + case endpoints.FIPSVariant: + return "cloud.adc-e.uk", nil + + case 0: + return "cloud.adc-e.uk", nil + + default: + return "", fmt.Errorf("unsupported endpoint variant %v, in partition %s", variant, id) + + } + case strings.EqualFold(id, "aws-us-gov"): switch variant { case endpoints.DualStackVariant: @@ -562,6 +598,9 @@ func GetDNSSuffixFromRegion(region string, options Options) (string, error) { case partitionRegexp.AwsIsoB.MatchString(region): return GetDNSSuffix("aws-iso-b", options) + case partitionRegexp.AwsIsoE.MatchString(region): + return GetDNSSuffix("aws-iso-e", options) + case partitionRegexp.AwsUsGov.MatchString(region): return GetDNSSuffix("aws-us-gov", options) diff --git a/service/evidently/internal/endpoints/endpoints.go b/service/evidently/internal/endpoints/endpoints.go index a8be62ac182..121523c3c1b 100644 --- a/service/evidently/internal/endpoints/endpoints.go +++ b/service/evidently/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -259,6 +261,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "evidently-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "evidently.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/finspace/internal/endpoints/endpoints.go b/service/finspace/internal/endpoints/endpoints.go index 21275cbe2c3..d53d1a4d67d 100644 --- a/service/finspace/internal/endpoints/endpoints.go +++ b/service/finspace/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -229,6 +231,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "finspace-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "finspace.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/finspacedata/internal/endpoints/endpoints.go b/service/finspacedata/internal/endpoints/endpoints.go index 69fa68cbf74..8478cb30b6e 100644 --- a/service/finspacedata/internal/endpoints/endpoints.go +++ b/service/finspacedata/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -229,6 +231,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "finspace-api-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "finspace-api.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/firehose/internal/endpoints/endpoints.go b/service/firehose/internal/endpoints/endpoints.go index 5411e9afe59..6fc48beee1a 100644 --- a/service/firehose/internal/endpoints/endpoints.go +++ b/service/firehose/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -383,6 +385,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "firehose-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "firehose.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/fis/internal/endpoints/endpoints.go b/service/fis/internal/endpoints/endpoints.go index 127102c6063..6f4bde8a62a 100644 --- a/service/fis/internal/endpoints/endpoints.go +++ b/service/fis/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -212,6 +214,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "fis-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "fis.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/fms/internal/endpoints/endpoints.go b/service/fms/internal/endpoints/endpoints.go index 6b55d8f04a3..c4c1bd47d45 100644 --- a/service/fms/internal/endpoints/endpoints.go +++ b/service/fms/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -585,6 +587,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "fms-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "fms.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/forecast/internal/endpoints/endpoints.go b/service/forecast/internal/endpoints/endpoints.go index 961a5750d73..1873af1d899 100644 --- a/service/forecast/internal/endpoints/endpoints.go +++ b/service/forecast/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -289,6 +291,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "forecast-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "forecast.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/forecastquery/internal/endpoints/endpoints.go b/service/forecastquery/internal/endpoints/endpoints.go index a045f0e6513..acf44712b61 100644 --- a/service/forecastquery/internal/endpoints/endpoints.go +++ b/service/forecastquery/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -289,6 +291,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "forecastquery-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "forecastquery.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/frauddetector/internal/endpoints/endpoints.go b/service/frauddetector/internal/endpoints/endpoints.go index 19cf47dd9aa..646d81314ab 100644 --- a/service/frauddetector/internal/endpoints/endpoints.go +++ b/service/frauddetector/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -232,6 +234,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "frauddetector-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "frauddetector.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/fsx/internal/endpoints/endpoints.go b/service/fsx/internal/endpoints/endpoints.go index 037ab828cf9..8d7100e90ae 100644 --- a/service/fsx/internal/endpoints/endpoints.go +++ b/service/fsx/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -510,6 +512,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "fsx-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "fsx.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/gamelift/internal/endpoints/endpoints.go b/service/gamelift/internal/endpoints/endpoints.go index 58f84783803..c397b8dbe00 100644 --- a/service/gamelift/internal/endpoints/endpoints.go +++ b/service/gamelift/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -285,6 +287,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "gamelift-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "gamelift.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/gamesparks/internal/endpoints/endpoints.go b/service/gamesparks/internal/endpoints/endpoints.go index 8fe6b243660..996dd53c590 100644 --- a/service/gamesparks/internal/endpoints/endpoints.go +++ b/service/gamesparks/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -220,6 +222,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "gamesparks-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "gamesparks.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/glacier/internal/endpoints/endpoints.go b/service/glacier/internal/endpoints/endpoints.go index f7b758935f0..aecb1ebc930 100644 --- a/service/glacier/internal/endpoints/endpoints.go +++ b/service/glacier/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -378,6 +380,27 @@ var defaultPartitions = endpoints.Partitions{ }: endpoints.Endpoint{}, }, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "glacier-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "glacier.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/globalaccelerator/internal/endpoints/endpoints.go b/service/globalaccelerator/internal/endpoints/endpoints.go index d90226ceb52..34cea739ba7 100644 --- a/service/globalaccelerator/internal/endpoints/endpoints.go +++ b/service/globalaccelerator/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -212,6 +214,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "globalaccelerator-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "globalaccelerator.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/glue/internal/endpoints/endpoints.go b/service/glue/internal/endpoints/endpoints.go index 0ca8c4e1273..77b20e4f254 100644 --- a/service/glue/internal/endpoints/endpoints.go +++ b/service/glue/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -362,6 +364,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "glue-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "glue.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/grafana/internal/endpoints/endpoints.go b/service/grafana/internal/endpoints/endpoints.go index 7cac1c52c6f..704737ed994 100644 --- a/service/grafana/internal/endpoints/endpoints.go +++ b/service/grafana/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -294,6 +296,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "grafana-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "grafana.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/greengrass/internal/endpoints/endpoints.go b/service/greengrass/internal/endpoints/endpoints.go index da60a63ddff..c16a28c6576 100644 --- a/service/greengrass/internal/endpoints/endpoints.go +++ b/service/greengrass/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -315,6 +317,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "greengrass-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "greengrass.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/greengrassv2/internal/endpoints/endpoints.go b/service/greengrassv2/internal/endpoints/endpoints.go index daa887bfdd5..423839038d4 100644 --- a/service/greengrassv2/internal/endpoints/endpoints.go +++ b/service/greengrassv2/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -315,6 +317,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "greengrass-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "greengrass.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/groundstation/internal/endpoints/endpoints.go b/service/groundstation/internal/endpoints/endpoints.go index 5e6c1eac23f..34e652744e1 100644 --- a/service/groundstation/internal/endpoints/endpoints.go +++ b/service/groundstation/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -295,6 +297,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "groundstation-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "groundstation.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/guardduty/internal/endpoints/endpoints.go b/service/guardduty/internal/endpoints/endpoints.go index add6209dddb..73fc978de49 100644 --- a/service/guardduty/internal/endpoints/endpoints.go +++ b/service/guardduty/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -363,6 +365,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "guardduty-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "guardduty.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/health/internal/endpoints/endpoints.go b/service/health/internal/endpoints/endpoints.go index 78505bbc65d..701f9ef5bb9 100644 --- a/service/health/internal/endpoints/endpoints.go +++ b/service/health/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -271,6 +273,27 @@ var defaultPartitions = endpoints.Partitions{ }: endpoints.Endpoint{}, }, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "health-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "health.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/healthlake/internal/endpoints/endpoints.go b/service/healthlake/internal/endpoints/endpoints.go index 8a98f25ea70..ace59b25137 100644 --- a/service/healthlake/internal/endpoints/endpoints.go +++ b/service/healthlake/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -226,6 +228,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "healthlake-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "healthlake.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/honeycode/internal/endpoints/endpoints.go b/service/honeycode/internal/endpoints/endpoints.go index 4cbef472658..6e747843af5 100644 --- a/service/honeycode/internal/endpoints/endpoints.go +++ b/service/honeycode/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -217,6 +219,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "honeycode-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "honeycode.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/iam/internal/endpoints/endpoints.go b/service/iam/internal/endpoints/endpoints.go index 8c3743aa813..f30077becdd 100644 --- a/service/iam/internal/endpoints/endpoints.go +++ b/service/iam/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -301,6 +303,27 @@ var defaultPartitions = endpoints.Partitions{ }, }, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "iam-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "iam.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/identitystore/internal/endpoints/endpoints.go b/service/identitystore/internal/endpoints/endpoints.go index e9c63f0b0a6..a199d855ea8 100644 --- a/service/identitystore/internal/endpoints/endpoints.go +++ b/service/identitystore/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -271,6 +273,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "identitystore-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "identitystore.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/imagebuilder/internal/endpoints/endpoints.go b/service/imagebuilder/internal/endpoints/endpoints.go index e22926feb38..5ef0dc6b6dc 100644 --- a/service/imagebuilder/internal/endpoints/endpoints.go +++ b/service/imagebuilder/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -212,6 +214,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "imagebuilder-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "imagebuilder.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/inspector/internal/endpoints/endpoints.go b/service/inspector/internal/endpoints/endpoints.go index 1ecc1f940c0..44df223ed35 100644 --- a/service/inspector/internal/endpoints/endpoints.go +++ b/service/inspector/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -310,6 +312,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "inspector-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "inspector.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/inspector2/internal/endpoints/endpoints.go b/service/inspector2/internal/endpoints/endpoints.go index e8bc1043f6b..d6e5b3f55d7 100644 --- a/service/inspector2/internal/endpoints/endpoints.go +++ b/service/inspector2/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -271,6 +273,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "inspector2-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "inspector2.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/internetmonitor/internal/endpoints/endpoints.go b/service/internetmonitor/internal/endpoints/endpoints.go index 6e2a797b803..eb71aff273a 100644 --- a/service/internetmonitor/internal/endpoints/endpoints.go +++ b/service/internetmonitor/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -326,6 +328,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "internetmonitor-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "internetmonitor.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/iot/internal/endpoints/endpoints.go b/service/iot/internal/endpoints/endpoints.go index 9cddad9a4b2..522d091a314 100644 --- a/service/iot/internal/endpoints/endpoints.go +++ b/service/iot/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -378,6 +380,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "iot-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "iot.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/iot1clickdevicesservice/internal/endpoints/endpoints.go b/service/iot1clickdevicesservice/internal/endpoints/endpoints.go index a524be7e520..0b50737af1d 100644 --- a/service/iot1clickdevicesservice/internal/endpoints/endpoints.go +++ b/service/iot1clickdevicesservice/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -212,6 +214,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "devices.iot1click-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "devices.iot1click.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/iot1clickprojects/internal/endpoints/endpoints.go b/service/iot1clickprojects/internal/endpoints/endpoints.go index 66768649007..300527455ff 100644 --- a/service/iot1clickprojects/internal/endpoints/endpoints.go +++ b/service/iot1clickprojects/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -235,6 +237,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "projects.iot1click-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "projects.iot1click.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/iotanalytics/internal/endpoints/endpoints.go b/service/iotanalytics/internal/endpoints/endpoints.go index 79cf895552c..0cf1197e426 100644 --- a/service/iotanalytics/internal/endpoints/endpoints.go +++ b/service/iotanalytics/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -243,6 +245,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "iotanalytics-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "iotanalytics.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/iotdataplane/internal/endpoints/endpoints.go b/service/iotdataplane/internal/endpoints/endpoints.go index 03373e11fc7..f02baf29cd5 100644 --- a/service/iotdataplane/internal/endpoints/endpoints.go +++ b/service/iotdataplane/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -381,6 +383,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "data-ats.iot-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "data-ats.iot.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/iotdeviceadvisor/internal/endpoints/endpoints.go b/service/iotdeviceadvisor/internal/endpoints/endpoints.go index b6a8c14fffb..9af864d879e 100644 --- a/service/iotdeviceadvisor/internal/endpoints/endpoints.go +++ b/service/iotdeviceadvisor/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -246,6 +248,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "api.iotdeviceadvisor-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "api.iotdeviceadvisor.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/iotevents/internal/endpoints/endpoints.go b/service/iotevents/internal/endpoints/endpoints.go index 78b84844834..d9d51e1f029 100644 --- a/service/iotevents/internal/endpoints/endpoints.go +++ b/service/iotevents/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -315,6 +317,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "iotevents-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "iotevents.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/ioteventsdata/internal/endpoints/endpoints.go b/service/ioteventsdata/internal/endpoints/endpoints.go index a24de472699..44c07a2722f 100644 --- a/service/ioteventsdata/internal/endpoints/endpoints.go +++ b/service/ioteventsdata/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -212,6 +214,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "data.iotevents-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "data.iotevents.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/iotfleethub/internal/endpoints/endpoints.go b/service/iotfleethub/internal/endpoints/endpoints.go index d03a80f7b68..6a41d0f1d88 100644 --- a/service/iotfleethub/internal/endpoints/endpoints.go +++ b/service/iotfleethub/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -313,6 +315,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "api.fleethub.iot-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "api.fleethub.iot.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/iotfleetwise/internal/endpoints/endpoints.go b/service/iotfleetwise/internal/endpoints/endpoints.go index fd919874e82..82480aeaf45 100644 --- a/service/iotfleetwise/internal/endpoints/endpoints.go +++ b/service/iotfleetwise/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -220,6 +222,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "iotfleetwise-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "iotfleetwise.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/iotjobsdataplane/internal/endpoints/endpoints.go b/service/iotjobsdataplane/internal/endpoints/endpoints.go index e4c504dc45d..d87304f61a5 100644 --- a/service/iotjobsdataplane/internal/endpoints/endpoints.go +++ b/service/iotjobsdataplane/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -351,6 +353,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "data.jobs.iot-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "data.jobs.iot.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/iotroborunner/internal/endpoints/endpoints.go b/service/iotroborunner/internal/endpoints/endpoints.go index bfa7feecab7..415383baeca 100644 --- a/service/iotroborunner/internal/endpoints/endpoints.go +++ b/service/iotroborunner/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -220,6 +222,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "iotroborunner-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "iotroborunner.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/iotsecuretunneling/internal/endpoints/endpoints.go b/service/iotsecuretunneling/internal/endpoints/endpoints.go index f0e47d71e43..47dd1f05ca5 100644 --- a/service/iotsecuretunneling/internal/endpoints/endpoints.go +++ b/service/iotsecuretunneling/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -354,6 +356,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "api.tunneling.iot-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "api.tunneling.iot.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/iotsitewise/internal/endpoints/endpoints.go b/service/iotsitewise/internal/endpoints/endpoints.go index 939ed707dbf..b7ae57fbe59 100644 --- a/service/iotsitewise/internal/endpoints/endpoints.go +++ b/service/iotsitewise/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -312,6 +314,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "iotsitewise-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "iotsitewise.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/iotthingsgraph/internal/endpoints/endpoints.go b/service/iotthingsgraph/internal/endpoints/endpoints.go index 00916c8ad28..c27217ff831 100644 --- a/service/iotthingsgraph/internal/endpoints/endpoints.go +++ b/service/iotthingsgraph/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -244,6 +246,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "iotthingsgraph-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "iotthingsgraph.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/iottwinmaker/internal/endpoints/endpoints.go b/service/iottwinmaker/internal/endpoints/endpoints.go index 5f4a833fdc5..a05f77a8b47 100644 --- a/service/iottwinmaker/internal/endpoints/endpoints.go +++ b/service/iottwinmaker/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -262,6 +264,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "iottwinmaker-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "iottwinmaker.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/iotwireless/internal/endpoints/endpoints.go b/service/iotwireless/internal/endpoints/endpoints.go index b97e2347036..170eacd1e71 100644 --- a/service/iotwireless/internal/endpoints/endpoints.go +++ b/service/iotwireless/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -270,6 +272,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "api.iotwireless-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "api.iotwireless.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/ivs/internal/endpoints/endpoints.go b/service/ivs/internal/endpoints/endpoints.go index a345f66559f..eb89085aac9 100644 --- a/service/ivs/internal/endpoints/endpoints.go +++ b/service/ivs/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -235,6 +237,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "ivs-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "ivs.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/ivschat/internal/endpoints/endpoints.go b/service/ivschat/internal/endpoints/endpoints.go index 9f2ad18a811..68fb21da0f7 100644 --- a/service/ivschat/internal/endpoints/endpoints.go +++ b/service/ivschat/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -235,6 +237,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "ivschat-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "ivschat.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/ivsrealtime/internal/endpoints/endpoints.go b/service/ivsrealtime/internal/endpoints/endpoints.go index 941be31b706..b78266d27c9 100644 --- a/service/ivsrealtime/internal/endpoints/endpoints.go +++ b/service/ivsrealtime/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -235,6 +237,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "ivsrealtime-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "ivsrealtime.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/kafka/internal/endpoints/endpoints.go b/service/kafka/internal/endpoints/endpoints.go index 82f80e4d2df..b6266d69ea4 100644 --- a/service/kafka/internal/endpoints/endpoints.go +++ b/service/kafka/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -375,6 +377,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "kafka-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "kafka.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/kafkaconnect/internal/endpoints/endpoints.go b/service/kafkaconnect/internal/endpoints/endpoints.go index a2309650c1a..5e2d53fd4c4 100644 --- a/service/kafkaconnect/internal/endpoints/endpoints.go +++ b/service/kafkaconnect/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -262,6 +264,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "kafkaconnect-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "kafkaconnect.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/kendra/internal/endpoints/endpoints.go b/service/kendra/internal/endpoints/endpoints.go index 1f4c208bf47..80f37bf2841 100644 --- a/service/kendra/internal/endpoints/endpoints.go +++ b/service/kendra/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -286,6 +288,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "kendra-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "kendra.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/kendraranking/internal/endpoints/endpoints.go b/service/kendraranking/internal/endpoints/endpoints.go index f96eb014c57..041b4caaba1 100644 --- a/service/kendraranking/internal/endpoints/endpoints.go +++ b/service/kendraranking/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -351,6 +353,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "kendra-ranking-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "kendra-ranking.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/keyspaces/internal/endpoints/endpoints.go b/service/keyspaces/internal/endpoints/endpoints.go index fb7481b6f59..9425dc6bbe1 100644 --- a/service/keyspaces/internal/endpoints/endpoints.go +++ b/service/keyspaces/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -306,6 +308,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "cassandra-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "cassandra.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/kinesis/internal/endpoints/endpoints.go b/service/kinesis/internal/endpoints/endpoints.go index 5c7e1078db6..be18122d6ca 100644 --- a/service/kinesis/internal/endpoints/endpoints.go +++ b/service/kinesis/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -376,6 +378,27 @@ var defaultPartitions = endpoints.Partitions{ }: endpoints.Endpoint{}, }, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "kinesis-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "kinesis.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/kinesisanalytics/internal/endpoints/endpoints.go b/service/kinesisanalytics/internal/endpoints/endpoints.go index cdb23c92c88..4c60e12a5a2 100644 --- a/service/kinesisanalytics/internal/endpoints/endpoints.go +++ b/service/kinesisanalytics/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -300,6 +302,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "kinesisanalytics-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "kinesisanalytics.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/kinesisanalyticsv2/internal/endpoints/endpoints.go b/service/kinesisanalyticsv2/internal/endpoints/endpoints.go index 8db566b8d6c..14257d5a459 100644 --- a/service/kinesisanalyticsv2/internal/endpoints/endpoints.go +++ b/service/kinesisanalyticsv2/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -300,6 +302,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "kinesisanalytics-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "kinesisanalytics.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/kinesisvideo/internal/endpoints/endpoints.go b/service/kinesisvideo/internal/endpoints/endpoints.go index 92c47d43fa0..00fb0b690cf 100644 --- a/service/kinesisvideo/internal/endpoints/endpoints.go +++ b/service/kinesisvideo/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -267,6 +269,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "kinesisvideo-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "kinesisvideo.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/kinesisvideoarchivedmedia/internal/endpoints/endpoints.go b/service/kinesisvideoarchivedmedia/internal/endpoints/endpoints.go index 8faa605d4dd..fde7ba62acd 100644 --- a/service/kinesisvideoarchivedmedia/internal/endpoints/endpoints.go +++ b/service/kinesisvideoarchivedmedia/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -267,6 +269,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "kinesisvideo-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "kinesisvideo.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/kinesisvideomedia/internal/endpoints/endpoints.go b/service/kinesisvideomedia/internal/endpoints/endpoints.go index d94d08a91a3..fed975a2e9e 100644 --- a/service/kinesisvideomedia/internal/endpoints/endpoints.go +++ b/service/kinesisvideomedia/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -267,6 +269,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "kinesisvideo-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "kinesisvideo.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/kinesisvideosignaling/internal/endpoints/endpoints.go b/service/kinesisvideosignaling/internal/endpoints/endpoints.go index db7f7bc89aa..7ec1836ae23 100644 --- a/service/kinesisvideosignaling/internal/endpoints/endpoints.go +++ b/service/kinesisvideosignaling/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -267,6 +269,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "kinesisvideo-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "kinesisvideo.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/kinesisvideowebrtcstorage/internal/endpoints/endpoints.go b/service/kinesisvideowebrtcstorage/internal/endpoints/endpoints.go index 5640925375f..1b5b4670039 100644 --- a/service/kinesisvideowebrtcstorage/internal/endpoints/endpoints.go +++ b/service/kinesisvideowebrtcstorage/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -267,6 +269,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "kinesisvideo-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "kinesisvideo.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/kms/internal/endpoints/endpoints.go b/service/kms/internal/endpoints/endpoints.go index 9998df6bd37..d519c3cb663 100644 --- a/service/kms/internal/endpoints/endpoints.go +++ b/service/kms/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -801,6 +803,27 @@ var defaultPartitions = endpoints.Partitions{ }, }, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "kms-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "kms.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/lakeformation/internal/endpoints/endpoints.go b/service/lakeformation/internal/endpoints/endpoints.go index 0f1999868df..54b4bf20cdd 100644 --- a/service/lakeformation/internal/endpoints/endpoints.go +++ b/service/lakeformation/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -357,6 +359,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "lakeformation-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "lakeformation.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/lambda/internal/endpoints/endpoints.go b/service/lambda/internal/endpoints/endpoints.go index 4f69d4b4656..9eb6906d49a 100644 --- a/service/lambda/internal/endpoints/endpoints.go +++ b/service/lambda/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -550,6 +552,27 @@ var defaultPartitions = endpoints.Partitions{ }: endpoints.Endpoint{}, }, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "lambda-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "lambda.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/lexmodelbuildingservice/internal/endpoints/endpoints.go b/service/lexmodelbuildingservice/internal/endpoints/endpoints.go index d32f3199921..72d6da45ea1 100644 --- a/service/lexmodelbuildingservice/internal/endpoints/endpoints.go +++ b/service/lexmodelbuildingservice/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -280,6 +282,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "models.lex-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "models.lex.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/lexmodelsv2/internal/endpoints/endpoints.go b/service/lexmodelsv2/internal/endpoints/endpoints.go index 6f7b0836586..7b36149cd5d 100644 --- a/service/lexmodelsv2/internal/endpoints/endpoints.go +++ b/service/lexmodelsv2/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -247,6 +249,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "models-v2-lex-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "models-v2-lex.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/lexruntimeservice/internal/endpoints/endpoints.go b/service/lexruntimeservice/internal/endpoints/endpoints.go index 1091d13a644..d79bb7c6516 100644 --- a/service/lexruntimeservice/internal/endpoints/endpoints.go +++ b/service/lexruntimeservice/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -280,6 +282,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "runtime.lex-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "runtime.lex.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/lexruntimev2/internal/endpoints/endpoints.go b/service/lexruntimev2/internal/endpoints/endpoints.go index 5e6720f34e0..e6573557fc1 100644 --- a/service/lexruntimev2/internal/endpoints/endpoints.go +++ b/service/lexruntimev2/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -247,6 +249,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "runtime-v2-lex-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "runtime-v2-lex.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/licensemanager/internal/endpoints/endpoints.go b/service/licensemanager/internal/endpoints/endpoints.go index 80027ee1706..3cd8a59faa3 100644 --- a/service/licensemanager/internal/endpoints/endpoints.go +++ b/service/licensemanager/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -361,6 +363,27 @@ var defaultPartitions = endpoints.Partitions{ }: endpoints.Endpoint{}, }, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "license-manager-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "license-manager.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/licensemanagerlinuxsubscriptions/internal/endpoints/endpoints.go b/service/licensemanagerlinuxsubscriptions/internal/endpoints/endpoints.go index 4c0b3a6bac7..a10e7b8f816 100644 --- a/service/licensemanagerlinuxsubscriptions/internal/endpoints/endpoints.go +++ b/service/licensemanagerlinuxsubscriptions/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -363,6 +365,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "license-manager-linux-subscriptions-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "license-manager-linux-subscriptions.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/licensemanagerusersubscriptions/internal/endpoints/endpoints.go b/service/licensemanagerusersubscriptions/internal/endpoints/endpoints.go index 53243ff5eeb..6642d0992c2 100644 --- a/service/licensemanagerusersubscriptions/internal/endpoints/endpoints.go +++ b/service/licensemanagerusersubscriptions/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -337,6 +339,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "license-manager-user-subscriptions-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "license-manager-user-subscriptions.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/lightsail/internal/endpoints/endpoints.go b/service/lightsail/internal/endpoints/endpoints.go index e3c27ef1120..745cf8a749b 100644 --- a/service/lightsail/internal/endpoints/endpoints.go +++ b/service/lightsail/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -256,6 +258,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "lightsail-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "lightsail.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/location/internal/endpoints/endpoints.go b/service/location/internal/endpoints/endpoints.go index 573b774926f..a20da984232 100644 --- a/service/location/internal/endpoints/endpoints.go +++ b/service/location/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -253,6 +255,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "geo-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "geo.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/lookoutequipment/internal/endpoints/endpoints.go b/service/lookoutequipment/internal/endpoints/endpoints.go index 1ddcfb07e12..9992f2333ac 100644 --- a/service/lookoutequipment/internal/endpoints/endpoints.go +++ b/service/lookoutequipment/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -223,6 +225,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "lookoutequipment-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "lookoutequipment.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/lookoutmetrics/internal/endpoints/endpoints.go b/service/lookoutmetrics/internal/endpoints/endpoints.go index a9656e93a2d..b1654221d86 100644 --- a/service/lookoutmetrics/internal/endpoints/endpoints.go +++ b/service/lookoutmetrics/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -241,6 +243,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "lookoutmetrics-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "lookoutmetrics.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/lookoutvision/internal/endpoints/endpoints.go b/service/lookoutvision/internal/endpoints/endpoints.go index b759f1592b4..efa2bbe1c7d 100644 --- a/service/lookoutvision/internal/endpoints/endpoints.go +++ b/service/lookoutvision/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -235,6 +237,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "lookoutvision-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "lookoutvision.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/m2/internal/endpoints/endpoints.go b/service/m2/internal/endpoints/endpoints.go index b86dec27045..5198aacc373 100644 --- a/service/m2/internal/endpoints/endpoints.go +++ b/service/m2/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -304,6 +306,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "m2-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "m2.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/machinelearning/internal/endpoints/endpoints.go b/service/machinelearning/internal/endpoints/endpoints.go index c37230efbab..0afc120adcd 100644 --- a/service/machinelearning/internal/endpoints/endpoints.go +++ b/service/machinelearning/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -220,6 +222,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "machinelearning-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "machinelearning.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/macie/internal/endpoints/endpoints.go b/service/macie/internal/endpoints/endpoints.go index bd317accb26..b6092bb6863 100644 --- a/service/macie/internal/endpoints/endpoints.go +++ b/service/macie/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -250,6 +252,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "macie-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "macie.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/macie2/internal/endpoints/endpoints.go b/service/macie2/internal/endpoints/endpoints.go index 2905b83a5f3..16c222a2c8a 100644 --- a/service/macie2/internal/endpoints/endpoints.go +++ b/service/macie2/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -337,6 +339,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "macie2-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "macie2.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/managedblockchain/internal/endpoints/endpoints.go b/service/managedblockchain/internal/endpoints/endpoints.go index bf838c0c89c..cd9ddda36c6 100644 --- a/service/managedblockchain/internal/endpoints/endpoints.go +++ b/service/managedblockchain/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -232,6 +234,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "managedblockchain-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "managedblockchain.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/marketplacecatalog/internal/endpoints/endpoints.go b/service/marketplacecatalog/internal/endpoints/endpoints.go index a9e63d48f86..fd1723b28f4 100644 --- a/service/marketplacecatalog/internal/endpoints/endpoints.go +++ b/service/marketplacecatalog/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -217,6 +219,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "catalog.marketplace-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "catalog.marketplace.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/marketplacecommerceanalytics/internal/endpoints/endpoints.go b/service/marketplacecommerceanalytics/internal/endpoints/endpoints.go index 8e14c66e38b..3ed9ae27b7d 100644 --- a/service/marketplacecommerceanalytics/internal/endpoints/endpoints.go +++ b/service/marketplacecommerceanalytics/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -217,6 +219,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "marketplacecommerceanalytics-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "marketplacecommerceanalytics.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/marketplaceentitlementservice/internal/endpoints/endpoints.go b/service/marketplaceentitlementservice/internal/endpoints/endpoints.go index 6ee8854beae..55ea8283ca9 100644 --- a/service/marketplaceentitlementservice/internal/endpoints/endpoints.go +++ b/service/marketplaceentitlementservice/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -229,6 +231,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "entitlement.marketplace-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "entitlement.marketplace.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/marketplacemetering/internal/endpoints/endpoints.go b/service/marketplacemetering/internal/endpoints/endpoints.go index 53af3eee333..e35bf9fdb6f 100644 --- a/service/marketplacemetering/internal/endpoints/endpoints.go +++ b/service/marketplacemetering/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -318,6 +320,27 @@ var defaultPartitions = endpoints.Partitions{ }: endpoints.Endpoint{}, }, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "metering.marketplace-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "metering.marketplace.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/mediaconnect/internal/endpoints/endpoints.go b/service/mediaconnect/internal/endpoints/endpoints.go index fe97bfbff26..b7f66e21ec1 100644 --- a/service/mediaconnect/internal/endpoints/endpoints.go +++ b/service/mediaconnect/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -262,6 +264,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "mediaconnect-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "mediaconnect.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/mediaconvert/internal/endpoints/endpoints.go b/service/mediaconvert/internal/endpoints/endpoints.go index 915d6ab6345..ea2c26bb4cb 100644 --- a/service/mediaconvert/internal/endpoints/endpoints.go +++ b/service/mediaconvert/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -350,6 +352,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "mediaconvert-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "mediaconvert.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/medialive/internal/endpoints/endpoints.go b/service/medialive/internal/endpoints/endpoints.go index 535cb09bf6e..50487c4808d 100644 --- a/service/medialive/internal/endpoints/endpoints.go +++ b/service/medialive/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -306,6 +308,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "medialive-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "medialive.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/mediapackage/internal/endpoints/endpoints.go b/service/mediapackage/internal/endpoints/endpoints.go index 0f5af67e7aa..ce74ffc62de 100644 --- a/service/mediapackage/internal/endpoints/endpoints.go +++ b/service/mediapackage/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -264,6 +266,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "mediapackage-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "mediapackage.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/mediapackagevod/internal/endpoints/endpoints.go b/service/mediapackagevod/internal/endpoints/endpoints.go index d7ea078f0e1..7272aa31f04 100644 --- a/service/mediapackagevod/internal/endpoints/endpoints.go +++ b/service/mediapackagevod/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -259,6 +261,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "mediapackage-vod-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "mediapackage-vod.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/mediastore/internal/endpoints/endpoints.go b/service/mediastore/internal/endpoints/endpoints.go index 358380c0e8a..d18df7dd135 100644 --- a/service/mediastore/internal/endpoints/endpoints.go +++ b/service/mediastore/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -241,6 +243,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "mediastore-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "mediastore.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/mediastoredata/internal/endpoints/endpoints.go b/service/mediastoredata/internal/endpoints/endpoints.go index c2ffd2e381c..fac275e408c 100644 --- a/service/mediastoredata/internal/endpoints/endpoints.go +++ b/service/mediastoredata/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -241,6 +243,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "data.mediastore-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "data.mediastore.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/mediatailor/internal/endpoints/endpoints.go b/service/mediatailor/internal/endpoints/endpoints.go index 74208821303..8554b21d984 100644 --- a/service/mediatailor/internal/endpoints/endpoints.go +++ b/service/mediatailor/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -244,6 +246,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "api.mediatailor-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "api.mediatailor.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/memorydb/internal/endpoints/endpoints.go b/service/memorydb/internal/endpoints/endpoints.go index 44960ca063f..0f113b22c9d 100644 --- a/service/memorydb/internal/endpoints/endpoints.go +++ b/service/memorydb/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -284,6 +286,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "memory-db-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "memory-db.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/mgn/internal/endpoints/endpoints.go b/service/mgn/internal/endpoints/endpoints.go index da66c98eade..913bf14acdd 100644 --- a/service/mgn/internal/endpoints/endpoints.go +++ b/service/mgn/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -343,6 +345,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "mgn-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "mgn.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/migrationhub/internal/endpoints/endpoints.go b/service/migrationhub/internal/endpoints/endpoints.go index 7e4ab5e5d63..7870d8b08a0 100644 --- a/service/migrationhub/internal/endpoints/endpoints.go +++ b/service/migrationhub/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -235,6 +237,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "mgh-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "mgh.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/migrationhubconfig/internal/endpoints/endpoints.go b/service/migrationhubconfig/internal/endpoints/endpoints.go index c2f27cb2401..c9a09421a93 100644 --- a/service/migrationhubconfig/internal/endpoints/endpoints.go +++ b/service/migrationhubconfig/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -212,6 +214,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "migrationhub-config-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "migrationhub-config.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/migrationhuborchestrator/internal/endpoints/endpoints.go b/service/migrationhuborchestrator/internal/endpoints/endpoints.go index d3b2a9e7a70..5a7d87961df 100644 --- a/service/migrationhuborchestrator/internal/endpoints/endpoints.go +++ b/service/migrationhuborchestrator/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -235,6 +237,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "migrationhub-orchestrator-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "migrationhub-orchestrator.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/migrationhubrefactorspaces/internal/endpoints/endpoints.go b/service/migrationhubrefactorspaces/internal/endpoints/endpoints.go index e45112f9b3d..b2a57deb325 100644 --- a/service/migrationhubrefactorspaces/internal/endpoints/endpoints.go +++ b/service/migrationhubrefactorspaces/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -212,6 +214,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "refactor-spaces-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "refactor-spaces.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/migrationhubstrategy/internal/endpoints/endpoints.go b/service/migrationhubstrategy/internal/endpoints/endpoints.go index 65880c811f2..0dccac42708 100644 --- a/service/migrationhubstrategy/internal/endpoints/endpoints.go +++ b/service/migrationhubstrategy/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -235,6 +237,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "migrationhub-strategy-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "migrationhub-strategy.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/mobile/internal/endpoints/endpoints.go b/service/mobile/internal/endpoints/endpoints.go index 16b96bbce25..eaead32a5e0 100644 --- a/service/mobile/internal/endpoints/endpoints.go +++ b/service/mobile/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -212,6 +214,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "mobile-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "mobile.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/mq/internal/endpoints/endpoints.go b/service/mq/internal/endpoints/endpoints.go index fc9aa7b2864..04d67b3f7e6 100644 --- a/service/mq/internal/endpoints/endpoints.go +++ b/service/mq/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -351,6 +353,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "mq-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "mq.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/mturk/internal/endpoints/endpoints.go b/service/mturk/internal/endpoints/endpoints.go index e70e0b07d13..99d62703313 100644 --- a/service/mturk/internal/endpoints/endpoints.go +++ b/service/mturk/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -222,6 +224,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "mturk-requester-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "mturk-requester.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/mwaa/internal/endpoints/endpoints.go b/service/mwaa/internal/endpoints/endpoints.go index 95fb66e24e1..365b72d85cd 100644 --- a/service/mwaa/internal/endpoints/endpoints.go +++ b/service/mwaa/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -259,6 +261,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "airflow-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "airflow.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/neptune/internal/endpoints/endpoints.go b/service/neptune/internal/endpoints/endpoints.go index 1cb8260a2d4..a24580dd5da 100644 --- a/service/neptune/internal/endpoints/endpoints.go +++ b/service/neptune/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -526,6 +528,27 @@ var defaultPartitions = endpoints.Partitions{ }: endpoints.Endpoint{}, }, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "rds-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "rds.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/networkfirewall/internal/endpoints/endpoints.go b/service/networkfirewall/internal/endpoints/endpoints.go index e0e95465686..046285168a2 100644 --- a/service/networkfirewall/internal/endpoints/endpoints.go +++ b/service/networkfirewall/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -358,6 +360,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "network-firewall-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "network-firewall.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/networkfirewall/types/enums.go b/service/networkfirewall/types/enums.go index b1b3d22108d..5e40a682b96 100644 --- a/service/networkfirewall/types/enums.go +++ b/service/networkfirewall/types/enums.go @@ -8,10 +8,10 @@ type AttachmentStatus string const ( AttachmentStatusCreating AttachmentStatus = "CREATING" AttachmentStatusDeleting AttachmentStatus = "DELETING" - AttachmentStatusScaling AttachmentStatus = "SCALING" - AttachmentStatusReady AttachmentStatus = "READY" AttachmentStatusFailed AttachmentStatus = "FAILED" AttachmentStatusError AttachmentStatus = "ERROR" + AttachmentStatusScaling AttachmentStatus = "SCALING" + AttachmentStatusReady AttachmentStatus = "READY" ) // Values returns all known values for AttachmentStatus. Note that this can be @@ -21,10 +21,10 @@ func (AttachmentStatus) Values() []AttachmentStatus { return []AttachmentStatus{ "CREATING", "DELETING", - "SCALING", - "READY", "FAILED", "ERROR", + "SCALING", + "READY", } } @@ -386,6 +386,7 @@ type StreamExceptionPolicy string const ( StreamExceptionPolicyDrop StreamExceptionPolicy = "DROP" StreamExceptionPolicyContinue StreamExceptionPolicy = "CONTINUE" + StreamExceptionPolicyReject StreamExceptionPolicy = "REJECT" ) // Values returns all known values for StreamExceptionPolicy. Note that this can @@ -395,6 +396,7 @@ func (StreamExceptionPolicy) Values() []StreamExceptionPolicy { return []StreamExceptionPolicy{ "DROP", "CONTINUE", + "REJECT", } } diff --git a/service/networkfirewall/types/types.go b/service/networkfirewall/types/types.go index ed28c3483ed..6410d8b059c 100644 --- a/service/networkfirewall/types/types.go +++ b/service/networkfirewall/types/types.go @@ -951,7 +951,7 @@ type RulesSource struct { // An array of individual stateful rules inspection criteria to be used together // in a stateful rule group. Use this option to specify simple Suricata rules with // protocol, source and destination, ports, direction, and rule options. For - // information about the Suricata Rules format, see Rules Format (https://suricata.readthedocs.io/en/suricata-6.0.9/rules/intro.html) + // information about the Suricata Rules format, see Rules Format (https://suricata.readthedocs.iorules/intro.html#) // . StatefulRules []StatefulRule @@ -1125,6 +1125,11 @@ type StatefulEngineOptions struct { // the application layer protocol as HTTP. However, this behavior is rule // dependent—a TCP-layer rule using a flow:stateless rule would still match, as // would the aws:drop_strict default action. + // - REJECT - Network Firewall fails closed and drops all subsequent traffic + // going to the firewall. Network Firewall also sends a TCP reject packet back to + // your client so that the client can immediately establish a new session. Network + // Firewall will have context about the new session and will apply rules to the + // subsequent traffic. StreamExceptionPolicy StreamExceptionPolicy noSmithyDocumentSerde @@ -1133,7 +1138,7 @@ type StatefulEngineOptions struct { // A single Suricata rules specification, for use in a stateful rule group. Use // this option to specify a simple Suricata rule with protocol, source and // destination, ports, direction, and rule options. For information about the -// Suricata Rules format, see Rules Format (https://suricata.readthedocs.io/en/suricata-6.0.9/rules/intro.html) +// Suricata Rules format, see Rules Format (https://suricata.readthedocs.iorules/intro.html#) // . type StatefulRule struct { @@ -1151,6 +1156,12 @@ type StatefulRule struct { // to use to drop traffic. You can enable the rule with ALERT action, verify in // the logs that the rule is filtering as you want, then change the action to // DROP . + // - REJECT - Drops TCP traffic that matches the conditions of the stateful + // rule, and sends a TCP reset packet back to sender of the packet. A TCP reset + // packet is a packet with no payload and a RST bit contained in the TCP header + // flags. Also sends an alert log mesage if alert logging is configured in the + // Firewall LoggingConfiguration . REJECT isn't currently available for use with + // IMAP and FTP protocols. // // This member is required. Action StatefulAction diff --git a/service/networkmanager/internal/endpoints/endpoints.go b/service/networkmanager/internal/endpoints/endpoints.go index de94b9653ad..8a0b7d52717 100644 --- a/service/networkmanager/internal/endpoints/endpoints.go +++ b/service/networkmanager/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -223,6 +225,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "networkmanager-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "networkmanager.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/nimble/internal/endpoints/endpoints.go b/service/nimble/internal/endpoints/endpoints.go index d42002ebb20..1b7fa88a188 100644 --- a/service/nimble/internal/endpoints/endpoints.go +++ b/service/nimble/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -232,6 +234,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "nimble-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "nimble.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/oam/internal/endpoints/endpoints.go b/service/oam/internal/endpoints/endpoints.go index af62a4b5d3b..75698df439c 100644 --- a/service/oam/internal/endpoints/endpoints.go +++ b/service/oam/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -303,6 +305,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "oam-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "oam.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/omics/internal/endpoints/endpoints.go b/service/omics/internal/endpoints/endpoints.go index 95aca58d425..dbd394a0d1a 100644 --- a/service/omics/internal/endpoints/endpoints.go +++ b/service/omics/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -298,6 +300,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "omics-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "omics.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/opensearch/api_op_CreateDomain.go b/service/opensearch/api_op_CreateDomain.go index 6919fd2c6ba..b388fff418c 100644 --- a/service/opensearch/api_op_CreateDomain.go +++ b/service/opensearch/api_op_CreateDomain.go @@ -96,7 +96,7 @@ type CreateDomainInput struct { // . EngineVersion *string - // Key-value pairs to configure slow log publishing. + // Key-value pairs to configure log publishing. LogPublishingOptions map[string]types.LogPublishingOption // Enables node-to-node encryption. diff --git a/service/opensearch/api_op_DescribeDomainNodes.go b/service/opensearch/api_op_DescribeDomainNodes.go new file mode 100644 index 00000000000..b37891eaeea --- /dev/null +++ b/service/opensearch/api_op_DescribeDomainNodes.go @@ -0,0 +1,130 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package opensearch + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/opensearch/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Returns information about domain and nodes, including data nodes, master nodes, +// ultrawarm nodes, Availability Zone(s), standby nodes, node configurations, and +// node states. +func (c *Client) DescribeDomainNodes(ctx context.Context, params *DescribeDomainNodesInput, optFns ...func(*Options)) (*DescribeDomainNodesOutput, error) { + if params == nil { + params = &DescribeDomainNodesInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DescribeDomainNodes", params, optFns, c.addOperationDescribeDomainNodesMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DescribeDomainNodesOutput) + out.ResultMetadata = metadata + return out, nil +} + +// Container for the parameters to the DescribeDomainNodes operation. +type DescribeDomainNodesInput struct { + + // The name of the domain. + // + // This member is required. + DomainName *string + + noSmithyDocumentSerde +} + +// The result of a DescribeDomainNodes request. Contains information about the +// nodes on the requested domain. +type DescribeDomainNodesOutput struct { + + // Contains nodes information list DomainNodesStatusList with details about the + // all nodes on the requested domain. + DomainNodesStatusList []types.DomainNodesStatus + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDescribeDomainNodesMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpDescribeDomainNodes{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDescribeDomainNodes{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpDescribeDomainNodesValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeDomainNodes(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opDescribeDomainNodes(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "es", + OperationName: "DescribeDomainNodes", + } +} diff --git a/service/opensearch/api_op_UpdateDomainConfig.go b/service/opensearch/api_op_UpdateDomainConfig.go index 49ffa455bc0..aa5647ec47b 100644 --- a/service/opensearch/api_op_UpdateDomainConfig.go +++ b/service/opensearch/api_op_UpdateDomainConfig.go @@ -12,7 +12,7 @@ import ( ) // Modifies the cluster configuration of the specified Amazon OpenSearch Service -// domain. +// domain.sl func (c *Client) UpdateDomainConfig(ctx context.Context, params *UpdateDomainConfigInput, optFns ...func(*Options)) (*UpdateDomainConfigOutput, error) { if params == nil { params = &UpdateDomainConfigInput{} diff --git a/service/opensearch/deserializers.go b/service/opensearch/deserializers.go index d0328e4e999..c354d7e3241 100644 --- a/service/opensearch/deserializers.go +++ b/service/opensearch/deserializers.go @@ -3116,6 +3116,168 @@ func awsRestjson1_deserializeOpDocumentDescribeDomainHealthOutput(v **DescribeDo return nil } +type awsRestjson1_deserializeOpDescribeDomainNodes struct { +} + +func (*awsRestjson1_deserializeOpDescribeDomainNodes) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpDescribeDomainNodes) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorDescribeDomainNodes(response, &metadata) + } + output := &DescribeDomainNodesOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsRestjson1_deserializeOpDocumentDescribeDomainNodesOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorDescribeDomainNodes(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("BaseException", errorCode): + return awsRestjson1_deserializeErrorBaseException(response, errorBody) + + case strings.EqualFold("DependencyFailureException", errorCode): + return awsRestjson1_deserializeErrorDependencyFailureException(response, errorBody) + + case strings.EqualFold("DisabledOperationException", errorCode): + return awsRestjson1_deserializeErrorDisabledOperationException(response, errorBody) + + case strings.EqualFold("InternalException", errorCode): + return awsRestjson1_deserializeErrorInternalException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentDescribeDomainNodesOutput(v **DescribeDomainNodesOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *DescribeDomainNodesOutput + if *v == nil { + sv = &DescribeDomainNodesOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "DomainNodesStatusList": + if err := awsRestjson1_deserializeDocumentDomainNodesStatusList(&sv.DomainNodesStatusList, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + type awsRestjson1_deserializeOpDescribeDomains struct { } @@ -8699,6 +8861,42 @@ func awsRestjson1_deserializeErrorConflictException(response *smithyhttp.Respons return output } +func awsRestjson1_deserializeErrorDependencyFailureException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.DependencyFailureException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentDependencyFailureException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + func awsRestjson1_deserializeErrorDisabledOperationException(response *smithyhttp.Response, errorBody *bytes.Reader) error { output := &types.DisabledOperationException{} var buff [1024]byte @@ -10936,6 +11134,46 @@ func awsRestjson1_deserializeDocumentConnectionProperties(v **types.ConnectionPr return nil } +func awsRestjson1_deserializeDocumentDependencyFailureException(v **types.DependencyFailureException, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.DependencyFailureException + if *v == nil { + sv = &types.DependencyFailureException{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsRestjson1_deserializeDocumentDisabledOperationException(v **types.DisabledOperationException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -11328,6 +11566,143 @@ func awsRestjson1_deserializeDocumentDomainInformationContainer(v **types.Domain return nil } +func awsRestjson1_deserializeDocumentDomainNodesStatus(v **types.DomainNodesStatus, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.DomainNodesStatus + if *v == nil { + sv = &types.DomainNodesStatus{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "AvailabilityZone": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AvailabilityZone to be of type string, got %T instead", value) + } + sv.AvailabilityZone = ptr.String(jtv) + } + + case "InstanceType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected OpenSearchPartitionInstanceType to be of type string, got %T instead", value) + } + sv.InstanceType = types.OpenSearchPartitionInstanceType(jtv) + } + + case "NodeId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NodeId to be of type string, got %T instead", value) + } + sv.NodeId = ptr.String(jtv) + } + + case "NodeStatus": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NodeStatus to be of type string, got %T instead", value) + } + sv.NodeStatus = types.NodeStatus(jtv) + } + + case "NodeType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NodeType to be of type string, got %T instead", value) + } + sv.NodeType = types.NodeType(jtv) + } + + case "StorageSize": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected VolumeSize to be of type string, got %T instead", value) + } + sv.StorageSize = ptr.String(jtv) + } + + case "StorageType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected StorageTypeName to be of type string, got %T instead", value) + } + sv.StorageType = ptr.String(jtv) + } + + case "StorageVolumeType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected VolumeType to be of type string, got %T instead", value) + } + sv.StorageVolumeType = types.VolumeType(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentDomainNodesStatusList(v *[]types.DomainNodesStatus, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.DomainNodesStatus + if *v == nil { + cv = []types.DomainNodesStatus{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.DomainNodesStatus + destAddr := &col + if err := awsRestjson1_deserializeDocumentDomainNodesStatus(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + func awsRestjson1_deserializeDocumentDomainPackageDetails(v **types.DomainPackageDetails, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) diff --git a/service/opensearch/generated.json b/service/opensearch/generated.json index c78b6dacd91..c9f53182480 100644 --- a/service/opensearch/generated.json +++ b/service/opensearch/generated.json @@ -27,6 +27,7 @@ "api_op_DescribeDomainChangeProgress.go", "api_op_DescribeDomainConfig.go", "api_op_DescribeDomainHealth.go", + "api_op_DescribeDomainNodes.go", "api_op_DescribeDomains.go", "api_op_DescribeDryRunProgress.go", "api_op_DescribeInboundConnections.go", diff --git a/service/opensearch/internal/endpoints/endpoints.go b/service/opensearch/internal/endpoints/endpoints.go index c3a4d6b399d..7644888dd1f 100644 --- a/service/opensearch/internal/endpoints/endpoints.go +++ b/service/opensearch/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -385,6 +387,27 @@ var defaultPartitions = endpoints.Partitions{ }: endpoints.Endpoint{}, }, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "es-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "es.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/opensearch/serializers.go b/service/opensearch/serializers.go index fd9dae0d05e..5303f1d8638 100644 --- a/service/opensearch/serializers.go +++ b/service/opensearch/serializers.go @@ -1411,6 +1411,64 @@ func awsRestjson1_serializeOpHttpBindingsDescribeDomainHealthInput(v *DescribeDo return nil } +type awsRestjson1_serializeOpDescribeDomainNodes struct { +} + +func (*awsRestjson1_serializeOpDescribeDomainNodes) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpDescribeDomainNodes) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*DescribeDomainNodesInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/2021-01-01/opensearch/domain/{DomainName}/nodes") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "GET" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsDescribeDomainNodesInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsDescribeDomainNodesInput(v *DescribeDomainNodesInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.DomainName == nil || len(*v.DomainName) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member DomainName must not be empty")} + } + if v.DomainName != nil { + if err := encoder.SetURI("DomainName").String(*v.DomainName); err != nil { + return err + } + } + + return nil +} + type awsRestjson1_serializeOpDescribeDomains struct { } diff --git a/service/opensearch/types/enums.go b/service/opensearch/types/enums.go index f8ae3bcf3ed..2c51111ebfd 100644 --- a/service/opensearch/types/enums.go +++ b/service/opensearch/types/enums.go @@ -368,6 +368,46 @@ func (MasterNodeStatus) Values() []MasterNodeStatus { } } +type NodeStatus string + +// Enum values for NodeStatus +const ( + NodeStatusActive NodeStatus = "Active" + NodeStatusStandBy NodeStatus = "StandBy" + NodeStatusNotAvailable NodeStatus = "NotAvailable" +) + +// Values returns all known values for NodeStatus. Note that this can be expanded +// in the future, and so it is only as up to date as the client. The ordering of +// this slice is not guaranteed to be stable across updates. +func (NodeStatus) Values() []NodeStatus { + return []NodeStatus{ + "Active", + "StandBy", + "NotAvailable", + } +} + +type NodeType string + +// Enum values for NodeType +const ( + NodeTypeData NodeType = "Data" + NodeTypeUltrawarm NodeType = "Ultrawarm" + NodeTypeMaster NodeType = "Master" +) + +// Values returns all known values for NodeType. Note that this can be expanded in +// the future, and so it is only as up to date as the client. The ordering of this +// slice is not guaranteed to be stable across updates. +func (NodeType) Values() []NodeType { + return []NodeType{ + "Data", + "Ultrawarm", + "Master", + } +} + type OpenSearchPartitionInstanceType string // Enum values for OpenSearchPartitionInstanceType diff --git a/service/opensearch/types/errors.go b/service/opensearch/types/errors.go index 36ad92a415b..1ce7ee87d37 100644 --- a/service/opensearch/types/errors.go +++ b/service/opensearch/types/errors.go @@ -86,6 +86,33 @@ func (e *ConflictException) ErrorCode() string { } func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// An exception for when a failure in one of the dependencies results in the +// service being unable to fetch details about the resource. +type DependencyFailureException struct { + Message *string + + ErrorCodeOverride *string + + noSmithyDocumentSerde +} + +func (e *DependencyFailureException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *DependencyFailureException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *DependencyFailureException) ErrorCode() string { + if e == nil || e.ErrorCodeOverride == nil { + return "DependencyFailureException" + } + return *e.ErrorCodeOverride +} +func (e *DependencyFailureException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + // An error occured because the client wanted to access an unsupported operation. type DisabledOperationException struct { Message *string diff --git a/service/opensearch/types/types.go b/service/opensearch/types/types.go index 6fbd8d362fb..b51157f0a9a 100644 --- a/service/opensearch/types/types.go +++ b/service/opensearch/types/types.go @@ -577,7 +577,7 @@ type DescribePackagesFilter struct { // Any field from PackageDetails . Name DescribePackagesFilterName - // A list of values for the specified filter field. + // A non-empty list of values for the specified filter field. Value []string noSmithyDocumentSerde @@ -623,7 +623,7 @@ type DomainConfig struct { // The OpenSearch or Elasticsearch version that the domain is running. EngineVersion *VersionStatus - // Key-value pairs to configure slow log publishing. + // Key-value pairs to configure log publishing. LogPublishingOptions *LogPublishingOptionsStatus // Whether node-to-node encryption is enabled or disabled. @@ -711,6 +711,37 @@ type DomainInformationContainer struct { noSmithyDocumentSerde } +// Container for information about nodes on the domain. +type DomainNodesStatus struct { + + // The Availability Zone of the node. + AvailabilityZone *string + + // The instance type information of the node. + InstanceType OpenSearchPartitionInstanceType + + // The ID of the node. + NodeId *string + + // Indicates if the node is active or in standby. + NodeStatus NodeStatus + + // Indicates whether the nodes is a data, master, or ultrawarm node. + NodeType NodeType + + // The storage size of the node, in GiB. + StorageSize *string + + // Indicates if the node has EBS or instance storage. + StorageType *string + + // If the nodes has EBS storage, indicates if the volume type is GP2 or GP3. Only + // applicable for data nodes. + StorageVolumeType VolumeType + + noSmithyDocumentSerde +} + // Information about a package that is associated with a domain. For more // information, see Custom packages for Amazon OpenSearch Service (https://docs.aws.amazon.com/opensearch-service/latest/developerguide/custom-packages.html) // . diff --git a/service/opensearch/validators.go b/service/opensearch/validators.go index 5877f557283..7b9955b1fe4 100644 --- a/service/opensearch/validators.go +++ b/service/opensearch/validators.go @@ -390,6 +390,26 @@ func (m *validateOpDescribeDomain) HandleInitialize(ctx context.Context, in midd return next.HandleInitialize(ctx, in) } +type validateOpDescribeDomainNodes struct { +} + +func (*validateOpDescribeDomainNodes) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDescribeDomainNodes) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DescribeDomainNodesInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDescribeDomainNodesInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpDescribeDomains struct { } @@ -966,6 +986,10 @@ func addOpDescribeDomainValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDescribeDomain{}, middleware.After) } +func addOpDescribeDomainNodesValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDescribeDomainNodes{}, middleware.After) +} + func addOpDescribeDomainsValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDescribeDomains{}, middleware.After) } @@ -1604,6 +1628,21 @@ func validateOpDescribeDomainInput(v *DescribeDomainInput) error { } } +func validateOpDescribeDomainNodesInput(v *DescribeDomainNodesInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DescribeDomainNodesInput"} + if v.DomainName == nil { + invalidParams.Add(smithy.NewErrParamRequired("DomainName")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpDescribeDomainsInput(v *DescribeDomainsInput) error { if v == nil { return nil diff --git a/service/opensearchserverless/internal/endpoints/endpoints.go b/service/opensearchserverless/internal/endpoints/endpoints.go index 86e71aba166..f6d383d24f1 100644 --- a/service/opensearchserverless/internal/endpoints/endpoints.go +++ b/service/opensearchserverless/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -238,6 +240,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "aoss-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "aoss.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/opsworks/internal/endpoints/endpoints.go b/service/opsworks/internal/endpoints/endpoints.go index 30f628c134c..e69c1045477 100644 --- a/service/opsworks/internal/endpoints/endpoints.go +++ b/service/opsworks/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -259,6 +261,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "opsworks-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "opsworks.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/opsworkscm/internal/endpoints/endpoints.go b/service/opsworkscm/internal/endpoints/endpoints.go index fa6b87e5e84..5d8a2c481fe 100644 --- a/service/opsworkscm/internal/endpoints/endpoints.go +++ b/service/opsworkscm/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -241,6 +243,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "opsworks-cm-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "opsworks-cm.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/organizations/internal/endpoints/endpoints.go b/service/organizations/internal/endpoints/endpoints.go index ef16dc11cf4..560023ac607 100644 --- a/service/organizations/internal/endpoints/endpoints.go +++ b/service/organizations/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -252,6 +254,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "organizations-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "organizations.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/osis/internal/endpoints/endpoints.go b/service/osis/internal/endpoints/endpoints.go index a6383f67d00..208a0099fbb 100644 --- a/service/osis/internal/endpoints/endpoints.go +++ b/service/osis/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -244,6 +246,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "osis-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "osis.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/outposts/internal/endpoints/endpoints.go b/service/outposts/internal/endpoints/endpoints.go index 59ca6ef210c..7a01b28171c 100644 --- a/service/outposts/internal/endpoints/endpoints.go +++ b/service/outposts/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -360,6 +362,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "outposts-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "outposts.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/panorama/internal/endpoints/endpoints.go b/service/panorama/internal/endpoints/endpoints.go index edb6da6ee3e..827fbf7099c 100644 --- a/service/panorama/internal/endpoints/endpoints.go +++ b/service/panorama/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -212,6 +214,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "panorama-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "panorama.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/personalize/internal/endpoints/endpoints.go b/service/personalize/internal/endpoints/endpoints.go index 610041a6379..c1360107ef4 100644 --- a/service/personalize/internal/endpoints/endpoints.go +++ b/service/personalize/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -252,6 +254,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "personalize-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "personalize.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/personalizeevents/internal/endpoints/endpoints.go b/service/personalizeevents/internal/endpoints/endpoints.go index 30c116e568f..d72d6c078b3 100644 --- a/service/personalizeevents/internal/endpoints/endpoints.go +++ b/service/personalizeevents/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -212,6 +214,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "personalize-events-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "personalize-events.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/personalizeruntime/internal/endpoints/endpoints.go b/service/personalizeruntime/internal/endpoints/endpoints.go index e1ffeb23a5a..3b669d4d268 100644 --- a/service/personalizeruntime/internal/endpoints/endpoints.go +++ b/service/personalizeruntime/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -212,6 +214,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "personalize-runtime-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "personalize-runtime.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/pi/internal/endpoints/endpoints.go b/service/pi/internal/endpoints/endpoints.go index ca57aa86d10..008d27bd7d1 100644 --- a/service/pi/internal/endpoints/endpoints.go +++ b/service/pi/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -303,6 +305,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "pi-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "pi.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/pinpoint/internal/endpoints/endpoints.go b/service/pinpoint/internal/endpoints/endpoints.go index 1f545bc751b..641aebbb1fe 100644 --- a/service/pinpoint/internal/endpoints/endpoints.go +++ b/service/pinpoint/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -354,6 +356,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "pinpoint-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "pinpoint.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/pinpointemail/internal/endpoints/endpoints.go b/service/pinpointemail/internal/endpoints/endpoints.go index b3538b1c254..c8286306d32 100644 --- a/service/pinpointemail/internal/endpoints/endpoints.go +++ b/service/pinpointemail/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -307,6 +309,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "email-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "email.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/pinpointsmsvoice/internal/endpoints/endpoints.go b/service/pinpointsmsvoice/internal/endpoints/endpoints.go index 4b721da776d..c76c2981a8f 100644 --- a/service/pinpointsmsvoice/internal/endpoints/endpoints.go +++ b/service/pinpointsmsvoice/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -212,6 +214,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "sms-voice.pinpoint-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "sms-voice.pinpoint.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/pinpointsmsvoicev2/internal/endpoints/endpoints.go b/service/pinpointsmsvoicev2/internal/endpoints/endpoints.go index d54128710c8..9ee49484006 100644 --- a/service/pinpointsmsvoicev2/internal/endpoints/endpoints.go +++ b/service/pinpointsmsvoicev2/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -289,6 +291,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "sms-voice-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "sms-voice.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/pipes/internal/endpoints/endpoints.go b/service/pipes/internal/endpoints/endpoints.go index a9dba422b2c..d4cd76ec15e 100644 --- a/service/pipes/internal/endpoints/endpoints.go +++ b/service/pipes/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -283,6 +285,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "pipes-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "pipes.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/polly/internal/endpoints/endpoints.go b/service/polly/internal/endpoints/endpoints.go index ba46828fba7..7b5cbbdb40e 100644 --- a/service/polly/internal/endpoints/endpoints.go +++ b/service/polly/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -339,6 +341,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "polly-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "polly.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/pricing/internal/endpoints/endpoints.go b/service/pricing/internal/endpoints/endpoints.go index 45090b8c596..24778772312 100644 --- a/service/pricing/internal/endpoints/endpoints.go +++ b/service/pricing/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -232,6 +234,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "api.pricing-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "api.pricing.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/privatenetworks/internal/endpoints/endpoints.go b/service/privatenetworks/internal/endpoints/endpoints.go index e89f58159cd..3bbd47aa9f1 100644 --- a/service/privatenetworks/internal/endpoints/endpoints.go +++ b/service/privatenetworks/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -212,6 +214,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "private-networks-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "private-networks.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/proton/internal/endpoints/endpoints.go b/service/proton/internal/endpoints/endpoints.go index 87ae75e2058..2735b9e1cd0 100644 --- a/service/proton/internal/endpoints/endpoints.go +++ b/service/proton/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -247,6 +249,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "proton-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "proton.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/qldb/internal/endpoints/endpoints.go b/service/qldb/internal/endpoints/endpoints.go index 436a4b3e6ec..2914a46afe4 100644 --- a/service/qldb/internal/endpoints/endpoints.go +++ b/service/qldb/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -307,6 +309,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "qldb-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "qldb.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/qldbsession/internal/endpoints/endpoints.go b/service/qldbsession/internal/endpoints/endpoints.go index b8c73614349..1c52f96d06e 100644 --- a/service/qldbsession/internal/endpoints/endpoints.go +++ b/service/qldbsession/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -292,6 +294,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "session.qldb-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "session.qldb.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/quicksight/api_op_CreateDataSet.go b/service/quicksight/api_op_CreateDataSet.go index f39db3e6cee..499e41749af 100644 --- a/service/quicksight/api_op_CreateDataSet.go +++ b/service/quicksight/api_op_CreateDataSet.go @@ -68,6 +68,9 @@ type CreateDataSetInput struct { // as a source. DataSetUsageConfiguration *types.DataSetUsageConfiguration + // The parameter declarations of the dataset. + DatasetParameters []types.DatasetParameter + // The folder that contains fields and nested subfolders for your dataset. FieldFolders map[string]types.FieldFolder diff --git a/service/quicksight/api_op_CreateIAMPolicyAssignment.go b/service/quicksight/api_op_CreateIAMPolicyAssignment.go index b246b23550c..c7f81a0c0ad 100644 --- a/service/quicksight/api_op_CreateIAMPolicyAssignment.go +++ b/service/quicksight/api_op_CreateIAMPolicyAssignment.go @@ -33,8 +33,8 @@ func (c *Client) CreateIAMPolicyAssignment(ctx context.Context, params *CreateIA type CreateIAMPolicyAssignmentInput struct { - // The name of the assignment, also called a rule. It must be unique within an - // Amazon Web Services account. + // The name of the assignment, also called a rule. The name must be unique within + // the Amazon Web Services account. // // This member is required. AssignmentName *string @@ -76,7 +76,7 @@ type CreateIAMPolicyAssignmentOutput struct { // The ID for the assignment. AssignmentId *string - // The name of the assignment. This name must be unique within the Amazon Web + // The name of the assignment. The name must be unique within the Amazon Web // Services account. AssignmentName *string diff --git a/service/quicksight/api_op_CreateTopic.go b/service/quicksight/api_op_CreateTopic.go new file mode 100644 index 00000000000..62de3ba0489 --- /dev/null +++ b/service/quicksight/api_op_CreateTopic.go @@ -0,0 +1,152 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package quicksight + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/quicksight/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Creates a new Q topic. +func (c *Client) CreateTopic(ctx context.Context, params *CreateTopicInput, optFns ...func(*Options)) (*CreateTopicOutput, error) { + if params == nil { + params = &CreateTopicInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "CreateTopic", params, optFns, c.addOperationCreateTopicMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*CreateTopicOutput) + out.ResultMetadata = metadata + return out, nil +} + +type CreateTopicInput struct { + + // The ID of the Amazon Web Services account that you want to create a topic in. + // + // This member is required. + AwsAccountId *string + + // The definition of a topic to create. + // + // This member is required. + Topic *types.TopicDetails + + // The ID for the topic that you want to create. This ID is unique per Amazon Web + // Services Region for each Amazon Web Services account. + // + // This member is required. + TopicId *string + + // Contains a map of the key-value pairs for the resource tag or tags that are + // assigned to the dataset. + Tags []types.Tag + + noSmithyDocumentSerde +} + +type CreateTopicOutput struct { + + // The Amazon Resource Name (ARN) of the topic. + Arn *string + + // The Amazon Resource Name (ARN) of the topic refresh. + RefreshArn *string + + // The Amazon Web Services request ID for this operation. + RequestId *string + + // The HTTP status of the request. + Status int32 + + // The ID for the topic that you want to create. This ID is unique per Amazon Web + // Services Region for each Amazon Web Services account. + TopicId *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationCreateTopicMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpCreateTopic{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCreateTopic{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpCreateTopicValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateTopic(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opCreateTopic(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "quicksight", + OperationName: "CreateTopic", + } +} diff --git a/service/quicksight/api_op_CreateTopicRefreshSchedule.go b/service/quicksight/api_op_CreateTopicRefreshSchedule.go new file mode 100644 index 00000000000..6d41c0e39b6 --- /dev/null +++ b/service/quicksight/api_op_CreateTopicRefreshSchedule.go @@ -0,0 +1,157 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package quicksight + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/quicksight/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Creates a topic refresh schedule. +func (c *Client) CreateTopicRefreshSchedule(ctx context.Context, params *CreateTopicRefreshScheduleInput, optFns ...func(*Options)) (*CreateTopicRefreshScheduleOutput, error) { + if params == nil { + params = &CreateTopicRefreshScheduleInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "CreateTopicRefreshSchedule", params, optFns, c.addOperationCreateTopicRefreshScheduleMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*CreateTopicRefreshScheduleOutput) + out.ResultMetadata = metadata + return out, nil +} + +type CreateTopicRefreshScheduleInput struct { + + // The ID of the Amazon Web Services account that contains the topic you're + // creating a refresh schedule for. + // + // This member is required. + AwsAccountId *string + + // The Amazon Resource Name (ARN) of the dataset. + // + // This member is required. + DatasetArn *string + + // The definition of a refresh schedule. + // + // This member is required. + RefreshSchedule *types.TopicRefreshSchedule + + // The ID of the topic that you want to modify. This ID is unique per Amazon Web + // Services Region for each Amazon Web Services account. + // + // This member is required. + TopicId *string + + // The name of the dataset. + DatasetName *string + + noSmithyDocumentSerde +} + +type CreateTopicRefreshScheduleOutput struct { + + // The Amazon Resource Name (ARN) of the dataset. + DatasetArn *string + + // The Amazon Web Services request ID for this operation. + RequestId *string + + // The HTTP status of the request. + Status int32 + + // The Amazon Resource Name (ARN) of the topic. + TopicArn *string + + // The ID of the topic that you want to modify. This ID is unique per Amazon Web + // Services Region for each Amazon Web Services account. + TopicId *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationCreateTopicRefreshScheduleMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpCreateTopicRefreshSchedule{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCreateTopicRefreshSchedule{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpCreateTopicRefreshScheduleValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateTopicRefreshSchedule(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opCreateTopicRefreshSchedule(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "quicksight", + OperationName: "CreateTopicRefreshSchedule", + } +} diff --git a/service/quicksight/api_op_CreateVPCConnection.go b/service/quicksight/api_op_CreateVPCConnection.go new file mode 100644 index 00000000000..07cddc62419 --- /dev/null +++ b/service/quicksight/api_op_CreateVPCConnection.go @@ -0,0 +1,175 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package quicksight + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/quicksight/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Creates a new VPC connection. +func (c *Client) CreateVPCConnection(ctx context.Context, params *CreateVPCConnectionInput, optFns ...func(*Options)) (*CreateVPCConnectionOutput, error) { + if params == nil { + params = &CreateVPCConnectionInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "CreateVPCConnection", params, optFns, c.addOperationCreateVPCConnectionMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*CreateVPCConnectionOutput) + out.ResultMetadata = metadata + return out, nil +} + +type CreateVPCConnectionInput struct { + + // The Amazon Web Services account ID of the account where you want to create a + // new VPC connection. + // + // This member is required. + AwsAccountId *string + + // The display name for the VPC connection. + // + // This member is required. + Name *string + + // The IAM role to associate with the VPC connection. + // + // This member is required. + RoleArn *string + + // A list of security group IDs for the VPC connection. + // + // This member is required. + SecurityGroupIds []string + + // A list of subnet IDs for the VPC connection. + // + // This member is required. + SubnetIds []string + + // The ID of the VPC connection that you're creating. This ID is a unique + // identifier for each Amazon Web Services Region in an Amazon Web Services + // account. + // + // This member is required. + VPCConnectionId *string + + // A list of IP addresses of DNS resolver endpoints for the VPC connection. + DnsResolvers []string + + // A map of the key-value pairs for the resource tag or tags assigned to the VPC + // connection. + Tags []types.Tag + + noSmithyDocumentSerde +} + +type CreateVPCConnectionOutput struct { + + // The Amazon Resource Name (ARN) of the VPC connection. + Arn *string + + // The availability status of the VPC connection. + AvailabilityStatus types.VPCConnectionAvailabilityStatus + + // The status of the creation of the VPC connection. + CreationStatus types.VPCConnectionResourceStatus + + // The Amazon Web Services request ID for this operation. + RequestId *string + + // The HTTP status of the request. + Status int32 + + // The ID for the VPC connection that you're creating. This ID is unique per + // Amazon Web Services Region for each Amazon Web Services account. + VPCConnectionId *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationCreateVPCConnectionMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpCreateVPCConnection{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCreateVPCConnection{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpCreateVPCConnectionValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateVPCConnection(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opCreateVPCConnection(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "quicksight", + OperationName: "CreateVPCConnection", + } +} diff --git a/service/quicksight/api_op_DeleteTopic.go b/service/quicksight/api_op_DeleteTopic.go new file mode 100644 index 00000000000..c7b5c6ccf38 --- /dev/null +++ b/service/quicksight/api_op_DeleteTopic.go @@ -0,0 +1,140 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package quicksight + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Deletes a topic. +func (c *Client) DeleteTopic(ctx context.Context, params *DeleteTopicInput, optFns ...func(*Options)) (*DeleteTopicOutput, error) { + if params == nil { + params = &DeleteTopicInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DeleteTopic", params, optFns, c.addOperationDeleteTopicMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DeleteTopicOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DeleteTopicInput struct { + + // The ID of the Amazon Web Services account that contains the topic that you want + // to delete. + // + // This member is required. + AwsAccountId *string + + // The ID of the topic that you want to delete. This ID is unique per Amazon Web + // Services Region for each Amazon Web Services account. + // + // This member is required. + TopicId *string + + noSmithyDocumentSerde +} + +type DeleteTopicOutput struct { + + // The Amazon Resource Name (ARN) of the topic. + Arn *string + + // The Amazon Web Services request ID for this operation. + RequestId *string + + // The HTTP status of the request. + Status int32 + + // The ID of the topic that you want to delete. This ID is unique per Amazon Web + // Services Region for each Amazon Web Services account. + TopicId *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDeleteTopicMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpDeleteTopic{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeleteTopic{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpDeleteTopicValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteTopic(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opDeleteTopic(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "quicksight", + OperationName: "DeleteTopic", + } +} diff --git a/service/quicksight/api_op_DeleteTopicRefreshSchedule.go b/service/quicksight/api_op_DeleteTopicRefreshSchedule.go new file mode 100644 index 00000000000..890796512a6 --- /dev/null +++ b/service/quicksight/api_op_DeleteTopicRefreshSchedule.go @@ -0,0 +1,147 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package quicksight + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Deletes a topic refresh schedule. +func (c *Client) DeleteTopicRefreshSchedule(ctx context.Context, params *DeleteTopicRefreshScheduleInput, optFns ...func(*Options)) (*DeleteTopicRefreshScheduleOutput, error) { + if params == nil { + params = &DeleteTopicRefreshScheduleInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DeleteTopicRefreshSchedule", params, optFns, c.addOperationDeleteTopicRefreshScheduleMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DeleteTopicRefreshScheduleOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DeleteTopicRefreshScheduleInput struct { + + // The Amazon Web Services account ID. + // + // This member is required. + AwsAccountId *string + + // The ID of the dataset. + // + // This member is required. + DatasetId *string + + // The ID of the topic that you want to modify. This ID is unique per Amazon Web + // Services Region for each Amazon Web Services account. + // + // This member is required. + TopicId *string + + noSmithyDocumentSerde +} + +type DeleteTopicRefreshScheduleOutput struct { + + // The Amazon Resource Name (ARN) of the dataset. + DatasetArn *string + + // The Amazon Web Services request ID for this operation. + RequestId *string + + // The HTTP status of the request. + Status int32 + + // The Amazon Resource Name (ARN) of the topic. + TopicArn *string + + // The ID of the topic that you want to modify. This ID is unique per Amazon Web + // Services Region for each Amazon Web Services account. + TopicId *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDeleteTopicRefreshScheduleMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpDeleteTopicRefreshSchedule{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeleteTopicRefreshSchedule{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpDeleteTopicRefreshScheduleValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteTopicRefreshSchedule(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opDeleteTopicRefreshSchedule(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "quicksight", + OperationName: "DeleteTopicRefreshSchedule", + } +} diff --git a/service/quicksight/api_op_DeleteVPCConnection.go b/service/quicksight/api_op_DeleteVPCConnection.go new file mode 100644 index 00000000000..1c0a874f2ff --- /dev/null +++ b/service/quicksight/api_op_DeleteVPCConnection.go @@ -0,0 +1,149 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package quicksight + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/quicksight/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Deletes a VPC connection. +func (c *Client) DeleteVPCConnection(ctx context.Context, params *DeleteVPCConnectionInput, optFns ...func(*Options)) (*DeleteVPCConnectionOutput, error) { + if params == nil { + params = &DeleteVPCConnectionInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DeleteVPCConnection", params, optFns, c.addOperationDeleteVPCConnectionMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DeleteVPCConnectionOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DeleteVPCConnectionInput struct { + + // The Amazon Web Services account ID of the account where you want to delete a + // VPC connection. + // + // This member is required. + AwsAccountId *string + + // The ID of the VPC connection that you're creating. This ID is a unique + // identifier for each Amazon Web Services Region in an Amazon Web Services + // account. + // + // This member is required. + VPCConnectionId *string + + noSmithyDocumentSerde +} + +type DeleteVPCConnectionOutput struct { + + // The Amazon Resource Name (ARN) of the deleted VPC connection. + Arn *string + + // The availability status of the VPC connection. + AvailabilityStatus types.VPCConnectionAvailabilityStatus + + // The deletion status of the VPC connection. + DeletionStatus types.VPCConnectionResourceStatus + + // The Amazon Web Services request ID for this operation. + RequestId *string + + // The HTTP status of the request. + Status int32 + + // The ID of the VPC connection that you're creating. This ID is a unique + // identifier for each Amazon Web Services Region in an Amazon Web Services + // account. + VPCConnectionId *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDeleteVPCConnectionMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpDeleteVPCConnection{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeleteVPCConnection{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpDeleteVPCConnectionValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteVPCConnection(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opDeleteVPCConnection(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "quicksight", + OperationName: "DeleteVPCConnection", + } +} diff --git a/service/quicksight/api_op_DescribeTopic.go b/service/quicksight/api_op_DescribeTopic.go new file mode 100644 index 00000000000..db739938350 --- /dev/null +++ b/service/quicksight/api_op_DescribeTopic.go @@ -0,0 +1,143 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package quicksight + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/quicksight/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Describes a topic. +func (c *Client) DescribeTopic(ctx context.Context, params *DescribeTopicInput, optFns ...func(*Options)) (*DescribeTopicOutput, error) { + if params == nil { + params = &DescribeTopicInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DescribeTopic", params, optFns, c.addOperationDescribeTopicMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DescribeTopicOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DescribeTopicInput struct { + + // The Amazon Web Services account ID. + // + // This member is required. + AwsAccountId *string + + // The ID of the topic that you want to describe. This ID is unique per Amazon Web + // Services Region for each Amazon Web Services account. + // + // This member is required. + TopicId *string + + noSmithyDocumentSerde +} + +type DescribeTopicOutput struct { + + // The Amazon Resource Name (ARN) of the topic. + Arn *string + + // The Amazon Web Services request ID for this operation. + RequestId *string + + // The HTTP status of the request. + Status int32 + + // The definition of a topic. + Topic *types.TopicDetails + + // The ID of the topic that you want to describe. This ID is unique per Amazon Web + // Services Region for each Amazon Web Services account. + TopicId *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDescribeTopicMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpDescribeTopic{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDescribeTopic{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpDescribeTopicValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeTopic(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opDescribeTopic(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "quicksight", + OperationName: "DescribeTopic", + } +} diff --git a/service/quicksight/api_op_DescribeTopicPermissions.go b/service/quicksight/api_op_DescribeTopicPermissions.go new file mode 100644 index 00000000000..ca927176b1f --- /dev/null +++ b/service/quicksight/api_op_DescribeTopicPermissions.go @@ -0,0 +1,144 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package quicksight + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/quicksight/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Describes the permissions of a topic. +func (c *Client) DescribeTopicPermissions(ctx context.Context, params *DescribeTopicPermissionsInput, optFns ...func(*Options)) (*DescribeTopicPermissionsOutput, error) { + if params == nil { + params = &DescribeTopicPermissionsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DescribeTopicPermissions", params, optFns, c.addOperationDescribeTopicPermissionsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DescribeTopicPermissionsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DescribeTopicPermissionsInput struct { + + // The ID of the Amazon Web Services account that contains the topic that you want + // described. + // + // This member is required. + AwsAccountId *string + + // The ID of the topic that you want to describe. This ID is unique per Amazon Web + // Services Region for each Amazon Web Services account. + // + // This member is required. + TopicId *string + + noSmithyDocumentSerde +} + +type DescribeTopicPermissionsOutput struct { + + // A list of resource permissions that are configured to the topic. + Permissions []types.ResourcePermission + + // The Amazon Web Services request ID for this operation. + RequestId *string + + // The HTTP status of the request. + Status int32 + + // The Amazon Resource Name (ARN) of the topic. + TopicArn *string + + // The ID of the topic that you want to describe. This ID is unique per Amazon Web + // Services Region for each Amazon Web Services account. + TopicId *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDescribeTopicPermissionsMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpDescribeTopicPermissions{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDescribeTopicPermissions{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpDescribeTopicPermissionsValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeTopicPermissions(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opDescribeTopicPermissions(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "quicksight", + OperationName: "DescribeTopicPermissions", + } +} diff --git a/service/quicksight/api_op_DescribeTopicRefresh.go b/service/quicksight/api_op_DescribeTopicRefresh.go new file mode 100644 index 00000000000..9d44621b557 --- /dev/null +++ b/service/quicksight/api_op_DescribeTopicRefresh.go @@ -0,0 +1,142 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package quicksight + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/quicksight/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Describes the status of a topic refresh. +func (c *Client) DescribeTopicRefresh(ctx context.Context, params *DescribeTopicRefreshInput, optFns ...func(*Options)) (*DescribeTopicRefreshOutput, error) { + if params == nil { + params = &DescribeTopicRefreshInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DescribeTopicRefresh", params, optFns, c.addOperationDescribeTopicRefreshMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DescribeTopicRefreshOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DescribeTopicRefreshInput struct { + + // The ID of the Amazon Web Services account that contains the topic whose refresh + // you want to describe. + // + // This member is required. + AwsAccountId *string + + // The ID of the refresh, which is performed when the topic is created or updated. + // + // This member is required. + RefreshId *string + + // The ID of the topic that you want to describe. This ID is unique per Amazon Web + // Services Region for each Amazon Web Services account. + // + // This member is required. + TopicId *string + + noSmithyDocumentSerde +} + +type DescribeTopicRefreshOutput struct { + + // Details of the refresh, which is performed when the topic is created or updated. + RefreshDetails *types.TopicRefreshDetails + + // The Amazon Web Services request ID for this operation. + RequestId *string + + // The HTTP status of the request. + Status int32 + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDescribeTopicRefreshMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpDescribeTopicRefresh{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDescribeTopicRefresh{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpDescribeTopicRefreshValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeTopicRefresh(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opDescribeTopicRefresh(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "quicksight", + OperationName: "DescribeTopicRefresh", + } +} diff --git a/service/quicksight/api_op_DescribeTopicRefreshSchedule.go b/service/quicksight/api_op_DescribeTopicRefreshSchedule.go new file mode 100644 index 00000000000..4a80a0f857b --- /dev/null +++ b/service/quicksight/api_op_DescribeTopicRefreshSchedule.go @@ -0,0 +1,153 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package quicksight + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/quicksight/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Deletes a topic refresh schedule. +func (c *Client) DescribeTopicRefreshSchedule(ctx context.Context, params *DescribeTopicRefreshScheduleInput, optFns ...func(*Options)) (*DescribeTopicRefreshScheduleOutput, error) { + if params == nil { + params = &DescribeTopicRefreshScheduleInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DescribeTopicRefreshSchedule", params, optFns, c.addOperationDescribeTopicRefreshScheduleMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DescribeTopicRefreshScheduleOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DescribeTopicRefreshScheduleInput struct { + + // The Amazon Web Services account ID. + // + // This member is required. + AwsAccountId *string + + // The ID of the dataset. + // + // This member is required. + DatasetId *string + + // The ID of the topic that contains the refresh schedule that you want to + // describe. This ID is unique per Amazon Web Services Region for each Amazon Web + // Services account. + // + // This member is required. + TopicId *string + + noSmithyDocumentSerde +} + +type DescribeTopicRefreshScheduleOutput struct { + + // The Amazon Resource Name (ARN) of the dataset. + DatasetArn *string + + // The definition of a refresh schedule. + RefreshSchedule *types.TopicRefreshSchedule + + // The Amazon Web Services request ID for this operation. + RequestId *string + + // The HTTP status of the request. + Status int32 + + // The Amazon Resource Name (ARN) of the topic. + TopicArn *string + + // The ID of the topic that contains the refresh schedule that you want to + // describe. This ID is unique per Amazon Web Services Region for each Amazon Web + // Services account. + TopicId *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDescribeTopicRefreshScheduleMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpDescribeTopicRefreshSchedule{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDescribeTopicRefreshSchedule{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpDescribeTopicRefreshScheduleValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeTopicRefreshSchedule(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opDescribeTopicRefreshSchedule(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "quicksight", + OperationName: "DescribeTopicRefreshSchedule", + } +} diff --git a/service/quicksight/api_op_DescribeVPCConnection.go b/service/quicksight/api_op_DescribeVPCConnection.go new file mode 100644 index 00000000000..01288165a30 --- /dev/null +++ b/service/quicksight/api_op_DescribeVPCConnection.go @@ -0,0 +1,138 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package quicksight + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/quicksight/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Describes a VPC connection. +func (c *Client) DescribeVPCConnection(ctx context.Context, params *DescribeVPCConnectionInput, optFns ...func(*Options)) (*DescribeVPCConnectionOutput, error) { + if params == nil { + params = &DescribeVPCConnectionInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DescribeVPCConnection", params, optFns, c.addOperationDescribeVPCConnectionMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DescribeVPCConnectionOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DescribeVPCConnectionInput struct { + + // The Amazon Web Services account ID of the account that contains the VPC + // connection that you want described. + // + // This member is required. + AwsAccountId *string + + // The ID of the VPC connection that you're creating. This ID is a unique + // identifier for each Amazon Web Services Region in an Amazon Web Services + // account. + // + // This member is required. + VPCConnectionId *string + + noSmithyDocumentSerde +} + +type DescribeVPCConnectionOutput struct { + + // The Amazon Web Services request ID for this operation. + RequestId *string + + // The HTTP status of the request. + Status int32 + + // A response object that provides information for the specified VPC connection. + VPCConnection *types.VPCConnection + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDescribeVPCConnectionMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpDescribeVPCConnection{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDescribeVPCConnection{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpDescribeVPCConnectionValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeVPCConnection(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opDescribeVPCConnection(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "quicksight", + OperationName: "DescribeVPCConnection", + } +} diff --git a/service/quicksight/api_op_ListIAMPolicyAssignments.go b/service/quicksight/api_op_ListIAMPolicyAssignments.go index b292a9398a2..b2fe51958ec 100644 --- a/service/quicksight/api_op_ListIAMPolicyAssignments.go +++ b/service/quicksight/api_op_ListIAMPolicyAssignments.go @@ -11,7 +11,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Lists IAM policy assignments in the current Amazon QuickSight account. +// Lists the IAM policy assignments in the current Amazon QuickSight account. func (c *Client) ListIAMPolicyAssignments(ctx context.Context, params *ListIAMPolicyAssignmentsInput, optFns ...func(*Options)) (*ListIAMPolicyAssignmentsOutput, error) { if params == nil { params = &ListIAMPolicyAssignmentsInput{} diff --git a/service/quicksight/api_op_ListIAMPolicyAssignmentsForUser.go b/service/quicksight/api_op_ListIAMPolicyAssignmentsForUser.go index d2cb149f2ad..1c49046e21c 100644 --- a/service/quicksight/api_op_ListIAMPolicyAssignmentsForUser.go +++ b/service/quicksight/api_op_ListIAMPolicyAssignmentsForUser.go @@ -11,8 +11,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Lists all the IAM policy assignments, including the Amazon Resource Names -// (ARNs) for the IAM policies assigned to the specified user and group or groups +// Lists all of the IAM policy assignments, including the Amazon Resource Names +// (ARNs), for the IAM policies assigned to the specified user and group, or groups // that the user belongs to. func (c *Client) ListIAMPolicyAssignmentsForUser(ctx context.Context, params *ListIAMPolicyAssignmentsForUserInput, optFns ...func(*Options)) (*ListIAMPolicyAssignmentsForUserOutput, error) { if params == nil { diff --git a/service/quicksight/api_op_ListTopicRefreshSchedules.go b/service/quicksight/api_op_ListTopicRefreshSchedules.go new file mode 100644 index 00000000000..65b6433175b --- /dev/null +++ b/service/quicksight/api_op_ListTopicRefreshSchedules.go @@ -0,0 +1,144 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package quicksight + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/quicksight/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Lists all of the refresh schedules for a topic. +func (c *Client) ListTopicRefreshSchedules(ctx context.Context, params *ListTopicRefreshSchedulesInput, optFns ...func(*Options)) (*ListTopicRefreshSchedulesOutput, error) { + if params == nil { + params = &ListTopicRefreshSchedulesInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListTopicRefreshSchedules", params, optFns, c.addOperationListTopicRefreshSchedulesMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListTopicRefreshSchedulesOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListTopicRefreshSchedulesInput struct { + + // The ID of the Amazon Web Services account that contains the topic whose refresh + // schedule you want described. + // + // This member is required. + AwsAccountId *string + + // The ID for the topic that you want to describe. This ID is unique per Amazon + // Web Services Region for each Amazon Web Services account. + // + // This member is required. + TopicId *string + + noSmithyDocumentSerde +} + +type ListTopicRefreshSchedulesOutput struct { + + // The list of topic refresh schedules. + RefreshSchedules []types.TopicRefreshScheduleSummary + + // The Amazon Web Services request ID for this operation. + RequestId *string + + // The HTTP status of the request. + Status int32 + + // The Amazon Resource Name (ARN) of the topic. + TopicArn *string + + // The ID for the topic that you want to describe. This ID is unique per Amazon + // Web Services Region for each Amazon Web Services account. + TopicId *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListTopicRefreshSchedulesMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpListTopicRefreshSchedules{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListTopicRefreshSchedules{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpListTopicRefreshSchedulesValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListTopicRefreshSchedules(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opListTopicRefreshSchedules(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "quicksight", + OperationName: "ListTopicRefreshSchedules", + } +} diff --git a/service/quicksight/api_op_ListTopics.go b/service/quicksight/api_op_ListTopics.go new file mode 100644 index 00000000000..e3b2e11205e --- /dev/null +++ b/service/quicksight/api_op_ListTopics.go @@ -0,0 +1,230 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package quicksight + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/quicksight/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Lists all of the topics within an account. +func (c *Client) ListTopics(ctx context.Context, params *ListTopicsInput, optFns ...func(*Options)) (*ListTopicsOutput, error) { + if params == nil { + params = &ListTopicsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListTopics", params, optFns, c.addOperationListTopicsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListTopicsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListTopicsInput struct { + + // The ID of the Amazon Web Services account that contains the topics that you + // want to list. + // + // This member is required. + AwsAccountId *string + + // The maximum number of results to be returned per request. + MaxResults *int32 + + // The token for the next set of results, or null if there are no more results. + NextToken *string + + noSmithyDocumentSerde +} + +type ListTopicsOutput struct { + + // The token for the next set of results, or null if there are no more results. + NextToken *string + + // The Amazon Web Services request ID for this operation. + RequestId *string + + // The HTTP status of the request. + Status int32 + + // A list of topic summaries. + TopicsSummaries []types.TopicSummary + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListTopicsMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpListTopics{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListTopics{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpListTopicsValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListTopics(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +// ListTopicsAPIClient is a client that implements the ListTopics operation. +type ListTopicsAPIClient interface { + ListTopics(context.Context, *ListTopicsInput, ...func(*Options)) (*ListTopicsOutput, error) +} + +var _ ListTopicsAPIClient = (*Client)(nil) + +// ListTopicsPaginatorOptions is the paginator options for ListTopics +type ListTopicsPaginatorOptions struct { + // The maximum number of results to be returned per request. + Limit int32 + + // Set to true if pagination should stop if the service returns a pagination token + // that matches the most recent token provided to the service. + StopOnDuplicateToken bool +} + +// ListTopicsPaginator is a paginator for ListTopics +type ListTopicsPaginator struct { + options ListTopicsPaginatorOptions + client ListTopicsAPIClient + params *ListTopicsInput + nextToken *string + firstPage bool +} + +// NewListTopicsPaginator returns a new ListTopicsPaginator +func NewListTopicsPaginator(client ListTopicsAPIClient, params *ListTopicsInput, optFns ...func(*ListTopicsPaginatorOptions)) *ListTopicsPaginator { + if params == nil { + params = &ListTopicsInput{} + } + + options := ListTopicsPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &ListTopicsPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + nextToken: params.NextToken, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *ListTopicsPaginator) HasMorePages() bool { + return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) +} + +// NextPage retrieves the next ListTopics page. +func (p *ListTopicsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListTopicsOutput, error) { + if !p.HasMorePages() { + return nil, fmt.Errorf("no more pages available") + } + + params := *p.params + params.NextToken = p.nextToken + + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit + + result, err := p.client.ListTopics(ctx, ¶ms, optFns...) + if err != nil { + return nil, err + } + p.firstPage = false + + prevToken := p.nextToken + p.nextToken = result.NextToken + + if p.options.StopOnDuplicateToken && + prevToken != nil && + p.nextToken != nil && + *prevToken == *p.nextToken { + p.nextToken = nil + } + + return result, nil +} + +func newServiceMetadataMiddleware_opListTopics(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "quicksight", + OperationName: "ListTopics", + } +} diff --git a/service/quicksight/api_op_ListVPCConnections.go b/service/quicksight/api_op_ListVPCConnections.go new file mode 100644 index 00000000000..1afd39df615 --- /dev/null +++ b/service/quicksight/api_op_ListVPCConnections.go @@ -0,0 +1,234 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package quicksight + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/quicksight/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Lists all of the VPC connections in the current set Amazon Web Services Region +// of an Amazon Web Services account. +func (c *Client) ListVPCConnections(ctx context.Context, params *ListVPCConnectionsInput, optFns ...func(*Options)) (*ListVPCConnectionsOutput, error) { + if params == nil { + params = &ListVPCConnectionsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListVPCConnections", params, optFns, c.addOperationListVPCConnectionsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListVPCConnectionsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListVPCConnectionsInput struct { + + // The Amazon Web Services account ID of the account that contains the VPC + // connections that you want to list. + // + // This member is required. + AwsAccountId *string + + // The maximum number of results to be returned per request. + MaxResults *int32 + + // The token for the next set of results, or null if there are no more results. + NextToken *string + + noSmithyDocumentSerde +} + +type ListVPCConnectionsOutput struct { + + // The token for the next set of results, or null if there are no more results. + NextToken *string + + // The Amazon Web Services request ID for this operation. + RequestId *string + + // The HTTP status of the request. + Status int32 + + // A VPCConnectionSummaries object that returns a summary of VPC connection + // objects. + VPCConnectionSummaries []types.VPCConnectionSummary + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListVPCConnectionsMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpListVPCConnections{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListVPCConnections{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpListVPCConnectionsValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListVPCConnections(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +// ListVPCConnectionsAPIClient is a client that implements the ListVPCConnections +// operation. +type ListVPCConnectionsAPIClient interface { + ListVPCConnections(context.Context, *ListVPCConnectionsInput, ...func(*Options)) (*ListVPCConnectionsOutput, error) +} + +var _ ListVPCConnectionsAPIClient = (*Client)(nil) + +// ListVPCConnectionsPaginatorOptions is the paginator options for +// ListVPCConnections +type ListVPCConnectionsPaginatorOptions struct { + // The maximum number of results to be returned per request. + Limit int32 + + // Set to true if pagination should stop if the service returns a pagination token + // that matches the most recent token provided to the service. + StopOnDuplicateToken bool +} + +// ListVPCConnectionsPaginator is a paginator for ListVPCConnections +type ListVPCConnectionsPaginator struct { + options ListVPCConnectionsPaginatorOptions + client ListVPCConnectionsAPIClient + params *ListVPCConnectionsInput + nextToken *string + firstPage bool +} + +// NewListVPCConnectionsPaginator returns a new ListVPCConnectionsPaginator +func NewListVPCConnectionsPaginator(client ListVPCConnectionsAPIClient, params *ListVPCConnectionsInput, optFns ...func(*ListVPCConnectionsPaginatorOptions)) *ListVPCConnectionsPaginator { + if params == nil { + params = &ListVPCConnectionsInput{} + } + + options := ListVPCConnectionsPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &ListVPCConnectionsPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + nextToken: params.NextToken, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *ListVPCConnectionsPaginator) HasMorePages() bool { + return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) +} + +// NextPage retrieves the next ListVPCConnections page. +func (p *ListVPCConnectionsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListVPCConnectionsOutput, error) { + if !p.HasMorePages() { + return nil, fmt.Errorf("no more pages available") + } + + params := *p.params + params.NextToken = p.nextToken + + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit + + result, err := p.client.ListVPCConnections(ctx, ¶ms, optFns...) + if err != nil { + return nil, err + } + p.firstPage = false + + prevToken := p.nextToken + p.nextToken = result.NextToken + + if p.options.StopOnDuplicateToken && + prevToken != nil && + p.nextToken != nil && + *prevToken == *p.nextToken { + p.nextToken = nil + } + + return result, nil +} + +func newServiceMetadataMiddleware_opListVPCConnections(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "quicksight", + OperationName: "ListVPCConnections", + } +} diff --git a/service/quicksight/api_op_TagResource.go b/service/quicksight/api_op_TagResource.go index 5b21ed7db74..3a8cf1f3331 100644 --- a/service/quicksight/api_op_TagResource.go +++ b/service/quicksight/api_op_TagResource.go @@ -20,9 +20,9 @@ import ( // resource. If you specify a tag key that is already associated with the resource, // the new tag value that you specify replaces the previous value for that tag. You // can associate as many as 50 tags with a resource. Amazon QuickSight supports -// tagging on data set, data source, dashboard, and template. Tagging for Amazon -// QuickSight works in a similar way to tagging for other Amazon Web Services -// services, except for the following: +// tagging on data set, data source, dashboard, template, and topic. Tagging for +// Amazon QuickSight works in a similar way to tagging for other Amazon Web +// Services services, except for the following: // - You can't use tags to track costs for Amazon QuickSight. This isn't // possible because you can't tag the resources that Amazon QuickSight costs are // based on, for example Amazon QuickSight storage capacity (SPICE), number of diff --git a/service/quicksight/api_op_UpdateDataSet.go b/service/quicksight/api_op_UpdateDataSet.go index 3826e485faa..e675356910b 100644 --- a/service/quicksight/api_op_UpdateDataSet.go +++ b/service/quicksight/api_op_UpdateDataSet.go @@ -68,6 +68,9 @@ type UpdateDataSetInput struct { // as a source. DataSetUsageConfiguration *types.DataSetUsageConfiguration + // The parameter declarations of the dataset. + DatasetParameters []types.DatasetParameter + // The folder that contains fields and nested subfolders for your dataset. FieldFolders map[string]types.FieldFolder diff --git a/service/quicksight/api_op_UpdateIAMPolicyAssignment.go b/service/quicksight/api_op_UpdateIAMPolicyAssignment.go index a2b8e03ff67..26be12d0b24 100644 --- a/service/quicksight/api_op_UpdateIAMPolicyAssignment.go +++ b/service/quicksight/api_op_UpdateIAMPolicyAssignment.go @@ -31,8 +31,8 @@ func (c *Client) UpdateIAMPolicyAssignment(ctx context.Context, params *UpdateIA type UpdateIAMPolicyAssignmentInput struct { - // The name of the assignment, also called a rule. This name must be unique within - // an Amazon Web Services account. + // The name of the assignment, also called a rule. The name must be unique within + // the Amazon Web Services account. // // This member is required. AssignmentName *string diff --git a/service/quicksight/api_op_UpdateIpRestriction.go b/service/quicksight/api_op_UpdateIpRestriction.go index 2bd99d30488..c4c29f5c8d5 100644 --- a/service/quicksight/api_op_UpdateIpRestriction.go +++ b/service/quicksight/api_op_UpdateIpRestriction.go @@ -10,7 +10,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Updates the content and status of IP rules. To use this operation, you need to +// Updates the content and status of IP rules. To use this operation, you must // provide the entire map of rules. You can use the DescribeIpRestriction // operation to get the current rule map. func (c *Client) UpdateIpRestriction(ctx context.Context, params *UpdateIpRestrictionInput, optFns ...func(*Options)) (*UpdateIpRestrictionOutput, error) { diff --git a/service/quicksight/api_op_UpdateTopic.go b/service/quicksight/api_op_UpdateTopic.go new file mode 100644 index 00000000000..1445a3d436f --- /dev/null +++ b/service/quicksight/api_op_UpdateTopic.go @@ -0,0 +1,149 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package quicksight + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/quicksight/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Updates a topic. +func (c *Client) UpdateTopic(ctx context.Context, params *UpdateTopicInput, optFns ...func(*Options)) (*UpdateTopicOutput, error) { + if params == nil { + params = &UpdateTopicInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "UpdateTopic", params, optFns, c.addOperationUpdateTopicMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*UpdateTopicOutput) + out.ResultMetadata = metadata + return out, nil +} + +type UpdateTopicInput struct { + + // The ID of the Amazon Web Services account that contains the topic that you want + // to update. + // + // This member is required. + AwsAccountId *string + + // The definition of the topic that you want to update. + // + // This member is required. + Topic *types.TopicDetails + + // The ID of the topic that you want to modify. This ID is unique per Amazon Web + // Services Region for each Amazon Web Services account. + // + // This member is required. + TopicId *string + + noSmithyDocumentSerde +} + +type UpdateTopicOutput struct { + + // The Amazon Resource Name (ARN) of the topic. + Arn *string + + // The Amazon Resource Name (ARN) of the topic refresh. + RefreshArn *string + + // The Amazon Web Services request ID for this operation. + RequestId *string + + // The HTTP status of the request. + Status int32 + + // The ID of the topic that you want to modify. This ID is unique per Amazon Web + // Services Region for each Amazon Web Services account. + TopicId *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationUpdateTopicMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdateTopic{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdateTopic{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpUpdateTopicValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateTopic(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opUpdateTopic(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "quicksight", + OperationName: "UpdateTopic", + } +} diff --git a/service/quicksight/api_op_UpdateTopicPermissions.go b/service/quicksight/api_op_UpdateTopicPermissions.go new file mode 100644 index 00000000000..e832c471afb --- /dev/null +++ b/service/quicksight/api_op_UpdateTopicPermissions.go @@ -0,0 +1,150 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package quicksight + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/quicksight/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Updates the permissions of a topic. +func (c *Client) UpdateTopicPermissions(ctx context.Context, params *UpdateTopicPermissionsInput, optFns ...func(*Options)) (*UpdateTopicPermissionsOutput, error) { + if params == nil { + params = &UpdateTopicPermissionsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "UpdateTopicPermissions", params, optFns, c.addOperationUpdateTopicPermissionsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*UpdateTopicPermissionsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type UpdateTopicPermissionsInput struct { + + // The ID of the Amazon Web Services account that contains the topic that you want + // to update the permissions for. + // + // This member is required. + AwsAccountId *string + + // The ID of the topic that you want to modify. This ID is unique per Amazon Web + // Services Region for each Amazon Web Services account. + // + // This member is required. + TopicId *string + + // The resource permissions that you want to grant to the topic. + GrantPermissions []types.ResourcePermission + + // The resource permissions that you want to revoke from the topic. + RevokePermissions []types.ResourcePermission + + noSmithyDocumentSerde +} + +type UpdateTopicPermissionsOutput struct { + + // A list of resource permissions on the topic. + Permissions []types.ResourcePermission + + // The Amazon Web Services request ID for this operation. + RequestId *string + + // The HTTP status of the request. + Status int32 + + // The Amazon Resource Name (ARN) of the topic. + TopicArn *string + + // The ID of the topic that you want to modify. This ID is unique per Amazon Web + // Services Region for each Amazon Web Services account. + TopicId *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationUpdateTopicPermissionsMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdateTopicPermissions{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdateTopicPermissions{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpUpdateTopicPermissionsValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateTopicPermissions(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opUpdateTopicPermissions(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "quicksight", + OperationName: "UpdateTopicPermissions", + } +} diff --git a/service/quicksight/api_op_UpdateTopicRefreshSchedule.go b/service/quicksight/api_op_UpdateTopicRefreshSchedule.go new file mode 100644 index 00000000000..779a2135090 --- /dev/null +++ b/service/quicksight/api_op_UpdateTopicRefreshSchedule.go @@ -0,0 +1,154 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package quicksight + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/quicksight/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Updates a topic refresh schedule. +func (c *Client) UpdateTopicRefreshSchedule(ctx context.Context, params *UpdateTopicRefreshScheduleInput, optFns ...func(*Options)) (*UpdateTopicRefreshScheduleOutput, error) { + if params == nil { + params = &UpdateTopicRefreshScheduleInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "UpdateTopicRefreshSchedule", params, optFns, c.addOperationUpdateTopicRefreshScheduleMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*UpdateTopicRefreshScheduleOutput) + out.ResultMetadata = metadata + return out, nil +} + +type UpdateTopicRefreshScheduleInput struct { + + // The ID of the Amazon Web Services account that contains the topic whose refresh + // schedule you want to update. + // + // This member is required. + AwsAccountId *string + + // The ID of the dataset. + // + // This member is required. + DatasetId *string + + // The definition of a refresh schedule. + // + // This member is required. + RefreshSchedule *types.TopicRefreshSchedule + + // The ID of the topic that you want to modify. This ID is unique per Amazon Web + // Services Region for each Amazon Web Services account. + // + // This member is required. + TopicId *string + + noSmithyDocumentSerde +} + +type UpdateTopicRefreshScheduleOutput struct { + + // The Amazon Resource Name (ARN) of the dataset. + DatasetArn *string + + // The Amazon Web Services request ID for this operation. + RequestId *string + + // The HTTP status of the request. + Status int32 + + // The Amazon Resource Name (ARN) of the topic. + TopicArn *string + + // The ID of the topic that you want to modify. This ID is unique per Amazon Web + // Services Region for each Amazon Web Services account. + TopicId *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationUpdateTopicRefreshScheduleMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdateTopicRefreshSchedule{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdateTopicRefreshSchedule{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpUpdateTopicRefreshScheduleValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateTopicRefreshSchedule(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opUpdateTopicRefreshSchedule(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "quicksight", + OperationName: "UpdateTopicRefreshSchedule", + } +} diff --git a/service/quicksight/api_op_UpdateVPCConnection.go b/service/quicksight/api_op_UpdateVPCConnection.go new file mode 100644 index 00000000000..ab3e5b1c333 --- /dev/null +++ b/service/quicksight/api_op_UpdateVPCConnection.go @@ -0,0 +1,171 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package quicksight + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/quicksight/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Updates a VPC connection. +func (c *Client) UpdateVPCConnection(ctx context.Context, params *UpdateVPCConnectionInput, optFns ...func(*Options)) (*UpdateVPCConnectionOutput, error) { + if params == nil { + params = &UpdateVPCConnectionInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "UpdateVPCConnection", params, optFns, c.addOperationUpdateVPCConnectionMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*UpdateVPCConnectionOutput) + out.ResultMetadata = metadata + return out, nil +} + +type UpdateVPCConnectionInput struct { + + // The Amazon Web Services account ID of the account that contains the VPC + // connection that you want to update. + // + // This member is required. + AwsAccountId *string + + // The display name for the VPC connection. + // + // This member is required. + Name *string + + // An IAM role associated with the VPC connection. + // + // This member is required. + RoleArn *string + + // A list of security group IDs for the VPC connection. + // + // This member is required. + SecurityGroupIds []string + + // A list of subnet IDs for the VPC connection. + // + // This member is required. + SubnetIds []string + + // The ID of the VPC connection that you're updating. This ID is a unique + // identifier for each Amazon Web Services Region in an Amazon Web Services + // account. + // + // This member is required. + VPCConnectionId *string + + // A list of IP addresses of DNS resolver endpoints for the VPC connection. + DnsResolvers []string + + noSmithyDocumentSerde +} + +type UpdateVPCConnectionOutput struct { + + // The Amazon Resource Name (ARN) of the VPC connection. + Arn *string + + // The availability status of the VPC connection. + AvailabilityStatus types.VPCConnectionAvailabilityStatus + + // The Amazon Web Services request ID for this operation. + RequestId *string + + // The HTTP status of the request. + Status int32 + + // The update status of the VPC connection's last update. + UpdateStatus types.VPCConnectionResourceStatus + + // The ID of the VPC connection that you are updating. This ID is a unique + // identifier for each Amazon Web Services Region in anAmazon Web Services account. + VPCConnectionId *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationUpdateVPCConnectionMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdateVPCConnection{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdateVPCConnection{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpUpdateVPCConnectionValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateVPCConnection(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opUpdateVPCConnection(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "quicksight", + OperationName: "UpdateVPCConnection", + } +} diff --git a/service/quicksight/deserializers.go b/service/quicksight/deserializers.go index 592c4fb1ce4..aefae91e469 100644 --- a/service/quicksight/deserializers.go +++ b/service/quicksight/deserializers.go @@ -3984,14 +3984,14 @@ func awsRestjson1_deserializeOpDocumentCreateThemeAliasOutput(v **CreateThemeAli return nil } -type awsRestjson1_deserializeOpDeleteAccountCustomization struct { +type awsRestjson1_deserializeOpCreateTopic struct { } -func (*awsRestjson1_deserializeOpDeleteAccountCustomization) ID() string { +func (*awsRestjson1_deserializeOpCreateTopic) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDeleteAccountCustomization) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpCreateTopic) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -4005,12 +4005,12 @@ func (m *awsRestjson1_deserializeOpDeleteAccountCustomization) HandleDeserialize } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDeleteAccountCustomization(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorCreateTopic(response, &metadata) } - output := &DeleteAccountCustomizationOutput{} + output := &CreateTopicOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsDeleteAccountCustomizationOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsCreateTopicOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -4033,7 +4033,7 @@ func (m *awsRestjson1_deserializeOpDeleteAccountCustomization) HandleDeserialize return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentDeleteAccountCustomizationOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentCreateTopicOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -4046,7 +4046,7 @@ func (m *awsRestjson1_deserializeOpDeleteAccountCustomization) HandleDeserialize return out, metadata, err } -func awsRestjson1_deserializeOpErrorDeleteAccountCustomization(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorCreateTopic(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -4099,12 +4099,15 @@ func awsRestjson1_deserializeOpErrorDeleteAccountCustomization(response *smithyh case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) + case strings.EqualFold("LimitExceededException", errorCode): + return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody) + + case strings.EqualFold("ResourceExistsException", errorCode): + return awsRestjson1_deserializeErrorResourceExistsException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - case strings.EqualFold("ResourceUnavailableException", errorCode): - return awsRestjson1_deserializeErrorResourceUnavailableException(response, errorBody) - case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) @@ -4118,7 +4121,7 @@ func awsRestjson1_deserializeOpErrorDeleteAccountCustomization(response *smithyh } } -func awsRestjson1_deserializeOpHttpBindingsDeleteAccountCustomizationOutput(v *DeleteAccountCustomizationOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsCreateTopicOutput(v *CreateTopicOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -4127,7 +4130,7 @@ func awsRestjson1_deserializeOpHttpBindingsDeleteAccountCustomizationOutput(v *D return nil } -func awsRestjson1_deserializeOpDocumentDeleteAccountCustomizationOutput(v **DeleteAccountCustomizationOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentCreateTopicOutput(v **CreateTopicOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4140,198 +4143,33 @@ func awsRestjson1_deserializeOpDocumentDeleteAccountCustomizationOutput(v **Dele return fmt.Errorf("unexpected JSON type %v", value) } - var sv *DeleteAccountCustomizationOutput + var sv *CreateTopicOutput if *v == nil { - sv = &DeleteAccountCustomizationOutput{} + sv = &CreateTopicOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "RequestId": + case "Arn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.RequestId = ptr.String(jtv) + sv.Arn = ptr.String(jtv) } - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -type awsRestjson1_deserializeOpDeleteAccountSubscription struct { -} - -func (*awsRestjson1_deserializeOpDeleteAccountSubscription) ID() string { - return "OperationDeserializer" -} - -func (m *awsRestjson1_deserializeOpDeleteAccountSubscription) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - if err != nil { - return out, metadata, err - } - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDeleteAccountSubscription(response, &metadata) - } - output := &DeleteAccountSubscriptionOutput{} - out.Result = output - - err = awsRestjson1_deserializeOpHttpBindingsDeleteAccountSubscriptionOutput(output, response) - if err != nil { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} - } - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(response.Body, ringBuffer) - - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - err = awsRestjson1_deserializeOpDocumentDeleteAccountSubscriptionOutput(&output, shape) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return out, metadata, err -} - -func awsRestjson1_deserializeOpErrorDeleteAccountSubscription(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - headerCode := response.Header.Get("X-Amzn-ErrorType") - if len(headerCode) != 0 { - errorCode = restjson.SanitizeErrorCode(headerCode) - } - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - jsonCode, message, err := restjson.GetErrorInfo(decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - errorBody.Seek(0, io.SeekStart) - if len(headerCode) == 0 && len(jsonCode) != 0 { - errorCode = restjson.SanitizeErrorCode(jsonCode) - } - if len(message) != 0 { - errorMessage = message - } - - switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("InternalFailureException", errorCode): - return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) - - case strings.EqualFold("InvalidParameterValueException", errorCode): - return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) - - case strings.EqualFold("PreconditionNotMetException", errorCode): - return awsRestjson1_deserializeErrorPreconditionNotMetException(response, errorBody) - - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - - case strings.EqualFold("ResourceUnavailableException", errorCode): - return awsRestjson1_deserializeErrorResourceUnavailableException(response, errorBody) - - case strings.EqualFold("ThrottlingException", errorCode): - return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -func awsRestjson1_deserializeOpHttpBindingsDeleteAccountSubscriptionOutput(v *DeleteAccountSubscriptionOutput, response *smithyhttp.Response) error { - if v == nil { - return fmt.Errorf("unsupported deserialization for nil %T", v) - } - - v.Status = int32(response.StatusCode) - - return nil -} -func awsRestjson1_deserializeOpDocumentDeleteAccountSubscriptionOutput(v **DeleteAccountSubscriptionOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *DeleteAccountSubscriptionOutput - if *v == nil { - sv = &DeleteAccountSubscriptionOutput{} - } else { - sv = *v - } + case "RefreshArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.RefreshArn = ptr.String(jtv) + } - for key, value := range shape { - switch key { case "RequestId": if value != nil { jtv, ok := value.(string) @@ -4341,6 +4179,15 @@ func awsRestjson1_deserializeOpDocumentDeleteAccountSubscriptionOutput(v **Delet sv.RequestId = ptr.String(jtv) } + case "TopicId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TopicId to be of type string, got %T instead", value) + } + sv.TopicId = ptr.String(jtv) + } + default: _, _ = key, value @@ -4350,14 +4197,14 @@ func awsRestjson1_deserializeOpDocumentDeleteAccountSubscriptionOutput(v **Delet return nil } -type awsRestjson1_deserializeOpDeleteAnalysis struct { +type awsRestjson1_deserializeOpCreateTopicRefreshSchedule struct { } -func (*awsRestjson1_deserializeOpDeleteAnalysis) ID() string { +func (*awsRestjson1_deserializeOpCreateTopicRefreshSchedule) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDeleteAnalysis) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpCreateTopicRefreshSchedule) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -4371,12 +4218,12 @@ func (m *awsRestjson1_deserializeOpDeleteAnalysis) HandleDeserialize(ctx context } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDeleteAnalysis(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorCreateTopicRefreshSchedule(response, &metadata) } - output := &DeleteAnalysisOutput{} + output := &CreateTopicRefreshScheduleOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsDeleteAnalysisOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsCreateTopicRefreshScheduleOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -4399,7 +4246,7 @@ func (m *awsRestjson1_deserializeOpDeleteAnalysis) HandleDeserialize(ctx context return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentDeleteAnalysisOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentCreateTopicRefreshScheduleOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -4412,7 +4259,7 @@ func (m *awsRestjson1_deserializeOpDeleteAnalysis) HandleDeserialize(ctx context return out, metadata, err } -func awsRestjson1_deserializeOpErrorDeleteAnalysis(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorCreateTopicRefreshSchedule(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -4453,6 +4300,9 @@ func awsRestjson1_deserializeOpErrorDeleteAnalysis(response *smithyhttp.Response } switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + case strings.EqualFold("ConflictException", errorCode): return awsRestjson1_deserializeErrorConflictException(response, errorBody) @@ -4462,15 +4312,18 @@ func awsRestjson1_deserializeOpErrorDeleteAnalysis(response *smithyhttp.Response case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) + case strings.EqualFold("LimitExceededException", errorCode): + return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody) + + case strings.EqualFold("ResourceExistsException", errorCode): + return awsRestjson1_deserializeErrorResourceExistsException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - case strings.EqualFold("UnsupportedUserEditionException", errorCode): - return awsRestjson1_deserializeErrorUnsupportedUserEditionException(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -4481,7 +4334,7 @@ func awsRestjson1_deserializeOpErrorDeleteAnalysis(response *smithyhttp.Response } } -func awsRestjson1_deserializeOpHttpBindingsDeleteAnalysisOutput(v *DeleteAnalysisOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsCreateTopicRefreshScheduleOutput(v *CreateTopicRefreshScheduleOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -4490,7 +4343,7 @@ func awsRestjson1_deserializeOpHttpBindingsDeleteAnalysisOutput(v *DeleteAnalysi return nil } -func awsRestjson1_deserializeOpDocumentDeleteAnalysisOutput(v **DeleteAnalysisOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentCreateTopicRefreshScheduleOutput(v **CreateTopicRefreshScheduleOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4503,56 +4356,49 @@ func awsRestjson1_deserializeOpDocumentDeleteAnalysisOutput(v **DeleteAnalysisOu return fmt.Errorf("unexpected JSON type %v", value) } - var sv *DeleteAnalysisOutput + var sv *CreateTopicRefreshScheduleOutput if *v == nil { - sv = &DeleteAnalysisOutput{} + sv = &CreateTopicRefreshScheduleOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "AnalysisId": + case "DatasetArn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.AnalysisId = ptr.String(jtv) + sv.DatasetArn = ptr.String(jtv) } - case "Arn": + case "RequestId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Arn = ptr.String(jtv) + sv.RequestId = ptr.String(jtv) } - case "DeletionTime": + case "TopicArn": if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.DeletionTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } + sv.TopicArn = ptr.String(jtv) } - case "RequestId": + case "TopicId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) + return fmt.Errorf("expected TopicId to be of type string, got %T instead", value) } - sv.RequestId = ptr.String(jtv) + sv.TopicId = ptr.String(jtv) } default: @@ -4564,14 +4410,14 @@ func awsRestjson1_deserializeOpDocumentDeleteAnalysisOutput(v **DeleteAnalysisOu return nil } -type awsRestjson1_deserializeOpDeleteDashboard struct { +type awsRestjson1_deserializeOpCreateVPCConnection struct { } -func (*awsRestjson1_deserializeOpDeleteDashboard) ID() string { +func (*awsRestjson1_deserializeOpCreateVPCConnection) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDeleteDashboard) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpCreateVPCConnection) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -4585,12 +4431,12 @@ func (m *awsRestjson1_deserializeOpDeleteDashboard) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDeleteDashboard(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorCreateVPCConnection(response, &metadata) } - output := &DeleteDashboardOutput{} + output := &CreateVPCConnectionOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsDeleteDashboardOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsCreateVPCConnectionOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -4613,7 +4459,7 @@ func (m *awsRestjson1_deserializeOpDeleteDashboard) HandleDeserialize(ctx contex return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentDeleteDashboardOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentCreateVPCConnectionOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -4626,7 +4472,7 @@ func (m *awsRestjson1_deserializeOpDeleteDashboard) HandleDeserialize(ctx contex return out, metadata, err } -func awsRestjson1_deserializeOpErrorDeleteDashboard(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorCreateVPCConnection(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -4667,6 +4513,9 @@ func awsRestjson1_deserializeOpErrorDeleteDashboard(response *smithyhttp.Respons } switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + case strings.EqualFold("ConflictException", errorCode): return awsRestjson1_deserializeErrorConflictException(response, errorBody) @@ -4676,8 +4525,11 @@ func awsRestjson1_deserializeOpErrorDeleteDashboard(response *smithyhttp.Respons case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + case strings.EqualFold("LimitExceededException", errorCode): + return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody) + + case strings.EqualFold("ResourceExistsException", errorCode): + return awsRestjson1_deserializeErrorResourceExistsException(response, errorBody) case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) @@ -4695,7 +4547,7 @@ func awsRestjson1_deserializeOpErrorDeleteDashboard(response *smithyhttp.Respons } } -func awsRestjson1_deserializeOpHttpBindingsDeleteDashboardOutput(v *DeleteDashboardOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsCreateVPCConnectionOutput(v *CreateVPCConnectionOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -4704,7 +4556,7 @@ func awsRestjson1_deserializeOpHttpBindingsDeleteDashboardOutput(v *DeleteDashbo return nil } -func awsRestjson1_deserializeOpDocumentDeleteDashboardOutput(v **DeleteDashboardOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentCreateVPCConnectionOutput(v **CreateVPCConnectionOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4717,9 +4569,9 @@ func awsRestjson1_deserializeOpDocumentDeleteDashboardOutput(v **DeleteDashboard return fmt.Errorf("unexpected JSON type %v", value) } - var sv *DeleteDashboardOutput + var sv *CreateVPCConnectionOutput if *v == nil { - sv = &DeleteDashboardOutput{} + sv = &CreateVPCConnectionOutput{} } else { sv = *v } @@ -4735,13 +4587,22 @@ func awsRestjson1_deserializeOpDocumentDeleteDashboardOutput(v **DeleteDashboard sv.Arn = ptr.String(jtv) } - case "DashboardId": + case "AvailabilityStatus": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + return fmt.Errorf("expected VPCConnectionAvailabilityStatus to be of type string, got %T instead", value) } - sv.DashboardId = ptr.String(jtv) + sv.AvailabilityStatus = types.VPCConnectionAvailabilityStatus(jtv) + } + + case "CreationStatus": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected VPCConnectionResourceStatus to be of type string, got %T instead", value) + } + sv.CreationStatus = types.VPCConnectionResourceStatus(jtv) } case "RequestId": @@ -4753,6 +4614,15 @@ func awsRestjson1_deserializeOpDocumentDeleteDashboardOutput(v **DeleteDashboard sv.RequestId = ptr.String(jtv) } + case "VPCConnectionId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected VPCConnectionResourceIdRestricted to be of type string, got %T instead", value) + } + sv.VPCConnectionId = ptr.String(jtv) + } + default: _, _ = key, value @@ -4762,14 +4632,14 @@ func awsRestjson1_deserializeOpDocumentDeleteDashboardOutput(v **DeleteDashboard return nil } -type awsRestjson1_deserializeOpDeleteDataSet struct { +type awsRestjson1_deserializeOpDeleteAccountCustomization struct { } -func (*awsRestjson1_deserializeOpDeleteDataSet) ID() string { +func (*awsRestjson1_deserializeOpDeleteAccountCustomization) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDeleteDataSet) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDeleteAccountCustomization) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -4783,12 +4653,12 @@ func (m *awsRestjson1_deserializeOpDeleteDataSet) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDeleteDataSet(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDeleteAccountCustomization(response, &metadata) } - output := &DeleteDataSetOutput{} + output := &DeleteAccountCustomizationOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsDeleteDataSetOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsDeleteAccountCustomizationOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -4811,7 +4681,7 @@ func (m *awsRestjson1_deserializeOpDeleteDataSet) HandleDeserialize(ctx context. return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentDeleteDataSetOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentDeleteAccountCustomizationOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -4824,7 +4694,7 @@ func (m *awsRestjson1_deserializeOpDeleteDataSet) HandleDeserialize(ctx context. return out, metadata, err } -func awsRestjson1_deserializeOpErrorDeleteDataSet(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDeleteAccountCustomization(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -4868,6 +4738,9 @@ func awsRestjson1_deserializeOpErrorDeleteDataSet(response *smithyhttp.Response, case strings.EqualFold("AccessDeniedException", errorCode): return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) @@ -4877,6 +4750,9 @@ func awsRestjson1_deserializeOpErrorDeleteDataSet(response *smithyhttp.Response, case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + case strings.EqualFold("ResourceUnavailableException", errorCode): + return awsRestjson1_deserializeErrorResourceUnavailableException(response, errorBody) + case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) @@ -4890,7 +4766,7 @@ func awsRestjson1_deserializeOpErrorDeleteDataSet(response *smithyhttp.Response, } } -func awsRestjson1_deserializeOpHttpBindingsDeleteDataSetOutput(v *DeleteDataSetOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsDeleteAccountCustomizationOutput(v *DeleteAccountCustomizationOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -4899,7 +4775,7 @@ func awsRestjson1_deserializeOpHttpBindingsDeleteDataSetOutput(v *DeleteDataSetO return nil } -func awsRestjson1_deserializeOpDocumentDeleteDataSetOutput(v **DeleteDataSetOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentDeleteAccountCustomizationOutput(v **DeleteAccountCustomizationOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -4912,33 +4788,15 @@ func awsRestjson1_deserializeOpDocumentDeleteDataSetOutput(v **DeleteDataSetOutp return fmt.Errorf("unexpected JSON type %v", value) } - var sv *DeleteDataSetOutput + var sv *DeleteAccountCustomizationOutput if *v == nil { - sv = &DeleteDataSetOutput{} + sv = &DeleteAccountCustomizationOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "Arn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.Arn = ptr.String(jtv) - } - - case "DataSetId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) - } - sv.DataSetId = ptr.String(jtv) - } - case "RequestId": if value != nil { jtv, ok := value.(string) @@ -4957,14 +4815,14 @@ func awsRestjson1_deserializeOpDocumentDeleteDataSetOutput(v **DeleteDataSetOutp return nil } -type awsRestjson1_deserializeOpDeleteDataSetRefreshProperties struct { +type awsRestjson1_deserializeOpDeleteAccountSubscription struct { } -func (*awsRestjson1_deserializeOpDeleteDataSetRefreshProperties) ID() string { +func (*awsRestjson1_deserializeOpDeleteAccountSubscription) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDeleteDataSetRefreshProperties) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDeleteAccountSubscription) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -4978,12 +4836,12 @@ func (m *awsRestjson1_deserializeOpDeleteDataSetRefreshProperties) HandleDeseria } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDeleteDataSetRefreshProperties(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDeleteAccountSubscription(response, &metadata) } - output := &DeleteDataSetRefreshPropertiesOutput{} + output := &DeleteAccountSubscriptionOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsDeleteDataSetRefreshPropertiesOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsDeleteAccountSubscriptionOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -5006,7 +4864,7 @@ func (m *awsRestjson1_deserializeOpDeleteDataSetRefreshProperties) HandleDeseria return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentDeleteDataSetRefreshPropertiesOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentDeleteAccountSubscriptionOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -5019,7 +4877,7 @@ func (m *awsRestjson1_deserializeOpDeleteDataSetRefreshProperties) HandleDeseria return out, metadata, err } -func awsRestjson1_deserializeOpErrorDeleteDataSetRefreshProperties(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDeleteAccountSubscription(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -5063,21 +4921,21 @@ func awsRestjson1_deserializeOpErrorDeleteDataSetRefreshProperties(response *smi case strings.EqualFold("AccessDeniedException", errorCode): return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - case strings.EqualFold("ConflictException", errorCode): - return awsRestjson1_deserializeErrorConflictException(response, errorBody) - case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) - case strings.EqualFold("LimitExceededException", errorCode): - return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody) + case strings.EqualFold("PreconditionNotMetException", errorCode): + return awsRestjson1_deserializeErrorPreconditionNotMetException(response, errorBody) case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + case strings.EqualFold("ResourceUnavailableException", errorCode): + return awsRestjson1_deserializeErrorResourceUnavailableException(response, errorBody) + case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) @@ -5091,7 +4949,7 @@ func awsRestjson1_deserializeOpErrorDeleteDataSetRefreshProperties(response *smi } } -func awsRestjson1_deserializeOpHttpBindingsDeleteDataSetRefreshPropertiesOutput(v *DeleteDataSetRefreshPropertiesOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsDeleteAccountSubscriptionOutput(v *DeleteAccountSubscriptionOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -5100,7 +4958,7 @@ func awsRestjson1_deserializeOpHttpBindingsDeleteDataSetRefreshPropertiesOutput( return nil } -func awsRestjson1_deserializeOpDocumentDeleteDataSetRefreshPropertiesOutput(v **DeleteDataSetRefreshPropertiesOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentDeleteAccountSubscriptionOutput(v **DeleteAccountSubscriptionOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5113,9 +4971,9 @@ func awsRestjson1_deserializeOpDocumentDeleteDataSetRefreshPropertiesOutput(v ** return fmt.Errorf("unexpected JSON type %v", value) } - var sv *DeleteDataSetRefreshPropertiesOutput + var sv *DeleteAccountSubscriptionOutput if *v == nil { - sv = &DeleteDataSetRefreshPropertiesOutput{} + sv = &DeleteAccountSubscriptionOutput{} } else { sv = *v } @@ -5140,14 +4998,14 @@ func awsRestjson1_deserializeOpDocumentDeleteDataSetRefreshPropertiesOutput(v ** return nil } -type awsRestjson1_deserializeOpDeleteDataSource struct { +type awsRestjson1_deserializeOpDeleteAnalysis struct { } -func (*awsRestjson1_deserializeOpDeleteDataSource) ID() string { +func (*awsRestjson1_deserializeOpDeleteAnalysis) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDeleteDataSource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDeleteAnalysis) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -5161,12 +5019,12 @@ func (m *awsRestjson1_deserializeOpDeleteDataSource) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDeleteDataSource(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDeleteAnalysis(response, &metadata) } - output := &DeleteDataSourceOutput{} + output := &DeleteAnalysisOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsDeleteDataSourceOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsDeleteAnalysisOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -5189,7 +5047,7 @@ func (m *awsRestjson1_deserializeOpDeleteDataSource) HandleDeserialize(ctx conte return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentDeleteDataSourceOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentDeleteAnalysisOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -5202,7 +5060,7 @@ func (m *awsRestjson1_deserializeOpDeleteDataSource) HandleDeserialize(ctx conte return out, metadata, err } -func awsRestjson1_deserializeOpErrorDeleteDataSource(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDeleteAnalysis(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -5243,8 +5101,8 @@ func awsRestjson1_deserializeOpErrorDeleteDataSource(response *smithyhttp.Respon } switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) @@ -5258,6 +5116,9 @@ func awsRestjson1_deserializeOpErrorDeleteDataSource(response *smithyhttp.Respon case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + case strings.EqualFold("UnsupportedUserEditionException", errorCode): + return awsRestjson1_deserializeErrorUnsupportedUserEditionException(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -5268,7 +5129,7 @@ func awsRestjson1_deserializeOpErrorDeleteDataSource(response *smithyhttp.Respon } } -func awsRestjson1_deserializeOpHttpBindingsDeleteDataSourceOutput(v *DeleteDataSourceOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsDeleteAnalysisOutput(v *DeleteAnalysisOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -5277,7 +5138,7 @@ func awsRestjson1_deserializeOpHttpBindingsDeleteDataSourceOutput(v *DeleteDataS return nil } -func awsRestjson1_deserializeOpDocumentDeleteDataSourceOutput(v **DeleteDataSourceOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentDeleteAnalysisOutput(v **DeleteAnalysisOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5290,15 +5151,24 @@ func awsRestjson1_deserializeOpDocumentDeleteDataSourceOutput(v **DeleteDataSour return fmt.Errorf("unexpected JSON type %v", value) } - var sv *DeleteDataSourceOutput + var sv *DeleteAnalysisOutput if *v == nil { - sv = &DeleteDataSourceOutput{} + sv = &DeleteAnalysisOutput{} } else { sv = *v } for key, value := range shape { switch key { + case "AnalysisId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + } + sv.AnalysisId = ptr.String(jtv) + } + case "Arn": if value != nil { jtv, ok := value.(string) @@ -5308,13 +5178,20 @@ func awsRestjson1_deserializeOpDocumentDeleteDataSourceOutput(v **DeleteDataSour sv.Arn = ptr.String(jtv) } - case "DataSourceId": + case "DeletionTime": if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.DeletionTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + } - sv.DataSourceId = ptr.String(jtv) } case "RequestId": @@ -5335,14 +5212,14 @@ func awsRestjson1_deserializeOpDocumentDeleteDataSourceOutput(v **DeleteDataSour return nil } -type awsRestjson1_deserializeOpDeleteFolder struct { +type awsRestjson1_deserializeOpDeleteDashboard struct { } -func (*awsRestjson1_deserializeOpDeleteFolder) ID() string { +func (*awsRestjson1_deserializeOpDeleteDashboard) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDeleteFolder) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDeleteDashboard) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -5356,12 +5233,12 @@ func (m *awsRestjson1_deserializeOpDeleteFolder) HandleDeserialize(ctx context.C } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDeleteFolder(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDeleteDashboard(response, &metadata) } - output := &DeleteFolderOutput{} + output := &DeleteDashboardOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsDeleteFolderOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsDeleteDashboardOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -5384,7 +5261,7 @@ func (m *awsRestjson1_deserializeOpDeleteFolder) HandleDeserialize(ctx context.C return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentDeleteFolderOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentDeleteDashboardOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -5397,7 +5274,7 @@ func (m *awsRestjson1_deserializeOpDeleteFolder) HandleDeserialize(ctx context.C return out, metadata, err } -func awsRestjson1_deserializeOpErrorDeleteFolder(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDeleteDashboard(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -5438,9 +5315,6 @@ func awsRestjson1_deserializeOpErrorDeleteFolder(response *smithyhttp.Response, } switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - case strings.EqualFold("ConflictException", errorCode): return awsRestjson1_deserializeErrorConflictException(response, errorBody) @@ -5450,9 +5324,6 @@ func awsRestjson1_deserializeOpErrorDeleteFolder(response *smithyhttp.Response, case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) - case strings.EqualFold("PreconditionNotMetException", errorCode): - return awsRestjson1_deserializeErrorPreconditionNotMetException(response, errorBody) - case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) @@ -5472,7 +5343,7 @@ func awsRestjson1_deserializeOpErrorDeleteFolder(response *smithyhttp.Response, } } -func awsRestjson1_deserializeOpHttpBindingsDeleteFolderOutput(v *DeleteFolderOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsDeleteDashboardOutput(v *DeleteDashboardOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -5481,7 +5352,7 @@ func awsRestjson1_deserializeOpHttpBindingsDeleteFolderOutput(v *DeleteFolderOut return nil } -func awsRestjson1_deserializeOpDocumentDeleteFolderOutput(v **DeleteFolderOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentDeleteDashboardOutput(v **DeleteDashboardOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5494,9 +5365,9 @@ func awsRestjson1_deserializeOpDocumentDeleteFolderOutput(v **DeleteFolderOutput return fmt.Errorf("unexpected JSON type %v", value) } - var sv *DeleteFolderOutput + var sv *DeleteDashboardOutput if *v == nil { - sv = &DeleteFolderOutput{} + sv = &DeleteDashboardOutput{} } else { sv = *v } @@ -5512,13 +5383,13 @@ func awsRestjson1_deserializeOpDocumentDeleteFolderOutput(v **DeleteFolderOutput sv.Arn = ptr.String(jtv) } - case "FolderId": + case "DashboardId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected RestrictiveResourceId to be of type string, got %T instead", value) + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) } - sv.FolderId = ptr.String(jtv) + sv.DashboardId = ptr.String(jtv) } case "RequestId": @@ -5539,14 +5410,14 @@ func awsRestjson1_deserializeOpDocumentDeleteFolderOutput(v **DeleteFolderOutput return nil } -type awsRestjson1_deserializeOpDeleteFolderMembership struct { +type awsRestjson1_deserializeOpDeleteDataSet struct { } -func (*awsRestjson1_deserializeOpDeleteFolderMembership) ID() string { +func (*awsRestjson1_deserializeOpDeleteDataSet) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDeleteFolderMembership) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDeleteDataSet) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -5560,11 +5431,16 @@ func (m *awsRestjson1_deserializeOpDeleteFolderMembership) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDeleteFolderMembership(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDeleteDataSet(response, &metadata) } - output := &DeleteFolderMembershipOutput{} + output := &DeleteDataSetOutput{} out.Result = output + err = awsRestjson1_deserializeOpHttpBindingsDeleteDataSetOutput(output, response) + if err != nil { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} + } + var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) @@ -5583,7 +5459,7 @@ func (m *awsRestjson1_deserializeOpDeleteFolderMembership) HandleDeserialize(ctx return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentDeleteFolderMembershipOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentDeleteDataSetOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -5596,7 +5472,7 @@ func (m *awsRestjson1_deserializeOpDeleteFolderMembership) HandleDeserialize(ctx return out, metadata, err } -func awsRestjson1_deserializeOpErrorDeleteFolderMembership(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDeleteDataSet(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -5652,9 +5528,6 @@ func awsRestjson1_deserializeOpErrorDeleteFolderMembership(response *smithyhttp. case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - case strings.EqualFold("UnsupportedUserEditionException", errorCode): - return awsRestjson1_deserializeErrorUnsupportedUserEditionException(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -5665,7 +5538,16 @@ func awsRestjson1_deserializeOpErrorDeleteFolderMembership(response *smithyhttp. } } -func awsRestjson1_deserializeOpDocumentDeleteFolderMembershipOutput(v **DeleteFolderMembershipOutput, value interface{}) error { +func awsRestjson1_deserializeOpHttpBindingsDeleteDataSetOutput(v *DeleteDataSetOutput, response *smithyhttp.Response) error { + if v == nil { + return fmt.Errorf("unsupported deserialization for nil %T", v) + } + + v.Status = int32(response.StatusCode) + + return nil +} +func awsRestjson1_deserializeOpDocumentDeleteDataSetOutput(v **DeleteDataSetOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5678,35 +5560,40 @@ func awsRestjson1_deserializeOpDocumentDeleteFolderMembershipOutput(v **DeleteFo return fmt.Errorf("unexpected JSON type %v", value) } - var sv *DeleteFolderMembershipOutput + var sv *DeleteDataSetOutput if *v == nil { - sv = &DeleteFolderMembershipOutput{} + sv = &DeleteDataSetOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "RequestId": + case "Arn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.RequestId = ptr.String(jtv) + sv.Arn = ptr.String(jtv) } - case "Status": + case "DataSetId": if value != nil { - jtv, ok := value.(json.Number) + jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected StatusCode to be json.Number, got %T instead", value) + return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - i64, err := jtv.Int64() - if err != nil { - return err + sv.DataSetId = ptr.String(jtv) + } + + case "RequestId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Status = int32(i64) + sv.RequestId = ptr.String(jtv) } default: @@ -5718,14 +5605,14 @@ func awsRestjson1_deserializeOpDocumentDeleteFolderMembershipOutput(v **DeleteFo return nil } -type awsRestjson1_deserializeOpDeleteGroup struct { +type awsRestjson1_deserializeOpDeleteDataSetRefreshProperties struct { } -func (*awsRestjson1_deserializeOpDeleteGroup) ID() string { +func (*awsRestjson1_deserializeOpDeleteDataSetRefreshProperties) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDeleteGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDeleteDataSetRefreshProperties) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -5739,12 +5626,12 @@ func (m *awsRestjson1_deserializeOpDeleteGroup) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDeleteGroup(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDeleteDataSetRefreshProperties(response, &metadata) } - output := &DeleteGroupOutput{} + output := &DeleteDataSetRefreshPropertiesOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsDeleteGroupOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsDeleteDataSetRefreshPropertiesOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -5767,7 +5654,7 @@ func (m *awsRestjson1_deserializeOpDeleteGroup) HandleDeserialize(ctx context.Co return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentDeleteGroupOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentDeleteDataSetRefreshPropertiesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -5780,7 +5667,7 @@ func (m *awsRestjson1_deserializeOpDeleteGroup) HandleDeserialize(ctx context.Co return out, metadata, err } -func awsRestjson1_deserializeOpErrorDeleteGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDeleteDataSetRefreshProperties(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -5824,21 +5711,21 @@ func awsRestjson1_deserializeOpErrorDeleteGroup(response *smithyhttp.Response, m case strings.EqualFold("AccessDeniedException", errorCode): return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) - case strings.EqualFold("PreconditionNotMetException", errorCode): - return awsRestjson1_deserializeErrorPreconditionNotMetException(response, errorBody) + case strings.EqualFold("LimitExceededException", errorCode): + return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody) case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - case strings.EqualFold("ResourceUnavailableException", errorCode): - return awsRestjson1_deserializeErrorResourceUnavailableException(response, errorBody) - case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) @@ -5852,7 +5739,7 @@ func awsRestjson1_deserializeOpErrorDeleteGroup(response *smithyhttp.Response, m } } -func awsRestjson1_deserializeOpHttpBindingsDeleteGroupOutput(v *DeleteGroupOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsDeleteDataSetRefreshPropertiesOutput(v *DeleteDataSetRefreshPropertiesOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -5861,7 +5748,7 @@ func awsRestjson1_deserializeOpHttpBindingsDeleteGroupOutput(v *DeleteGroupOutpu return nil } -func awsRestjson1_deserializeOpDocumentDeleteGroupOutput(v **DeleteGroupOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentDeleteDataSetRefreshPropertiesOutput(v **DeleteDataSetRefreshPropertiesOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5874,9 +5761,9 @@ func awsRestjson1_deserializeOpDocumentDeleteGroupOutput(v **DeleteGroupOutput, return fmt.Errorf("unexpected JSON type %v", value) } - var sv *DeleteGroupOutput + var sv *DeleteDataSetRefreshPropertiesOutput if *v == nil { - sv = &DeleteGroupOutput{} + sv = &DeleteDataSetRefreshPropertiesOutput{} } else { sv = *v } @@ -5901,14 +5788,14 @@ func awsRestjson1_deserializeOpDocumentDeleteGroupOutput(v **DeleteGroupOutput, return nil } -type awsRestjson1_deserializeOpDeleteGroupMembership struct { +type awsRestjson1_deserializeOpDeleteDataSource struct { } -func (*awsRestjson1_deserializeOpDeleteGroupMembership) ID() string { +func (*awsRestjson1_deserializeOpDeleteDataSource) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDeleteGroupMembership) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDeleteDataSource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -5922,12 +5809,12 @@ func (m *awsRestjson1_deserializeOpDeleteGroupMembership) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDeleteGroupMembership(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDeleteDataSource(response, &metadata) } - output := &DeleteGroupMembershipOutput{} + output := &DeleteDataSourceOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsDeleteGroupMembershipOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsDeleteDataSourceOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -5950,7 +5837,7 @@ func (m *awsRestjson1_deserializeOpDeleteGroupMembership) HandleDeserialize(ctx return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentDeleteGroupMembershipOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentDeleteDataSourceOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -5963,7 +5850,7 @@ func (m *awsRestjson1_deserializeOpDeleteGroupMembership) HandleDeserialize(ctx return out, metadata, err } -func awsRestjson1_deserializeOpErrorDeleteGroupMembership(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDeleteDataSource(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -6013,15 +5900,9 @@ func awsRestjson1_deserializeOpErrorDeleteGroupMembership(response *smithyhttp.R case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) - case strings.EqualFold("PreconditionNotMetException", errorCode): - return awsRestjson1_deserializeErrorPreconditionNotMetException(response, errorBody) - case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - case strings.EqualFold("ResourceUnavailableException", errorCode): - return awsRestjson1_deserializeErrorResourceUnavailableException(response, errorBody) - case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) @@ -6035,7 +5916,7 @@ func awsRestjson1_deserializeOpErrorDeleteGroupMembership(response *smithyhttp.R } } -func awsRestjson1_deserializeOpHttpBindingsDeleteGroupMembershipOutput(v *DeleteGroupMembershipOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsDeleteDataSourceOutput(v *DeleteDataSourceOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -6044,7 +5925,7 @@ func awsRestjson1_deserializeOpHttpBindingsDeleteGroupMembershipOutput(v *Delete return nil } -func awsRestjson1_deserializeOpDocumentDeleteGroupMembershipOutput(v **DeleteGroupMembershipOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentDeleteDataSourceOutput(v **DeleteDataSourceOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6057,15 +5938,33 @@ func awsRestjson1_deserializeOpDocumentDeleteGroupMembershipOutput(v **DeleteGro return fmt.Errorf("unexpected JSON type %v", value) } - var sv *DeleteGroupMembershipOutput + var sv *DeleteDataSourceOutput if *v == nil { - sv = &DeleteGroupMembershipOutput{} + sv = &DeleteDataSourceOutput{} } else { sv = *v } for key, value := range shape { switch key { + case "Arn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) + } + + case "DataSourceId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) + } + sv.DataSourceId = ptr.String(jtv) + } + case "RequestId": if value != nil { jtv, ok := value.(string) @@ -6084,14 +5983,14 @@ func awsRestjson1_deserializeOpDocumentDeleteGroupMembershipOutput(v **DeleteGro return nil } -type awsRestjson1_deserializeOpDeleteIAMPolicyAssignment struct { +type awsRestjson1_deserializeOpDeleteFolder struct { } -func (*awsRestjson1_deserializeOpDeleteIAMPolicyAssignment) ID() string { +func (*awsRestjson1_deserializeOpDeleteFolder) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDeleteIAMPolicyAssignment) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDeleteFolder) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -6105,12 +6004,12 @@ func (m *awsRestjson1_deserializeOpDeleteIAMPolicyAssignment) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDeleteIAMPolicyAssignment(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDeleteFolder(response, &metadata) } - output := &DeleteIAMPolicyAssignmentOutput{} + output := &DeleteFolderOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsDeleteIAMPolicyAssignmentOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsDeleteFolderOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -6133,7 +6032,7 @@ func (m *awsRestjson1_deserializeOpDeleteIAMPolicyAssignment) HandleDeserialize( return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentDeleteIAMPolicyAssignmentOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentDeleteFolderOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -6146,7 +6045,7 @@ func (m *awsRestjson1_deserializeOpDeleteIAMPolicyAssignment) HandleDeserialize( return out, metadata, err } -func awsRestjson1_deserializeOpErrorDeleteIAMPolicyAssignment(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDeleteFolder(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -6190,8 +6089,8 @@ func awsRestjson1_deserializeOpErrorDeleteIAMPolicyAssignment(response *smithyht case strings.EqualFold("AccessDeniedException", errorCode): return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - case strings.EqualFold("ConcurrentUpdatingException", errorCode): - return awsRestjson1_deserializeErrorConcurrentUpdatingException(response, errorBody) + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) @@ -6199,8 +6098,8 @@ func awsRestjson1_deserializeOpErrorDeleteIAMPolicyAssignment(response *smithyht case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) - case strings.EqualFold("ResourceExistsException", errorCode): - return awsRestjson1_deserializeErrorResourceExistsException(response, errorBody) + case strings.EqualFold("PreconditionNotMetException", errorCode): + return awsRestjson1_deserializeErrorPreconditionNotMetException(response, errorBody) case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) @@ -6208,6 +6107,9 @@ func awsRestjson1_deserializeOpErrorDeleteIAMPolicyAssignment(response *smithyht case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + case strings.EqualFold("UnsupportedUserEditionException", errorCode): + return awsRestjson1_deserializeErrorUnsupportedUserEditionException(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -6218,7 +6120,7 @@ func awsRestjson1_deserializeOpErrorDeleteIAMPolicyAssignment(response *smithyht } } -func awsRestjson1_deserializeOpHttpBindingsDeleteIAMPolicyAssignmentOutput(v *DeleteIAMPolicyAssignmentOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsDeleteFolderOutput(v *DeleteFolderOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -6227,7 +6129,7 @@ func awsRestjson1_deserializeOpHttpBindingsDeleteIAMPolicyAssignmentOutput(v *De return nil } -func awsRestjson1_deserializeOpDocumentDeleteIAMPolicyAssignmentOutput(v **DeleteIAMPolicyAssignmentOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentDeleteFolderOutput(v **DeleteFolderOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6240,22 +6142,31 @@ func awsRestjson1_deserializeOpDocumentDeleteIAMPolicyAssignmentOutput(v **Delet return fmt.Errorf("unexpected JSON type %v", value) } - var sv *DeleteIAMPolicyAssignmentOutput + var sv *DeleteFolderOutput if *v == nil { - sv = &DeleteIAMPolicyAssignmentOutput{} + sv = &DeleteFolderOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "AssignmentName": + case "Arn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected IAMPolicyAssignmentName to be of type string, got %T instead", value) + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.AssignmentName = ptr.String(jtv) + sv.Arn = ptr.String(jtv) + } + + case "FolderId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RestrictiveResourceId to be of type string, got %T instead", value) + } + sv.FolderId = ptr.String(jtv) } case "RequestId": @@ -6276,14 +6187,14 @@ func awsRestjson1_deserializeOpDocumentDeleteIAMPolicyAssignmentOutput(v **Delet return nil } -type awsRestjson1_deserializeOpDeleteNamespace struct { +type awsRestjson1_deserializeOpDeleteFolderMembership struct { } -func (*awsRestjson1_deserializeOpDeleteNamespace) ID() string { +func (*awsRestjson1_deserializeOpDeleteFolderMembership) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDeleteNamespace) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDeleteFolderMembership) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -6297,16 +6208,11 @@ func (m *awsRestjson1_deserializeOpDeleteNamespace) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDeleteNamespace(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDeleteFolderMembership(response, &metadata) } - output := &DeleteNamespaceOutput{} + output := &DeleteFolderMembershipOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsDeleteNamespaceOutput(output, response) - if err != nil { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} - } - var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) @@ -6325,7 +6231,7 @@ func (m *awsRestjson1_deserializeOpDeleteNamespace) HandleDeserialize(ctx contex return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentDeleteNamespaceOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentDeleteFolderMembershipOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -6338,7 +6244,7 @@ func (m *awsRestjson1_deserializeOpDeleteNamespace) HandleDeserialize(ctx contex return out, metadata, err } -func awsRestjson1_deserializeOpErrorDeleteNamespace(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDeleteFolderMembership(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -6388,18 +6294,15 @@ func awsRestjson1_deserializeOpErrorDeleteNamespace(response *smithyhttp.Respons case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) - case strings.EqualFold("PreconditionNotMetException", errorCode): - return awsRestjson1_deserializeErrorPreconditionNotMetException(response, errorBody) - case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - case strings.EqualFold("ResourceUnavailableException", errorCode): - return awsRestjson1_deserializeErrorResourceUnavailableException(response, errorBody) - case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + case strings.EqualFold("UnsupportedUserEditionException", errorCode): + return awsRestjson1_deserializeErrorUnsupportedUserEditionException(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -6410,16 +6313,7 @@ func awsRestjson1_deserializeOpErrorDeleteNamespace(response *smithyhttp.Respons } } -func awsRestjson1_deserializeOpHttpBindingsDeleteNamespaceOutput(v *DeleteNamespaceOutput, response *smithyhttp.Response) error { - if v == nil { - return fmt.Errorf("unsupported deserialization for nil %T", v) - } - - v.Status = int32(response.StatusCode) - - return nil -} -func awsRestjson1_deserializeOpDocumentDeleteNamespaceOutput(v **DeleteNamespaceOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentDeleteFolderMembershipOutput(v **DeleteFolderMembershipOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6432,9 +6326,9 @@ func awsRestjson1_deserializeOpDocumentDeleteNamespaceOutput(v **DeleteNamespace return fmt.Errorf("unexpected JSON type %v", value) } - var sv *DeleteNamespaceOutput + var sv *DeleteFolderMembershipOutput if *v == nil { - sv = &DeleteNamespaceOutput{} + sv = &DeleteFolderMembershipOutput{} } else { sv = *v } @@ -6450,6 +6344,19 @@ func awsRestjson1_deserializeOpDocumentDeleteNamespaceOutput(v **DeleteNamespace sv.RequestId = ptr.String(jtv) } + case "Status": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected StatusCode to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.Status = int32(i64) + } + default: _, _ = key, value @@ -6459,14 +6366,14 @@ func awsRestjson1_deserializeOpDocumentDeleteNamespaceOutput(v **DeleteNamespace return nil } -type awsRestjson1_deserializeOpDeleteRefreshSchedule struct { +type awsRestjson1_deserializeOpDeleteGroup struct { } -func (*awsRestjson1_deserializeOpDeleteRefreshSchedule) ID() string { +func (*awsRestjson1_deserializeOpDeleteGroup) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDeleteRefreshSchedule) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDeleteGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -6480,12 +6387,12 @@ func (m *awsRestjson1_deserializeOpDeleteRefreshSchedule) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDeleteRefreshSchedule(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDeleteGroup(response, &metadata) } - output := &DeleteRefreshScheduleOutput{} + output := &DeleteGroupOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsDeleteRefreshScheduleOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsDeleteGroupOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -6508,7 +6415,7 @@ func (m *awsRestjson1_deserializeOpDeleteRefreshSchedule) HandleDeserialize(ctx return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentDeleteRefreshScheduleOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentDeleteGroupOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -6521,7 +6428,7 @@ func (m *awsRestjson1_deserializeOpDeleteRefreshSchedule) HandleDeserialize(ctx return out, metadata, err } -func awsRestjson1_deserializeOpErrorDeleteRefreshSchedule(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDeleteGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -6571,12 +6478,15 @@ func awsRestjson1_deserializeOpErrorDeleteRefreshSchedule(response *smithyhttp.R case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) - case strings.EqualFold("LimitExceededException", errorCode): - return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody) + case strings.EqualFold("PreconditionNotMetException", errorCode): + return awsRestjson1_deserializeErrorPreconditionNotMetException(response, errorBody) case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + case strings.EqualFold("ResourceUnavailableException", errorCode): + return awsRestjson1_deserializeErrorResourceUnavailableException(response, errorBody) + case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) @@ -6590,7 +6500,7 @@ func awsRestjson1_deserializeOpErrorDeleteRefreshSchedule(response *smithyhttp.R } } -func awsRestjson1_deserializeOpHttpBindingsDeleteRefreshScheduleOutput(v *DeleteRefreshScheduleOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsDeleteGroupOutput(v *DeleteGroupOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -6599,7 +6509,7 @@ func awsRestjson1_deserializeOpHttpBindingsDeleteRefreshScheduleOutput(v *Delete return nil } -func awsRestjson1_deserializeOpDocumentDeleteRefreshScheduleOutput(v **DeleteRefreshScheduleOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentDeleteGroupOutput(v **DeleteGroupOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6612,24 +6522,15 @@ func awsRestjson1_deserializeOpDocumentDeleteRefreshScheduleOutput(v **DeleteRef return fmt.Errorf("unexpected JSON type %v", value) } - var sv *DeleteRefreshScheduleOutput + var sv *DeleteGroupOutput if *v == nil { - sv = &DeleteRefreshScheduleOutput{} + sv = &DeleteGroupOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "Arn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.Arn = ptr.String(jtv) - } - case "RequestId": if value != nil { jtv, ok := value.(string) @@ -6639,15 +6540,6 @@ func awsRestjson1_deserializeOpDocumentDeleteRefreshScheduleOutput(v **DeleteRef sv.RequestId = ptr.String(jtv) } - case "ScheduleId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.ScheduleId = ptr.String(jtv) - } - default: _, _ = key, value @@ -6657,14 +6549,14 @@ func awsRestjson1_deserializeOpDocumentDeleteRefreshScheduleOutput(v **DeleteRef return nil } -type awsRestjson1_deserializeOpDeleteTemplate struct { +type awsRestjson1_deserializeOpDeleteGroupMembership struct { } -func (*awsRestjson1_deserializeOpDeleteTemplate) ID() string { +func (*awsRestjson1_deserializeOpDeleteGroupMembership) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDeleteTemplate) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDeleteGroupMembership) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -6678,12 +6570,12 @@ func (m *awsRestjson1_deserializeOpDeleteTemplate) HandleDeserialize(ctx context } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDeleteTemplate(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDeleteGroupMembership(response, &metadata) } - output := &DeleteTemplateOutput{} + output := &DeleteGroupMembershipOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsDeleteTemplateOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsDeleteGroupMembershipOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -6706,7 +6598,7 @@ func (m *awsRestjson1_deserializeOpDeleteTemplate) HandleDeserialize(ctx context return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentDeleteTemplateOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentDeleteGroupMembershipOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -6719,7 +6611,7 @@ func (m *awsRestjson1_deserializeOpDeleteTemplate) HandleDeserialize(ctx context return out, metadata, err } -func awsRestjson1_deserializeOpErrorDeleteTemplate(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDeleteGroupMembership(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -6760,8 +6652,8 @@ func awsRestjson1_deserializeOpErrorDeleteTemplate(response *smithyhttp.Response } switch { - case strings.EqualFold("ConflictException", errorCode): - return awsRestjson1_deserializeErrorConflictException(response, errorBody) + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) @@ -6769,18 +6661,18 @@ func awsRestjson1_deserializeOpErrorDeleteTemplate(response *smithyhttp.Response case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) - case strings.EqualFold("LimitExceededException", errorCode): - return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody) + case strings.EqualFold("PreconditionNotMetException", errorCode): + return awsRestjson1_deserializeErrorPreconditionNotMetException(response, errorBody) case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + case strings.EqualFold("ResourceUnavailableException", errorCode): + return awsRestjson1_deserializeErrorResourceUnavailableException(response, errorBody) + case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - case strings.EqualFold("UnsupportedUserEditionException", errorCode): - return awsRestjson1_deserializeErrorUnsupportedUserEditionException(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -6791,7 +6683,7 @@ func awsRestjson1_deserializeOpErrorDeleteTemplate(response *smithyhttp.Response } } -func awsRestjson1_deserializeOpHttpBindingsDeleteTemplateOutput(v *DeleteTemplateOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsDeleteGroupMembershipOutput(v *DeleteGroupMembershipOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -6800,7 +6692,7 @@ func awsRestjson1_deserializeOpHttpBindingsDeleteTemplateOutput(v *DeleteTemplat return nil } -func awsRestjson1_deserializeOpDocumentDeleteTemplateOutput(v **DeleteTemplateOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentDeleteGroupMembershipOutput(v **DeleteGroupMembershipOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6813,24 +6705,15 @@ func awsRestjson1_deserializeOpDocumentDeleteTemplateOutput(v **DeleteTemplateOu return fmt.Errorf("unexpected JSON type %v", value) } - var sv *DeleteTemplateOutput + var sv *DeleteGroupMembershipOutput if *v == nil { - sv = &DeleteTemplateOutput{} + sv = &DeleteGroupMembershipOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "Arn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.Arn = ptr.String(jtv) - } - case "RequestId": if value != nil { jtv, ok := value.(string) @@ -6840,15 +6723,6 @@ func awsRestjson1_deserializeOpDocumentDeleteTemplateOutput(v **DeleteTemplateOu sv.RequestId = ptr.String(jtv) } - case "TemplateId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) - } - sv.TemplateId = ptr.String(jtv) - } - default: _, _ = key, value @@ -6858,14 +6732,14 @@ func awsRestjson1_deserializeOpDocumentDeleteTemplateOutput(v **DeleteTemplateOu return nil } -type awsRestjson1_deserializeOpDeleteTemplateAlias struct { +type awsRestjson1_deserializeOpDeleteIAMPolicyAssignment struct { } -func (*awsRestjson1_deserializeOpDeleteTemplateAlias) ID() string { +func (*awsRestjson1_deserializeOpDeleteIAMPolicyAssignment) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDeleteTemplateAlias) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDeleteIAMPolicyAssignment) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -6879,12 +6753,12 @@ func (m *awsRestjson1_deserializeOpDeleteTemplateAlias) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDeleteTemplateAlias(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDeleteIAMPolicyAssignment(response, &metadata) } - output := &DeleteTemplateAliasOutput{} + output := &DeleteIAMPolicyAssignmentOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsDeleteTemplateAliasOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsDeleteIAMPolicyAssignmentOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -6907,7 +6781,7 @@ func (m *awsRestjson1_deserializeOpDeleteTemplateAlias) HandleDeserialize(ctx co return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentDeleteTemplateAliasOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentDeleteIAMPolicyAssignmentOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -6920,7 +6794,7 @@ func (m *awsRestjson1_deserializeOpDeleteTemplateAlias) HandleDeserialize(ctx co return out, metadata, err } -func awsRestjson1_deserializeOpErrorDeleteTemplateAlias(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDeleteIAMPolicyAssignment(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -6961,21 +6835,27 @@ func awsRestjson1_deserializeOpErrorDeleteTemplateAlias(response *smithyhttp.Res } switch { - case strings.EqualFold("ConflictException", errorCode): - return awsRestjson1_deserializeErrorConflictException(response, errorBody) + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConcurrentUpdatingException", errorCode): + return awsRestjson1_deserializeErrorConcurrentUpdatingException(response, errorBody) case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) + case strings.EqualFold("InvalidParameterValueException", errorCode): + return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) + + case strings.EqualFold("ResourceExistsException", errorCode): + return awsRestjson1_deserializeErrorResourceExistsException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - case strings.EqualFold("UnsupportedUserEditionException", errorCode): - return awsRestjson1_deserializeErrorUnsupportedUserEditionException(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -6986,7 +6866,7 @@ func awsRestjson1_deserializeOpErrorDeleteTemplateAlias(response *smithyhttp.Res } } -func awsRestjson1_deserializeOpHttpBindingsDeleteTemplateAliasOutput(v *DeleteTemplateAliasOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsDeleteIAMPolicyAssignmentOutput(v *DeleteIAMPolicyAssignmentOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -6995,7 +6875,7 @@ func awsRestjson1_deserializeOpHttpBindingsDeleteTemplateAliasOutput(v *DeleteTe return nil } -func awsRestjson1_deserializeOpDocumentDeleteTemplateAliasOutput(v **DeleteTemplateAliasOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentDeleteIAMPolicyAssignmentOutput(v **DeleteIAMPolicyAssignmentOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7008,31 +6888,22 @@ func awsRestjson1_deserializeOpDocumentDeleteTemplateAliasOutput(v **DeleteTempl return fmt.Errorf("unexpected JSON type %v", value) } - var sv *DeleteTemplateAliasOutput + var sv *DeleteIAMPolicyAssignmentOutput if *v == nil { - sv = &DeleteTemplateAliasOutput{} + sv = &DeleteIAMPolicyAssignmentOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "AliasName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected AliasName to be of type string, got %T instead", value) - } - sv.AliasName = ptr.String(jtv) - } - - case "Arn": + case "AssignmentName": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + return fmt.Errorf("expected IAMPolicyAssignmentName to be of type string, got %T instead", value) } - sv.Arn = ptr.String(jtv) + sv.AssignmentName = ptr.String(jtv) } case "RequestId": @@ -7044,15 +6915,6 @@ func awsRestjson1_deserializeOpDocumentDeleteTemplateAliasOutput(v **DeleteTempl sv.RequestId = ptr.String(jtv) } - case "TemplateId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) - } - sv.TemplateId = ptr.String(jtv) - } - default: _, _ = key, value @@ -7062,14 +6924,14 @@ func awsRestjson1_deserializeOpDocumentDeleteTemplateAliasOutput(v **DeleteTempl return nil } -type awsRestjson1_deserializeOpDeleteTheme struct { +type awsRestjson1_deserializeOpDeleteNamespace struct { } -func (*awsRestjson1_deserializeOpDeleteTheme) ID() string { +func (*awsRestjson1_deserializeOpDeleteNamespace) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDeleteTheme) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDeleteNamespace) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -7083,12 +6945,12 @@ func (m *awsRestjson1_deserializeOpDeleteTheme) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDeleteTheme(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDeleteNamespace(response, &metadata) } - output := &DeleteThemeOutput{} + output := &DeleteNamespaceOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsDeleteThemeOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsDeleteNamespaceOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -7111,7 +6973,7 @@ func (m *awsRestjson1_deserializeOpDeleteTheme) HandleDeserialize(ctx context.Co return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentDeleteThemeOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentDeleteNamespaceOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -7124,7 +6986,7 @@ func (m *awsRestjson1_deserializeOpDeleteTheme) HandleDeserialize(ctx context.Co return out, metadata, err } -func awsRestjson1_deserializeOpErrorDeleteTheme(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDeleteNamespace(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -7168,24 +7030,24 @@ func awsRestjson1_deserializeOpErrorDeleteTheme(response *smithyhttp.Response, m case strings.EqualFold("AccessDeniedException", errorCode): return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - case strings.EqualFold("ConflictException", errorCode): - return awsRestjson1_deserializeErrorConflictException(response, errorBody) - case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) + case strings.EqualFold("PreconditionNotMetException", errorCode): + return awsRestjson1_deserializeErrorPreconditionNotMetException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + case strings.EqualFold("ResourceUnavailableException", errorCode): + return awsRestjson1_deserializeErrorResourceUnavailableException(response, errorBody) + case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - case strings.EqualFold("UnsupportedUserEditionException", errorCode): - return awsRestjson1_deserializeErrorUnsupportedUserEditionException(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -7196,7 +7058,7 @@ func awsRestjson1_deserializeOpErrorDeleteTheme(response *smithyhttp.Response, m } } -func awsRestjson1_deserializeOpHttpBindingsDeleteThemeOutput(v *DeleteThemeOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsDeleteNamespaceOutput(v *DeleteNamespaceOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -7205,7 +7067,7 @@ func awsRestjson1_deserializeOpHttpBindingsDeleteThemeOutput(v *DeleteThemeOutpu return nil } -func awsRestjson1_deserializeOpDocumentDeleteThemeOutput(v **DeleteThemeOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentDeleteNamespaceOutput(v **DeleteNamespaceOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7218,24 +7080,15 @@ func awsRestjson1_deserializeOpDocumentDeleteThemeOutput(v **DeleteThemeOutput, return fmt.Errorf("unexpected JSON type %v", value) } - var sv *DeleteThemeOutput + var sv *DeleteNamespaceOutput if *v == nil { - sv = &DeleteThemeOutput{} + sv = &DeleteNamespaceOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "Arn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.Arn = ptr.String(jtv) - } - case "RequestId": if value != nil { jtv, ok := value.(string) @@ -7245,15 +7098,6 @@ func awsRestjson1_deserializeOpDocumentDeleteThemeOutput(v **DeleteThemeOutput, sv.RequestId = ptr.String(jtv) } - case "ThemeId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) - } - sv.ThemeId = ptr.String(jtv) - } - default: _, _ = key, value @@ -7263,14 +7107,14 @@ func awsRestjson1_deserializeOpDocumentDeleteThemeOutput(v **DeleteThemeOutput, return nil } -type awsRestjson1_deserializeOpDeleteThemeAlias struct { +type awsRestjson1_deserializeOpDeleteRefreshSchedule struct { } -func (*awsRestjson1_deserializeOpDeleteThemeAlias) ID() string { +func (*awsRestjson1_deserializeOpDeleteRefreshSchedule) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDeleteThemeAlias) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDeleteRefreshSchedule) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -7284,12 +7128,12 @@ func (m *awsRestjson1_deserializeOpDeleteThemeAlias) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDeleteThemeAlias(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDeleteRefreshSchedule(response, &metadata) } - output := &DeleteThemeAliasOutput{} + output := &DeleteRefreshScheduleOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsDeleteThemeAliasOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsDeleteRefreshScheduleOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -7312,7 +7156,7 @@ func (m *awsRestjson1_deserializeOpDeleteThemeAlias) HandleDeserialize(ctx conte return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentDeleteThemeAliasOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentDeleteRefreshScheduleOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -7325,7 +7169,7 @@ func (m *awsRestjson1_deserializeOpDeleteThemeAlias) HandleDeserialize(ctx conte return out, metadata, err } -func awsRestjson1_deserializeOpErrorDeleteThemeAlias(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDeleteRefreshSchedule(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -7366,8 +7210,8 @@ func awsRestjson1_deserializeOpErrorDeleteThemeAlias(response *smithyhttp.Respon } switch { - case strings.EqualFold("ConflictException", errorCode): - return awsRestjson1_deserializeErrorConflictException(response, errorBody) + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) @@ -7375,15 +7219,15 @@ func awsRestjson1_deserializeOpErrorDeleteThemeAlias(response *smithyhttp.Respon case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) + case strings.EqualFold("LimitExceededException", errorCode): + return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - case strings.EqualFold("UnsupportedUserEditionException", errorCode): - return awsRestjson1_deserializeErrorUnsupportedUserEditionException(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -7394,7 +7238,7 @@ func awsRestjson1_deserializeOpErrorDeleteThemeAlias(response *smithyhttp.Respon } } -func awsRestjson1_deserializeOpHttpBindingsDeleteThemeAliasOutput(v *DeleteThemeAliasOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsDeleteRefreshScheduleOutput(v *DeleteRefreshScheduleOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -7403,7 +7247,7 @@ func awsRestjson1_deserializeOpHttpBindingsDeleteThemeAliasOutput(v *DeleteTheme return nil } -func awsRestjson1_deserializeOpDocumentDeleteThemeAliasOutput(v **DeleteThemeAliasOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentDeleteRefreshScheduleOutput(v **DeleteRefreshScheduleOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7416,24 +7260,15 @@ func awsRestjson1_deserializeOpDocumentDeleteThemeAliasOutput(v **DeleteThemeAli return fmt.Errorf("unexpected JSON type %v", value) } - var sv *DeleteThemeAliasOutput + var sv *DeleteRefreshScheduleOutput if *v == nil { - sv = &DeleteThemeAliasOutput{} + sv = &DeleteRefreshScheduleOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "AliasName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected AliasName to be of type string, got %T instead", value) - } - sv.AliasName = ptr.String(jtv) - } - case "Arn": if value != nil { jtv, ok := value.(string) @@ -7452,13 +7287,13 @@ func awsRestjson1_deserializeOpDocumentDeleteThemeAliasOutput(v **DeleteThemeAli sv.RequestId = ptr.String(jtv) } - case "ThemeId": + case "ScheduleId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ThemeId = ptr.String(jtv) + sv.ScheduleId = ptr.String(jtv) } default: @@ -7470,14 +7305,14 @@ func awsRestjson1_deserializeOpDocumentDeleteThemeAliasOutput(v **DeleteThemeAli return nil } -type awsRestjson1_deserializeOpDeleteUser struct { +type awsRestjson1_deserializeOpDeleteTemplate struct { } -func (*awsRestjson1_deserializeOpDeleteUser) ID() string { +func (*awsRestjson1_deserializeOpDeleteTemplate) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDeleteUser) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDeleteTemplate) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -7491,12 +7326,12 @@ func (m *awsRestjson1_deserializeOpDeleteUser) HandleDeserialize(ctx context.Con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDeleteUser(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDeleteTemplate(response, &metadata) } - output := &DeleteUserOutput{} + output := &DeleteTemplateOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsDeleteUserOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsDeleteTemplateOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -7519,7 +7354,7 @@ func (m *awsRestjson1_deserializeOpDeleteUser) HandleDeserialize(ctx context.Con return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentDeleteUserOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentDeleteTemplateOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -7532,7 +7367,7 @@ func (m *awsRestjson1_deserializeOpDeleteUser) HandleDeserialize(ctx context.Con return out, metadata, err } -func awsRestjson1_deserializeOpErrorDeleteUser(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDeleteTemplate(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -7573,8 +7408,8 @@ func awsRestjson1_deserializeOpErrorDeleteUser(response *smithyhttp.Response, me } switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) @@ -7582,18 +7417,18 @@ func awsRestjson1_deserializeOpErrorDeleteUser(response *smithyhttp.Response, me case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) - case strings.EqualFold("PreconditionNotMetException", errorCode): - return awsRestjson1_deserializeErrorPreconditionNotMetException(response, errorBody) + case strings.EqualFold("LimitExceededException", errorCode): + return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody) case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - case strings.EqualFold("ResourceUnavailableException", errorCode): - return awsRestjson1_deserializeErrorResourceUnavailableException(response, errorBody) - case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + case strings.EqualFold("UnsupportedUserEditionException", errorCode): + return awsRestjson1_deserializeErrorUnsupportedUserEditionException(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -7604,7 +7439,7 @@ func awsRestjson1_deserializeOpErrorDeleteUser(response *smithyhttp.Response, me } } -func awsRestjson1_deserializeOpHttpBindingsDeleteUserOutput(v *DeleteUserOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsDeleteTemplateOutput(v *DeleteTemplateOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -7613,7 +7448,7 @@ func awsRestjson1_deserializeOpHttpBindingsDeleteUserOutput(v *DeleteUserOutput, return nil } -func awsRestjson1_deserializeOpDocumentDeleteUserOutput(v **DeleteUserOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentDeleteTemplateOutput(v **DeleteTemplateOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7626,15 +7461,24 @@ func awsRestjson1_deserializeOpDocumentDeleteUserOutput(v **DeleteUserOutput, va return fmt.Errorf("unexpected JSON type %v", value) } - var sv *DeleteUserOutput + var sv *DeleteTemplateOutput if *v == nil { - sv = &DeleteUserOutput{} + sv = &DeleteTemplateOutput{} } else { sv = *v } for key, value := range shape { switch key { + case "Arn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) + } + case "RequestId": if value != nil { jtv, ok := value.(string) @@ -7644,6 +7488,15 @@ func awsRestjson1_deserializeOpDocumentDeleteUserOutput(v **DeleteUserOutput, va sv.RequestId = ptr.String(jtv) } + case "TemplateId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + } + sv.TemplateId = ptr.String(jtv) + } + default: _, _ = key, value @@ -7653,14 +7506,14 @@ func awsRestjson1_deserializeOpDocumentDeleteUserOutput(v **DeleteUserOutput, va return nil } -type awsRestjson1_deserializeOpDeleteUserByPrincipalId struct { +type awsRestjson1_deserializeOpDeleteTemplateAlias struct { } -func (*awsRestjson1_deserializeOpDeleteUserByPrincipalId) ID() string { +func (*awsRestjson1_deserializeOpDeleteTemplateAlias) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDeleteUserByPrincipalId) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDeleteTemplateAlias) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -7674,12 +7527,12 @@ func (m *awsRestjson1_deserializeOpDeleteUserByPrincipalId) HandleDeserialize(ct } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDeleteUserByPrincipalId(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDeleteTemplateAlias(response, &metadata) } - output := &DeleteUserByPrincipalIdOutput{} + output := &DeleteTemplateAliasOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsDeleteUserByPrincipalIdOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsDeleteTemplateAliasOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -7702,7 +7555,7 @@ func (m *awsRestjson1_deserializeOpDeleteUserByPrincipalId) HandleDeserialize(ct return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentDeleteUserByPrincipalIdOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentDeleteTemplateAliasOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -7715,7 +7568,7 @@ func (m *awsRestjson1_deserializeOpDeleteUserByPrincipalId) HandleDeserialize(ct return out, metadata, err } -func awsRestjson1_deserializeOpErrorDeleteUserByPrincipalId(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDeleteTemplateAlias(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -7756,27 +7609,21 @@ func awsRestjson1_deserializeOpErrorDeleteUserByPrincipalId(response *smithyhttp } switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) - case strings.EqualFold("InvalidParameterValueException", errorCode): - return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) - - case strings.EqualFold("PreconditionNotMetException", errorCode): - return awsRestjson1_deserializeErrorPreconditionNotMetException(response, errorBody) - case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - case strings.EqualFold("ResourceUnavailableException", errorCode): - return awsRestjson1_deserializeErrorResourceUnavailableException(response, errorBody) - case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + case strings.EqualFold("UnsupportedUserEditionException", errorCode): + return awsRestjson1_deserializeErrorUnsupportedUserEditionException(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -7787,7 +7634,7 @@ func awsRestjson1_deserializeOpErrorDeleteUserByPrincipalId(response *smithyhttp } } -func awsRestjson1_deserializeOpHttpBindingsDeleteUserByPrincipalIdOutput(v *DeleteUserByPrincipalIdOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsDeleteTemplateAliasOutput(v *DeleteTemplateAliasOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -7796,7 +7643,7 @@ func awsRestjson1_deserializeOpHttpBindingsDeleteUserByPrincipalIdOutput(v *Dele return nil } -func awsRestjson1_deserializeOpDocumentDeleteUserByPrincipalIdOutput(v **DeleteUserByPrincipalIdOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentDeleteTemplateAliasOutput(v **DeleteTemplateAliasOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7809,15 +7656,33 @@ func awsRestjson1_deserializeOpDocumentDeleteUserByPrincipalIdOutput(v **DeleteU return fmt.Errorf("unexpected JSON type %v", value) } - var sv *DeleteUserByPrincipalIdOutput + var sv *DeleteTemplateAliasOutput if *v == nil { - sv = &DeleteUserByPrincipalIdOutput{} + sv = &DeleteTemplateAliasOutput{} } else { sv = *v } for key, value := range shape { switch key { + case "AliasName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AliasName to be of type string, got %T instead", value) + } + sv.AliasName = ptr.String(jtv) + } + + case "Arn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) + } + case "RequestId": if value != nil { jtv, ok := value.(string) @@ -7827,6 +7692,15 @@ func awsRestjson1_deserializeOpDocumentDeleteUserByPrincipalIdOutput(v **DeleteU sv.RequestId = ptr.String(jtv) } + case "TemplateId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + } + sv.TemplateId = ptr.String(jtv) + } + default: _, _ = key, value @@ -7836,14 +7710,14 @@ func awsRestjson1_deserializeOpDocumentDeleteUserByPrincipalIdOutput(v **DeleteU return nil } -type awsRestjson1_deserializeOpDescribeAccountCustomization struct { +type awsRestjson1_deserializeOpDeleteTheme struct { } -func (*awsRestjson1_deserializeOpDescribeAccountCustomization) ID() string { +func (*awsRestjson1_deserializeOpDeleteTheme) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDescribeAccountCustomization) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDeleteTheme) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -7857,12 +7731,12 @@ func (m *awsRestjson1_deserializeOpDescribeAccountCustomization) HandleDeseriali } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDescribeAccountCustomization(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDeleteTheme(response, &metadata) } - output := &DescribeAccountCustomizationOutput{} + output := &DeleteThemeOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsDescribeAccountCustomizationOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsDeleteThemeOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -7885,7 +7759,7 @@ func (m *awsRestjson1_deserializeOpDescribeAccountCustomization) HandleDeseriali return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentDescribeAccountCustomizationOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentDeleteThemeOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -7898,7 +7772,7 @@ func (m *awsRestjson1_deserializeOpDescribeAccountCustomization) HandleDeseriali return out, metadata, err } -func awsRestjson1_deserializeOpErrorDescribeAccountCustomization(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDeleteTheme(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -7942,6 +7816,9 @@ func awsRestjson1_deserializeOpErrorDescribeAccountCustomization(response *smith case strings.EqualFold("AccessDeniedException", errorCode): return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) @@ -7951,12 +7828,12 @@ func awsRestjson1_deserializeOpErrorDescribeAccountCustomization(response *smith case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - case strings.EqualFold("ResourceUnavailableException", errorCode): - return awsRestjson1_deserializeErrorResourceUnavailableException(response, errorBody) - case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + case strings.EqualFold("UnsupportedUserEditionException", errorCode): + return awsRestjson1_deserializeErrorUnsupportedUserEditionException(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -7967,7 +7844,7 @@ func awsRestjson1_deserializeOpErrorDescribeAccountCustomization(response *smith } } -func awsRestjson1_deserializeOpHttpBindingsDescribeAccountCustomizationOutput(v *DescribeAccountCustomizationOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsDeleteThemeOutput(v *DeleteThemeOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -7976,7 +7853,7 @@ func awsRestjson1_deserializeOpHttpBindingsDescribeAccountCustomizationOutput(v return nil } -func awsRestjson1_deserializeOpDocumentDescribeAccountCustomizationOutput(v **DescribeAccountCustomizationOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentDeleteThemeOutput(v **DeleteThemeOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7989,20 +7866,15 @@ func awsRestjson1_deserializeOpDocumentDescribeAccountCustomizationOutput(v **De return fmt.Errorf("unexpected JSON type %v", value) } - var sv *DescribeAccountCustomizationOutput + var sv *DeleteThemeOutput if *v == nil { - sv = &DescribeAccountCustomizationOutput{} + sv = &DeleteThemeOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "AccountCustomization": - if err := awsRestjson1_deserializeDocumentAccountCustomization(&sv.AccountCustomization, value); err != nil { - return err - } - case "Arn": if value != nil { jtv, ok := value.(string) @@ -8012,31 +7884,22 @@ func awsRestjson1_deserializeOpDocumentDescribeAccountCustomizationOutput(v **De sv.Arn = ptr.String(jtv) } - case "AwsAccountId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected AwsAccountId to be of type string, got %T instead", value) - } - sv.AwsAccountId = ptr.String(jtv) - } - - case "Namespace": + case "RequestId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Namespace to be of type string, got %T instead", value) + return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Namespace = ptr.String(jtv) + sv.RequestId = ptr.String(jtv) } - case "RequestId": + case "ThemeId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) } - sv.RequestId = ptr.String(jtv) + sv.ThemeId = ptr.String(jtv) } default: @@ -8048,14 +7911,14 @@ func awsRestjson1_deserializeOpDocumentDescribeAccountCustomizationOutput(v **De return nil } -type awsRestjson1_deserializeOpDescribeAccountSettings struct { +type awsRestjson1_deserializeOpDeleteThemeAlias struct { } -func (*awsRestjson1_deserializeOpDescribeAccountSettings) ID() string { +func (*awsRestjson1_deserializeOpDeleteThemeAlias) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDescribeAccountSettings) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDeleteThemeAlias) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -8069,12 +7932,12 @@ func (m *awsRestjson1_deserializeOpDescribeAccountSettings) HandleDeserialize(ct } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDescribeAccountSettings(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDeleteThemeAlias(response, &metadata) } - output := &DescribeAccountSettingsOutput{} + output := &DeleteThemeAliasOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsDescribeAccountSettingsOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsDeleteThemeAliasOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -8097,7 +7960,7 @@ func (m *awsRestjson1_deserializeOpDescribeAccountSettings) HandleDeserialize(ct return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentDescribeAccountSettingsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentDeleteThemeAliasOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -8110,7 +7973,7 @@ func (m *awsRestjson1_deserializeOpDescribeAccountSettings) HandleDeserialize(ct return out, metadata, err } -func awsRestjson1_deserializeOpErrorDescribeAccountSettings(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDeleteThemeAlias(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -8151,8 +8014,8 @@ func awsRestjson1_deserializeOpErrorDescribeAccountSettings(response *smithyhttp } switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) @@ -8163,12 +8026,12 @@ func awsRestjson1_deserializeOpErrorDescribeAccountSettings(response *smithyhttp case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - case strings.EqualFold("ResourceUnavailableException", errorCode): - return awsRestjson1_deserializeErrorResourceUnavailableException(response, errorBody) - case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + case strings.EqualFold("UnsupportedUserEditionException", errorCode): + return awsRestjson1_deserializeErrorUnsupportedUserEditionException(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -8179,7 +8042,7 @@ func awsRestjson1_deserializeOpErrorDescribeAccountSettings(response *smithyhttp } } -func awsRestjson1_deserializeOpHttpBindingsDescribeAccountSettingsOutput(v *DescribeAccountSettingsOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsDeleteThemeAliasOutput(v *DeleteThemeAliasOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -8188,7 +8051,7 @@ func awsRestjson1_deserializeOpHttpBindingsDescribeAccountSettingsOutput(v *Desc return nil } -func awsRestjson1_deserializeOpDocumentDescribeAccountSettingsOutput(v **DescribeAccountSettingsOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentDeleteThemeAliasOutput(v **DeleteThemeAliasOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8201,18 +8064,31 @@ func awsRestjson1_deserializeOpDocumentDescribeAccountSettingsOutput(v **Describ return fmt.Errorf("unexpected JSON type %v", value) } - var sv *DescribeAccountSettingsOutput + var sv *DeleteThemeAliasOutput if *v == nil { - sv = &DescribeAccountSettingsOutput{} + sv = &DeleteThemeAliasOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "AccountSettings": - if err := awsRestjson1_deserializeDocumentAccountSettings(&sv.AccountSettings, value); err != nil { - return err + case "AliasName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AliasName to be of type string, got %T instead", value) + } + sv.AliasName = ptr.String(jtv) + } + + case "Arn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) } case "RequestId": @@ -8224,6 +8100,15 @@ func awsRestjson1_deserializeOpDocumentDescribeAccountSettingsOutput(v **Describ sv.RequestId = ptr.String(jtv) } + case "ThemeId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + } + sv.ThemeId = ptr.String(jtv) + } + default: _, _ = key, value @@ -8233,14 +8118,14 @@ func awsRestjson1_deserializeOpDocumentDescribeAccountSettingsOutput(v **Describ return nil } -type awsRestjson1_deserializeOpDescribeAccountSubscription struct { +type awsRestjson1_deserializeOpDeleteTopic struct { } -func (*awsRestjson1_deserializeOpDescribeAccountSubscription) ID() string { +func (*awsRestjson1_deserializeOpDeleteTopic) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDescribeAccountSubscription) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDeleteTopic) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -8254,12 +8139,12 @@ func (m *awsRestjson1_deserializeOpDescribeAccountSubscription) HandleDeserializ } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDescribeAccountSubscription(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDeleteTopic(response, &metadata) } - output := &DescribeAccountSubscriptionOutput{} + output := &DeleteTopicOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsDescribeAccountSubscriptionOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsDeleteTopicOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -8282,7 +8167,7 @@ func (m *awsRestjson1_deserializeOpDescribeAccountSubscription) HandleDeserializ return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentDescribeAccountSubscriptionOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentDeleteTopicOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -8295,7 +8180,7 @@ func (m *awsRestjson1_deserializeOpDescribeAccountSubscription) HandleDeserializ return out, metadata, err } -func awsRestjson1_deserializeOpErrorDescribeAccountSubscription(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDeleteTopic(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -8339,6 +8224,9 @@ func awsRestjson1_deserializeOpErrorDescribeAccountSubscription(response *smithy case strings.EqualFold("AccessDeniedException", errorCode): return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) @@ -8348,9 +8236,6 @@ func awsRestjson1_deserializeOpErrorDescribeAccountSubscription(response *smithy case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - case strings.EqualFold("ResourceUnavailableException", errorCode): - return awsRestjson1_deserializeErrorResourceUnavailableException(response, errorBody) - case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) @@ -8364,7 +8249,7 @@ func awsRestjson1_deserializeOpErrorDescribeAccountSubscription(response *smithy } } -func awsRestjson1_deserializeOpHttpBindingsDescribeAccountSubscriptionOutput(v *DescribeAccountSubscriptionOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsDeleteTopicOutput(v *DeleteTopicOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -8373,7 +8258,7 @@ func awsRestjson1_deserializeOpHttpBindingsDescribeAccountSubscriptionOutput(v * return nil } -func awsRestjson1_deserializeOpDocumentDescribeAccountSubscriptionOutput(v **DescribeAccountSubscriptionOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentDeleteTopicOutput(v **DeleteTopicOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8386,18 +8271,22 @@ func awsRestjson1_deserializeOpDocumentDescribeAccountSubscriptionOutput(v **Des return fmt.Errorf("unexpected JSON type %v", value) } - var sv *DescribeAccountSubscriptionOutput + var sv *DeleteTopicOutput if *v == nil { - sv = &DescribeAccountSubscriptionOutput{} + sv = &DeleteTopicOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "AccountInfo": - if err := awsRestjson1_deserializeDocumentAccountInfo(&sv.AccountInfo, value); err != nil { - return err + case "Arn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) } case "RequestId": @@ -8409,6 +8298,15 @@ func awsRestjson1_deserializeOpDocumentDescribeAccountSubscriptionOutput(v **Des sv.RequestId = ptr.String(jtv) } + case "TopicId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TopicId to be of type string, got %T instead", value) + } + sv.TopicId = ptr.String(jtv) + } + default: _, _ = key, value @@ -8418,14 +8316,14 @@ func awsRestjson1_deserializeOpDocumentDescribeAccountSubscriptionOutput(v **Des return nil } -type awsRestjson1_deserializeOpDescribeAnalysis struct { +type awsRestjson1_deserializeOpDeleteTopicRefreshSchedule struct { } -func (*awsRestjson1_deserializeOpDescribeAnalysis) ID() string { +func (*awsRestjson1_deserializeOpDeleteTopicRefreshSchedule) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDescribeAnalysis) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDeleteTopicRefreshSchedule) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -8439,12 +8337,12 @@ func (m *awsRestjson1_deserializeOpDescribeAnalysis) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDescribeAnalysis(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDeleteTopicRefreshSchedule(response, &metadata) } - output := &DescribeAnalysisOutput{} + output := &DeleteTopicRefreshScheduleOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsDescribeAnalysisOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsDeleteTopicRefreshScheduleOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -8467,7 +8365,7 @@ func (m *awsRestjson1_deserializeOpDescribeAnalysis) HandleDeserialize(ctx conte return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentDescribeAnalysisOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentDeleteTopicRefreshScheduleOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -8480,7 +8378,7 @@ func (m *awsRestjson1_deserializeOpDescribeAnalysis) HandleDeserialize(ctx conte return out, metadata, err } -func awsRestjson1_deserializeOpErrorDescribeAnalysis(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDeleteTopicRefreshSchedule(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -8524,21 +8422,27 @@ func awsRestjson1_deserializeOpErrorDescribeAnalysis(response *smithyhttp.Respon case strings.EqualFold("AccessDeniedException", errorCode): return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) + case strings.EqualFold("LimitExceededException", errorCode): + return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody) + + case strings.EqualFold("ResourceExistsException", errorCode): + return awsRestjson1_deserializeErrorResourceExistsException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - case strings.EqualFold("UnsupportedUserEditionException", errorCode): - return awsRestjson1_deserializeErrorUnsupportedUserEditionException(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -8549,7 +8453,7 @@ func awsRestjson1_deserializeOpErrorDescribeAnalysis(response *smithyhttp.Respon } } -func awsRestjson1_deserializeOpHttpBindingsDescribeAnalysisOutput(v *DescribeAnalysisOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsDeleteTopicRefreshScheduleOutput(v *DeleteTopicRefreshScheduleOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -8558,7 +8462,7 @@ func awsRestjson1_deserializeOpHttpBindingsDescribeAnalysisOutput(v *DescribeAna return nil } -func awsRestjson1_deserializeOpDocumentDescribeAnalysisOutput(v **DescribeAnalysisOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentDeleteTopicRefreshScheduleOutput(v **DeleteTopicRefreshScheduleOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8571,18 +8475,22 @@ func awsRestjson1_deserializeOpDocumentDescribeAnalysisOutput(v **DescribeAnalys return fmt.Errorf("unexpected JSON type %v", value) } - var sv *DescribeAnalysisOutput + var sv *DeleteTopicRefreshScheduleOutput if *v == nil { - sv = &DescribeAnalysisOutput{} + sv = &DeleteTopicRefreshScheduleOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "Analysis": - if err := awsRestjson1_deserializeDocumentAnalysis(&sv.Analysis, value); err != nil { - return err + case "DatasetArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.DatasetArn = ptr.String(jtv) } case "RequestId": @@ -8594,6 +8502,24 @@ func awsRestjson1_deserializeOpDocumentDescribeAnalysisOutput(v **DescribeAnalys sv.RequestId = ptr.String(jtv) } + case "TopicArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.TopicArn = ptr.String(jtv) + } + + case "TopicId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TopicId to be of type string, got %T instead", value) + } + sv.TopicId = ptr.String(jtv) + } + default: _, _ = key, value @@ -8603,14 +8529,14 @@ func awsRestjson1_deserializeOpDocumentDescribeAnalysisOutput(v **DescribeAnalys return nil } -type awsRestjson1_deserializeOpDescribeAnalysisDefinition struct { +type awsRestjson1_deserializeOpDeleteUser struct { } -func (*awsRestjson1_deserializeOpDescribeAnalysisDefinition) ID() string { +func (*awsRestjson1_deserializeOpDeleteUser) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDescribeAnalysisDefinition) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDeleteUser) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -8624,12 +8550,12 @@ func (m *awsRestjson1_deserializeOpDescribeAnalysisDefinition) HandleDeserialize } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDescribeAnalysisDefinition(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDeleteUser(response, &metadata) } - output := &DescribeAnalysisDefinitionOutput{} + output := &DeleteUserOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsDescribeAnalysisDefinitionOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsDeleteUserOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -8652,7 +8578,7 @@ func (m *awsRestjson1_deserializeOpDescribeAnalysisDefinition) HandleDeserialize return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentDescribeAnalysisDefinitionOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentDeleteUserOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -8665,7 +8591,7 @@ func (m *awsRestjson1_deserializeOpDescribeAnalysisDefinition) HandleDeserialize return out, metadata, err } -func awsRestjson1_deserializeOpErrorDescribeAnalysisDefinition(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDeleteUser(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -8709,27 +8635,24 @@ func awsRestjson1_deserializeOpErrorDescribeAnalysisDefinition(response *smithyh case strings.EqualFold("AccessDeniedException", errorCode): return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - case strings.EqualFold("ConflictException", errorCode): - return awsRestjson1_deserializeErrorConflictException(response, errorBody) - case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) - case strings.EqualFold("ResourceExistsException", errorCode): - return awsRestjson1_deserializeErrorResourceExistsException(response, errorBody) + case strings.EqualFold("PreconditionNotMetException", errorCode): + return awsRestjson1_deserializeErrorPreconditionNotMetException(response, errorBody) case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + case strings.EqualFold("ResourceUnavailableException", errorCode): + return awsRestjson1_deserializeErrorResourceUnavailableException(response, errorBody) + case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - case strings.EqualFold("UnsupportedUserEditionException", errorCode): - return awsRestjson1_deserializeErrorUnsupportedUserEditionException(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -8740,7 +8663,7 @@ func awsRestjson1_deserializeOpErrorDescribeAnalysisDefinition(response *smithyh } } -func awsRestjson1_deserializeOpHttpBindingsDescribeAnalysisDefinitionOutput(v *DescribeAnalysisDefinitionOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsDeleteUserOutput(v *DeleteUserOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -8749,7 +8672,7 @@ func awsRestjson1_deserializeOpHttpBindingsDescribeAnalysisDefinitionOutput(v *D return nil } -func awsRestjson1_deserializeOpDocumentDescribeAnalysisDefinitionOutput(v **DescribeAnalysisDefinitionOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentDeleteUserOutput(v **DeleteUserOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8762,43 +8685,15 @@ func awsRestjson1_deserializeOpDocumentDescribeAnalysisDefinitionOutput(v **Desc return fmt.Errorf("unexpected JSON type %v", value) } - var sv *DescribeAnalysisDefinitionOutput + var sv *DeleteUserOutput if *v == nil { - sv = &DescribeAnalysisDefinitionOutput{} + sv = &DeleteUserOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "AnalysisId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) - } - sv.AnalysisId = ptr.String(jtv) - } - - case "Definition": - if err := awsRestjson1_deserializeDocumentAnalysisDefinition(&sv.Definition, value); err != nil { - return err - } - - case "Errors": - if err := awsRestjson1_deserializeDocumentAnalysisErrorList(&sv.Errors, value); err != nil { - return err - } - - case "Name": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected AnalysisName to be of type string, got %T instead", value) - } - sv.Name = ptr.String(jtv) - } - case "RequestId": if value != nil { jtv, ok := value.(string) @@ -8808,24 +8703,6 @@ func awsRestjson1_deserializeOpDocumentDescribeAnalysisDefinitionOutput(v **Desc sv.RequestId = ptr.String(jtv) } - case "ResourceStatus": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ResourceStatus to be of type string, got %T instead", value) - } - sv.ResourceStatus = types.ResourceStatus(jtv) - } - - case "ThemeArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.ThemeArn = ptr.String(jtv) - } - default: _, _ = key, value @@ -8835,14 +8712,14 @@ func awsRestjson1_deserializeOpDocumentDescribeAnalysisDefinitionOutput(v **Desc return nil } -type awsRestjson1_deserializeOpDescribeAnalysisPermissions struct { +type awsRestjson1_deserializeOpDeleteUserByPrincipalId struct { } -func (*awsRestjson1_deserializeOpDescribeAnalysisPermissions) ID() string { +func (*awsRestjson1_deserializeOpDeleteUserByPrincipalId) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDescribeAnalysisPermissions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDeleteUserByPrincipalId) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -8856,12 +8733,12 @@ func (m *awsRestjson1_deserializeOpDescribeAnalysisPermissions) HandleDeserializ } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDescribeAnalysisPermissions(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDeleteUserByPrincipalId(response, &metadata) } - output := &DescribeAnalysisPermissionsOutput{} + output := &DeleteUserByPrincipalIdOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsDescribeAnalysisPermissionsOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsDeleteUserByPrincipalIdOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -8884,7 +8761,7 @@ func (m *awsRestjson1_deserializeOpDescribeAnalysisPermissions) HandleDeserializ return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentDescribeAnalysisPermissionsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentDeleteUserByPrincipalIdOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -8897,7 +8774,7 @@ func (m *awsRestjson1_deserializeOpDescribeAnalysisPermissions) HandleDeserializ return out, metadata, err } -func awsRestjson1_deserializeOpErrorDescribeAnalysisPermissions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDeleteUserByPrincipalId(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -8938,21 +8815,27 @@ func awsRestjson1_deserializeOpErrorDescribeAnalysisPermissions(response *smithy } switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) + case strings.EqualFold("PreconditionNotMetException", errorCode): + return awsRestjson1_deserializeErrorPreconditionNotMetException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + case strings.EqualFold("ResourceUnavailableException", errorCode): + return awsRestjson1_deserializeErrorResourceUnavailableException(response, errorBody) + case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - case strings.EqualFold("UnsupportedUserEditionException", errorCode): - return awsRestjson1_deserializeErrorUnsupportedUserEditionException(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -8963,7 +8846,7 @@ func awsRestjson1_deserializeOpErrorDescribeAnalysisPermissions(response *smithy } } -func awsRestjson1_deserializeOpHttpBindingsDescribeAnalysisPermissionsOutput(v *DescribeAnalysisPermissionsOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsDeleteUserByPrincipalIdOutput(v *DeleteUserByPrincipalIdOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -8972,7 +8855,7 @@ func awsRestjson1_deserializeOpHttpBindingsDescribeAnalysisPermissionsOutput(v * return nil } -func awsRestjson1_deserializeOpDocumentDescribeAnalysisPermissionsOutput(v **DescribeAnalysisPermissionsOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentDeleteUserByPrincipalIdOutput(v **DeleteUserByPrincipalIdOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8985,38 +8868,15 @@ func awsRestjson1_deserializeOpDocumentDescribeAnalysisPermissionsOutput(v **Des return fmt.Errorf("unexpected JSON type %v", value) } - var sv *DescribeAnalysisPermissionsOutput + var sv *DeleteUserByPrincipalIdOutput if *v == nil { - sv = &DescribeAnalysisPermissionsOutput{} + sv = &DeleteUserByPrincipalIdOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "AnalysisArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.AnalysisArn = ptr.String(jtv) - } - - case "AnalysisId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) - } - sv.AnalysisId = ptr.String(jtv) - } - - case "Permissions": - if err := awsRestjson1_deserializeDocumentResourcePermissionList(&sv.Permissions, value); err != nil { - return err - } - case "RequestId": if value != nil { jtv, ok := value.(string) @@ -9035,14 +8895,14 @@ func awsRestjson1_deserializeOpDocumentDescribeAnalysisPermissionsOutput(v **Des return nil } -type awsRestjson1_deserializeOpDescribeDashboard struct { +type awsRestjson1_deserializeOpDeleteVPCConnection struct { } -func (*awsRestjson1_deserializeOpDescribeDashboard) ID() string { +func (*awsRestjson1_deserializeOpDeleteVPCConnection) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDescribeDashboard) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDeleteVPCConnection) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -9056,12 +8916,12 @@ func (m *awsRestjson1_deserializeOpDescribeDashboard) HandleDeserialize(ctx cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDescribeDashboard(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDeleteVPCConnection(response, &metadata) } - output := &DescribeDashboardOutput{} + output := &DeleteVPCConnectionOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsDescribeDashboardOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsDeleteVPCConnectionOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -9084,7 +8944,7 @@ func (m *awsRestjson1_deserializeOpDescribeDashboard) HandleDeserialize(ctx cont return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentDescribeDashboardOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentDeleteVPCConnectionOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -9097,7 +8957,7 @@ func (m *awsRestjson1_deserializeOpDescribeDashboard) HandleDeserialize(ctx cont return out, metadata, err } -func awsRestjson1_deserializeOpErrorDescribeDashboard(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDeleteVPCConnection(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -9141,6 +9001,9 @@ func awsRestjson1_deserializeOpErrorDescribeDashboard(response *smithyhttp.Respo case strings.EqualFold("AccessDeniedException", errorCode): return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) @@ -9166,7 +9029,7 @@ func awsRestjson1_deserializeOpErrorDescribeDashboard(response *smithyhttp.Respo } } -func awsRestjson1_deserializeOpHttpBindingsDescribeDashboardOutput(v *DescribeDashboardOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsDeleteVPCConnectionOutput(v *DeleteVPCConnectionOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -9175,7 +9038,7 @@ func awsRestjson1_deserializeOpHttpBindingsDescribeDashboardOutput(v *DescribeDa return nil } -func awsRestjson1_deserializeOpDocumentDescribeDashboardOutput(v **DescribeDashboardOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentDeleteVPCConnectionOutput(v **DeleteVPCConnectionOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9188,18 +9051,40 @@ func awsRestjson1_deserializeOpDocumentDescribeDashboardOutput(v **DescribeDashb return fmt.Errorf("unexpected JSON type %v", value) } - var sv *DescribeDashboardOutput + var sv *DeleteVPCConnectionOutput if *v == nil { - sv = &DescribeDashboardOutput{} + sv = &DeleteVPCConnectionOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "Dashboard": - if err := awsRestjson1_deserializeDocumentDashboard(&sv.Dashboard, value); err != nil { - return err + case "Arn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) + } + + case "AvailabilityStatus": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected VPCConnectionAvailabilityStatus to be of type string, got %T instead", value) + } + sv.AvailabilityStatus = types.VPCConnectionAvailabilityStatus(jtv) + } + + case "DeletionStatus": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected VPCConnectionResourceStatus to be of type string, got %T instead", value) + } + sv.DeletionStatus = types.VPCConnectionResourceStatus(jtv) } case "RequestId": @@ -9211,6 +9096,15 @@ func awsRestjson1_deserializeOpDocumentDescribeDashboardOutput(v **DescribeDashb sv.RequestId = ptr.String(jtv) } + case "VPCConnectionId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected VPCConnectionResourceIdUnrestricted to be of type string, got %T instead", value) + } + sv.VPCConnectionId = ptr.String(jtv) + } + default: _, _ = key, value @@ -9220,14 +9114,14 @@ func awsRestjson1_deserializeOpDocumentDescribeDashboardOutput(v **DescribeDashb return nil } -type awsRestjson1_deserializeOpDescribeDashboardDefinition struct { +type awsRestjson1_deserializeOpDescribeAccountCustomization struct { } -func (*awsRestjson1_deserializeOpDescribeDashboardDefinition) ID() string { +func (*awsRestjson1_deserializeOpDescribeAccountCustomization) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDescribeDashboardDefinition) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDescribeAccountCustomization) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -9241,12 +9135,12 @@ func (m *awsRestjson1_deserializeOpDescribeDashboardDefinition) HandleDeserializ } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDescribeDashboardDefinition(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDescribeAccountCustomization(response, &metadata) } - output := &DescribeDashboardDefinitionOutput{} + output := &DescribeAccountCustomizationOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsDescribeDashboardDefinitionOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsDescribeAccountCustomizationOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -9269,7 +9163,7 @@ func (m *awsRestjson1_deserializeOpDescribeDashboardDefinition) HandleDeserializ return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentDescribeDashboardDefinitionOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentDescribeAccountCustomizationOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -9282,7 +9176,7 @@ func (m *awsRestjson1_deserializeOpDescribeDashboardDefinition) HandleDeserializ return out, metadata, err } -func awsRestjson1_deserializeOpErrorDescribeDashboardDefinition(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDescribeAccountCustomization(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -9326,27 +9220,21 @@ func awsRestjson1_deserializeOpErrorDescribeDashboardDefinition(response *smithy case strings.EqualFold("AccessDeniedException", errorCode): return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - case strings.EqualFold("ConflictException", errorCode): - return awsRestjson1_deserializeErrorConflictException(response, errorBody) - case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) - case strings.EqualFold("ResourceExistsException", errorCode): - return awsRestjson1_deserializeErrorResourceExistsException(response, errorBody) - case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + case strings.EqualFold("ResourceUnavailableException", errorCode): + return awsRestjson1_deserializeErrorResourceUnavailableException(response, errorBody) + case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - case strings.EqualFold("UnsupportedUserEditionException", errorCode): - return awsRestjson1_deserializeErrorUnsupportedUserEditionException(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -9357,7 +9245,7 @@ func awsRestjson1_deserializeOpErrorDescribeDashboardDefinition(response *smithy } } -func awsRestjson1_deserializeOpHttpBindingsDescribeDashboardDefinitionOutput(v *DescribeDashboardDefinitionOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsDescribeAccountCustomizationOutput(v *DescribeAccountCustomizationOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -9366,7 +9254,7 @@ func awsRestjson1_deserializeOpHttpBindingsDescribeDashboardDefinitionOutput(v * return nil } -func awsRestjson1_deserializeOpDocumentDescribeDashboardDefinitionOutput(v **DescribeDashboardDefinitionOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentDescribeAccountCustomizationOutput(v **DescribeAccountCustomizationOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9379,73 +9267,54 @@ func awsRestjson1_deserializeOpDocumentDescribeDashboardDefinitionOutput(v **Des return fmt.Errorf("unexpected JSON type %v", value) } - var sv *DescribeDashboardDefinitionOutput + var sv *DescribeAccountCustomizationOutput if *v == nil { - sv = &DescribeDashboardDefinitionOutput{} + sv = &DescribeAccountCustomizationOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "DashboardId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) - } - sv.DashboardId = ptr.String(jtv) - } - - case "DashboardPublishOptions": - if err := awsRestjson1_deserializeDocumentDashboardPublishOptions(&sv.DashboardPublishOptions, value); err != nil { - return err - } - - case "Definition": - if err := awsRestjson1_deserializeDocumentDashboardVersionDefinition(&sv.Definition, value); err != nil { - return err - } - - case "Errors": - if err := awsRestjson1_deserializeDocumentDashboardErrorList(&sv.Errors, value); err != nil { + case "AccountCustomization": + if err := awsRestjson1_deserializeDocumentAccountCustomization(&sv.AccountCustomization, value); err != nil { return err } - case "Name": + case "Arn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected DashboardName to be of type string, got %T instead", value) + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Name = ptr.String(jtv) + sv.Arn = ptr.String(jtv) } - case "RequestId": + case "AwsAccountId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) + return fmt.Errorf("expected AwsAccountId to be of type string, got %T instead", value) } - sv.RequestId = ptr.String(jtv) + sv.AwsAccountId = ptr.String(jtv) } - case "ResourceStatus": + case "Namespace": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ResourceStatus to be of type string, got %T instead", value) + return fmt.Errorf("expected Namespace to be of type string, got %T instead", value) } - sv.ResourceStatus = types.ResourceStatus(jtv) + sv.Namespace = ptr.String(jtv) } - case "ThemeArn": + case "RequestId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ThemeArn = ptr.String(jtv) + sv.RequestId = ptr.String(jtv) } default: @@ -9457,14 +9326,14 @@ func awsRestjson1_deserializeOpDocumentDescribeDashboardDefinitionOutput(v **Des return nil } -type awsRestjson1_deserializeOpDescribeDashboardPermissions struct { +type awsRestjson1_deserializeOpDescribeAccountSettings struct { } -func (*awsRestjson1_deserializeOpDescribeDashboardPermissions) ID() string { +func (*awsRestjson1_deserializeOpDescribeAccountSettings) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDescribeDashboardPermissions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDescribeAccountSettings) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -9478,12 +9347,12 @@ func (m *awsRestjson1_deserializeOpDescribeDashboardPermissions) HandleDeseriali } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDescribeDashboardPermissions(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDescribeAccountSettings(response, &metadata) } - output := &DescribeDashboardPermissionsOutput{} + output := &DescribeAccountSettingsOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsDescribeDashboardPermissionsOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsDescribeAccountSettingsOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -9506,7 +9375,7 @@ func (m *awsRestjson1_deserializeOpDescribeDashboardPermissions) HandleDeseriali return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentDescribeDashboardPermissionsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentDescribeAccountSettingsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -9519,7 +9388,7 @@ func (m *awsRestjson1_deserializeOpDescribeDashboardPermissions) HandleDeseriali return out, metadata, err } -func awsRestjson1_deserializeOpErrorDescribeDashboardPermissions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDescribeAccountSettings(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -9560,6 +9429,9 @@ func awsRestjson1_deserializeOpErrorDescribeDashboardPermissions(response *smith } switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) @@ -9569,12 +9441,12 @@ func awsRestjson1_deserializeOpErrorDescribeDashboardPermissions(response *smith case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + case strings.EqualFold("ResourceUnavailableException", errorCode): + return awsRestjson1_deserializeErrorResourceUnavailableException(response, errorBody) + case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - case strings.EqualFold("UnsupportedUserEditionException", errorCode): - return awsRestjson1_deserializeErrorUnsupportedUserEditionException(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -9585,7 +9457,7 @@ func awsRestjson1_deserializeOpErrorDescribeDashboardPermissions(response *smith } } -func awsRestjson1_deserializeOpHttpBindingsDescribeDashboardPermissionsOutput(v *DescribeDashboardPermissionsOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsDescribeAccountSettingsOutput(v *DescribeAccountSettingsOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -9594,7 +9466,7 @@ func awsRestjson1_deserializeOpHttpBindingsDescribeDashboardPermissionsOutput(v return nil } -func awsRestjson1_deserializeOpDocumentDescribeDashboardPermissionsOutput(v **DescribeDashboardPermissionsOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentDescribeAccountSettingsOutput(v **DescribeAccountSettingsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9607,40 +9479,17 @@ func awsRestjson1_deserializeOpDocumentDescribeDashboardPermissionsOutput(v **De return fmt.Errorf("unexpected JSON type %v", value) } - var sv *DescribeDashboardPermissionsOutput + var sv *DescribeAccountSettingsOutput if *v == nil { - sv = &DescribeDashboardPermissionsOutput{} + sv = &DescribeAccountSettingsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "DashboardArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.DashboardArn = ptr.String(jtv) - } - - case "DashboardId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) - } - sv.DashboardId = ptr.String(jtv) - } - - case "LinkSharingConfiguration": - if err := awsRestjson1_deserializeDocumentLinkSharingConfiguration(&sv.LinkSharingConfiguration, value); err != nil { - return err - } - - case "Permissions": - if err := awsRestjson1_deserializeDocumentResourcePermissionList(&sv.Permissions, value); err != nil { + case "AccountSettings": + if err := awsRestjson1_deserializeDocumentAccountSettings(&sv.AccountSettings, value); err != nil { return err } @@ -9662,14 +9511,14 @@ func awsRestjson1_deserializeOpDocumentDescribeDashboardPermissionsOutput(v **De return nil } -type awsRestjson1_deserializeOpDescribeDataSet struct { +type awsRestjson1_deserializeOpDescribeAccountSubscription struct { } -func (*awsRestjson1_deserializeOpDescribeDataSet) ID() string { +func (*awsRestjson1_deserializeOpDescribeAccountSubscription) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDescribeDataSet) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDescribeAccountSubscription) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -9683,12 +9532,12 @@ func (m *awsRestjson1_deserializeOpDescribeDataSet) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDescribeDataSet(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDescribeAccountSubscription(response, &metadata) } - output := &DescribeDataSetOutput{} + output := &DescribeAccountSubscriptionOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsDescribeDataSetOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsDescribeAccountSubscriptionOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -9711,7 +9560,7 @@ func (m *awsRestjson1_deserializeOpDescribeDataSet) HandleDeserialize(ctx contex return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentDescribeDataSetOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentDescribeAccountSubscriptionOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -9724,7 +9573,7 @@ func (m *awsRestjson1_deserializeOpDescribeDataSet) HandleDeserialize(ctx contex return out, metadata, err } -func awsRestjson1_deserializeOpErrorDescribeDataSet(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDescribeAccountSubscription(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -9777,6 +9626,9 @@ func awsRestjson1_deserializeOpErrorDescribeDataSet(response *smithyhttp.Respons case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + case strings.EqualFold("ResourceUnavailableException", errorCode): + return awsRestjson1_deserializeErrorResourceUnavailableException(response, errorBody) + case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) @@ -9790,7 +9642,7 @@ func awsRestjson1_deserializeOpErrorDescribeDataSet(response *smithyhttp.Respons } } -func awsRestjson1_deserializeOpHttpBindingsDescribeDataSetOutput(v *DescribeDataSetOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsDescribeAccountSubscriptionOutput(v *DescribeAccountSubscriptionOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -9799,7 +9651,7 @@ func awsRestjson1_deserializeOpHttpBindingsDescribeDataSetOutput(v *DescribeData return nil } -func awsRestjson1_deserializeOpDocumentDescribeDataSetOutput(v **DescribeDataSetOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentDescribeAccountSubscriptionOutput(v **DescribeAccountSubscriptionOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9812,17 +9664,17 @@ func awsRestjson1_deserializeOpDocumentDescribeDataSetOutput(v **DescribeDataSet return fmt.Errorf("unexpected JSON type %v", value) } - var sv *DescribeDataSetOutput + var sv *DescribeAccountSubscriptionOutput if *v == nil { - sv = &DescribeDataSetOutput{} + sv = &DescribeAccountSubscriptionOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "DataSet": - if err := awsRestjson1_deserializeDocumentDataSet(&sv.DataSet, value); err != nil { + case "AccountInfo": + if err := awsRestjson1_deserializeDocumentAccountInfo(&sv.AccountInfo, value); err != nil { return err } @@ -9844,14 +9696,14 @@ func awsRestjson1_deserializeOpDocumentDescribeDataSetOutput(v **DescribeDataSet return nil } -type awsRestjson1_deserializeOpDescribeDataSetPermissions struct { +type awsRestjson1_deserializeOpDescribeAnalysis struct { } -func (*awsRestjson1_deserializeOpDescribeDataSetPermissions) ID() string { +func (*awsRestjson1_deserializeOpDescribeAnalysis) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDescribeDataSetPermissions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDescribeAnalysis) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -9865,12 +9717,12 @@ func (m *awsRestjson1_deserializeOpDescribeDataSetPermissions) HandleDeserialize } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDescribeDataSetPermissions(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDescribeAnalysis(response, &metadata) } - output := &DescribeDataSetPermissionsOutput{} + output := &DescribeAnalysisOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsDescribeDataSetPermissionsOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsDescribeAnalysisOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -9893,7 +9745,7 @@ func (m *awsRestjson1_deserializeOpDescribeDataSetPermissions) HandleDeserialize return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentDescribeDataSetPermissionsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentDescribeAnalysisOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -9906,7 +9758,7 @@ func (m *awsRestjson1_deserializeOpDescribeDataSetPermissions) HandleDeserialize return out, metadata, err } -func awsRestjson1_deserializeOpErrorDescribeDataSetPermissions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDescribeAnalysis(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -9962,6 +9814,9 @@ func awsRestjson1_deserializeOpErrorDescribeDataSetPermissions(response *smithyh case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + case strings.EqualFold("UnsupportedUserEditionException", errorCode): + return awsRestjson1_deserializeErrorUnsupportedUserEditionException(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -9972,7 +9827,7 @@ func awsRestjson1_deserializeOpErrorDescribeDataSetPermissions(response *smithyh } } -func awsRestjson1_deserializeOpHttpBindingsDescribeDataSetPermissionsOutput(v *DescribeDataSetPermissionsOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsDescribeAnalysisOutput(v *DescribeAnalysisOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -9981,7 +9836,7 @@ func awsRestjson1_deserializeOpHttpBindingsDescribeDataSetPermissionsOutput(v *D return nil } -func awsRestjson1_deserializeOpDocumentDescribeDataSetPermissionsOutput(v **DescribeDataSetPermissionsOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentDescribeAnalysisOutput(v **DescribeAnalysisOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -9994,35 +9849,17 @@ func awsRestjson1_deserializeOpDocumentDescribeDataSetPermissionsOutput(v **Desc return fmt.Errorf("unexpected JSON type %v", value) } - var sv *DescribeDataSetPermissionsOutput + var sv *DescribeAnalysisOutput if *v == nil { - sv = &DescribeDataSetPermissionsOutput{} + sv = &DescribeAnalysisOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "DataSetArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.DataSetArn = ptr.String(jtv) - } - - case "DataSetId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) - } - sv.DataSetId = ptr.String(jtv) - } - - case "Permissions": - if err := awsRestjson1_deserializeDocumentResourcePermissionList(&sv.Permissions, value); err != nil { + case "Analysis": + if err := awsRestjson1_deserializeDocumentAnalysis(&sv.Analysis, value); err != nil { return err } @@ -10044,14 +9881,14 @@ func awsRestjson1_deserializeOpDocumentDescribeDataSetPermissionsOutput(v **Desc return nil } -type awsRestjson1_deserializeOpDescribeDataSetRefreshProperties struct { +type awsRestjson1_deserializeOpDescribeAnalysisDefinition struct { } -func (*awsRestjson1_deserializeOpDescribeDataSetRefreshProperties) ID() string { +func (*awsRestjson1_deserializeOpDescribeAnalysisDefinition) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDescribeDataSetRefreshProperties) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDescribeAnalysisDefinition) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -10065,12 +9902,12 @@ func (m *awsRestjson1_deserializeOpDescribeDataSetRefreshProperties) HandleDeser } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDescribeDataSetRefreshProperties(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDescribeAnalysisDefinition(response, &metadata) } - output := &DescribeDataSetRefreshPropertiesOutput{} + output := &DescribeAnalysisDefinitionOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsDescribeDataSetRefreshPropertiesOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsDescribeAnalysisDefinitionOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -10093,7 +9930,7 @@ func (m *awsRestjson1_deserializeOpDescribeDataSetRefreshProperties) HandleDeser return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentDescribeDataSetRefreshPropertiesOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentDescribeAnalysisDefinitionOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -10106,7 +9943,7 @@ func (m *awsRestjson1_deserializeOpDescribeDataSetRefreshProperties) HandleDeser return out, metadata, err } -func awsRestjson1_deserializeOpErrorDescribeDataSetRefreshProperties(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDescribeAnalysisDefinition(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -10150,17 +9987,17 @@ func awsRestjson1_deserializeOpErrorDescribeDataSetRefreshProperties(response *s case strings.EqualFold("AccessDeniedException", errorCode): return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) - case strings.EqualFold("LimitExceededException", errorCode): - return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody) - - case strings.EqualFold("PreconditionNotMetException", errorCode): - return awsRestjson1_deserializeErrorPreconditionNotMetException(response, errorBody) + case strings.EqualFold("ResourceExistsException", errorCode): + return awsRestjson1_deserializeErrorResourceExistsException(response, errorBody) case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) @@ -10168,6 +10005,9 @@ func awsRestjson1_deserializeOpErrorDescribeDataSetRefreshProperties(response *s case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + case strings.EqualFold("UnsupportedUserEditionException", errorCode): + return awsRestjson1_deserializeErrorUnsupportedUserEditionException(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -10178,7 +10018,7 @@ func awsRestjson1_deserializeOpErrorDescribeDataSetRefreshProperties(response *s } } -func awsRestjson1_deserializeOpHttpBindingsDescribeDataSetRefreshPropertiesOutput(v *DescribeDataSetRefreshPropertiesOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsDescribeAnalysisDefinitionOutput(v *DescribeAnalysisDefinitionOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -10187,7 +10027,7 @@ func awsRestjson1_deserializeOpHttpBindingsDescribeDataSetRefreshPropertiesOutpu return nil } -func awsRestjson1_deserializeOpDocumentDescribeDataSetRefreshPropertiesOutput(v **DescribeDataSetRefreshPropertiesOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentDescribeAnalysisDefinitionOutput(v **DescribeAnalysisDefinitionOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10200,20 +10040,43 @@ func awsRestjson1_deserializeOpDocumentDescribeDataSetRefreshPropertiesOutput(v return fmt.Errorf("unexpected JSON type %v", value) } - var sv *DescribeDataSetRefreshPropertiesOutput + var sv *DescribeAnalysisDefinitionOutput if *v == nil { - sv = &DescribeDataSetRefreshPropertiesOutput{} + sv = &DescribeAnalysisDefinitionOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "DataSetRefreshProperties": - if err := awsRestjson1_deserializeDocumentDataSetRefreshProperties(&sv.DataSetRefreshProperties, value); err != nil { + case "AnalysisId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + } + sv.AnalysisId = ptr.String(jtv) + } + + case "Definition": + if err := awsRestjson1_deserializeDocumentAnalysisDefinition(&sv.Definition, value); err != nil { return err } + case "Errors": + if err := awsRestjson1_deserializeDocumentAnalysisErrorList(&sv.Errors, value); err != nil { + return err + } + + case "Name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AnalysisName to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + case "RequestId": if value != nil { jtv, ok := value.(string) @@ -10223,6 +10086,24 @@ func awsRestjson1_deserializeOpDocumentDescribeDataSetRefreshPropertiesOutput(v sv.RequestId = ptr.String(jtv) } + case "ResourceStatus": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourceStatus to be of type string, got %T instead", value) + } + sv.ResourceStatus = types.ResourceStatus(jtv) + } + + case "ThemeArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.ThemeArn = ptr.String(jtv) + } + default: _, _ = key, value @@ -10232,14 +10113,14 @@ func awsRestjson1_deserializeOpDocumentDescribeDataSetRefreshPropertiesOutput(v return nil } -type awsRestjson1_deserializeOpDescribeDataSource struct { +type awsRestjson1_deserializeOpDescribeAnalysisPermissions struct { } -func (*awsRestjson1_deserializeOpDescribeDataSource) ID() string { +func (*awsRestjson1_deserializeOpDescribeAnalysisPermissions) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDescribeDataSource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDescribeAnalysisPermissions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -10253,12 +10134,12 @@ func (m *awsRestjson1_deserializeOpDescribeDataSource) HandleDeserialize(ctx con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDescribeDataSource(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDescribeAnalysisPermissions(response, &metadata) } - output := &DescribeDataSourceOutput{} + output := &DescribeAnalysisPermissionsOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsDescribeDataSourceOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsDescribeAnalysisPermissionsOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -10281,7 +10162,7 @@ func (m *awsRestjson1_deserializeOpDescribeDataSource) HandleDeserialize(ctx con return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentDescribeDataSourceOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentDescribeAnalysisPermissionsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -10294,7 +10175,7 @@ func (m *awsRestjson1_deserializeOpDescribeDataSource) HandleDeserialize(ctx con return out, metadata, err } -func awsRestjson1_deserializeOpErrorDescribeDataSource(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDescribeAnalysisPermissions(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -10335,9 +10216,6 @@ func awsRestjson1_deserializeOpErrorDescribeDataSource(response *smithyhttp.Resp } switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) @@ -10350,6 +10228,9 @@ func awsRestjson1_deserializeOpErrorDescribeDataSource(response *smithyhttp.Resp case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + case strings.EqualFold("UnsupportedUserEditionException", errorCode): + return awsRestjson1_deserializeErrorUnsupportedUserEditionException(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -10360,7 +10241,7 @@ func awsRestjson1_deserializeOpErrorDescribeDataSource(response *smithyhttp.Resp } } -func awsRestjson1_deserializeOpHttpBindingsDescribeDataSourceOutput(v *DescribeDataSourceOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsDescribeAnalysisPermissionsOutput(v *DescribeAnalysisPermissionsOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -10369,7 +10250,7 @@ func awsRestjson1_deserializeOpHttpBindingsDescribeDataSourceOutput(v *DescribeD return nil } -func awsRestjson1_deserializeOpDocumentDescribeDataSourceOutput(v **DescribeDataSourceOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentDescribeAnalysisPermissionsOutput(v **DescribeAnalysisPermissionsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10382,17 +10263,35 @@ func awsRestjson1_deserializeOpDocumentDescribeDataSourceOutput(v **DescribeData return fmt.Errorf("unexpected JSON type %v", value) } - var sv *DescribeDataSourceOutput + var sv *DescribeAnalysisPermissionsOutput if *v == nil { - sv = &DescribeDataSourceOutput{} + sv = &DescribeAnalysisPermissionsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "DataSource": - if err := awsRestjson1_deserializeDocumentDataSource(&sv.DataSource, value); err != nil { + case "AnalysisArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.AnalysisArn = ptr.String(jtv) + } + + case "AnalysisId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + } + sv.AnalysisId = ptr.String(jtv) + } + + case "Permissions": + if err := awsRestjson1_deserializeDocumentResourcePermissionList(&sv.Permissions, value); err != nil { return err } @@ -10414,14 +10313,14 @@ func awsRestjson1_deserializeOpDocumentDescribeDataSourceOutput(v **DescribeData return nil } -type awsRestjson1_deserializeOpDescribeDataSourcePermissions struct { +type awsRestjson1_deserializeOpDescribeDashboard struct { } -func (*awsRestjson1_deserializeOpDescribeDataSourcePermissions) ID() string { +func (*awsRestjson1_deserializeOpDescribeDashboard) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDescribeDataSourcePermissions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDescribeDashboard) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -10435,12 +10334,12 @@ func (m *awsRestjson1_deserializeOpDescribeDataSourcePermissions) HandleDeserial } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDescribeDataSourcePermissions(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDescribeDashboard(response, &metadata) } - output := &DescribeDataSourcePermissionsOutput{} + output := &DescribeDashboardOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsDescribeDataSourcePermissionsOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsDescribeDashboardOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -10463,7 +10362,7 @@ func (m *awsRestjson1_deserializeOpDescribeDataSourcePermissions) HandleDeserial return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentDescribeDataSourcePermissionsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentDescribeDashboardOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -10476,7 +10375,7 @@ func (m *awsRestjson1_deserializeOpDescribeDataSourcePermissions) HandleDeserial return out, metadata, err } -func awsRestjson1_deserializeOpErrorDescribeDataSourcePermissions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDescribeDashboard(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -10532,6 +10431,9 @@ func awsRestjson1_deserializeOpErrorDescribeDataSourcePermissions(response *smit case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + case strings.EqualFold("UnsupportedUserEditionException", errorCode): + return awsRestjson1_deserializeErrorUnsupportedUserEditionException(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -10542,7 +10444,7 @@ func awsRestjson1_deserializeOpErrorDescribeDataSourcePermissions(response *smit } } -func awsRestjson1_deserializeOpHttpBindingsDescribeDataSourcePermissionsOutput(v *DescribeDataSourcePermissionsOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsDescribeDashboardOutput(v *DescribeDashboardOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -10551,7 +10453,7 @@ func awsRestjson1_deserializeOpHttpBindingsDescribeDataSourcePermissionsOutput(v return nil } -func awsRestjson1_deserializeOpDocumentDescribeDataSourcePermissionsOutput(v **DescribeDataSourcePermissionsOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentDescribeDashboardOutput(v **DescribeDashboardOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10564,35 +10466,17 @@ func awsRestjson1_deserializeOpDocumentDescribeDataSourcePermissionsOutput(v **D return fmt.Errorf("unexpected JSON type %v", value) } - var sv *DescribeDataSourcePermissionsOutput + var sv *DescribeDashboardOutput if *v == nil { - sv = &DescribeDataSourcePermissionsOutput{} + sv = &DescribeDashboardOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "DataSourceArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.DataSourceArn = ptr.String(jtv) - } - - case "DataSourceId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) - } - sv.DataSourceId = ptr.String(jtv) - } - - case "Permissions": - if err := awsRestjson1_deserializeDocumentResourcePermissionList(&sv.Permissions, value); err != nil { + case "Dashboard": + if err := awsRestjson1_deserializeDocumentDashboard(&sv.Dashboard, value); err != nil { return err } @@ -10614,14 +10498,14 @@ func awsRestjson1_deserializeOpDocumentDescribeDataSourcePermissionsOutput(v **D return nil } -type awsRestjson1_deserializeOpDescribeFolder struct { +type awsRestjson1_deserializeOpDescribeDashboardDefinition struct { } -func (*awsRestjson1_deserializeOpDescribeFolder) ID() string { +func (*awsRestjson1_deserializeOpDescribeDashboardDefinition) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDescribeFolder) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDescribeDashboardDefinition) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -10635,12 +10519,12 @@ func (m *awsRestjson1_deserializeOpDescribeFolder) HandleDeserialize(ctx context } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDescribeFolder(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDescribeDashboardDefinition(response, &metadata) } - output := &DescribeFolderOutput{} + output := &DescribeDashboardDefinitionOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsDescribeFolderOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsDescribeDashboardDefinitionOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -10663,7 +10547,7 @@ func (m *awsRestjson1_deserializeOpDescribeFolder) HandleDeserialize(ctx context return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentDescribeFolderOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentDescribeDashboardDefinitionOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -10676,7 +10560,7 @@ func (m *awsRestjson1_deserializeOpDescribeFolder) HandleDeserialize(ctx context return out, metadata, err } -func awsRestjson1_deserializeOpErrorDescribeFolder(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDescribeDashboardDefinition(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -10720,12 +10604,18 @@ func awsRestjson1_deserializeOpErrorDescribeFolder(response *smithyhttp.Response case strings.EqualFold("AccessDeniedException", errorCode): return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) + case strings.EqualFold("ResourceExistsException", errorCode): + return awsRestjson1_deserializeErrorResourceExistsException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) @@ -10745,7 +10635,7 @@ func awsRestjson1_deserializeOpErrorDescribeFolder(response *smithyhttp.Response } } -func awsRestjson1_deserializeOpHttpBindingsDescribeFolderOutput(v *DescribeFolderOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsDescribeDashboardDefinitionOutput(v *DescribeDashboardDefinitionOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -10754,7 +10644,7 @@ func awsRestjson1_deserializeOpHttpBindingsDescribeFolderOutput(v *DescribeFolde return nil } -func awsRestjson1_deserializeOpDocumentDescribeFolderOutput(v **DescribeFolderOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentDescribeDashboardDefinitionOutput(v **DescribeDashboardDefinitionOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10767,20 +10657,48 @@ func awsRestjson1_deserializeOpDocumentDescribeFolderOutput(v **DescribeFolderOu return fmt.Errorf("unexpected JSON type %v", value) } - var sv *DescribeFolderOutput + var sv *DescribeDashboardDefinitionOutput if *v == nil { - sv = &DescribeFolderOutput{} + sv = &DescribeDashboardDefinitionOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "Folder": - if err := awsRestjson1_deserializeDocumentFolder(&sv.Folder, value); err != nil { + case "DashboardId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + } + sv.DashboardId = ptr.String(jtv) + } + + case "DashboardPublishOptions": + if err := awsRestjson1_deserializeDocumentDashboardPublishOptions(&sv.DashboardPublishOptions, value); err != nil { + return err + } + + case "Definition": + if err := awsRestjson1_deserializeDocumentDashboardVersionDefinition(&sv.Definition, value); err != nil { return err } + case "Errors": + if err := awsRestjson1_deserializeDocumentDashboardErrorList(&sv.Errors, value); err != nil { + return err + } + + case "Name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DashboardName to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + case "RequestId": if value != nil { jtv, ok := value.(string) @@ -10790,6 +10708,24 @@ func awsRestjson1_deserializeOpDocumentDescribeFolderOutput(v **DescribeFolderOu sv.RequestId = ptr.String(jtv) } + case "ResourceStatus": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourceStatus to be of type string, got %T instead", value) + } + sv.ResourceStatus = types.ResourceStatus(jtv) + } + + case "ThemeArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.ThemeArn = ptr.String(jtv) + } + default: _, _ = key, value @@ -10799,14 +10735,14 @@ func awsRestjson1_deserializeOpDocumentDescribeFolderOutput(v **DescribeFolderOu return nil } -type awsRestjson1_deserializeOpDescribeFolderPermissions struct { +type awsRestjson1_deserializeOpDescribeDashboardPermissions struct { } -func (*awsRestjson1_deserializeOpDescribeFolderPermissions) ID() string { +func (*awsRestjson1_deserializeOpDescribeDashboardPermissions) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDescribeFolderPermissions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDescribeDashboardPermissions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -10820,12 +10756,12 @@ func (m *awsRestjson1_deserializeOpDescribeFolderPermissions) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDescribeFolderPermissions(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDescribeDashboardPermissions(response, &metadata) } - output := &DescribeFolderPermissionsOutput{} + output := &DescribeDashboardPermissionsOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsDescribeFolderPermissionsOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsDescribeDashboardPermissionsOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -10848,7 +10784,7 @@ func (m *awsRestjson1_deserializeOpDescribeFolderPermissions) HandleDeserialize( return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentDescribeFolderPermissionsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentDescribeDashboardPermissionsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -10861,7 +10797,7 @@ func (m *awsRestjson1_deserializeOpDescribeFolderPermissions) HandleDeserialize( return out, metadata, err } -func awsRestjson1_deserializeOpErrorDescribeFolderPermissions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDescribeDashboardPermissions(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -10902,9 +10838,6 @@ func awsRestjson1_deserializeOpErrorDescribeFolderPermissions(response *smithyht } switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) @@ -10930,7 +10863,7 @@ func awsRestjson1_deserializeOpErrorDescribeFolderPermissions(response *smithyht } } -func awsRestjson1_deserializeOpHttpBindingsDescribeFolderPermissionsOutput(v *DescribeFolderPermissionsOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsDescribeDashboardPermissionsOutput(v *DescribeDashboardPermissionsOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -10939,7 +10872,7 @@ func awsRestjson1_deserializeOpHttpBindingsDescribeFolderPermissionsOutput(v *De return nil } -func awsRestjson1_deserializeOpDocumentDescribeFolderPermissionsOutput(v **DescribeFolderPermissionsOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentDescribeDashboardPermissionsOutput(v **DescribeDashboardPermissionsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -10952,31 +10885,36 @@ func awsRestjson1_deserializeOpDocumentDescribeFolderPermissionsOutput(v **Descr return fmt.Errorf("unexpected JSON type %v", value) } - var sv *DescribeFolderPermissionsOutput + var sv *DescribeDashboardPermissionsOutput if *v == nil { - sv = &DescribeFolderPermissionsOutput{} + sv = &DescribeDashboardPermissionsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "Arn": + case "DashboardArn": if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = ptr.String(jtv) + sv.DashboardArn = ptr.String(jtv) } - case "FolderId": + case "DashboardId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected RestrictiveResourceId to be of type string, got %T instead", value) + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) } - sv.FolderId = ptr.String(jtv) + sv.DashboardId = ptr.String(jtv) + } + + case "LinkSharingConfiguration": + if err := awsRestjson1_deserializeDocumentLinkSharingConfiguration(&sv.LinkSharingConfiguration, value); err != nil { + return err } case "Permissions": @@ -11002,14 +10940,14 @@ func awsRestjson1_deserializeOpDocumentDescribeFolderPermissionsOutput(v **Descr return nil } -type awsRestjson1_deserializeOpDescribeFolderResolvedPermissions struct { +type awsRestjson1_deserializeOpDescribeDataSet struct { } -func (*awsRestjson1_deserializeOpDescribeFolderResolvedPermissions) ID() string { +func (*awsRestjson1_deserializeOpDescribeDataSet) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDescribeFolderResolvedPermissions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDescribeDataSet) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -11023,12 +10961,12 @@ func (m *awsRestjson1_deserializeOpDescribeFolderResolvedPermissions) HandleDese } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDescribeFolderResolvedPermissions(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDescribeDataSet(response, &metadata) } - output := &DescribeFolderResolvedPermissionsOutput{} + output := &DescribeDataSetOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsDescribeFolderResolvedPermissionsOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsDescribeDataSetOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -11051,7 +10989,7 @@ func (m *awsRestjson1_deserializeOpDescribeFolderResolvedPermissions) HandleDese return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentDescribeFolderResolvedPermissionsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentDescribeDataSetOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -11064,7 +11002,7 @@ func (m *awsRestjson1_deserializeOpDescribeFolderResolvedPermissions) HandleDese return out, metadata, err } -func awsRestjson1_deserializeOpErrorDescribeFolderResolvedPermissions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDescribeDataSet(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -11120,9 +11058,6 @@ func awsRestjson1_deserializeOpErrorDescribeFolderResolvedPermissions(response * case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - case strings.EqualFold("UnsupportedUserEditionException", errorCode): - return awsRestjson1_deserializeErrorUnsupportedUserEditionException(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -11133,7 +11068,7 @@ func awsRestjson1_deserializeOpErrorDescribeFolderResolvedPermissions(response * } } -func awsRestjson1_deserializeOpHttpBindingsDescribeFolderResolvedPermissionsOutput(v *DescribeFolderResolvedPermissionsOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsDescribeDataSetOutput(v *DescribeDataSetOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -11142,7 +11077,7 @@ func awsRestjson1_deserializeOpHttpBindingsDescribeFolderResolvedPermissionsOutp return nil } -func awsRestjson1_deserializeOpDocumentDescribeFolderResolvedPermissionsOutput(v **DescribeFolderResolvedPermissionsOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentDescribeDataSetOutput(v **DescribeDataSetOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11155,35 +11090,17 @@ func awsRestjson1_deserializeOpDocumentDescribeFolderResolvedPermissionsOutput(v return fmt.Errorf("unexpected JSON type %v", value) } - var sv *DescribeFolderResolvedPermissionsOutput + var sv *DescribeDataSetOutput if *v == nil { - sv = &DescribeFolderResolvedPermissionsOutput{} + sv = &DescribeDataSetOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "Arn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.Arn = ptr.String(jtv) - } - - case "FolderId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected RestrictiveResourceId to be of type string, got %T instead", value) - } - sv.FolderId = ptr.String(jtv) - } - - case "Permissions": - if err := awsRestjson1_deserializeDocumentResourcePermissionList(&sv.Permissions, value); err != nil { + case "DataSet": + if err := awsRestjson1_deserializeDocumentDataSet(&sv.DataSet, value); err != nil { return err } @@ -11205,14 +11122,14 @@ func awsRestjson1_deserializeOpDocumentDescribeFolderResolvedPermissionsOutput(v return nil } -type awsRestjson1_deserializeOpDescribeGroup struct { +type awsRestjson1_deserializeOpDescribeDataSetPermissions struct { } -func (*awsRestjson1_deserializeOpDescribeGroup) ID() string { +func (*awsRestjson1_deserializeOpDescribeDataSetPermissions) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDescribeGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDescribeDataSetPermissions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -11226,12 +11143,12 @@ func (m *awsRestjson1_deserializeOpDescribeGroup) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDescribeGroup(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDescribeDataSetPermissions(response, &metadata) } - output := &DescribeGroupOutput{} + output := &DescribeDataSetPermissionsOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsDescribeGroupOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsDescribeDataSetPermissionsOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -11254,7 +11171,7 @@ func (m *awsRestjson1_deserializeOpDescribeGroup) HandleDeserialize(ctx context. return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentDescribeGroupOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentDescribeDataSetPermissionsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -11267,7 +11184,7 @@ func (m *awsRestjson1_deserializeOpDescribeGroup) HandleDeserialize(ctx context. return out, metadata, err } -func awsRestjson1_deserializeOpErrorDescribeGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDescribeDataSetPermissions(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -11317,15 +11234,9 @@ func awsRestjson1_deserializeOpErrorDescribeGroup(response *smithyhttp.Response, case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) - case strings.EqualFold("PreconditionNotMetException", errorCode): - return awsRestjson1_deserializeErrorPreconditionNotMetException(response, errorBody) - case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - case strings.EqualFold("ResourceUnavailableException", errorCode): - return awsRestjson1_deserializeErrorResourceUnavailableException(response, errorBody) - case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) @@ -11339,7 +11250,7 @@ func awsRestjson1_deserializeOpErrorDescribeGroup(response *smithyhttp.Response, } } -func awsRestjson1_deserializeOpHttpBindingsDescribeGroupOutput(v *DescribeGroupOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsDescribeDataSetPermissionsOutput(v *DescribeDataSetPermissionsOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -11348,7 +11259,7 @@ func awsRestjson1_deserializeOpHttpBindingsDescribeGroupOutput(v *DescribeGroupO return nil } -func awsRestjson1_deserializeOpDocumentDescribeGroupOutput(v **DescribeGroupOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentDescribeDataSetPermissionsOutput(v **DescribeDataSetPermissionsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11361,17 +11272,35 @@ func awsRestjson1_deserializeOpDocumentDescribeGroupOutput(v **DescribeGroupOutp return fmt.Errorf("unexpected JSON type %v", value) } - var sv *DescribeGroupOutput + var sv *DescribeDataSetPermissionsOutput if *v == nil { - sv = &DescribeGroupOutput{} + sv = &DescribeDataSetPermissionsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "Group": - if err := awsRestjson1_deserializeDocumentGroup(&sv.Group, value); err != nil { + case "DataSetArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.DataSetArn = ptr.String(jtv) + } + + case "DataSetId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) + } + sv.DataSetId = ptr.String(jtv) + } + + case "Permissions": + if err := awsRestjson1_deserializeDocumentResourcePermissionList(&sv.Permissions, value); err != nil { return err } @@ -11393,14 +11322,14 @@ func awsRestjson1_deserializeOpDocumentDescribeGroupOutput(v **DescribeGroupOutp return nil } -type awsRestjson1_deserializeOpDescribeGroupMembership struct { +type awsRestjson1_deserializeOpDescribeDataSetRefreshProperties struct { } -func (*awsRestjson1_deserializeOpDescribeGroupMembership) ID() string { +func (*awsRestjson1_deserializeOpDescribeDataSetRefreshProperties) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDescribeGroupMembership) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDescribeDataSetRefreshProperties) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -11414,12 +11343,12 @@ func (m *awsRestjson1_deserializeOpDescribeGroupMembership) HandleDeserialize(ct } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDescribeGroupMembership(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDescribeDataSetRefreshProperties(response, &metadata) } - output := &DescribeGroupMembershipOutput{} + output := &DescribeDataSetRefreshPropertiesOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsDescribeGroupMembershipOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsDescribeDataSetRefreshPropertiesOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -11442,7 +11371,7 @@ func (m *awsRestjson1_deserializeOpDescribeGroupMembership) HandleDeserialize(ct return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentDescribeGroupMembershipOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentDescribeDataSetRefreshPropertiesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -11455,7 +11384,7 @@ func (m *awsRestjson1_deserializeOpDescribeGroupMembership) HandleDeserialize(ct return out, metadata, err } -func awsRestjson1_deserializeOpErrorDescribeGroupMembership(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDescribeDataSetRefreshProperties(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -11505,15 +11434,15 @@ func awsRestjson1_deserializeOpErrorDescribeGroupMembership(response *smithyhttp case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) + case strings.EqualFold("LimitExceededException", errorCode): + return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody) + case strings.EqualFold("PreconditionNotMetException", errorCode): return awsRestjson1_deserializeErrorPreconditionNotMetException(response, errorBody) case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - case strings.EqualFold("ResourceUnavailableException", errorCode): - return awsRestjson1_deserializeErrorResourceUnavailableException(response, errorBody) - case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) @@ -11527,7 +11456,7 @@ func awsRestjson1_deserializeOpErrorDescribeGroupMembership(response *smithyhttp } } -func awsRestjson1_deserializeOpHttpBindingsDescribeGroupMembershipOutput(v *DescribeGroupMembershipOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsDescribeDataSetRefreshPropertiesOutput(v *DescribeDataSetRefreshPropertiesOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -11536,7 +11465,7 @@ func awsRestjson1_deserializeOpHttpBindingsDescribeGroupMembershipOutput(v *Desc return nil } -func awsRestjson1_deserializeOpDocumentDescribeGroupMembershipOutput(v **DescribeGroupMembershipOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentDescribeDataSetRefreshPropertiesOutput(v **DescribeDataSetRefreshPropertiesOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11549,17 +11478,17 @@ func awsRestjson1_deserializeOpDocumentDescribeGroupMembershipOutput(v **Describ return fmt.Errorf("unexpected JSON type %v", value) } - var sv *DescribeGroupMembershipOutput + var sv *DescribeDataSetRefreshPropertiesOutput if *v == nil { - sv = &DescribeGroupMembershipOutput{} + sv = &DescribeDataSetRefreshPropertiesOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "GroupMember": - if err := awsRestjson1_deserializeDocumentGroupMember(&sv.GroupMember, value); err != nil { + case "DataSetRefreshProperties": + if err := awsRestjson1_deserializeDocumentDataSetRefreshProperties(&sv.DataSetRefreshProperties, value); err != nil { return err } @@ -11581,14 +11510,14 @@ func awsRestjson1_deserializeOpDocumentDescribeGroupMembershipOutput(v **Describ return nil } -type awsRestjson1_deserializeOpDescribeIAMPolicyAssignment struct { +type awsRestjson1_deserializeOpDescribeDataSource struct { } -func (*awsRestjson1_deserializeOpDescribeIAMPolicyAssignment) ID() string { +func (*awsRestjson1_deserializeOpDescribeDataSource) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDescribeIAMPolicyAssignment) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDescribeDataSource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -11602,12 +11531,12 @@ func (m *awsRestjson1_deserializeOpDescribeIAMPolicyAssignment) HandleDeserializ } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDescribeIAMPolicyAssignment(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDescribeDataSource(response, &metadata) } - output := &DescribeIAMPolicyAssignmentOutput{} + output := &DescribeDataSourceOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsDescribeIAMPolicyAssignmentOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsDescribeDataSourceOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -11630,7 +11559,7 @@ func (m *awsRestjson1_deserializeOpDescribeIAMPolicyAssignment) HandleDeserializ return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentDescribeIAMPolicyAssignmentOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentDescribeDataSourceOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -11643,7 +11572,7 @@ func (m *awsRestjson1_deserializeOpDescribeIAMPolicyAssignment) HandleDeserializ return out, metadata, err } -func awsRestjson1_deserializeOpErrorDescribeIAMPolicyAssignment(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDescribeDataSource(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -11690,9 +11619,6 @@ func awsRestjson1_deserializeOpErrorDescribeIAMPolicyAssignment(response *smithy case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) - case strings.EqualFold("InvalidNextTokenException", errorCode): - return awsRestjson1_deserializeErrorInvalidNextTokenException(response, errorBody) - case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) @@ -11712,7 +11638,7 @@ func awsRestjson1_deserializeOpErrorDescribeIAMPolicyAssignment(response *smithy } } -func awsRestjson1_deserializeOpHttpBindingsDescribeIAMPolicyAssignmentOutput(v *DescribeIAMPolicyAssignmentOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsDescribeDataSourceOutput(v *DescribeDataSourceOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -11721,7 +11647,7 @@ func awsRestjson1_deserializeOpHttpBindingsDescribeIAMPolicyAssignmentOutput(v * return nil } -func awsRestjson1_deserializeOpDocumentDescribeIAMPolicyAssignmentOutput(v **DescribeIAMPolicyAssignmentOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentDescribeDataSourceOutput(v **DescribeDataSourceOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11734,17 +11660,17 @@ func awsRestjson1_deserializeOpDocumentDescribeIAMPolicyAssignmentOutput(v **Des return fmt.Errorf("unexpected JSON type %v", value) } - var sv *DescribeIAMPolicyAssignmentOutput + var sv *DescribeDataSourceOutput if *v == nil { - sv = &DescribeIAMPolicyAssignmentOutput{} + sv = &DescribeDataSourceOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "IAMPolicyAssignment": - if err := awsRestjson1_deserializeDocumentIAMPolicyAssignment(&sv.IAMPolicyAssignment, value); err != nil { + case "DataSource": + if err := awsRestjson1_deserializeDocumentDataSource(&sv.DataSource, value); err != nil { return err } @@ -11766,14 +11692,14 @@ func awsRestjson1_deserializeOpDocumentDescribeIAMPolicyAssignmentOutput(v **Des return nil } -type awsRestjson1_deserializeOpDescribeIngestion struct { +type awsRestjson1_deserializeOpDescribeDataSourcePermissions struct { } -func (*awsRestjson1_deserializeOpDescribeIngestion) ID() string { +func (*awsRestjson1_deserializeOpDescribeDataSourcePermissions) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDescribeIngestion) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDescribeDataSourcePermissions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -11787,12 +11713,12 @@ func (m *awsRestjson1_deserializeOpDescribeIngestion) HandleDeserialize(ctx cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDescribeIngestion(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDescribeDataSourcePermissions(response, &metadata) } - output := &DescribeIngestionOutput{} + output := &DescribeDataSourcePermissionsOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsDescribeIngestionOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsDescribeDataSourcePermissionsOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -11815,7 +11741,7 @@ func (m *awsRestjson1_deserializeOpDescribeIngestion) HandleDeserialize(ctx cont return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentDescribeIngestionOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentDescribeDataSourcePermissionsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -11828,7 +11754,7 @@ func (m *awsRestjson1_deserializeOpDescribeIngestion) HandleDeserialize(ctx cont return out, metadata, err } -func awsRestjson1_deserializeOpErrorDescribeIngestion(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDescribeDataSourcePermissions(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -11878,9 +11804,6 @@ func awsRestjson1_deserializeOpErrorDescribeIngestion(response *smithyhttp.Respo case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) - case strings.EqualFold("ResourceExistsException", errorCode): - return awsRestjson1_deserializeErrorResourceExistsException(response, errorBody) - case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) @@ -11897,7 +11820,7 @@ func awsRestjson1_deserializeOpErrorDescribeIngestion(response *smithyhttp.Respo } } -func awsRestjson1_deserializeOpHttpBindingsDescribeIngestionOutput(v *DescribeIngestionOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsDescribeDataSourcePermissionsOutput(v *DescribeDataSourcePermissionsOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -11906,7 +11829,7 @@ func awsRestjson1_deserializeOpHttpBindingsDescribeIngestionOutput(v *DescribeIn return nil } -func awsRestjson1_deserializeOpDocumentDescribeIngestionOutput(v **DescribeIngestionOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentDescribeDataSourcePermissionsOutput(v **DescribeDataSourcePermissionsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -11919,17 +11842,35 @@ func awsRestjson1_deserializeOpDocumentDescribeIngestionOutput(v **DescribeInges return fmt.Errorf("unexpected JSON type %v", value) } - var sv *DescribeIngestionOutput + var sv *DescribeDataSourcePermissionsOutput if *v == nil { - sv = &DescribeIngestionOutput{} + sv = &DescribeDataSourcePermissionsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "Ingestion": - if err := awsRestjson1_deserializeDocumentIngestion(&sv.Ingestion, value); err != nil { + case "DataSourceArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.DataSourceArn = ptr.String(jtv) + } + + case "DataSourceId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) + } + sv.DataSourceId = ptr.String(jtv) + } + + case "Permissions": + if err := awsRestjson1_deserializeDocumentResourcePermissionList(&sv.Permissions, value); err != nil { return err } @@ -11951,14 +11892,14 @@ func awsRestjson1_deserializeOpDocumentDescribeIngestionOutput(v **DescribeInges return nil } -type awsRestjson1_deserializeOpDescribeIpRestriction struct { +type awsRestjson1_deserializeOpDescribeFolder struct { } -func (*awsRestjson1_deserializeOpDescribeIpRestriction) ID() string { +func (*awsRestjson1_deserializeOpDescribeFolder) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDescribeIpRestriction) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDescribeFolder) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -11972,12 +11913,12 @@ func (m *awsRestjson1_deserializeOpDescribeIpRestriction) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDescribeIpRestriction(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDescribeFolder(response, &metadata) } - output := &DescribeIpRestrictionOutput{} + output := &DescribeFolderOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsDescribeIpRestrictionOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsDescribeFolderOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -12000,7 +11941,7 @@ func (m *awsRestjson1_deserializeOpDescribeIpRestriction) HandleDeserialize(ctx return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentDescribeIpRestrictionOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentDescribeFolderOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -12013,7 +11954,7 @@ func (m *awsRestjson1_deserializeOpDescribeIpRestriction) HandleDeserialize(ctx return out, metadata, err } -func awsRestjson1_deserializeOpErrorDescribeIpRestriction(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDescribeFolder(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -12069,6 +12010,9 @@ func awsRestjson1_deserializeOpErrorDescribeIpRestriction(response *smithyhttp.R case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + case strings.EqualFold("UnsupportedUserEditionException", errorCode): + return awsRestjson1_deserializeErrorUnsupportedUserEditionException(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -12079,7 +12023,7 @@ func awsRestjson1_deserializeOpErrorDescribeIpRestriction(response *smithyhttp.R } } -func awsRestjson1_deserializeOpHttpBindingsDescribeIpRestrictionOutput(v *DescribeIpRestrictionOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsDescribeFolderOutput(v *DescribeFolderOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -12088,7 +12032,7 @@ func awsRestjson1_deserializeOpHttpBindingsDescribeIpRestrictionOutput(v *Descri return nil } -func awsRestjson1_deserializeOpDocumentDescribeIpRestrictionOutput(v **DescribeIpRestrictionOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentDescribeFolderOutput(v **DescribeFolderOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12101,35 +12045,17 @@ func awsRestjson1_deserializeOpDocumentDescribeIpRestrictionOutput(v **DescribeI return fmt.Errorf("unexpected JSON type %v", value) } - var sv *DescribeIpRestrictionOutput + var sv *DescribeFolderOutput if *v == nil { - sv = &DescribeIpRestrictionOutput{} + sv = &DescribeFolderOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "AwsAccountId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected AwsAccountId to be of type string, got %T instead", value) - } - sv.AwsAccountId = ptr.String(jtv) - } - - case "Enabled": - if value != nil { - jtv, ok := value.(bool) - if !ok { - return fmt.Errorf("expected NullableBoolean to be of type *bool, got %T instead", value) - } - sv.Enabled = ptr.Bool(jtv) - } - - case "IpRestrictionRuleMap": - if err := awsRestjson1_deserializeDocumentIpRestrictionRuleMap(&sv.IpRestrictionRuleMap, value); err != nil { + case "Folder": + if err := awsRestjson1_deserializeDocumentFolder(&sv.Folder, value); err != nil { return err } @@ -12151,14 +12077,14 @@ func awsRestjson1_deserializeOpDocumentDescribeIpRestrictionOutput(v **DescribeI return nil } -type awsRestjson1_deserializeOpDescribeNamespace struct { +type awsRestjson1_deserializeOpDescribeFolderPermissions struct { } -func (*awsRestjson1_deserializeOpDescribeNamespace) ID() string { +func (*awsRestjson1_deserializeOpDescribeFolderPermissions) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDescribeNamespace) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDescribeFolderPermissions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -12172,12 +12098,12 @@ func (m *awsRestjson1_deserializeOpDescribeNamespace) HandleDeserialize(ctx cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDescribeNamespace(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDescribeFolderPermissions(response, &metadata) } - output := &DescribeNamespaceOutput{} + output := &DescribeFolderPermissionsOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsDescribeNamespaceOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsDescribeFolderPermissionsOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -12200,7 +12126,7 @@ func (m *awsRestjson1_deserializeOpDescribeNamespace) HandleDeserialize(ctx cont return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentDescribeNamespaceOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentDescribeFolderPermissionsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -12213,7 +12139,7 @@ func (m *awsRestjson1_deserializeOpDescribeNamespace) HandleDeserialize(ctx cont return out, metadata, err } -func awsRestjson1_deserializeOpErrorDescribeNamespace(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDescribeFolderPermissions(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -12266,12 +12192,12 @@ func awsRestjson1_deserializeOpErrorDescribeNamespace(response *smithyhttp.Respo case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - case strings.EqualFold("ResourceUnavailableException", errorCode): - return awsRestjson1_deserializeErrorResourceUnavailableException(response, errorBody) - case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + case strings.EqualFold("UnsupportedUserEditionException", errorCode): + return awsRestjson1_deserializeErrorUnsupportedUserEditionException(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -12282,7 +12208,7 @@ func awsRestjson1_deserializeOpErrorDescribeNamespace(response *smithyhttp.Respo } } -func awsRestjson1_deserializeOpHttpBindingsDescribeNamespaceOutput(v *DescribeNamespaceOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsDescribeFolderPermissionsOutput(v *DescribeFolderPermissionsOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -12291,7 +12217,7 @@ func awsRestjson1_deserializeOpHttpBindingsDescribeNamespaceOutput(v *DescribeNa return nil } -func awsRestjson1_deserializeOpDocumentDescribeNamespaceOutput(v **DescribeNamespaceOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentDescribeFolderPermissionsOutput(v **DescribeFolderPermissionsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12304,17 +12230,35 @@ func awsRestjson1_deserializeOpDocumentDescribeNamespaceOutput(v **DescribeNames return fmt.Errorf("unexpected JSON type %v", value) } - var sv *DescribeNamespaceOutput + var sv *DescribeFolderPermissionsOutput if *v == nil { - sv = &DescribeNamespaceOutput{} + sv = &DescribeFolderPermissionsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "Namespace": - if err := awsRestjson1_deserializeDocumentNamespaceInfoV2(&sv.Namespace, value); err != nil { + case "Arn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) + } + + case "FolderId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RestrictiveResourceId to be of type string, got %T instead", value) + } + sv.FolderId = ptr.String(jtv) + } + + case "Permissions": + if err := awsRestjson1_deserializeDocumentResourcePermissionList(&sv.Permissions, value); err != nil { return err } @@ -12336,14 +12280,14 @@ func awsRestjson1_deserializeOpDocumentDescribeNamespaceOutput(v **DescribeNames return nil } -type awsRestjson1_deserializeOpDescribeRefreshSchedule struct { +type awsRestjson1_deserializeOpDescribeFolderResolvedPermissions struct { } -func (*awsRestjson1_deserializeOpDescribeRefreshSchedule) ID() string { +func (*awsRestjson1_deserializeOpDescribeFolderResolvedPermissions) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDescribeRefreshSchedule) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDescribeFolderResolvedPermissions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -12357,12 +12301,12 @@ func (m *awsRestjson1_deserializeOpDescribeRefreshSchedule) HandleDeserialize(ct } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDescribeRefreshSchedule(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDescribeFolderResolvedPermissions(response, &metadata) } - output := &DescribeRefreshScheduleOutput{} + output := &DescribeFolderResolvedPermissionsOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsDescribeRefreshScheduleOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsDescribeFolderResolvedPermissionsOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -12385,7 +12329,7 @@ func (m *awsRestjson1_deserializeOpDescribeRefreshSchedule) HandleDeserialize(ct return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentDescribeRefreshScheduleOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentDescribeFolderResolvedPermissionsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -12398,7 +12342,7 @@ func (m *awsRestjson1_deserializeOpDescribeRefreshSchedule) HandleDeserialize(ct return out, metadata, err } -func awsRestjson1_deserializeOpErrorDescribeRefreshSchedule(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDescribeFolderResolvedPermissions(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -12448,15 +12392,15 @@ func awsRestjson1_deserializeOpErrorDescribeRefreshSchedule(response *smithyhttp case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) - case strings.EqualFold("LimitExceededException", errorCode): - return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody) - case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + case strings.EqualFold("UnsupportedUserEditionException", errorCode): + return awsRestjson1_deserializeErrorUnsupportedUserEditionException(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -12467,7 +12411,7 @@ func awsRestjson1_deserializeOpErrorDescribeRefreshSchedule(response *smithyhttp } } -func awsRestjson1_deserializeOpHttpBindingsDescribeRefreshScheduleOutput(v *DescribeRefreshScheduleOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsDescribeFolderResolvedPermissionsOutput(v *DescribeFolderResolvedPermissionsOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -12476,7 +12420,7 @@ func awsRestjson1_deserializeOpHttpBindingsDescribeRefreshScheduleOutput(v *Desc return nil } -func awsRestjson1_deserializeOpDocumentDescribeRefreshScheduleOutput(v **DescribeRefreshScheduleOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentDescribeFolderResolvedPermissionsOutput(v **DescribeFolderResolvedPermissionsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12489,9 +12433,9 @@ func awsRestjson1_deserializeOpDocumentDescribeRefreshScheduleOutput(v **Describ return fmt.Errorf("unexpected JSON type %v", value) } - var sv *DescribeRefreshScheduleOutput + var sv *DescribeFolderResolvedPermissionsOutput if *v == nil { - sv = &DescribeRefreshScheduleOutput{} + sv = &DescribeFolderResolvedPermissionsOutput{} } else { sv = *v } @@ -12507,8 +12451,17 @@ func awsRestjson1_deserializeOpDocumentDescribeRefreshScheduleOutput(v **Describ sv.Arn = ptr.String(jtv) } - case "RefreshSchedule": - if err := awsRestjson1_deserializeDocumentRefreshSchedule(&sv.RefreshSchedule, value); err != nil { + case "FolderId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RestrictiveResourceId to be of type string, got %T instead", value) + } + sv.FolderId = ptr.String(jtv) + } + + case "Permissions": + if err := awsRestjson1_deserializeDocumentResourcePermissionList(&sv.Permissions, value); err != nil { return err } @@ -12530,14 +12483,14 @@ func awsRestjson1_deserializeOpDocumentDescribeRefreshScheduleOutput(v **Describ return nil } -type awsRestjson1_deserializeOpDescribeTemplate struct { +type awsRestjson1_deserializeOpDescribeGroup struct { } -func (*awsRestjson1_deserializeOpDescribeTemplate) ID() string { +func (*awsRestjson1_deserializeOpDescribeGroup) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDescribeTemplate) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDescribeGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -12551,12 +12504,12 @@ func (m *awsRestjson1_deserializeOpDescribeTemplate) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDescribeTemplate(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDescribeGroup(response, &metadata) } - output := &DescribeTemplateOutput{} + output := &DescribeGroupOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsDescribeTemplateOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsDescribeGroupOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -12579,7 +12532,7 @@ func (m *awsRestjson1_deserializeOpDescribeTemplate) HandleDeserialize(ctx conte return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentDescribeTemplateOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentDescribeGroupOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -12592,7 +12545,7 @@ func (m *awsRestjson1_deserializeOpDescribeTemplate) HandleDeserialize(ctx conte return out, metadata, err } -func awsRestjson1_deserializeOpErrorDescribeTemplate(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDescribeGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -12636,27 +12589,24 @@ func awsRestjson1_deserializeOpErrorDescribeTemplate(response *smithyhttp.Respon case strings.EqualFold("AccessDeniedException", errorCode): return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - case strings.EqualFold("ConflictException", errorCode): - return awsRestjson1_deserializeErrorConflictException(response, errorBody) - case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) - case strings.EqualFold("ResourceExistsException", errorCode): - return awsRestjson1_deserializeErrorResourceExistsException(response, errorBody) + case strings.EqualFold("PreconditionNotMetException", errorCode): + return awsRestjson1_deserializeErrorPreconditionNotMetException(response, errorBody) case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + case strings.EqualFold("ResourceUnavailableException", errorCode): + return awsRestjson1_deserializeErrorResourceUnavailableException(response, errorBody) + case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - case strings.EqualFold("UnsupportedUserEditionException", errorCode): - return awsRestjson1_deserializeErrorUnsupportedUserEditionException(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -12667,7 +12617,7 @@ func awsRestjson1_deserializeOpErrorDescribeTemplate(response *smithyhttp.Respon } } -func awsRestjson1_deserializeOpHttpBindingsDescribeTemplateOutput(v *DescribeTemplateOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsDescribeGroupOutput(v *DescribeGroupOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -12676,7 +12626,7 @@ func awsRestjson1_deserializeOpHttpBindingsDescribeTemplateOutput(v *DescribeTem return nil } -func awsRestjson1_deserializeOpDocumentDescribeTemplateOutput(v **DescribeTemplateOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentDescribeGroupOutput(v **DescribeGroupOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12689,15 +12639,20 @@ func awsRestjson1_deserializeOpDocumentDescribeTemplateOutput(v **DescribeTempla return fmt.Errorf("unexpected JSON type %v", value) } - var sv *DescribeTemplateOutput + var sv *DescribeGroupOutput if *v == nil { - sv = &DescribeTemplateOutput{} + sv = &DescribeGroupOutput{} } else { sv = *v } for key, value := range shape { switch key { + case "Group": + if err := awsRestjson1_deserializeDocumentGroup(&sv.Group, value); err != nil { + return err + } + case "RequestId": if value != nil { jtv, ok := value.(string) @@ -12707,11 +12662,6 @@ func awsRestjson1_deserializeOpDocumentDescribeTemplateOutput(v **DescribeTempla sv.RequestId = ptr.String(jtv) } - case "Template": - if err := awsRestjson1_deserializeDocumentTemplate(&sv.Template, value); err != nil { - return err - } - default: _, _ = key, value @@ -12721,14 +12671,14 @@ func awsRestjson1_deserializeOpDocumentDescribeTemplateOutput(v **DescribeTempla return nil } -type awsRestjson1_deserializeOpDescribeTemplateAlias struct { +type awsRestjson1_deserializeOpDescribeGroupMembership struct { } -func (*awsRestjson1_deserializeOpDescribeTemplateAlias) ID() string { +func (*awsRestjson1_deserializeOpDescribeGroupMembership) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDescribeTemplateAlias) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDescribeGroupMembership) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -12742,12 +12692,12 @@ func (m *awsRestjson1_deserializeOpDescribeTemplateAlias) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDescribeTemplateAlias(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDescribeGroupMembership(response, &metadata) } - output := &DescribeTemplateAliasOutput{} + output := &DescribeGroupMembershipOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsDescribeTemplateAliasOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsDescribeGroupMembershipOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -12770,7 +12720,7 @@ func (m *awsRestjson1_deserializeOpDescribeTemplateAlias) HandleDeserialize(ctx return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentDescribeTemplateAliasOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentDescribeGroupMembershipOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -12783,7 +12733,7 @@ func (m *awsRestjson1_deserializeOpDescribeTemplateAlias) HandleDeserialize(ctx return out, metadata, err } -func awsRestjson1_deserializeOpErrorDescribeTemplateAlias(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDescribeGroupMembership(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -12824,18 +12774,27 @@ func awsRestjson1_deserializeOpErrorDescribeTemplateAlias(response *smithyhttp.R } switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) + case strings.EqualFold("InvalidParameterValueException", errorCode): + return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) + + case strings.EqualFold("PreconditionNotMetException", errorCode): + return awsRestjson1_deserializeErrorPreconditionNotMetException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + case strings.EqualFold("ResourceUnavailableException", errorCode): + return awsRestjson1_deserializeErrorResourceUnavailableException(response, errorBody) + case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - case strings.EqualFold("UnsupportedUserEditionException", errorCode): - return awsRestjson1_deserializeErrorUnsupportedUserEditionException(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -12846,7 +12805,7 @@ func awsRestjson1_deserializeOpErrorDescribeTemplateAlias(response *smithyhttp.R } } -func awsRestjson1_deserializeOpHttpBindingsDescribeTemplateAliasOutput(v *DescribeTemplateAliasOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsDescribeGroupMembershipOutput(v *DescribeGroupMembershipOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -12855,7 +12814,7 @@ func awsRestjson1_deserializeOpHttpBindingsDescribeTemplateAliasOutput(v *Descri return nil } -func awsRestjson1_deserializeOpDocumentDescribeTemplateAliasOutput(v **DescribeTemplateAliasOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentDescribeGroupMembershipOutput(v **DescribeGroupMembershipOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -12868,15 +12827,20 @@ func awsRestjson1_deserializeOpDocumentDescribeTemplateAliasOutput(v **DescribeT return fmt.Errorf("unexpected JSON type %v", value) } - var sv *DescribeTemplateAliasOutput + var sv *DescribeGroupMembershipOutput if *v == nil { - sv = &DescribeTemplateAliasOutput{} + sv = &DescribeGroupMembershipOutput{} } else { sv = *v } for key, value := range shape { switch key { + case "GroupMember": + if err := awsRestjson1_deserializeDocumentGroupMember(&sv.GroupMember, value); err != nil { + return err + } + case "RequestId": if value != nil { jtv, ok := value.(string) @@ -12886,11 +12850,6 @@ func awsRestjson1_deserializeOpDocumentDescribeTemplateAliasOutput(v **DescribeT sv.RequestId = ptr.String(jtv) } - case "TemplateAlias": - if err := awsRestjson1_deserializeDocumentTemplateAlias(&sv.TemplateAlias, value); err != nil { - return err - } - default: _, _ = key, value @@ -12900,14 +12859,14 @@ func awsRestjson1_deserializeOpDocumentDescribeTemplateAliasOutput(v **DescribeT return nil } -type awsRestjson1_deserializeOpDescribeTemplateDefinition struct { +type awsRestjson1_deserializeOpDescribeIAMPolicyAssignment struct { } -func (*awsRestjson1_deserializeOpDescribeTemplateDefinition) ID() string { +func (*awsRestjson1_deserializeOpDescribeIAMPolicyAssignment) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDescribeTemplateDefinition) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDescribeIAMPolicyAssignment) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -12921,12 +12880,12 @@ func (m *awsRestjson1_deserializeOpDescribeTemplateDefinition) HandleDeserialize } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDescribeTemplateDefinition(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDescribeIAMPolicyAssignment(response, &metadata) } - output := &DescribeTemplateDefinitionOutput{} + output := &DescribeIAMPolicyAssignmentOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsDescribeTemplateDefinitionOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsDescribeIAMPolicyAssignmentOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -12949,7 +12908,7 @@ func (m *awsRestjson1_deserializeOpDescribeTemplateDefinition) HandleDeserialize return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentDescribeTemplateDefinitionOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentDescribeIAMPolicyAssignmentOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -12962,7 +12921,7 @@ func (m *awsRestjson1_deserializeOpDescribeTemplateDefinition) HandleDeserialize return out, metadata, err } -func awsRestjson1_deserializeOpErrorDescribeTemplateDefinition(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDescribeIAMPolicyAssignment(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -13006,27 +12965,21 @@ func awsRestjson1_deserializeOpErrorDescribeTemplateDefinition(response *smithyh case strings.EqualFold("AccessDeniedException", errorCode): return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - case strings.EqualFold("ConflictException", errorCode): - return awsRestjson1_deserializeErrorConflictException(response, errorBody) - case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) + case strings.EqualFold("InvalidNextTokenException", errorCode): + return awsRestjson1_deserializeErrorInvalidNextTokenException(response, errorBody) + case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) - case strings.EqualFold("ResourceExistsException", errorCode): - return awsRestjson1_deserializeErrorResourceExistsException(response, errorBody) - case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - case strings.EqualFold("UnsupportedUserEditionException", errorCode): - return awsRestjson1_deserializeErrorUnsupportedUserEditionException(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -13037,7 +12990,7 @@ func awsRestjson1_deserializeOpErrorDescribeTemplateDefinition(response *smithyh } } -func awsRestjson1_deserializeOpHttpBindingsDescribeTemplateDefinitionOutput(v *DescribeTemplateDefinitionOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsDescribeIAMPolicyAssignmentOutput(v *DescribeIAMPolicyAssignmentOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -13046,7 +12999,7 @@ func awsRestjson1_deserializeOpHttpBindingsDescribeTemplateDefinitionOutput(v *D return nil } -func awsRestjson1_deserializeOpDocumentDescribeTemplateDefinitionOutput(v **DescribeTemplateDefinitionOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentDescribeIAMPolicyAssignmentOutput(v **DescribeIAMPolicyAssignmentOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13059,34 +13012,20 @@ func awsRestjson1_deserializeOpDocumentDescribeTemplateDefinitionOutput(v **Desc return fmt.Errorf("unexpected JSON type %v", value) } - var sv *DescribeTemplateDefinitionOutput + var sv *DescribeIAMPolicyAssignmentOutput if *v == nil { - sv = &DescribeTemplateDefinitionOutput{} + sv = &DescribeIAMPolicyAssignmentOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "Definition": - if err := awsRestjson1_deserializeDocumentTemplateVersionDefinition(&sv.Definition, value); err != nil { - return err - } - - case "Errors": - if err := awsRestjson1_deserializeDocumentTemplateErrorList(&sv.Errors, value); err != nil { + case "IAMPolicyAssignment": + if err := awsRestjson1_deserializeDocumentIAMPolicyAssignment(&sv.IAMPolicyAssignment, value); err != nil { return err } - case "Name": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected TemplateName to be of type string, got %T instead", value) - } - sv.Name = ptr.String(jtv) - } - case "RequestId": if value != nil { jtv, ok := value.(string) @@ -13096,33 +13035,6 @@ func awsRestjson1_deserializeOpDocumentDescribeTemplateDefinitionOutput(v **Desc sv.RequestId = ptr.String(jtv) } - case "ResourceStatus": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ResourceStatus to be of type string, got %T instead", value) - } - sv.ResourceStatus = types.ResourceStatus(jtv) - } - - case "TemplateId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) - } - sv.TemplateId = ptr.String(jtv) - } - - case "ThemeArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.ThemeArn = ptr.String(jtv) - } - default: _, _ = key, value @@ -13132,14 +13044,14 @@ func awsRestjson1_deserializeOpDocumentDescribeTemplateDefinitionOutput(v **Desc return nil } -type awsRestjson1_deserializeOpDescribeTemplatePermissions struct { +type awsRestjson1_deserializeOpDescribeIngestion struct { } -func (*awsRestjson1_deserializeOpDescribeTemplatePermissions) ID() string { +func (*awsRestjson1_deserializeOpDescribeIngestion) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDescribeTemplatePermissions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDescribeIngestion) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -13153,12 +13065,12 @@ func (m *awsRestjson1_deserializeOpDescribeTemplatePermissions) HandleDeserializ } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDescribeTemplatePermissions(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDescribeIngestion(response, &metadata) } - output := &DescribeTemplatePermissionsOutput{} + output := &DescribeIngestionOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsDescribeTemplatePermissionsOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsDescribeIngestionOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -13181,7 +13093,7 @@ func (m *awsRestjson1_deserializeOpDescribeTemplatePermissions) HandleDeserializ return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentDescribeTemplatePermissionsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentDescribeIngestionOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -13194,7 +13106,7 @@ func (m *awsRestjson1_deserializeOpDescribeTemplatePermissions) HandleDeserializ return out, metadata, err } -func awsRestjson1_deserializeOpErrorDescribeTemplatePermissions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDescribeIngestion(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -13235,8 +13147,8 @@ func awsRestjson1_deserializeOpErrorDescribeTemplatePermissions(response *smithy } switch { - case strings.EqualFold("ConflictException", errorCode): - return awsRestjson1_deserializeErrorConflictException(response, errorBody) + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) @@ -13244,15 +13156,15 @@ func awsRestjson1_deserializeOpErrorDescribeTemplatePermissions(response *smithy case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) + case strings.EqualFold("ResourceExistsException", errorCode): + return awsRestjson1_deserializeErrorResourceExistsException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - case strings.EqualFold("UnsupportedUserEditionException", errorCode): - return awsRestjson1_deserializeErrorUnsupportedUserEditionException(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -13263,7 +13175,7 @@ func awsRestjson1_deserializeOpErrorDescribeTemplatePermissions(response *smithy } } -func awsRestjson1_deserializeOpHttpBindingsDescribeTemplatePermissionsOutput(v *DescribeTemplatePermissionsOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsDescribeIngestionOutput(v *DescribeIngestionOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -13272,7 +13184,7 @@ func awsRestjson1_deserializeOpHttpBindingsDescribeTemplatePermissionsOutput(v * return nil } -func awsRestjson1_deserializeOpDocumentDescribeTemplatePermissionsOutput(v **DescribeTemplatePermissionsOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentDescribeIngestionOutput(v **DescribeIngestionOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13285,17 +13197,17 @@ func awsRestjson1_deserializeOpDocumentDescribeTemplatePermissionsOutput(v **Des return fmt.Errorf("unexpected JSON type %v", value) } - var sv *DescribeTemplatePermissionsOutput + var sv *DescribeIngestionOutput if *v == nil { - sv = &DescribeTemplatePermissionsOutput{} + sv = &DescribeIngestionOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "Permissions": - if err := awsRestjson1_deserializeDocumentResourcePermissionList(&sv.Permissions, value); err != nil { + case "Ingestion": + if err := awsRestjson1_deserializeDocumentIngestion(&sv.Ingestion, value); err != nil { return err } @@ -13308,24 +13220,6 @@ func awsRestjson1_deserializeOpDocumentDescribeTemplatePermissionsOutput(v **Des sv.RequestId = ptr.String(jtv) } - case "TemplateArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.TemplateArn = ptr.String(jtv) - } - - case "TemplateId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) - } - sv.TemplateId = ptr.String(jtv) - } - default: _, _ = key, value @@ -13335,14 +13229,14 @@ func awsRestjson1_deserializeOpDocumentDescribeTemplatePermissionsOutput(v **Des return nil } -type awsRestjson1_deserializeOpDescribeTheme struct { +type awsRestjson1_deserializeOpDescribeIpRestriction struct { } -func (*awsRestjson1_deserializeOpDescribeTheme) ID() string { +func (*awsRestjson1_deserializeOpDescribeIpRestriction) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDescribeTheme) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDescribeIpRestriction) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -13356,12 +13250,12 @@ func (m *awsRestjson1_deserializeOpDescribeTheme) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDescribeTheme(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDescribeIpRestriction(response, &metadata) } - output := &DescribeThemeOutput{} + output := &DescribeIpRestrictionOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsDescribeThemeOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsDescribeIpRestrictionOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -13384,7 +13278,7 @@ func (m *awsRestjson1_deserializeOpDescribeTheme) HandleDeserialize(ctx context. return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentDescribeThemeOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentDescribeIpRestrictionOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -13397,7 +13291,7 @@ func (m *awsRestjson1_deserializeOpDescribeTheme) HandleDeserialize(ctx context. return out, metadata, err } -func awsRestjson1_deserializeOpErrorDescribeTheme(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDescribeIpRestriction(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -13447,18 +13341,12 @@ func awsRestjson1_deserializeOpErrorDescribeTheme(response *smithyhttp.Response, case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) - case strings.EqualFold("ResourceExistsException", errorCode): - return awsRestjson1_deserializeErrorResourceExistsException(response, errorBody) - case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - case strings.EqualFold("UnsupportedUserEditionException", errorCode): - return awsRestjson1_deserializeErrorUnsupportedUserEditionException(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -13469,7 +13357,7 @@ func awsRestjson1_deserializeOpErrorDescribeTheme(response *smithyhttp.Response, } } -func awsRestjson1_deserializeOpHttpBindingsDescribeThemeOutput(v *DescribeThemeOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsDescribeIpRestrictionOutput(v *DescribeIpRestrictionOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -13478,7 +13366,7 @@ func awsRestjson1_deserializeOpHttpBindingsDescribeThemeOutput(v *DescribeThemeO return nil } -func awsRestjson1_deserializeOpDocumentDescribeThemeOutput(v **DescribeThemeOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentDescribeIpRestrictionOutput(v **DescribeIpRestrictionOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13491,29 +13379,47 @@ func awsRestjson1_deserializeOpDocumentDescribeThemeOutput(v **DescribeThemeOutp return fmt.Errorf("unexpected JSON type %v", value) } - var sv *DescribeThemeOutput + var sv *DescribeIpRestrictionOutput if *v == nil { - sv = &DescribeThemeOutput{} + sv = &DescribeIpRestrictionOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "RequestId": + case "AwsAccountId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) + return fmt.Errorf("expected AwsAccountId to be of type string, got %T instead", value) } - sv.RequestId = ptr.String(jtv) + sv.AwsAccountId = ptr.String(jtv) } - case "Theme": - if err := awsRestjson1_deserializeDocumentTheme(&sv.Theme, value); err != nil { + case "Enabled": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected NullableBoolean to be of type *bool, got %T instead", value) + } + sv.Enabled = ptr.Bool(jtv) + } + + case "IpRestrictionRuleMap": + if err := awsRestjson1_deserializeDocumentIpRestrictionRuleMap(&sv.IpRestrictionRuleMap, value); err != nil { return err } + case "RequestId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.RequestId = ptr.String(jtv) + } + default: _, _ = key, value @@ -13523,14 +13429,14 @@ func awsRestjson1_deserializeOpDocumentDescribeThemeOutput(v **DescribeThemeOutp return nil } -type awsRestjson1_deserializeOpDescribeThemeAlias struct { +type awsRestjson1_deserializeOpDescribeNamespace struct { } -func (*awsRestjson1_deserializeOpDescribeThemeAlias) ID() string { +func (*awsRestjson1_deserializeOpDescribeNamespace) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDescribeThemeAlias) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDescribeNamespace) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -13544,12 +13450,12 @@ func (m *awsRestjson1_deserializeOpDescribeThemeAlias) HandleDeserialize(ctx con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDescribeThemeAlias(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDescribeNamespace(response, &metadata) } - output := &DescribeThemeAliasOutput{} + output := &DescribeNamespaceOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsDescribeThemeAliasOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsDescribeNamespaceOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -13572,7 +13478,7 @@ func (m *awsRestjson1_deserializeOpDescribeThemeAlias) HandleDeserialize(ctx con return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentDescribeThemeAliasOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentDescribeNamespaceOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -13585,7 +13491,7 @@ func (m *awsRestjson1_deserializeOpDescribeThemeAlias) HandleDeserialize(ctx con return out, metadata, err } -func awsRestjson1_deserializeOpErrorDescribeThemeAlias(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDescribeNamespace(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -13626,8 +13532,8 @@ func awsRestjson1_deserializeOpErrorDescribeThemeAlias(response *smithyhttp.Resp } switch { - case strings.EqualFold("ConflictException", errorCode): - return awsRestjson1_deserializeErrorConflictException(response, errorBody) + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) @@ -13638,12 +13544,12 @@ func awsRestjson1_deserializeOpErrorDescribeThemeAlias(response *smithyhttp.Resp case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + case strings.EqualFold("ResourceUnavailableException", errorCode): + return awsRestjson1_deserializeErrorResourceUnavailableException(response, errorBody) + case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - case strings.EqualFold("UnsupportedUserEditionException", errorCode): - return awsRestjson1_deserializeErrorUnsupportedUserEditionException(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -13654,7 +13560,7 @@ func awsRestjson1_deserializeOpErrorDescribeThemeAlias(response *smithyhttp.Resp } } -func awsRestjson1_deserializeOpHttpBindingsDescribeThemeAliasOutput(v *DescribeThemeAliasOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsDescribeNamespaceOutput(v *DescribeNamespaceOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -13663,7 +13569,7 @@ func awsRestjson1_deserializeOpHttpBindingsDescribeThemeAliasOutput(v *DescribeT return nil } -func awsRestjson1_deserializeOpDocumentDescribeThemeAliasOutput(v **DescribeThemeAliasOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentDescribeNamespaceOutput(v **DescribeNamespaceOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13676,15 +13582,20 @@ func awsRestjson1_deserializeOpDocumentDescribeThemeAliasOutput(v **DescribeThem return fmt.Errorf("unexpected JSON type %v", value) } - var sv *DescribeThemeAliasOutput + var sv *DescribeNamespaceOutput if *v == nil { - sv = &DescribeThemeAliasOutput{} + sv = &DescribeNamespaceOutput{} } else { sv = *v } for key, value := range shape { switch key { + case "Namespace": + if err := awsRestjson1_deserializeDocumentNamespaceInfoV2(&sv.Namespace, value); err != nil { + return err + } + case "RequestId": if value != nil { jtv, ok := value.(string) @@ -13694,11 +13605,6 @@ func awsRestjson1_deserializeOpDocumentDescribeThemeAliasOutput(v **DescribeThem sv.RequestId = ptr.String(jtv) } - case "ThemeAlias": - if err := awsRestjson1_deserializeDocumentThemeAlias(&sv.ThemeAlias, value); err != nil { - return err - } - default: _, _ = key, value @@ -13708,14 +13614,14 @@ func awsRestjson1_deserializeOpDocumentDescribeThemeAliasOutput(v **DescribeThem return nil } -type awsRestjson1_deserializeOpDescribeThemePermissions struct { +type awsRestjson1_deserializeOpDescribeRefreshSchedule struct { } -func (*awsRestjson1_deserializeOpDescribeThemePermissions) ID() string { +func (*awsRestjson1_deserializeOpDescribeRefreshSchedule) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDescribeThemePermissions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDescribeRefreshSchedule) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -13729,12 +13635,12 @@ func (m *awsRestjson1_deserializeOpDescribeThemePermissions) HandleDeserialize(c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDescribeThemePermissions(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDescribeRefreshSchedule(response, &metadata) } - output := &DescribeThemePermissionsOutput{} + output := &DescribeRefreshScheduleOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsDescribeThemePermissionsOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsDescribeRefreshScheduleOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -13757,7 +13663,7 @@ func (m *awsRestjson1_deserializeOpDescribeThemePermissions) HandleDeserialize(c return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentDescribeThemePermissionsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentDescribeRefreshScheduleOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -13770,7 +13676,7 @@ func (m *awsRestjson1_deserializeOpDescribeThemePermissions) HandleDeserialize(c return out, metadata, err } -func awsRestjson1_deserializeOpErrorDescribeThemePermissions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDescribeRefreshSchedule(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -13820,15 +13726,15 @@ func awsRestjson1_deserializeOpErrorDescribeThemePermissions(response *smithyhtt case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) + case strings.EqualFold("LimitExceededException", errorCode): + return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - case strings.EqualFold("UnsupportedUserEditionException", errorCode): - return awsRestjson1_deserializeErrorUnsupportedUserEditionException(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -13839,7 +13745,7 @@ func awsRestjson1_deserializeOpErrorDescribeThemePermissions(response *smithyhtt } } -func awsRestjson1_deserializeOpHttpBindingsDescribeThemePermissionsOutput(v *DescribeThemePermissionsOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsDescribeRefreshScheduleOutput(v *DescribeRefreshScheduleOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -13848,7 +13754,7 @@ func awsRestjson1_deserializeOpHttpBindingsDescribeThemePermissionsOutput(v *Des return nil } -func awsRestjson1_deserializeOpDocumentDescribeThemePermissionsOutput(v **DescribeThemePermissionsOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentDescribeRefreshScheduleOutput(v **DescribeRefreshScheduleOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -13861,45 +13767,36 @@ func awsRestjson1_deserializeOpDocumentDescribeThemePermissionsOutput(v **Descri return fmt.Errorf("unexpected JSON type %v", value) } - var sv *DescribeThemePermissionsOutput + var sv *DescribeRefreshScheduleOutput if *v == nil { - sv = &DescribeThemePermissionsOutput{} + sv = &DescribeRefreshScheduleOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "Permissions": - if err := awsRestjson1_deserializeDocumentResourcePermissionList(&sv.Permissions, value); err != nil { - return err - } - - case "RequestId": + case "Arn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.RequestId = ptr.String(jtv) + sv.Arn = ptr.String(jtv) } - case "ThemeArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.ThemeArn = ptr.String(jtv) + case "RefreshSchedule": + if err := awsRestjson1_deserializeDocumentRefreshSchedule(&sv.RefreshSchedule, value); err != nil { + return err } - case "ThemeId": + case "RequestId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ThemeId = ptr.String(jtv) + sv.RequestId = ptr.String(jtv) } default: @@ -13911,14 +13808,14 @@ func awsRestjson1_deserializeOpDocumentDescribeThemePermissionsOutput(v **Descri return nil } -type awsRestjson1_deserializeOpDescribeUser struct { +type awsRestjson1_deserializeOpDescribeTemplate struct { } -func (*awsRestjson1_deserializeOpDescribeUser) ID() string { +func (*awsRestjson1_deserializeOpDescribeTemplate) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpDescribeUser) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDescribeTemplate) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -13932,12 +13829,12 @@ func (m *awsRestjson1_deserializeOpDescribeUser) HandleDeserialize(ctx context.C } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorDescribeUser(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDescribeTemplate(response, &metadata) } - output := &DescribeUserOutput{} + output := &DescribeTemplateOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsDescribeUserOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsDescribeTemplateOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -13960,7 +13857,7 @@ func (m *awsRestjson1_deserializeOpDescribeUser) HandleDeserialize(ctx context.C return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentDescribeUserOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentDescribeTemplateOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -13973,7 +13870,7 @@ func (m *awsRestjson1_deserializeOpDescribeUser) HandleDeserialize(ctx context.C return out, metadata, err } -func awsRestjson1_deserializeOpErrorDescribeUser(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDescribeTemplate(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -14017,24 +13914,27 @@ func awsRestjson1_deserializeOpErrorDescribeUser(response *smithyhttp.Response, case strings.EqualFold("AccessDeniedException", errorCode): return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) - case strings.EqualFold("PreconditionNotMetException", errorCode): - return awsRestjson1_deserializeErrorPreconditionNotMetException(response, errorBody) + case strings.EqualFold("ResourceExistsException", errorCode): + return awsRestjson1_deserializeErrorResourceExistsException(response, errorBody) case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - case strings.EqualFold("ResourceUnavailableException", errorCode): - return awsRestjson1_deserializeErrorResourceUnavailableException(response, errorBody) - case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + case strings.EqualFold("UnsupportedUserEditionException", errorCode): + return awsRestjson1_deserializeErrorUnsupportedUserEditionException(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -14045,7 +13945,7 @@ func awsRestjson1_deserializeOpErrorDescribeUser(response *smithyhttp.Response, } } -func awsRestjson1_deserializeOpHttpBindingsDescribeUserOutput(v *DescribeUserOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsDescribeTemplateOutput(v *DescribeTemplateOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -14054,7 +13954,7 @@ func awsRestjson1_deserializeOpHttpBindingsDescribeUserOutput(v *DescribeUserOut return nil } -func awsRestjson1_deserializeOpDocumentDescribeUserOutput(v **DescribeUserOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentDescribeTemplateOutput(v **DescribeTemplateOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14067,9 +13967,9 @@ func awsRestjson1_deserializeOpDocumentDescribeUserOutput(v **DescribeUserOutput return fmt.Errorf("unexpected JSON type %v", value) } - var sv *DescribeUserOutput + var sv *DescribeTemplateOutput if *v == nil { - sv = &DescribeUserOutput{} + sv = &DescribeTemplateOutput{} } else { sv = *v } @@ -14085,8 +13985,8 @@ func awsRestjson1_deserializeOpDocumentDescribeUserOutput(v **DescribeUserOutput sv.RequestId = ptr.String(jtv) } - case "User": - if err := awsRestjson1_deserializeDocumentUser(&sv.User, value); err != nil { + case "Template": + if err := awsRestjson1_deserializeDocumentTemplate(&sv.Template, value); err != nil { return err } @@ -14099,14 +13999,14 @@ func awsRestjson1_deserializeOpDocumentDescribeUserOutput(v **DescribeUserOutput return nil } -type awsRestjson1_deserializeOpGenerateEmbedUrlForAnonymousUser struct { +type awsRestjson1_deserializeOpDescribeTemplateAlias struct { } -func (*awsRestjson1_deserializeOpGenerateEmbedUrlForAnonymousUser) ID() string { +func (*awsRestjson1_deserializeOpDescribeTemplateAlias) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpGenerateEmbedUrlForAnonymousUser) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDescribeTemplateAlias) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -14120,12 +14020,12 @@ func (m *awsRestjson1_deserializeOpGenerateEmbedUrlForAnonymousUser) HandleDeser } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorGenerateEmbedUrlForAnonymousUser(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDescribeTemplateAlias(response, &metadata) } - output := &GenerateEmbedUrlForAnonymousUserOutput{} + output := &DescribeTemplateAliasOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsGenerateEmbedUrlForAnonymousUserOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsDescribeTemplateAliasOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -14148,7 +14048,7 @@ func (m *awsRestjson1_deserializeOpGenerateEmbedUrlForAnonymousUser) HandleDeser return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentGenerateEmbedUrlForAnonymousUserOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentDescribeTemplateAliasOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -14161,7 +14061,7 @@ func (m *awsRestjson1_deserializeOpGenerateEmbedUrlForAnonymousUser) HandleDeser return out, metadata, err } -func awsRestjson1_deserializeOpErrorGenerateEmbedUrlForAnonymousUser(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDescribeTemplateAlias(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -14202,27 +14102,15 @@ func awsRestjson1_deserializeOpErrorGenerateEmbedUrlForAnonymousUser(response *s } switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) - case strings.EqualFold("InvalidParameterValueException", errorCode): - return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) - case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - case strings.EqualFold("SessionLifetimeInMinutesInvalidException", errorCode): - return awsRestjson1_deserializeErrorSessionLifetimeInMinutesInvalidException(response, errorBody) - case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - case strings.EqualFold("UnsupportedPricingPlanException", errorCode): - return awsRestjson1_deserializeErrorUnsupportedPricingPlanException(response, errorBody) - case strings.EqualFold("UnsupportedUserEditionException", errorCode): return awsRestjson1_deserializeErrorUnsupportedUserEditionException(response, errorBody) @@ -14236,7 +14124,7 @@ func awsRestjson1_deserializeOpErrorGenerateEmbedUrlForAnonymousUser(response *s } } -func awsRestjson1_deserializeOpHttpBindingsGenerateEmbedUrlForAnonymousUserOutput(v *GenerateEmbedUrlForAnonymousUserOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsDescribeTemplateAliasOutput(v *DescribeTemplateAliasOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -14245,7 +14133,7 @@ func awsRestjson1_deserializeOpHttpBindingsGenerateEmbedUrlForAnonymousUserOutpu return nil } -func awsRestjson1_deserializeOpDocumentGenerateEmbedUrlForAnonymousUserOutput(v **GenerateEmbedUrlForAnonymousUserOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentDescribeTemplateAliasOutput(v **DescribeTemplateAliasOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14258,33 +14146,15 @@ func awsRestjson1_deserializeOpDocumentGenerateEmbedUrlForAnonymousUserOutput(v return fmt.Errorf("unexpected JSON type %v", value) } - var sv *GenerateEmbedUrlForAnonymousUserOutput + var sv *DescribeTemplateAliasOutput if *v == nil { - sv = &GenerateEmbedUrlForAnonymousUserOutput{} + sv = &DescribeTemplateAliasOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "AnonymousUserArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.AnonymousUserArn = ptr.String(jtv) - } - - case "EmbedUrl": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected EmbeddingUrl to be of type string, got %T instead", value) - } - sv.EmbedUrl = ptr.String(jtv) - } - case "RequestId": if value != nil { jtv, ok := value.(string) @@ -14294,6 +14164,11 @@ func awsRestjson1_deserializeOpDocumentGenerateEmbedUrlForAnonymousUserOutput(v sv.RequestId = ptr.String(jtv) } + case "TemplateAlias": + if err := awsRestjson1_deserializeDocumentTemplateAlias(&sv.TemplateAlias, value); err != nil { + return err + } + default: _, _ = key, value @@ -14303,14 +14178,14 @@ func awsRestjson1_deserializeOpDocumentGenerateEmbedUrlForAnonymousUserOutput(v return nil } -type awsRestjson1_deserializeOpGenerateEmbedUrlForRegisteredUser struct { +type awsRestjson1_deserializeOpDescribeTemplateDefinition struct { } -func (*awsRestjson1_deserializeOpGenerateEmbedUrlForRegisteredUser) ID() string { +func (*awsRestjson1_deserializeOpDescribeTemplateDefinition) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpGenerateEmbedUrlForRegisteredUser) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDescribeTemplateDefinition) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -14324,12 +14199,12 @@ func (m *awsRestjson1_deserializeOpGenerateEmbedUrlForRegisteredUser) HandleDese } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorGenerateEmbedUrlForRegisteredUser(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDescribeTemplateDefinition(response, &metadata) } - output := &GenerateEmbedUrlForRegisteredUserOutput{} + output := &DescribeTemplateDefinitionOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsGenerateEmbedUrlForRegisteredUserOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsDescribeTemplateDefinitionOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -14352,7 +14227,7 @@ func (m *awsRestjson1_deserializeOpGenerateEmbedUrlForRegisteredUser) HandleDese return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentGenerateEmbedUrlForRegisteredUserOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentDescribeTemplateDefinitionOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -14365,7 +14240,7 @@ func (m *awsRestjson1_deserializeOpGenerateEmbedUrlForRegisteredUser) HandleDese return out, metadata, err } -func awsRestjson1_deserializeOpErrorGenerateEmbedUrlForRegisteredUser(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDescribeTemplateDefinition(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -14409,27 +14284,24 @@ func awsRestjson1_deserializeOpErrorGenerateEmbedUrlForRegisteredUser(response * case strings.EqualFold("AccessDeniedException", errorCode): return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) - case strings.EqualFold("QuickSightUserNotFoundException", errorCode): - return awsRestjson1_deserializeErrorQuickSightUserNotFoundException(response, errorBody) + case strings.EqualFold("ResourceExistsException", errorCode): + return awsRestjson1_deserializeErrorResourceExistsException(response, errorBody) case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - case strings.EqualFold("SessionLifetimeInMinutesInvalidException", errorCode): - return awsRestjson1_deserializeErrorSessionLifetimeInMinutesInvalidException(response, errorBody) - case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - case strings.EqualFold("UnsupportedPricingPlanException", errorCode): - return awsRestjson1_deserializeErrorUnsupportedPricingPlanException(response, errorBody) - case strings.EqualFold("UnsupportedUserEditionException", errorCode): return awsRestjson1_deserializeErrorUnsupportedUserEditionException(response, errorBody) @@ -14443,7 +14315,7 @@ func awsRestjson1_deserializeOpErrorGenerateEmbedUrlForRegisteredUser(response * } } -func awsRestjson1_deserializeOpHttpBindingsGenerateEmbedUrlForRegisteredUserOutput(v *GenerateEmbedUrlForRegisteredUserOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsDescribeTemplateDefinitionOutput(v *DescribeTemplateDefinitionOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -14452,7 +14324,7 @@ func awsRestjson1_deserializeOpHttpBindingsGenerateEmbedUrlForRegisteredUserOutp return nil } -func awsRestjson1_deserializeOpDocumentGenerateEmbedUrlForRegisteredUserOutput(v **GenerateEmbedUrlForRegisteredUserOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentDescribeTemplateDefinitionOutput(v **DescribeTemplateDefinitionOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14465,22 +14337,32 @@ func awsRestjson1_deserializeOpDocumentGenerateEmbedUrlForRegisteredUserOutput(v return fmt.Errorf("unexpected JSON type %v", value) } - var sv *GenerateEmbedUrlForRegisteredUserOutput + var sv *DescribeTemplateDefinitionOutput if *v == nil { - sv = &GenerateEmbedUrlForRegisteredUserOutput{} + sv = &DescribeTemplateDefinitionOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "EmbedUrl": + case "Definition": + if err := awsRestjson1_deserializeDocumentTemplateVersionDefinition(&sv.Definition, value); err != nil { + return err + } + + case "Errors": + if err := awsRestjson1_deserializeDocumentTemplateErrorList(&sv.Errors, value); err != nil { + return err + } + + case "Name": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected EmbeddingUrl to be of type string, got %T instead", value) + return fmt.Errorf("expected TemplateName to be of type string, got %T instead", value) } - sv.EmbedUrl = ptr.String(jtv) + sv.Name = ptr.String(jtv) } case "RequestId": @@ -14492,6 +14374,33 @@ func awsRestjson1_deserializeOpDocumentGenerateEmbedUrlForRegisteredUserOutput(v sv.RequestId = ptr.String(jtv) } + case "ResourceStatus": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourceStatus to be of type string, got %T instead", value) + } + sv.ResourceStatus = types.ResourceStatus(jtv) + } + + case "TemplateId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + } + sv.TemplateId = ptr.String(jtv) + } + + case "ThemeArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.ThemeArn = ptr.String(jtv) + } + default: _, _ = key, value @@ -14501,14 +14410,14 @@ func awsRestjson1_deserializeOpDocumentGenerateEmbedUrlForRegisteredUserOutput(v return nil } -type awsRestjson1_deserializeOpGetDashboardEmbedUrl struct { +type awsRestjson1_deserializeOpDescribeTemplatePermissions struct { } -func (*awsRestjson1_deserializeOpGetDashboardEmbedUrl) ID() string { +func (*awsRestjson1_deserializeOpDescribeTemplatePermissions) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpGetDashboardEmbedUrl) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDescribeTemplatePermissions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -14522,12 +14431,12 @@ func (m *awsRestjson1_deserializeOpGetDashboardEmbedUrl) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorGetDashboardEmbedUrl(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDescribeTemplatePermissions(response, &metadata) } - output := &GetDashboardEmbedUrlOutput{} + output := &DescribeTemplatePermissionsOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsGetDashboardEmbedUrlOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsDescribeTemplatePermissionsOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -14550,7 +14459,7 @@ func (m *awsRestjson1_deserializeOpGetDashboardEmbedUrl) HandleDeserialize(ctx c return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentGetDashboardEmbedUrlOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentDescribeTemplatePermissionsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -14563,7 +14472,7 @@ func (m *awsRestjson1_deserializeOpGetDashboardEmbedUrl) HandleDeserialize(ctx c return out, metadata, err } -func awsRestjson1_deserializeOpErrorGetDashboardEmbedUrl(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDescribeTemplatePermissions(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -14604,14 +14513,8 @@ func awsRestjson1_deserializeOpErrorGetDashboardEmbedUrl(response *smithyhttp.Re } switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("DomainNotWhitelistedException", errorCode): - return awsRestjson1_deserializeErrorDomainNotWhitelistedException(response, errorBody) - - case strings.EqualFold("IdentityTypeNotSupportedException", errorCode): - return awsRestjson1_deserializeErrorIdentityTypeNotSupportedException(response, errorBody) + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) @@ -14619,24 +14522,12 @@ func awsRestjson1_deserializeOpErrorGetDashboardEmbedUrl(response *smithyhttp.Re case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) - case strings.EqualFold("QuickSightUserNotFoundException", errorCode): - return awsRestjson1_deserializeErrorQuickSightUserNotFoundException(response, errorBody) - - case strings.EqualFold("ResourceExistsException", errorCode): - return awsRestjson1_deserializeErrorResourceExistsException(response, errorBody) - case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - case strings.EqualFold("SessionLifetimeInMinutesInvalidException", errorCode): - return awsRestjson1_deserializeErrorSessionLifetimeInMinutesInvalidException(response, errorBody) - case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - case strings.EqualFold("UnsupportedPricingPlanException", errorCode): - return awsRestjson1_deserializeErrorUnsupportedPricingPlanException(response, errorBody) - case strings.EqualFold("UnsupportedUserEditionException", errorCode): return awsRestjson1_deserializeErrorUnsupportedUserEditionException(response, errorBody) @@ -14650,7 +14541,7 @@ func awsRestjson1_deserializeOpErrorGetDashboardEmbedUrl(response *smithyhttp.Re } } -func awsRestjson1_deserializeOpHttpBindingsGetDashboardEmbedUrlOutput(v *GetDashboardEmbedUrlOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsDescribeTemplatePermissionsOutput(v *DescribeTemplatePermissionsOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -14659,7 +14550,7 @@ func awsRestjson1_deserializeOpHttpBindingsGetDashboardEmbedUrlOutput(v *GetDash return nil } -func awsRestjson1_deserializeOpDocumentGetDashboardEmbedUrlOutput(v **GetDashboardEmbedUrlOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentDescribeTemplatePermissionsOutput(v **DescribeTemplatePermissionsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14672,31 +14563,45 @@ func awsRestjson1_deserializeOpDocumentGetDashboardEmbedUrlOutput(v **GetDashboa return fmt.Errorf("unexpected JSON type %v", value) } - var sv *GetDashboardEmbedUrlOutput + var sv *DescribeTemplatePermissionsOutput if *v == nil { - sv = &GetDashboardEmbedUrlOutput{} + sv = &DescribeTemplatePermissionsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "EmbedUrl": + case "Permissions": + if err := awsRestjson1_deserializeDocumentResourcePermissionList(&sv.Permissions, value); err != nil { + return err + } + + case "RequestId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected EmbeddingUrl to be of type string, got %T instead", value) + return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.EmbedUrl = ptr.String(jtv) + sv.RequestId = ptr.String(jtv) } - case "RequestId": + case "TemplateArn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.RequestId = ptr.String(jtv) + sv.TemplateArn = ptr.String(jtv) + } + + case "TemplateId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + } + sv.TemplateId = ptr.String(jtv) } default: @@ -14708,14 +14613,14 @@ func awsRestjson1_deserializeOpDocumentGetDashboardEmbedUrlOutput(v **GetDashboa return nil } -type awsRestjson1_deserializeOpGetSessionEmbedUrl struct { +type awsRestjson1_deserializeOpDescribeTheme struct { } -func (*awsRestjson1_deserializeOpGetSessionEmbedUrl) ID() string { +func (*awsRestjson1_deserializeOpDescribeTheme) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpGetSessionEmbedUrl) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDescribeTheme) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -14729,12 +14634,12 @@ func (m *awsRestjson1_deserializeOpGetSessionEmbedUrl) HandleDeserialize(ctx con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorGetSessionEmbedUrl(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDescribeTheme(response, &metadata) } - output := &GetSessionEmbedUrlOutput{} + output := &DescribeThemeOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsGetSessionEmbedUrlOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsDescribeThemeOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -14757,7 +14662,7 @@ func (m *awsRestjson1_deserializeOpGetSessionEmbedUrl) HandleDeserialize(ctx con return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentGetSessionEmbedUrlOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentDescribeThemeOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -14770,7 +14675,7 @@ func (m *awsRestjson1_deserializeOpGetSessionEmbedUrl) HandleDeserialize(ctx con return out, metadata, err } -func awsRestjson1_deserializeOpErrorGetSessionEmbedUrl(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDescribeTheme(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -14820,18 +14725,12 @@ func awsRestjson1_deserializeOpErrorGetSessionEmbedUrl(response *smithyhttp.Resp case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) - case strings.EqualFold("QuickSightUserNotFoundException", errorCode): - return awsRestjson1_deserializeErrorQuickSightUserNotFoundException(response, errorBody) - case strings.EqualFold("ResourceExistsException", errorCode): return awsRestjson1_deserializeErrorResourceExistsException(response, errorBody) case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - case strings.EqualFold("SessionLifetimeInMinutesInvalidException", errorCode): - return awsRestjson1_deserializeErrorSessionLifetimeInMinutesInvalidException(response, errorBody) - case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) @@ -14848,7 +14747,7 @@ func awsRestjson1_deserializeOpErrorGetSessionEmbedUrl(response *smithyhttp.Resp } } -func awsRestjson1_deserializeOpHttpBindingsGetSessionEmbedUrlOutput(v *GetSessionEmbedUrlOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsDescribeThemeOutput(v *DescribeThemeOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -14857,7 +14756,7 @@ func awsRestjson1_deserializeOpHttpBindingsGetSessionEmbedUrlOutput(v *GetSessio return nil } -func awsRestjson1_deserializeOpDocumentGetSessionEmbedUrlOutput(v **GetSessionEmbedUrlOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentDescribeThemeOutput(v **DescribeThemeOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -14870,24 +14769,15 @@ func awsRestjson1_deserializeOpDocumentGetSessionEmbedUrlOutput(v **GetSessionEm return fmt.Errorf("unexpected JSON type %v", value) } - var sv *GetSessionEmbedUrlOutput + var sv *DescribeThemeOutput if *v == nil { - sv = &GetSessionEmbedUrlOutput{} + sv = &DescribeThemeOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "EmbedUrl": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected EmbeddingUrl to be of type string, got %T instead", value) - } - sv.EmbedUrl = ptr.String(jtv) - } - case "RequestId": if value != nil { jtv, ok := value.(string) @@ -14897,6 +14787,11 @@ func awsRestjson1_deserializeOpDocumentGetSessionEmbedUrlOutput(v **GetSessionEm sv.RequestId = ptr.String(jtv) } + case "Theme": + if err := awsRestjson1_deserializeDocumentTheme(&sv.Theme, value); err != nil { + return err + } + default: _, _ = key, value @@ -14906,14 +14801,14 @@ func awsRestjson1_deserializeOpDocumentGetSessionEmbedUrlOutput(v **GetSessionEm return nil } -type awsRestjson1_deserializeOpListAnalyses struct { +type awsRestjson1_deserializeOpDescribeThemeAlias struct { } -func (*awsRestjson1_deserializeOpListAnalyses) ID() string { +func (*awsRestjson1_deserializeOpDescribeThemeAlias) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListAnalyses) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDescribeThemeAlias) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -14927,12 +14822,12 @@ func (m *awsRestjson1_deserializeOpListAnalyses) HandleDeserialize(ctx context.C } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListAnalyses(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDescribeThemeAlias(response, &metadata) } - output := &ListAnalysesOutput{} + output := &DescribeThemeAliasOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsListAnalysesOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsDescribeThemeAliasOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -14955,7 +14850,7 @@ func (m *awsRestjson1_deserializeOpListAnalyses) HandleDeserialize(ctx context.C return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListAnalysesOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentDescribeThemeAliasOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -14968,7 +14863,7 @@ func (m *awsRestjson1_deserializeOpListAnalyses) HandleDeserialize(ctx context.C return out, metadata, err } -func awsRestjson1_deserializeOpErrorListAnalyses(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDescribeThemeAlias(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -15009,11 +14904,17 @@ func awsRestjson1_deserializeOpErrorListAnalyses(response *smithyhttp.Response, } switch { + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) - case strings.EqualFold("InvalidNextTokenException", errorCode): - return awsRestjson1_deserializeErrorInvalidNextTokenException(response, errorBody) + case strings.EqualFold("InvalidParameterValueException", errorCode): + return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) @@ -15031,7 +14932,7 @@ func awsRestjson1_deserializeOpErrorListAnalyses(response *smithyhttp.Response, } } -func awsRestjson1_deserializeOpHttpBindingsListAnalysesOutput(v *ListAnalysesOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsDescribeThemeAliasOutput(v *DescribeThemeAliasOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -15040,7 +14941,7 @@ func awsRestjson1_deserializeOpHttpBindingsListAnalysesOutput(v *ListAnalysesOut return nil } -func awsRestjson1_deserializeOpDocumentListAnalysesOutput(v **ListAnalysesOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentDescribeThemeAliasOutput(v **DescribeThemeAliasOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -15053,29 +14954,15 @@ func awsRestjson1_deserializeOpDocumentListAnalysesOutput(v **ListAnalysesOutput return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListAnalysesOutput + var sv *DescribeThemeAliasOutput if *v == nil { - sv = &ListAnalysesOutput{} + sv = &DescribeThemeAliasOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "AnalysisSummaryList": - if err := awsRestjson1_deserializeDocumentAnalysisSummaryList(&sv.AnalysisSummaryList, value); err != nil { - return err - } - - case "NextToken": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.NextToken = ptr.String(jtv) - } - case "RequestId": if value != nil { jtv, ok := value.(string) @@ -15085,6 +14972,11 @@ func awsRestjson1_deserializeOpDocumentListAnalysesOutput(v **ListAnalysesOutput sv.RequestId = ptr.String(jtv) } + case "ThemeAlias": + if err := awsRestjson1_deserializeDocumentThemeAlias(&sv.ThemeAlias, value); err != nil { + return err + } + default: _, _ = key, value @@ -15094,14 +14986,14 @@ func awsRestjson1_deserializeOpDocumentListAnalysesOutput(v **ListAnalysesOutput return nil } -type awsRestjson1_deserializeOpListDashboards struct { +type awsRestjson1_deserializeOpDescribeThemePermissions struct { } -func (*awsRestjson1_deserializeOpListDashboards) ID() string { +func (*awsRestjson1_deserializeOpDescribeThemePermissions) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListDashboards) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDescribeThemePermissions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -15115,12 +15007,12 @@ func (m *awsRestjson1_deserializeOpListDashboards) HandleDeserialize(ctx context } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListDashboards(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDescribeThemePermissions(response, &metadata) } - output := &ListDashboardsOutput{} + output := &DescribeThemePermissionsOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsListDashboardsOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsDescribeThemePermissionsOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -15143,7 +15035,7 @@ func (m *awsRestjson1_deserializeOpListDashboards) HandleDeserialize(ctx context return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListDashboardsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentDescribeThemePermissionsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -15156,7 +15048,7 @@ func (m *awsRestjson1_deserializeOpListDashboards) HandleDeserialize(ctx context return out, metadata, err } -func awsRestjson1_deserializeOpErrorListDashboards(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDescribeThemePermissions(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -15197,11 +15089,17 @@ func awsRestjson1_deserializeOpErrorListDashboards(response *smithyhttp.Response } switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) - case strings.EqualFold("InvalidNextTokenException", errorCode): - return awsRestjson1_deserializeErrorInvalidNextTokenException(response, errorBody) + case strings.EqualFold("InvalidParameterValueException", errorCode): + return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) @@ -15219,7 +15117,7 @@ func awsRestjson1_deserializeOpErrorListDashboards(response *smithyhttp.Response } } -func awsRestjson1_deserializeOpHttpBindingsListDashboardsOutput(v *ListDashboardsOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsDescribeThemePermissionsOutput(v *DescribeThemePermissionsOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -15228,7 +15126,7 @@ func awsRestjson1_deserializeOpHttpBindingsListDashboardsOutput(v *ListDashboard return nil } -func awsRestjson1_deserializeOpDocumentListDashboardsOutput(v **ListDashboardsOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentDescribeThemePermissionsOutput(v **DescribeThemePermissionsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -15241,36 +15139,45 @@ func awsRestjson1_deserializeOpDocumentListDashboardsOutput(v **ListDashboardsOu return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListDashboardsOutput + var sv *DescribeThemePermissionsOutput if *v == nil { - sv = &ListDashboardsOutput{} + sv = &DescribeThemePermissionsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "DashboardSummaryList": - if err := awsRestjson1_deserializeDocumentDashboardSummaryList(&sv.DashboardSummaryList, value); err != nil { + case "Permissions": + if err := awsRestjson1_deserializeDocumentResourcePermissionList(&sv.Permissions, value); err != nil { return err } - case "NextToken": + case "RequestId": if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = ptr.String(jtv) + sv.RequestId = ptr.String(jtv) } - case "RequestId": + case "ThemeArn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.RequestId = ptr.String(jtv) + sv.ThemeArn = ptr.String(jtv) + } + + case "ThemeId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + } + sv.ThemeId = ptr.String(jtv) } default: @@ -15282,14 +15189,14 @@ func awsRestjson1_deserializeOpDocumentListDashboardsOutput(v **ListDashboardsOu return nil } -type awsRestjson1_deserializeOpListDashboardVersions struct { +type awsRestjson1_deserializeOpDescribeTopic struct { } -func (*awsRestjson1_deserializeOpListDashboardVersions) ID() string { +func (*awsRestjson1_deserializeOpDescribeTopic) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListDashboardVersions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDescribeTopic) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -15303,12 +15210,12 @@ func (m *awsRestjson1_deserializeOpListDashboardVersions) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListDashboardVersions(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDescribeTopic(response, &metadata) } - output := &ListDashboardVersionsOutput{} + output := &DescribeTopicOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsListDashboardVersionsOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsDescribeTopicOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -15331,7 +15238,7 @@ func (m *awsRestjson1_deserializeOpListDashboardVersions) HandleDeserialize(ctx return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListDashboardVersionsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentDescribeTopicOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -15344,7 +15251,7 @@ func (m *awsRestjson1_deserializeOpListDashboardVersions) HandleDeserialize(ctx return out, metadata, err } -func awsRestjson1_deserializeOpErrorListDashboardVersions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDescribeTopic(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -15385,12 +15292,12 @@ func awsRestjson1_deserializeOpErrorListDashboardVersions(response *smithyhttp.R } switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) - case strings.EqualFold("InvalidNextTokenException", errorCode): - return awsRestjson1_deserializeErrorInvalidNextTokenException(response, errorBody) - case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) @@ -15400,9 +15307,6 @@ func awsRestjson1_deserializeOpErrorListDashboardVersions(response *smithyhttp.R case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - case strings.EqualFold("UnsupportedUserEditionException", errorCode): - return awsRestjson1_deserializeErrorUnsupportedUserEditionException(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -15413,7 +15317,7 @@ func awsRestjson1_deserializeOpErrorListDashboardVersions(response *smithyhttp.R } } -func awsRestjson1_deserializeOpHttpBindingsListDashboardVersionsOutput(v *ListDashboardVersionsOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsDescribeTopicOutput(v *DescribeTopicOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -15422,7 +15326,7 @@ func awsRestjson1_deserializeOpHttpBindingsListDashboardVersionsOutput(v *ListDa return nil } -func awsRestjson1_deserializeOpDocumentListDashboardVersionsOutput(v **ListDashboardVersionsOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentDescribeTopicOutput(v **DescribeTopicOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -15435,27 +15339,22 @@ func awsRestjson1_deserializeOpDocumentListDashboardVersionsOutput(v **ListDashb return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListDashboardVersionsOutput + var sv *DescribeTopicOutput if *v == nil { - sv = &ListDashboardVersionsOutput{} + sv = &DescribeTopicOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "DashboardVersionSummaryList": - if err := awsRestjson1_deserializeDocumentDashboardVersionSummaryList(&sv.DashboardVersionSummaryList, value); err != nil { - return err - } - - case "NextToken": + case "Arn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.NextToken = ptr.String(jtv) + sv.Arn = ptr.String(jtv) } case "RequestId": @@ -15467,6 +15366,20 @@ func awsRestjson1_deserializeOpDocumentListDashboardVersionsOutput(v **ListDashb sv.RequestId = ptr.String(jtv) } + case "Topic": + if err := awsRestjson1_deserializeDocumentTopicDetails(&sv.Topic, value); err != nil { + return err + } + + case "TopicId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TopicId to be of type string, got %T instead", value) + } + sv.TopicId = ptr.String(jtv) + } + default: _, _ = key, value @@ -15476,14 +15389,14 @@ func awsRestjson1_deserializeOpDocumentListDashboardVersionsOutput(v **ListDashb return nil } -type awsRestjson1_deserializeOpListDataSets struct { +type awsRestjson1_deserializeOpDescribeTopicPermissions struct { } -func (*awsRestjson1_deserializeOpListDataSets) ID() string { +func (*awsRestjson1_deserializeOpDescribeTopicPermissions) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListDataSets) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDescribeTopicPermissions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -15497,12 +15410,12 @@ func (m *awsRestjson1_deserializeOpListDataSets) HandleDeserialize(ctx context.C } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListDataSets(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDescribeTopicPermissions(response, &metadata) } - output := &ListDataSetsOutput{} + output := &DescribeTopicPermissionsOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsListDataSetsOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsDescribeTopicPermissionsOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -15525,7 +15438,7 @@ func (m *awsRestjson1_deserializeOpListDataSets) HandleDeserialize(ctx context.C return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListDataSetsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentDescribeTopicPermissionsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -15538,7 +15451,7 @@ func (m *awsRestjson1_deserializeOpListDataSets) HandleDeserialize(ctx context.C return out, metadata, err } -func awsRestjson1_deserializeOpErrorListDataSets(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDescribeTopicPermissions(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -15585,12 +15498,12 @@ func awsRestjson1_deserializeOpErrorListDataSets(response *smithyhttp.Response, case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) - case strings.EqualFold("InvalidNextTokenException", errorCode): - return awsRestjson1_deserializeErrorInvalidNextTokenException(response, errorBody) - case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) @@ -15604,7 +15517,7 @@ func awsRestjson1_deserializeOpErrorListDataSets(response *smithyhttp.Response, } } -func awsRestjson1_deserializeOpHttpBindingsListDataSetsOutput(v *ListDataSetsOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsDescribeTopicPermissionsOutput(v *DescribeTopicPermissionsOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -15613,7 +15526,7 @@ func awsRestjson1_deserializeOpHttpBindingsListDataSetsOutput(v *ListDataSetsOut return nil } -func awsRestjson1_deserializeOpDocumentListDataSetsOutput(v **ListDataSetsOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentDescribeTopicPermissionsOutput(v **DescribeTopicPermissionsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -15626,36 +15539,45 @@ func awsRestjson1_deserializeOpDocumentListDataSetsOutput(v **ListDataSetsOutput return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListDataSetsOutput + var sv *DescribeTopicPermissionsOutput if *v == nil { - sv = &ListDataSetsOutput{} + sv = &DescribeTopicPermissionsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "DataSetSummaries": - if err := awsRestjson1_deserializeDocumentDataSetSummaryList(&sv.DataSetSummaries, value); err != nil { + case "Permissions": + if err := awsRestjson1_deserializeDocumentResourcePermissionList(&sv.Permissions, value); err != nil { return err } - case "NextToken": + case "RequestId": if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = ptr.String(jtv) + sv.RequestId = ptr.String(jtv) } - case "RequestId": + case "TopicArn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.RequestId = ptr.String(jtv) + sv.TopicArn = ptr.String(jtv) + } + + case "TopicId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TopicId to be of type string, got %T instead", value) + } + sv.TopicId = ptr.String(jtv) } default: @@ -15667,14 +15589,14 @@ func awsRestjson1_deserializeOpDocumentListDataSetsOutput(v **ListDataSetsOutput return nil } -type awsRestjson1_deserializeOpListDataSources struct { +type awsRestjson1_deserializeOpDescribeTopicRefresh struct { } -func (*awsRestjson1_deserializeOpListDataSources) ID() string { +func (*awsRestjson1_deserializeOpDescribeTopicRefresh) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListDataSources) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDescribeTopicRefresh) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -15688,12 +15610,12 @@ func (m *awsRestjson1_deserializeOpListDataSources) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListDataSources(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDescribeTopicRefresh(response, &metadata) } - output := &ListDataSourcesOutput{} + output := &DescribeTopicRefreshOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsListDataSourcesOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsDescribeTopicRefreshOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -15716,7 +15638,7 @@ func (m *awsRestjson1_deserializeOpListDataSources) HandleDeserialize(ctx contex return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListDataSourcesOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentDescribeTopicRefreshOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -15729,7 +15651,7 @@ func (m *awsRestjson1_deserializeOpListDataSources) HandleDeserialize(ctx contex return out, metadata, err } -func awsRestjson1_deserializeOpErrorListDataSources(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDescribeTopicRefresh(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -15776,12 +15698,12 @@ func awsRestjson1_deserializeOpErrorListDataSources(response *smithyhttp.Respons case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) - case strings.EqualFold("InvalidNextTokenException", errorCode): - return awsRestjson1_deserializeErrorInvalidNextTokenException(response, errorBody) - case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) @@ -15795,7 +15717,7 @@ func awsRestjson1_deserializeOpErrorListDataSources(response *smithyhttp.Respons } } -func awsRestjson1_deserializeOpHttpBindingsListDataSourcesOutput(v *ListDataSourcesOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsDescribeTopicRefreshOutput(v *DescribeTopicRefreshOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -15804,7 +15726,7 @@ func awsRestjson1_deserializeOpHttpBindingsListDataSourcesOutput(v *ListDataSour return nil } -func awsRestjson1_deserializeOpDocumentListDataSourcesOutput(v **ListDataSourcesOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentDescribeTopicRefreshOutput(v **DescribeTopicRefreshOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -15817,29 +15739,20 @@ func awsRestjson1_deserializeOpDocumentListDataSourcesOutput(v **ListDataSources return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListDataSourcesOutput + var sv *DescribeTopicRefreshOutput if *v == nil { - sv = &ListDataSourcesOutput{} + sv = &DescribeTopicRefreshOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "DataSources": - if err := awsRestjson1_deserializeDocumentDataSourceList(&sv.DataSources, value); err != nil { + case "RefreshDetails": + if err := awsRestjson1_deserializeDocumentTopicRefreshDetails(&sv.RefreshDetails, value); err != nil { return err } - case "NextToken": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.NextToken = ptr.String(jtv) - } - case "RequestId": if value != nil { jtv, ok := value.(string) @@ -15858,14 +15771,14 @@ func awsRestjson1_deserializeOpDocumentListDataSourcesOutput(v **ListDataSources return nil } -type awsRestjson1_deserializeOpListFolderMembers struct { +type awsRestjson1_deserializeOpDescribeTopicRefreshSchedule struct { } -func (*awsRestjson1_deserializeOpListFolderMembers) ID() string { +func (*awsRestjson1_deserializeOpDescribeTopicRefreshSchedule) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListFolderMembers) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDescribeTopicRefreshSchedule) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -15879,12 +15792,12 @@ func (m *awsRestjson1_deserializeOpListFolderMembers) HandleDeserialize(ctx cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListFolderMembers(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDescribeTopicRefreshSchedule(response, &metadata) } - output := &ListFolderMembersOutput{} + output := &DescribeTopicRefreshScheduleOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsListFolderMembersOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsDescribeTopicRefreshScheduleOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -15907,7 +15820,7 @@ func (m *awsRestjson1_deserializeOpListFolderMembers) HandleDeserialize(ctx cont return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListFolderMembersOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentDescribeTopicRefreshScheduleOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -15920,7 +15833,7 @@ func (m *awsRestjson1_deserializeOpListFolderMembers) HandleDeserialize(ctx cont return out, metadata, err } -func awsRestjson1_deserializeOpErrorListFolderMembers(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDescribeTopicRefreshSchedule(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -15964,24 +15877,27 @@ func awsRestjson1_deserializeOpErrorListFolderMembers(response *smithyhttp.Respo case strings.EqualFold("AccessDeniedException", errorCode): return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) - case strings.EqualFold("InvalidNextTokenException", errorCode): - return awsRestjson1_deserializeErrorInvalidNextTokenException(response, errorBody) - case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) + case strings.EqualFold("LimitExceededException", errorCode): + return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody) + + case strings.EqualFold("ResourceExistsException", errorCode): + return awsRestjson1_deserializeErrorResourceExistsException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - case strings.EqualFold("UnsupportedUserEditionException", errorCode): - return awsRestjson1_deserializeErrorUnsupportedUserEditionException(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -15992,7 +15908,7 @@ func awsRestjson1_deserializeOpErrorListFolderMembers(response *smithyhttp.Respo } } -func awsRestjson1_deserializeOpHttpBindingsListFolderMembersOutput(v *ListFolderMembersOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsDescribeTopicRefreshScheduleOutput(v *DescribeTopicRefreshScheduleOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -16001,7 +15917,7 @@ func awsRestjson1_deserializeOpHttpBindingsListFolderMembersOutput(v *ListFolder return nil } -func awsRestjson1_deserializeOpDocumentListFolderMembersOutput(v **ListFolderMembersOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentDescribeTopicRefreshScheduleOutput(v **DescribeTopicRefreshScheduleOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -16014,36 +15930,54 @@ func awsRestjson1_deserializeOpDocumentListFolderMembersOutput(v **ListFolderMem return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListFolderMembersOutput + var sv *DescribeTopicRefreshScheduleOutput if *v == nil { - sv = &ListFolderMembersOutput{} + sv = &DescribeTopicRefreshScheduleOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "FolderMemberList": - if err := awsRestjson1_deserializeDocumentFolderMemberList(&sv.FolderMemberList, value); err != nil { + case "DatasetArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.DatasetArn = ptr.String(jtv) + } + + case "RefreshSchedule": + if err := awsRestjson1_deserializeDocumentTopicRefreshSchedule(&sv.RefreshSchedule, value); err != nil { return err } - case "NextToken": + case "RequestId": if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = ptr.String(jtv) + sv.RequestId = ptr.String(jtv) } - case "RequestId": + case "TopicArn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.RequestId = ptr.String(jtv) + sv.TopicArn = ptr.String(jtv) + } + + case "TopicId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TopicId to be of type string, got %T instead", value) + } + sv.TopicId = ptr.String(jtv) } default: @@ -16055,14 +15989,14 @@ func awsRestjson1_deserializeOpDocumentListFolderMembersOutput(v **ListFolderMem return nil } -type awsRestjson1_deserializeOpListFolders struct { +type awsRestjson1_deserializeOpDescribeUser struct { } -func (*awsRestjson1_deserializeOpListFolders) ID() string { +func (*awsRestjson1_deserializeOpDescribeUser) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListFolders) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDescribeUser) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -16076,12 +16010,12 @@ func (m *awsRestjson1_deserializeOpListFolders) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListFolders(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDescribeUser(response, &metadata) } - output := &ListFoldersOutput{} + output := &DescribeUserOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsListFoldersOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsDescribeUserOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -16104,7 +16038,7 @@ func (m *awsRestjson1_deserializeOpListFolders) HandleDeserialize(ctx context.Co return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListFoldersOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentDescribeUserOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -16117,7 +16051,7 @@ func (m *awsRestjson1_deserializeOpListFolders) HandleDeserialize(ctx context.Co return out, metadata, err } -func awsRestjson1_deserializeOpErrorListFolders(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDescribeUser(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -16164,21 +16098,21 @@ func awsRestjson1_deserializeOpErrorListFolders(response *smithyhttp.Response, m case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) - case strings.EqualFold("InvalidNextTokenException", errorCode): - return awsRestjson1_deserializeErrorInvalidNextTokenException(response, errorBody) - case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) + case strings.EqualFold("PreconditionNotMetException", errorCode): + return awsRestjson1_deserializeErrorPreconditionNotMetException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + case strings.EqualFold("ResourceUnavailableException", errorCode): + return awsRestjson1_deserializeErrorResourceUnavailableException(response, errorBody) + case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - case strings.EqualFold("UnsupportedUserEditionException", errorCode): - return awsRestjson1_deserializeErrorUnsupportedUserEditionException(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -16189,7 +16123,7 @@ func awsRestjson1_deserializeOpErrorListFolders(response *smithyhttp.Response, m } } -func awsRestjson1_deserializeOpHttpBindingsListFoldersOutput(v *ListFoldersOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsDescribeUserOutput(v *DescribeUserOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -16198,7 +16132,7 @@ func awsRestjson1_deserializeOpHttpBindingsListFoldersOutput(v *ListFoldersOutpu return nil } -func awsRestjson1_deserializeOpDocumentListFoldersOutput(v **ListFoldersOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentDescribeUserOutput(v **DescribeUserOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -16211,29 +16145,15 @@ func awsRestjson1_deserializeOpDocumentListFoldersOutput(v **ListFoldersOutput, return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListFoldersOutput + var sv *DescribeUserOutput if *v == nil { - sv = &ListFoldersOutput{} + sv = &DescribeUserOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "FolderSummaryList": - if err := awsRestjson1_deserializeDocumentFolderSummaryList(&sv.FolderSummaryList, value); err != nil { - return err - } - - case "NextToken": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.NextToken = ptr.String(jtv) - } - case "RequestId": if value != nil { jtv, ok := value.(string) @@ -16243,6 +16163,11 @@ func awsRestjson1_deserializeOpDocumentListFoldersOutput(v **ListFoldersOutput, sv.RequestId = ptr.String(jtv) } + case "User": + if err := awsRestjson1_deserializeDocumentUser(&sv.User, value); err != nil { + return err + } + default: _, _ = key, value @@ -16252,14 +16177,14 @@ func awsRestjson1_deserializeOpDocumentListFoldersOutput(v **ListFoldersOutput, return nil } -type awsRestjson1_deserializeOpListGroupMemberships struct { +type awsRestjson1_deserializeOpDescribeVPCConnection struct { } -func (*awsRestjson1_deserializeOpListGroupMemberships) ID() string { +func (*awsRestjson1_deserializeOpDescribeVPCConnection) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListGroupMemberships) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDescribeVPCConnection) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -16273,16 +16198,11 @@ func (m *awsRestjson1_deserializeOpListGroupMemberships) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListGroupMemberships(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDescribeVPCConnection(response, &metadata) } - output := &ListGroupMembershipsOutput{} + output := &DescribeVPCConnectionOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsListGroupMembershipsOutput(output, response) - if err != nil { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} - } - var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) @@ -16301,7 +16221,7 @@ func (m *awsRestjson1_deserializeOpListGroupMemberships) HandleDeserialize(ctx c return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListGroupMembershipsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentDescribeVPCConnectionOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -16314,7 +16234,7 @@ func (m *awsRestjson1_deserializeOpListGroupMemberships) HandleDeserialize(ctx c return out, metadata, err } -func awsRestjson1_deserializeOpErrorListGroupMemberships(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDescribeVPCConnection(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -16361,24 +16281,18 @@ func awsRestjson1_deserializeOpErrorListGroupMemberships(response *smithyhttp.Re case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) - case strings.EqualFold("InvalidNextTokenException", errorCode): - return awsRestjson1_deserializeErrorInvalidNextTokenException(response, errorBody) - case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) - case strings.EqualFold("PreconditionNotMetException", errorCode): - return awsRestjson1_deserializeErrorPreconditionNotMetException(response, errorBody) - case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - case strings.EqualFold("ResourceUnavailableException", errorCode): - return awsRestjson1_deserializeErrorResourceUnavailableException(response, errorBody) - case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + case strings.EqualFold("UnsupportedUserEditionException", errorCode): + return awsRestjson1_deserializeErrorUnsupportedUserEditionException(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -16389,16 +16303,7 @@ func awsRestjson1_deserializeOpErrorListGroupMemberships(response *smithyhttp.Re } } -func awsRestjson1_deserializeOpHttpBindingsListGroupMembershipsOutput(v *ListGroupMembershipsOutput, response *smithyhttp.Response) error { - if v == nil { - return fmt.Errorf("unsupported deserialization for nil %T", v) - } - - v.Status = int32(response.StatusCode) - - return nil -} -func awsRestjson1_deserializeOpDocumentListGroupMembershipsOutput(v **ListGroupMembershipsOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentDescribeVPCConnectionOutput(v **DescribeVPCConnectionOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -16411,36 +16316,40 @@ func awsRestjson1_deserializeOpDocumentListGroupMembershipsOutput(v **ListGroupM return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListGroupMembershipsOutput + var sv *DescribeVPCConnectionOutput if *v == nil { - sv = &ListGroupMembershipsOutput{} + sv = &DescribeVPCConnectionOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "GroupMemberList": - if err := awsRestjson1_deserializeDocumentGroupMemberList(&sv.GroupMemberList, value); err != nil { - return err - } - - case "NextToken": + case "RequestId": if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NextToken = ptr.String(jtv) + sv.RequestId = ptr.String(jtv) } - case "RequestId": + case "Status": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) + return fmt.Errorf("expected StatusCode to be json.Number, got %T instead", value) } - sv.RequestId = ptr.String(jtv) + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.Status = int32(i64) + } + + case "VPCConnection": + if err := awsRestjson1_deserializeDocumentVPCConnection(&sv.VPCConnection, value); err != nil { + return err } default: @@ -16452,14 +16361,14 @@ func awsRestjson1_deserializeOpDocumentListGroupMembershipsOutput(v **ListGroupM return nil } -type awsRestjson1_deserializeOpListGroups struct { +type awsRestjson1_deserializeOpGenerateEmbedUrlForAnonymousUser struct { } -func (*awsRestjson1_deserializeOpListGroups) ID() string { +func (*awsRestjson1_deserializeOpGenerateEmbedUrlForAnonymousUser) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListGroups) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpGenerateEmbedUrlForAnonymousUser) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -16473,12 +16382,12 @@ func (m *awsRestjson1_deserializeOpListGroups) HandleDeserialize(ctx context.Con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListGroups(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorGenerateEmbedUrlForAnonymousUser(response, &metadata) } - output := &ListGroupsOutput{} + output := &GenerateEmbedUrlForAnonymousUserOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsListGroupsOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsGenerateEmbedUrlForAnonymousUserOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -16501,7 +16410,7 @@ func (m *awsRestjson1_deserializeOpListGroups) HandleDeserialize(ctx context.Con return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListGroupsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGenerateEmbedUrlForAnonymousUserOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -16514,7 +16423,7 @@ func (m *awsRestjson1_deserializeOpListGroups) HandleDeserialize(ctx context.Con return out, metadata, err } -func awsRestjson1_deserializeOpErrorListGroups(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorGenerateEmbedUrlForAnonymousUser(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -16561,24 +16470,24 @@ func awsRestjson1_deserializeOpErrorListGroups(response *smithyhttp.Response, me case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) - case strings.EqualFold("InvalidNextTokenException", errorCode): - return awsRestjson1_deserializeErrorInvalidNextTokenException(response, errorBody) - case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) - case strings.EqualFold("PreconditionNotMetException", errorCode): - return awsRestjson1_deserializeErrorPreconditionNotMetException(response, errorBody) - case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - case strings.EqualFold("ResourceUnavailableException", errorCode): - return awsRestjson1_deserializeErrorResourceUnavailableException(response, errorBody) + case strings.EqualFold("SessionLifetimeInMinutesInvalidException", errorCode): + return awsRestjson1_deserializeErrorSessionLifetimeInMinutesInvalidException(response, errorBody) case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + case strings.EqualFold("UnsupportedPricingPlanException", errorCode): + return awsRestjson1_deserializeErrorUnsupportedPricingPlanException(response, errorBody) + + case strings.EqualFold("UnsupportedUserEditionException", errorCode): + return awsRestjson1_deserializeErrorUnsupportedUserEditionException(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -16589,7 +16498,7 @@ func awsRestjson1_deserializeOpErrorListGroups(response *smithyhttp.Response, me } } -func awsRestjson1_deserializeOpHttpBindingsListGroupsOutput(v *ListGroupsOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsGenerateEmbedUrlForAnonymousUserOutput(v *GenerateEmbedUrlForAnonymousUserOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -16598,7 +16507,7 @@ func awsRestjson1_deserializeOpHttpBindingsListGroupsOutput(v *ListGroupsOutput, return nil } -func awsRestjson1_deserializeOpDocumentListGroupsOutput(v **ListGroupsOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentGenerateEmbedUrlForAnonymousUserOutput(v **GenerateEmbedUrlForAnonymousUserOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -16611,27 +16520,31 @@ func awsRestjson1_deserializeOpDocumentListGroupsOutput(v **ListGroupsOutput, va return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListGroupsOutput + var sv *GenerateEmbedUrlForAnonymousUserOutput if *v == nil { - sv = &ListGroupsOutput{} + sv = &GenerateEmbedUrlForAnonymousUserOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "GroupList": - if err := awsRestjson1_deserializeDocumentGroupList(&sv.GroupList, value); err != nil { - return err + case "AnonymousUserArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.AnonymousUserArn = ptr.String(jtv) } - case "NextToken": + case "EmbedUrl": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) + return fmt.Errorf("expected EmbeddingUrl to be of type string, got %T instead", value) } - sv.NextToken = ptr.String(jtv) + sv.EmbedUrl = ptr.String(jtv) } case "RequestId": @@ -16652,14 +16565,14 @@ func awsRestjson1_deserializeOpDocumentListGroupsOutput(v **ListGroupsOutput, va return nil } -type awsRestjson1_deserializeOpListIAMPolicyAssignments struct { +type awsRestjson1_deserializeOpGenerateEmbedUrlForRegisteredUser struct { } -func (*awsRestjson1_deserializeOpListIAMPolicyAssignments) ID() string { +func (*awsRestjson1_deserializeOpGenerateEmbedUrlForRegisteredUser) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListIAMPolicyAssignments) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpGenerateEmbedUrlForRegisteredUser) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -16673,12 +16586,12 @@ func (m *awsRestjson1_deserializeOpListIAMPolicyAssignments) HandleDeserialize(c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListIAMPolicyAssignments(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorGenerateEmbedUrlForRegisteredUser(response, &metadata) } - output := &ListIAMPolicyAssignmentsOutput{} + output := &GenerateEmbedUrlForRegisteredUserOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsListIAMPolicyAssignmentsOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsGenerateEmbedUrlForRegisteredUserOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -16701,7 +16614,7 @@ func (m *awsRestjson1_deserializeOpListIAMPolicyAssignments) HandleDeserialize(c return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListIAMPolicyAssignmentsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGenerateEmbedUrlForRegisteredUserOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -16714,7 +16627,7 @@ func (m *awsRestjson1_deserializeOpListIAMPolicyAssignments) HandleDeserialize(c return out, metadata, err } -func awsRestjson1_deserializeOpErrorListIAMPolicyAssignments(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorGenerateEmbedUrlForRegisteredUser(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -16761,18 +16674,27 @@ func awsRestjson1_deserializeOpErrorListIAMPolicyAssignments(response *smithyhtt case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) - case strings.EqualFold("InvalidNextTokenException", errorCode): - return awsRestjson1_deserializeErrorInvalidNextTokenException(response, errorBody) - case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) + case strings.EqualFold("QuickSightUserNotFoundException", errorCode): + return awsRestjson1_deserializeErrorQuickSightUserNotFoundException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + case strings.EqualFold("SessionLifetimeInMinutesInvalidException", errorCode): + return awsRestjson1_deserializeErrorSessionLifetimeInMinutesInvalidException(response, errorBody) + case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + case strings.EqualFold("UnsupportedPricingPlanException", errorCode): + return awsRestjson1_deserializeErrorUnsupportedPricingPlanException(response, errorBody) + + case strings.EqualFold("UnsupportedUserEditionException", errorCode): + return awsRestjson1_deserializeErrorUnsupportedUserEditionException(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -16783,7 +16705,7 @@ func awsRestjson1_deserializeOpErrorListIAMPolicyAssignments(response *smithyhtt } } -func awsRestjson1_deserializeOpHttpBindingsListIAMPolicyAssignmentsOutput(v *ListIAMPolicyAssignmentsOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsGenerateEmbedUrlForRegisteredUserOutput(v *GenerateEmbedUrlForRegisteredUserOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -16792,7 +16714,7 @@ func awsRestjson1_deserializeOpHttpBindingsListIAMPolicyAssignmentsOutput(v *Lis return nil } -func awsRestjson1_deserializeOpDocumentListIAMPolicyAssignmentsOutput(v **ListIAMPolicyAssignmentsOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentGenerateEmbedUrlForRegisteredUserOutput(v **GenerateEmbedUrlForRegisteredUserOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -16805,27 +16727,22 @@ func awsRestjson1_deserializeOpDocumentListIAMPolicyAssignmentsOutput(v **ListIA return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListIAMPolicyAssignmentsOutput + var sv *GenerateEmbedUrlForRegisteredUserOutput if *v == nil { - sv = &ListIAMPolicyAssignmentsOutput{} + sv = &GenerateEmbedUrlForRegisteredUserOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "IAMPolicyAssignments": - if err := awsRestjson1_deserializeDocumentIAMPolicyAssignmentSummaryList(&sv.IAMPolicyAssignments, value); err != nil { - return err - } - - case "NextToken": + case "EmbedUrl": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) + return fmt.Errorf("expected EmbeddingUrl to be of type string, got %T instead", value) } - sv.NextToken = ptr.String(jtv) + sv.EmbedUrl = ptr.String(jtv) } case "RequestId": @@ -16846,14 +16763,14 @@ func awsRestjson1_deserializeOpDocumentListIAMPolicyAssignmentsOutput(v **ListIA return nil } -type awsRestjson1_deserializeOpListIAMPolicyAssignmentsForUser struct { +type awsRestjson1_deserializeOpGetDashboardEmbedUrl struct { } -func (*awsRestjson1_deserializeOpListIAMPolicyAssignmentsForUser) ID() string { +func (*awsRestjson1_deserializeOpGetDashboardEmbedUrl) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListIAMPolicyAssignmentsForUser) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpGetDashboardEmbedUrl) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -16867,12 +16784,12 @@ func (m *awsRestjson1_deserializeOpListIAMPolicyAssignmentsForUser) HandleDeseri } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListIAMPolicyAssignmentsForUser(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorGetDashboardEmbedUrl(response, &metadata) } - output := &ListIAMPolicyAssignmentsForUserOutput{} + output := &GetDashboardEmbedUrlOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsListIAMPolicyAssignmentsForUserOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsGetDashboardEmbedUrlOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -16895,7 +16812,7 @@ func (m *awsRestjson1_deserializeOpListIAMPolicyAssignmentsForUser) HandleDeseri return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListIAMPolicyAssignmentsForUserOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGetDashboardEmbedUrlOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -16908,7 +16825,7 @@ func (m *awsRestjson1_deserializeOpListIAMPolicyAssignmentsForUser) HandleDeseri return out, metadata, err } -func awsRestjson1_deserializeOpErrorListIAMPolicyAssignmentsForUser(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorGetDashboardEmbedUrl(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -16952,8 +16869,11 @@ func awsRestjson1_deserializeOpErrorListIAMPolicyAssignmentsForUser(response *sm case strings.EqualFold("AccessDeniedException", errorCode): return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - case strings.EqualFold("ConcurrentUpdatingException", errorCode): - return awsRestjson1_deserializeErrorConcurrentUpdatingException(response, errorBody) + case strings.EqualFold("DomainNotWhitelistedException", errorCode): + return awsRestjson1_deserializeErrorDomainNotWhitelistedException(response, errorBody) + + case strings.EqualFold("IdentityTypeNotSupportedException", errorCode): + return awsRestjson1_deserializeErrorIdentityTypeNotSupportedException(response, errorBody) case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) @@ -16961,15 +16881,27 @@ func awsRestjson1_deserializeOpErrorListIAMPolicyAssignmentsForUser(response *sm case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) + case strings.EqualFold("QuickSightUserNotFoundException", errorCode): + return awsRestjson1_deserializeErrorQuickSightUserNotFoundException(response, errorBody) + case strings.EqualFold("ResourceExistsException", errorCode): return awsRestjson1_deserializeErrorResourceExistsException(response, errorBody) case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + case strings.EqualFold("SessionLifetimeInMinutesInvalidException", errorCode): + return awsRestjson1_deserializeErrorSessionLifetimeInMinutesInvalidException(response, errorBody) + case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + case strings.EqualFold("UnsupportedPricingPlanException", errorCode): + return awsRestjson1_deserializeErrorUnsupportedPricingPlanException(response, errorBody) + + case strings.EqualFold("UnsupportedUserEditionException", errorCode): + return awsRestjson1_deserializeErrorUnsupportedUserEditionException(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -16980,7 +16912,7 @@ func awsRestjson1_deserializeOpErrorListIAMPolicyAssignmentsForUser(response *sm } } -func awsRestjson1_deserializeOpHttpBindingsListIAMPolicyAssignmentsForUserOutput(v *ListIAMPolicyAssignmentsForUserOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsGetDashboardEmbedUrlOutput(v *GetDashboardEmbedUrlOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -16989,7 +16921,7 @@ func awsRestjson1_deserializeOpHttpBindingsListIAMPolicyAssignmentsForUserOutput return nil } -func awsRestjson1_deserializeOpDocumentListIAMPolicyAssignmentsForUserOutput(v **ListIAMPolicyAssignmentsForUserOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentGetDashboardEmbedUrlOutput(v **GetDashboardEmbedUrlOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -17002,27 +16934,22 @@ func awsRestjson1_deserializeOpDocumentListIAMPolicyAssignmentsForUserOutput(v * return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListIAMPolicyAssignmentsForUserOutput + var sv *GetDashboardEmbedUrlOutput if *v == nil { - sv = &ListIAMPolicyAssignmentsForUserOutput{} + sv = &GetDashboardEmbedUrlOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "ActiveAssignments": - if err := awsRestjson1_deserializeDocumentActiveIAMPolicyAssignmentList(&sv.ActiveAssignments, value); err != nil { - return err - } - - case "NextToken": + case "EmbedUrl": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) + return fmt.Errorf("expected EmbeddingUrl to be of type string, got %T instead", value) } - sv.NextToken = ptr.String(jtv) + sv.EmbedUrl = ptr.String(jtv) } case "RequestId": @@ -17043,14 +16970,14 @@ func awsRestjson1_deserializeOpDocumentListIAMPolicyAssignmentsForUserOutput(v * return nil } -type awsRestjson1_deserializeOpListIngestions struct { +type awsRestjson1_deserializeOpGetSessionEmbedUrl struct { } -func (*awsRestjson1_deserializeOpListIngestions) ID() string { +func (*awsRestjson1_deserializeOpGetSessionEmbedUrl) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListIngestions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpGetSessionEmbedUrl) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -17064,12 +16991,12 @@ func (m *awsRestjson1_deserializeOpListIngestions) HandleDeserialize(ctx context } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListIngestions(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorGetSessionEmbedUrl(response, &metadata) } - output := &ListIngestionsOutput{} + output := &GetSessionEmbedUrlOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsListIngestionsOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsGetSessionEmbedUrlOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -17092,7 +17019,7 @@ func (m *awsRestjson1_deserializeOpListIngestions) HandleDeserialize(ctx context return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListIngestionsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGetSessionEmbedUrlOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -17105,7 +17032,7 @@ func (m *awsRestjson1_deserializeOpListIngestions) HandleDeserialize(ctx context return out, metadata, err } -func awsRestjson1_deserializeOpErrorListIngestions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorGetSessionEmbedUrl(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -17152,21 +17079,27 @@ func awsRestjson1_deserializeOpErrorListIngestions(response *smithyhttp.Response case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) - case strings.EqualFold("InvalidNextTokenException", errorCode): - return awsRestjson1_deserializeErrorInvalidNextTokenException(response, errorBody) - case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) + case strings.EqualFold("QuickSightUserNotFoundException", errorCode): + return awsRestjson1_deserializeErrorQuickSightUserNotFoundException(response, errorBody) + case strings.EqualFold("ResourceExistsException", errorCode): return awsRestjson1_deserializeErrorResourceExistsException(response, errorBody) case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + case strings.EqualFold("SessionLifetimeInMinutesInvalidException", errorCode): + return awsRestjson1_deserializeErrorSessionLifetimeInMinutesInvalidException(response, errorBody) + case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + case strings.EqualFold("UnsupportedUserEditionException", errorCode): + return awsRestjson1_deserializeErrorUnsupportedUserEditionException(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -17177,7 +17110,7 @@ func awsRestjson1_deserializeOpErrorListIngestions(response *smithyhttp.Response } } -func awsRestjson1_deserializeOpHttpBindingsListIngestionsOutput(v *ListIngestionsOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsGetSessionEmbedUrlOutput(v *GetSessionEmbedUrlOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -17186,7 +17119,7 @@ func awsRestjson1_deserializeOpHttpBindingsListIngestionsOutput(v *ListIngestion return nil } -func awsRestjson1_deserializeOpDocumentListIngestionsOutput(v **ListIngestionsOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentGetSessionEmbedUrlOutput(v **GetSessionEmbedUrlOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -17199,27 +17132,22 @@ func awsRestjson1_deserializeOpDocumentListIngestionsOutput(v **ListIngestionsOu return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListIngestionsOutput + var sv *GetSessionEmbedUrlOutput if *v == nil { - sv = &ListIngestionsOutput{} + sv = &GetSessionEmbedUrlOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "Ingestions": - if err := awsRestjson1_deserializeDocumentIngestions(&sv.Ingestions, value); err != nil { - return err - } - - case "NextToken": + case "EmbedUrl": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) + return fmt.Errorf("expected EmbeddingUrl to be of type string, got %T instead", value) } - sv.NextToken = ptr.String(jtv) + sv.EmbedUrl = ptr.String(jtv) } case "RequestId": @@ -17240,14 +17168,14 @@ func awsRestjson1_deserializeOpDocumentListIngestionsOutput(v **ListIngestionsOu return nil } -type awsRestjson1_deserializeOpListNamespaces struct { +type awsRestjson1_deserializeOpListAnalyses struct { } -func (*awsRestjson1_deserializeOpListNamespaces) ID() string { +func (*awsRestjson1_deserializeOpListAnalyses) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListNamespaces) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListAnalyses) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -17261,12 +17189,12 @@ func (m *awsRestjson1_deserializeOpListNamespaces) HandleDeserialize(ctx context } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListNamespaces(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListAnalyses(response, &metadata) } - output := &ListNamespacesOutput{} + output := &ListAnalysesOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsListNamespacesOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsListAnalysesOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -17289,7 +17217,7 @@ func (m *awsRestjson1_deserializeOpListNamespaces) HandleDeserialize(ctx context return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListNamespacesOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListAnalysesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -17302,7 +17230,7 @@ func (m *awsRestjson1_deserializeOpListNamespaces) HandleDeserialize(ctx context return out, metadata, err } -func awsRestjson1_deserializeOpErrorListNamespaces(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListAnalyses(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -17343,30 +17271,18 @@ func awsRestjson1_deserializeOpErrorListNamespaces(response *smithyhttp.Response } switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) case strings.EqualFold("InvalidNextTokenException", errorCode): return awsRestjson1_deserializeErrorInvalidNextTokenException(response, errorBody) - case strings.EqualFold("InvalidParameterValueException", errorCode): - return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) - - case strings.EqualFold("PreconditionNotMetException", errorCode): - return awsRestjson1_deserializeErrorPreconditionNotMetException(response, errorBody) - - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - - case strings.EqualFold("ResourceUnavailableException", errorCode): - return awsRestjson1_deserializeErrorResourceUnavailableException(response, errorBody) - case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + case strings.EqualFold("UnsupportedUserEditionException", errorCode): + return awsRestjson1_deserializeErrorUnsupportedUserEditionException(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -17377,7 +17293,7 @@ func awsRestjson1_deserializeOpErrorListNamespaces(response *smithyhttp.Response } } -func awsRestjson1_deserializeOpHttpBindingsListNamespacesOutput(v *ListNamespacesOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsListAnalysesOutput(v *ListAnalysesOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -17386,7 +17302,7 @@ func awsRestjson1_deserializeOpHttpBindingsListNamespacesOutput(v *ListNamespace return nil } -func awsRestjson1_deserializeOpDocumentListNamespacesOutput(v **ListNamespacesOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListAnalysesOutput(v **ListAnalysesOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -17399,17 +17315,17 @@ func awsRestjson1_deserializeOpDocumentListNamespacesOutput(v **ListNamespacesOu return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListNamespacesOutput + var sv *ListAnalysesOutput if *v == nil { - sv = &ListNamespacesOutput{} + sv = &ListAnalysesOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "Namespaces": - if err := awsRestjson1_deserializeDocumentNamespaces(&sv.Namespaces, value); err != nil { + case "AnalysisSummaryList": + if err := awsRestjson1_deserializeDocumentAnalysisSummaryList(&sv.AnalysisSummaryList, value); err != nil { return err } @@ -17440,14 +17356,14 @@ func awsRestjson1_deserializeOpDocumentListNamespacesOutput(v **ListNamespacesOu return nil } -type awsRestjson1_deserializeOpListRefreshSchedules struct { +type awsRestjson1_deserializeOpListDashboards struct { } -func (*awsRestjson1_deserializeOpListRefreshSchedules) ID() string { +func (*awsRestjson1_deserializeOpListDashboards) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListRefreshSchedules) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListDashboards) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -17461,12 +17377,12 @@ func (m *awsRestjson1_deserializeOpListRefreshSchedules) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListRefreshSchedules(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListDashboards(response, &metadata) } - output := &ListRefreshSchedulesOutput{} + output := &ListDashboardsOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsListRefreshSchedulesOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsListDashboardsOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -17489,7 +17405,7 @@ func (m *awsRestjson1_deserializeOpListRefreshSchedules) HandleDeserialize(ctx c return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListRefreshSchedulesOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListDashboardsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -17502,7 +17418,7 @@ func (m *awsRestjson1_deserializeOpListRefreshSchedules) HandleDeserialize(ctx c return out, metadata, err } -func awsRestjson1_deserializeOpErrorListRefreshSchedules(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListDashboards(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -17543,24 +17459,18 @@ func awsRestjson1_deserializeOpErrorListRefreshSchedules(response *smithyhttp.Re } switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) - case strings.EqualFold("InvalidParameterValueException", errorCode): - return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) - - case strings.EqualFold("LimitExceededException", errorCode): - return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody) - - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + case strings.EqualFold("InvalidNextTokenException", errorCode): + return awsRestjson1_deserializeErrorInvalidNextTokenException(response, errorBody) case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + case strings.EqualFold("UnsupportedUserEditionException", errorCode): + return awsRestjson1_deserializeErrorUnsupportedUserEditionException(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -17571,7 +17481,7 @@ func awsRestjson1_deserializeOpErrorListRefreshSchedules(response *smithyhttp.Re } } -func awsRestjson1_deserializeOpHttpBindingsListRefreshSchedulesOutput(v *ListRefreshSchedulesOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsListDashboardsOutput(v *ListDashboardsOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -17580,7 +17490,7 @@ func awsRestjson1_deserializeOpHttpBindingsListRefreshSchedulesOutput(v *ListRef return nil } -func awsRestjson1_deserializeOpDocumentListRefreshSchedulesOutput(v **ListRefreshSchedulesOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListDashboardsOutput(v **ListDashboardsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -17593,20 +17503,29 @@ func awsRestjson1_deserializeOpDocumentListRefreshSchedulesOutput(v **ListRefres return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListRefreshSchedulesOutput + var sv *ListDashboardsOutput if *v == nil { - sv = &ListRefreshSchedulesOutput{} + sv = &ListDashboardsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "RefreshSchedules": - if err := awsRestjson1_deserializeDocumentRefreshSchedules(&sv.RefreshSchedules, value); err != nil { + case "DashboardSummaryList": + if err := awsRestjson1_deserializeDocumentDashboardSummaryList(&sv.DashboardSummaryList, value); err != nil { return err } + case "NextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + case "RequestId": if value != nil { jtv, ok := value.(string) @@ -17625,14 +17544,14 @@ func awsRestjson1_deserializeOpDocumentListRefreshSchedulesOutput(v **ListRefres return nil } -type awsRestjson1_deserializeOpListTagsForResource struct { +type awsRestjson1_deserializeOpListDashboardVersions struct { } -func (*awsRestjson1_deserializeOpListTagsForResource) ID() string { +func (*awsRestjson1_deserializeOpListDashboardVersions) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListTagsForResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListDashboardVersions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -17646,12 +17565,12 @@ func (m *awsRestjson1_deserializeOpListTagsForResource) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListTagsForResource(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListDashboardVersions(response, &metadata) } - output := &ListTagsForResourceOutput{} + output := &ListDashboardVersionsOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsListTagsForResourceOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsListDashboardVersionsOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -17674,7 +17593,7 @@ func (m *awsRestjson1_deserializeOpListTagsForResource) HandleDeserialize(ctx co return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListTagsForResourceOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListDashboardVersionsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -17687,7 +17606,7 @@ func (m *awsRestjson1_deserializeOpListTagsForResource) HandleDeserialize(ctx co return out, metadata, err } -func awsRestjson1_deserializeOpErrorListTagsForResource(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListDashboardVersions(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -17728,12 +17647,12 @@ func awsRestjson1_deserializeOpErrorListTagsForResource(response *smithyhttp.Res } switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) + case strings.EqualFold("InvalidNextTokenException", errorCode): + return awsRestjson1_deserializeErrorInvalidNextTokenException(response, errorBody) + case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) @@ -17743,6 +17662,9 @@ func awsRestjson1_deserializeOpErrorListTagsForResource(response *smithyhttp.Res case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + case strings.EqualFold("UnsupportedUserEditionException", errorCode): + return awsRestjson1_deserializeErrorUnsupportedUserEditionException(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -17753,7 +17675,7 @@ func awsRestjson1_deserializeOpErrorListTagsForResource(response *smithyhttp.Res } } -func awsRestjson1_deserializeOpHttpBindingsListTagsForResourceOutput(v *ListTagsForResourceOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsListDashboardVersionsOutput(v *ListDashboardVersionsOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -17762,7 +17684,7 @@ func awsRestjson1_deserializeOpHttpBindingsListTagsForResourceOutput(v *ListTags return nil } -func awsRestjson1_deserializeOpDocumentListTagsForResourceOutput(v **ListTagsForResourceOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListDashboardVersionsOutput(v **ListDashboardVersionsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -17775,27 +17697,36 @@ func awsRestjson1_deserializeOpDocumentListTagsForResourceOutput(v **ListTagsFor return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListTagsForResourceOutput + var sv *ListDashboardVersionsOutput if *v == nil { - sv = &ListTagsForResourceOutput{} + sv = &ListDashboardVersionsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "RequestId": + case "DashboardVersionSummaryList": + if err := awsRestjson1_deserializeDocumentDashboardVersionSummaryList(&sv.DashboardVersionSummaryList, value); err != nil { + return err + } + + case "NextToken": if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = ptr.String(jtv) + sv.NextToken = ptr.String(jtv) } - case "Tags": - if err := awsRestjson1_deserializeDocumentTagList(&sv.Tags, value); err != nil { - return err + case "RequestId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.RequestId = ptr.String(jtv) } default: @@ -17807,14 +17738,14 @@ func awsRestjson1_deserializeOpDocumentListTagsForResourceOutput(v **ListTagsFor return nil } -type awsRestjson1_deserializeOpListTemplateAliases struct { +type awsRestjson1_deserializeOpListDataSets struct { } -func (*awsRestjson1_deserializeOpListTemplateAliases) ID() string { +func (*awsRestjson1_deserializeOpListDataSets) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListTemplateAliases) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListDataSets) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -17828,12 +17759,12 @@ func (m *awsRestjson1_deserializeOpListTemplateAliases) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListTemplateAliases(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListDataSets(response, &metadata) } - output := &ListTemplateAliasesOutput{} + output := &ListDataSetsOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsListTemplateAliasesOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsListDataSetsOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -17856,7 +17787,7 @@ func (m *awsRestjson1_deserializeOpListTemplateAliases) HandleDeserialize(ctx co return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListTemplateAliasesOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListDataSetsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -17869,7 +17800,7 @@ func (m *awsRestjson1_deserializeOpListTemplateAliases) HandleDeserialize(ctx co return out, metadata, err } -func awsRestjson1_deserializeOpErrorListTemplateAliases(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListDataSets(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -17910,21 +17841,21 @@ func awsRestjson1_deserializeOpErrorListTemplateAliases(response *smithyhttp.Res } switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) case strings.EqualFold("InvalidNextTokenException", errorCode): return awsRestjson1_deserializeErrorInvalidNextTokenException(response, errorBody) - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + case strings.EqualFold("InvalidParameterValueException", errorCode): + return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - case strings.EqualFold("UnsupportedUserEditionException", errorCode): - return awsRestjson1_deserializeErrorUnsupportedUserEditionException(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -17935,7 +17866,7 @@ func awsRestjson1_deserializeOpErrorListTemplateAliases(response *smithyhttp.Res } } -func awsRestjson1_deserializeOpHttpBindingsListTemplateAliasesOutput(v *ListTemplateAliasesOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsListDataSetsOutput(v *ListDataSetsOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -17944,7 +17875,7 @@ func awsRestjson1_deserializeOpHttpBindingsListTemplateAliasesOutput(v *ListTemp return nil } -func awsRestjson1_deserializeOpDocumentListTemplateAliasesOutput(v **ListTemplateAliasesOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListDataSetsOutput(v **ListDataSetsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -17957,15 +17888,20 @@ func awsRestjson1_deserializeOpDocumentListTemplateAliasesOutput(v **ListTemplat return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListTemplateAliasesOutput + var sv *ListDataSetsOutput if *v == nil { - sv = &ListTemplateAliasesOutput{} + sv = &ListDataSetsOutput{} } else { sv = *v } for key, value := range shape { switch key { + case "DataSetSummaries": + if err := awsRestjson1_deserializeDocumentDataSetSummaryList(&sv.DataSetSummaries, value); err != nil { + return err + } + case "NextToken": if value != nil { jtv, ok := value.(string) @@ -17984,11 +17920,6 @@ func awsRestjson1_deserializeOpDocumentListTemplateAliasesOutput(v **ListTemplat sv.RequestId = ptr.String(jtv) } - case "TemplateAliasList": - if err := awsRestjson1_deserializeDocumentTemplateAliasList(&sv.TemplateAliasList, value); err != nil { - return err - } - default: _, _ = key, value @@ -17998,14 +17929,14 @@ func awsRestjson1_deserializeOpDocumentListTemplateAliasesOutput(v **ListTemplat return nil } -type awsRestjson1_deserializeOpListTemplates struct { +type awsRestjson1_deserializeOpListDataSources struct { } -func (*awsRestjson1_deserializeOpListTemplates) ID() string { +func (*awsRestjson1_deserializeOpListDataSources) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListTemplates) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListDataSources) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -18019,12 +17950,12 @@ func (m *awsRestjson1_deserializeOpListTemplates) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListTemplates(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListDataSources(response, &metadata) } - output := &ListTemplatesOutput{} + output := &ListDataSourcesOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsListTemplatesOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsListDataSourcesOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -18047,7 +17978,7 @@ func (m *awsRestjson1_deserializeOpListTemplates) HandleDeserialize(ctx context. return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListTemplatesOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListDataSourcesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -18060,7 +17991,7 @@ func (m *awsRestjson1_deserializeOpListTemplates) HandleDeserialize(ctx context. return out, metadata, err } -func awsRestjson1_deserializeOpErrorListTemplates(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListDataSources(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -18101,6 +18032,9 @@ func awsRestjson1_deserializeOpErrorListTemplates(response *smithyhttp.Response, } switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) @@ -18110,15 +18044,9 @@ func awsRestjson1_deserializeOpErrorListTemplates(response *smithyhttp.Response, case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - case strings.EqualFold("UnsupportedUserEditionException", errorCode): - return awsRestjson1_deserializeErrorUnsupportedUserEditionException(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -18129,7 +18057,7 @@ func awsRestjson1_deserializeOpErrorListTemplates(response *smithyhttp.Response, } } -func awsRestjson1_deserializeOpHttpBindingsListTemplatesOutput(v *ListTemplatesOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsListDataSourcesOutput(v *ListDataSourcesOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -18138,7 +18066,7 @@ func awsRestjson1_deserializeOpHttpBindingsListTemplatesOutput(v *ListTemplatesO return nil } -func awsRestjson1_deserializeOpDocumentListTemplatesOutput(v **ListTemplatesOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListDataSourcesOutput(v **ListDataSourcesOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -18151,15 +18079,20 @@ func awsRestjson1_deserializeOpDocumentListTemplatesOutput(v **ListTemplatesOutp return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListTemplatesOutput + var sv *ListDataSourcesOutput if *v == nil { - sv = &ListTemplatesOutput{} + sv = &ListDataSourcesOutput{} } else { sv = *v } for key, value := range shape { switch key { + case "DataSources": + if err := awsRestjson1_deserializeDocumentDataSourceList(&sv.DataSources, value); err != nil { + return err + } + case "NextToken": if value != nil { jtv, ok := value.(string) @@ -18178,11 +18111,6 @@ func awsRestjson1_deserializeOpDocumentListTemplatesOutput(v **ListTemplatesOutp sv.RequestId = ptr.String(jtv) } - case "TemplateSummaryList": - if err := awsRestjson1_deserializeDocumentTemplateSummaryList(&sv.TemplateSummaryList, value); err != nil { - return err - } - default: _, _ = key, value @@ -18192,14 +18120,14 @@ func awsRestjson1_deserializeOpDocumentListTemplatesOutput(v **ListTemplatesOutp return nil } -type awsRestjson1_deserializeOpListTemplateVersions struct { +type awsRestjson1_deserializeOpListFolderMembers struct { } -func (*awsRestjson1_deserializeOpListTemplateVersions) ID() string { +func (*awsRestjson1_deserializeOpListFolderMembers) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListTemplateVersions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListFolderMembers) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -18213,12 +18141,12 @@ func (m *awsRestjson1_deserializeOpListTemplateVersions) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListTemplateVersions(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListFolderMembers(response, &metadata) } - output := &ListTemplateVersionsOutput{} + output := &ListFolderMembersOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsListTemplateVersionsOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsListFolderMembersOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -18241,7 +18169,7 @@ func (m *awsRestjson1_deserializeOpListTemplateVersions) HandleDeserialize(ctx c return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListTemplateVersionsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListFolderMembersOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -18254,7 +18182,7 @@ func (m *awsRestjson1_deserializeOpListTemplateVersions) HandleDeserialize(ctx c return out, metadata, err } -func awsRestjson1_deserializeOpErrorListTemplateVersions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListFolderMembers(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -18295,6 +18223,9 @@ func awsRestjson1_deserializeOpErrorListTemplateVersions(response *smithyhttp.Re } switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) @@ -18323,7 +18254,7 @@ func awsRestjson1_deserializeOpErrorListTemplateVersions(response *smithyhttp.Re } } -func awsRestjson1_deserializeOpHttpBindingsListTemplateVersionsOutput(v *ListTemplateVersionsOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsListFolderMembersOutput(v *ListFolderMembersOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -18332,7 +18263,7 @@ func awsRestjson1_deserializeOpHttpBindingsListTemplateVersionsOutput(v *ListTem return nil } -func awsRestjson1_deserializeOpDocumentListTemplateVersionsOutput(v **ListTemplateVersionsOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListFolderMembersOutput(v **ListFolderMembersOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -18345,15 +18276,20 @@ func awsRestjson1_deserializeOpDocumentListTemplateVersionsOutput(v **ListTempla return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListTemplateVersionsOutput + var sv *ListFolderMembersOutput if *v == nil { - sv = &ListTemplateVersionsOutput{} + sv = &ListFolderMembersOutput{} } else { sv = *v } for key, value := range shape { switch key { + case "FolderMemberList": + if err := awsRestjson1_deserializeDocumentFolderMemberList(&sv.FolderMemberList, value); err != nil { + return err + } + case "NextToken": if value != nil { jtv, ok := value.(string) @@ -18372,11 +18308,6 @@ func awsRestjson1_deserializeOpDocumentListTemplateVersionsOutput(v **ListTempla sv.RequestId = ptr.String(jtv) } - case "TemplateVersionSummaryList": - if err := awsRestjson1_deserializeDocumentTemplateVersionSummaryList(&sv.TemplateVersionSummaryList, value); err != nil { - return err - } - default: _, _ = key, value @@ -18386,14 +18317,14 @@ func awsRestjson1_deserializeOpDocumentListTemplateVersionsOutput(v **ListTempla return nil } -type awsRestjson1_deserializeOpListThemeAliases struct { +type awsRestjson1_deserializeOpListFolders struct { } -func (*awsRestjson1_deserializeOpListThemeAliases) ID() string { +func (*awsRestjson1_deserializeOpListFolders) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListThemeAliases) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListFolders) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -18407,12 +18338,12 @@ func (m *awsRestjson1_deserializeOpListThemeAliases) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListThemeAliases(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListFolders(response, &metadata) } - output := &ListThemeAliasesOutput{} + output := &ListFoldersOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsListThemeAliasesOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsListFoldersOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -18435,7 +18366,7 @@ func (m *awsRestjson1_deserializeOpListThemeAliases) HandleDeserialize(ctx conte return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListThemeAliasesOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListFoldersOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -18448,7 +18379,7 @@ func (m *awsRestjson1_deserializeOpListThemeAliases) HandleDeserialize(ctx conte return out, metadata, err } -func awsRestjson1_deserializeOpErrorListThemeAliases(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListFolders(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -18489,8 +18420,8 @@ func awsRestjson1_deserializeOpErrorListThemeAliases(response *smithyhttp.Respon } switch { - case strings.EqualFold("ConflictException", errorCode): - return awsRestjson1_deserializeErrorConflictException(response, errorBody) + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) @@ -18520,7 +18451,7 @@ func awsRestjson1_deserializeOpErrorListThemeAliases(response *smithyhttp.Respon } } -func awsRestjson1_deserializeOpHttpBindingsListThemeAliasesOutput(v *ListThemeAliasesOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsListFoldersOutput(v *ListFoldersOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -18529,7 +18460,7 @@ func awsRestjson1_deserializeOpHttpBindingsListThemeAliasesOutput(v *ListThemeAl return nil } -func awsRestjson1_deserializeOpDocumentListThemeAliasesOutput(v **ListThemeAliasesOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListFoldersOutput(v **ListFoldersOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -18542,15 +18473,20 @@ func awsRestjson1_deserializeOpDocumentListThemeAliasesOutput(v **ListThemeAlias return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListThemeAliasesOutput + var sv *ListFoldersOutput if *v == nil { - sv = &ListThemeAliasesOutput{} + sv = &ListFoldersOutput{} } else { sv = *v } for key, value := range shape { switch key { + case "FolderSummaryList": + if err := awsRestjson1_deserializeDocumentFolderSummaryList(&sv.FolderSummaryList, value); err != nil { + return err + } + case "NextToken": if value != nil { jtv, ok := value.(string) @@ -18569,11 +18505,6 @@ func awsRestjson1_deserializeOpDocumentListThemeAliasesOutput(v **ListThemeAlias sv.RequestId = ptr.String(jtv) } - case "ThemeAliasList": - if err := awsRestjson1_deserializeDocumentThemeAliasList(&sv.ThemeAliasList, value); err != nil { - return err - } - default: _, _ = key, value @@ -18583,14 +18514,14 @@ func awsRestjson1_deserializeOpDocumentListThemeAliasesOutput(v **ListThemeAlias return nil } -type awsRestjson1_deserializeOpListThemes struct { +type awsRestjson1_deserializeOpListGroupMemberships struct { } -func (*awsRestjson1_deserializeOpListThemes) ID() string { +func (*awsRestjson1_deserializeOpListGroupMemberships) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListThemes) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListGroupMemberships) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -18604,12 +18535,12 @@ func (m *awsRestjson1_deserializeOpListThemes) HandleDeserialize(ctx context.Con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListThemes(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListGroupMemberships(response, &metadata) } - output := &ListThemesOutput{} + output := &ListGroupMembershipsOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsListThemesOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsListGroupMembershipsOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -18632,7 +18563,7 @@ func (m *awsRestjson1_deserializeOpListThemes) HandleDeserialize(ctx context.Con return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListThemesOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListGroupMembershipsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -18645,7 +18576,7 @@ func (m *awsRestjson1_deserializeOpListThemes) HandleDeserialize(ctx context.Con return out, metadata, err } -func awsRestjson1_deserializeOpErrorListThemes(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListGroupMemberships(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -18698,15 +18629,18 @@ func awsRestjson1_deserializeOpErrorListThemes(response *smithyhttp.Response, me case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) + case strings.EqualFold("PreconditionNotMetException", errorCode): + return awsRestjson1_deserializeErrorPreconditionNotMetException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + case strings.EqualFold("ResourceUnavailableException", errorCode): + return awsRestjson1_deserializeErrorResourceUnavailableException(response, errorBody) + case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - case strings.EqualFold("UnsupportedUserEditionException", errorCode): - return awsRestjson1_deserializeErrorUnsupportedUserEditionException(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -18717,7 +18651,7 @@ func awsRestjson1_deserializeOpErrorListThemes(response *smithyhttp.Response, me } } -func awsRestjson1_deserializeOpHttpBindingsListThemesOutput(v *ListThemesOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsListGroupMembershipsOutput(v *ListGroupMembershipsOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -18726,7 +18660,7 @@ func awsRestjson1_deserializeOpHttpBindingsListThemesOutput(v *ListThemesOutput, return nil } -func awsRestjson1_deserializeOpDocumentListThemesOutput(v **ListThemesOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListGroupMembershipsOutput(v **ListGroupMembershipsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -18739,15 +18673,20 @@ func awsRestjson1_deserializeOpDocumentListThemesOutput(v **ListThemesOutput, va return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListThemesOutput + var sv *ListGroupMembershipsOutput if *v == nil { - sv = &ListThemesOutput{} + sv = &ListGroupMembershipsOutput{} } else { sv = *v } for key, value := range shape { switch key { + case "GroupMemberList": + if err := awsRestjson1_deserializeDocumentGroupMemberList(&sv.GroupMemberList, value); err != nil { + return err + } + case "NextToken": if value != nil { jtv, ok := value.(string) @@ -18766,11 +18705,6 @@ func awsRestjson1_deserializeOpDocumentListThemesOutput(v **ListThemesOutput, va sv.RequestId = ptr.String(jtv) } - case "ThemeSummaryList": - if err := awsRestjson1_deserializeDocumentThemeSummaryList(&sv.ThemeSummaryList, value); err != nil { - return err - } - default: _, _ = key, value @@ -18780,14 +18714,14 @@ func awsRestjson1_deserializeOpDocumentListThemesOutput(v **ListThemesOutput, va return nil } -type awsRestjson1_deserializeOpListThemeVersions struct { +type awsRestjson1_deserializeOpListGroups struct { } -func (*awsRestjson1_deserializeOpListThemeVersions) ID() string { +func (*awsRestjson1_deserializeOpListGroups) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListThemeVersions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListGroups) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -18801,12 +18735,12 @@ func (m *awsRestjson1_deserializeOpListThemeVersions) HandleDeserialize(ctx cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListThemeVersions(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListGroups(response, &metadata) } - output := &ListThemeVersionsOutput{} + output := &ListGroupsOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsListThemeVersionsOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsListGroupsOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -18829,7 +18763,7 @@ func (m *awsRestjson1_deserializeOpListThemeVersions) HandleDeserialize(ctx cont return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListThemeVersionsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListGroupsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -18842,7 +18776,7 @@ func (m *awsRestjson1_deserializeOpListThemeVersions) HandleDeserialize(ctx cont return out, metadata, err } -func awsRestjson1_deserializeOpErrorListThemeVersions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListGroups(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -18895,15 +18829,18 @@ func awsRestjson1_deserializeOpErrorListThemeVersions(response *smithyhttp.Respo case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) + case strings.EqualFold("PreconditionNotMetException", errorCode): + return awsRestjson1_deserializeErrorPreconditionNotMetException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + case strings.EqualFold("ResourceUnavailableException", errorCode): + return awsRestjson1_deserializeErrorResourceUnavailableException(response, errorBody) + case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - case strings.EqualFold("UnsupportedUserEditionException", errorCode): - return awsRestjson1_deserializeErrorUnsupportedUserEditionException(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -18914,7 +18851,7 @@ func awsRestjson1_deserializeOpErrorListThemeVersions(response *smithyhttp.Respo } } -func awsRestjson1_deserializeOpHttpBindingsListThemeVersionsOutput(v *ListThemeVersionsOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsListGroupsOutput(v *ListGroupsOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -18923,7 +18860,7 @@ func awsRestjson1_deserializeOpHttpBindingsListThemeVersionsOutput(v *ListThemeV return nil } -func awsRestjson1_deserializeOpDocumentListThemeVersionsOutput(v **ListThemeVersionsOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListGroupsOutput(v **ListGroupsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -18936,15 +18873,20 @@ func awsRestjson1_deserializeOpDocumentListThemeVersionsOutput(v **ListThemeVers return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListThemeVersionsOutput + var sv *ListGroupsOutput if *v == nil { - sv = &ListThemeVersionsOutput{} + sv = &ListGroupsOutput{} } else { sv = *v } for key, value := range shape { switch key { + case "GroupList": + if err := awsRestjson1_deserializeDocumentGroupList(&sv.GroupList, value); err != nil { + return err + } + case "NextToken": if value != nil { jtv, ok := value.(string) @@ -18963,11 +18905,6 @@ func awsRestjson1_deserializeOpDocumentListThemeVersionsOutput(v **ListThemeVers sv.RequestId = ptr.String(jtv) } - case "ThemeVersionSummaryList": - if err := awsRestjson1_deserializeDocumentThemeVersionSummaryList(&sv.ThemeVersionSummaryList, value); err != nil { - return err - } - default: _, _ = key, value @@ -18977,14 +18914,14 @@ func awsRestjson1_deserializeOpDocumentListThemeVersionsOutput(v **ListThemeVers return nil } -type awsRestjson1_deserializeOpListUserGroups struct { +type awsRestjson1_deserializeOpListIAMPolicyAssignments struct { } -func (*awsRestjson1_deserializeOpListUserGroups) ID() string { +func (*awsRestjson1_deserializeOpListIAMPolicyAssignments) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListUserGroups) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListIAMPolicyAssignments) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -18998,12 +18935,12 @@ func (m *awsRestjson1_deserializeOpListUserGroups) HandleDeserialize(ctx context } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListUserGroups(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListIAMPolicyAssignments(response, &metadata) } - output := &ListUserGroupsOutput{} + output := &ListIAMPolicyAssignmentsOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsListUserGroupsOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsListIAMPolicyAssignmentsOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -19026,7 +18963,7 @@ func (m *awsRestjson1_deserializeOpListUserGroups) HandleDeserialize(ctx context return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListUserGroupsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListIAMPolicyAssignmentsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -19039,7 +18976,7 @@ func (m *awsRestjson1_deserializeOpListUserGroups) HandleDeserialize(ctx context return out, metadata, err } -func awsRestjson1_deserializeOpErrorListUserGroups(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListIAMPolicyAssignments(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -19086,18 +19023,15 @@ func awsRestjson1_deserializeOpErrorListUserGroups(response *smithyhttp.Response case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) + case strings.EqualFold("InvalidNextTokenException", errorCode): + return awsRestjson1_deserializeErrorInvalidNextTokenException(response, errorBody) + case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) - case strings.EqualFold("PreconditionNotMetException", errorCode): - return awsRestjson1_deserializeErrorPreconditionNotMetException(response, errorBody) - case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - case strings.EqualFold("ResourceUnavailableException", errorCode): - return awsRestjson1_deserializeErrorResourceUnavailableException(response, errorBody) - case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) @@ -19111,7 +19045,7 @@ func awsRestjson1_deserializeOpErrorListUserGroups(response *smithyhttp.Response } } -func awsRestjson1_deserializeOpHttpBindingsListUserGroupsOutput(v *ListUserGroupsOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsListIAMPolicyAssignmentsOutput(v *ListIAMPolicyAssignmentsOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -19120,7 +19054,7 @@ func awsRestjson1_deserializeOpHttpBindingsListUserGroupsOutput(v *ListUserGroup return nil } -func awsRestjson1_deserializeOpDocumentListUserGroupsOutput(v **ListUserGroupsOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListIAMPolicyAssignmentsOutput(v **ListIAMPolicyAssignmentsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -19133,17 +19067,17 @@ func awsRestjson1_deserializeOpDocumentListUserGroupsOutput(v **ListUserGroupsOu return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListUserGroupsOutput + var sv *ListIAMPolicyAssignmentsOutput if *v == nil { - sv = &ListUserGroupsOutput{} + sv = &ListIAMPolicyAssignmentsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "GroupList": - if err := awsRestjson1_deserializeDocumentGroupList(&sv.GroupList, value); err != nil { + case "IAMPolicyAssignments": + if err := awsRestjson1_deserializeDocumentIAMPolicyAssignmentSummaryList(&sv.IAMPolicyAssignments, value); err != nil { return err } @@ -19174,14 +19108,14 @@ func awsRestjson1_deserializeOpDocumentListUserGroupsOutput(v **ListUserGroupsOu return nil } -type awsRestjson1_deserializeOpListUsers struct { +type awsRestjson1_deserializeOpListIAMPolicyAssignmentsForUser struct { } -func (*awsRestjson1_deserializeOpListUsers) ID() string { +func (*awsRestjson1_deserializeOpListIAMPolicyAssignmentsForUser) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListUsers) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListIAMPolicyAssignmentsForUser) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -19195,12 +19129,12 @@ func (m *awsRestjson1_deserializeOpListUsers) HandleDeserialize(ctx context.Cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListUsers(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListIAMPolicyAssignmentsForUser(response, &metadata) } - output := &ListUsersOutput{} + output := &ListIAMPolicyAssignmentsForUserOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsListUsersOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsListIAMPolicyAssignmentsForUserOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -19223,7 +19157,7 @@ func (m *awsRestjson1_deserializeOpListUsers) HandleDeserialize(ctx context.Cont return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListUsersOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListIAMPolicyAssignmentsForUserOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -19236,7 +19170,7 @@ func (m *awsRestjson1_deserializeOpListUsers) HandleDeserialize(ctx context.Cont return out, metadata, err } -func awsRestjson1_deserializeOpErrorListUsers(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListIAMPolicyAssignmentsForUser(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -19280,24 +19214,21 @@ func awsRestjson1_deserializeOpErrorListUsers(response *smithyhttp.Response, met case strings.EqualFold("AccessDeniedException", errorCode): return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + case strings.EqualFold("ConcurrentUpdatingException", errorCode): + return awsRestjson1_deserializeErrorConcurrentUpdatingException(response, errorBody) + case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) - case strings.EqualFold("InvalidNextTokenException", errorCode): - return awsRestjson1_deserializeErrorInvalidNextTokenException(response, errorBody) - case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) - case strings.EqualFold("PreconditionNotMetException", errorCode): - return awsRestjson1_deserializeErrorPreconditionNotMetException(response, errorBody) + case strings.EqualFold("ResourceExistsException", errorCode): + return awsRestjson1_deserializeErrorResourceExistsException(response, errorBody) case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - case strings.EqualFold("ResourceUnavailableException", errorCode): - return awsRestjson1_deserializeErrorResourceUnavailableException(response, errorBody) - case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) @@ -19311,7 +19242,7 @@ func awsRestjson1_deserializeOpErrorListUsers(response *smithyhttp.Response, met } } -func awsRestjson1_deserializeOpHttpBindingsListUsersOutput(v *ListUsersOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsListIAMPolicyAssignmentsForUserOutput(v *ListIAMPolicyAssignmentsForUserOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -19320,7 +19251,7 @@ func awsRestjson1_deserializeOpHttpBindingsListUsersOutput(v *ListUsersOutput, r return nil } -func awsRestjson1_deserializeOpDocumentListUsersOutput(v **ListUsersOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListIAMPolicyAssignmentsForUserOutput(v **ListIAMPolicyAssignmentsForUserOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -19333,15 +19264,20 @@ func awsRestjson1_deserializeOpDocumentListUsersOutput(v **ListUsersOutput, valu return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListUsersOutput + var sv *ListIAMPolicyAssignmentsForUserOutput if *v == nil { - sv = &ListUsersOutput{} + sv = &ListIAMPolicyAssignmentsForUserOutput{} } else { sv = *v } for key, value := range shape { switch key { + case "ActiveAssignments": + if err := awsRestjson1_deserializeDocumentActiveIAMPolicyAssignmentList(&sv.ActiveAssignments, value); err != nil { + return err + } + case "NextToken": if value != nil { jtv, ok := value.(string) @@ -19360,11 +19296,6 @@ func awsRestjson1_deserializeOpDocumentListUsersOutput(v **ListUsersOutput, valu sv.RequestId = ptr.String(jtv) } - case "UserList": - if err := awsRestjson1_deserializeDocumentUserList(&sv.UserList, value); err != nil { - return err - } - default: _, _ = key, value @@ -19374,14 +19305,14 @@ func awsRestjson1_deserializeOpDocumentListUsersOutput(v **ListUsersOutput, valu return nil } -type awsRestjson1_deserializeOpPutDataSetRefreshProperties struct { +type awsRestjson1_deserializeOpListIngestions struct { } -func (*awsRestjson1_deserializeOpPutDataSetRefreshProperties) ID() string { +func (*awsRestjson1_deserializeOpListIngestions) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpPutDataSetRefreshProperties) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListIngestions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -19395,12 +19326,12 @@ func (m *awsRestjson1_deserializeOpPutDataSetRefreshProperties) HandleDeserializ } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorPutDataSetRefreshProperties(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListIngestions(response, &metadata) } - output := &PutDataSetRefreshPropertiesOutput{} + output := &ListIngestionsOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsPutDataSetRefreshPropertiesOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsListIngestionsOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -19423,7 +19354,7 @@ func (m *awsRestjson1_deserializeOpPutDataSetRefreshProperties) HandleDeserializ return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentPutDataSetRefreshPropertiesOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListIngestionsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -19436,7 +19367,7 @@ func (m *awsRestjson1_deserializeOpPutDataSetRefreshProperties) HandleDeserializ return out, metadata, err } -func awsRestjson1_deserializeOpErrorPutDataSetRefreshProperties(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListIngestions(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -19480,20 +19411,17 @@ func awsRestjson1_deserializeOpErrorPutDataSetRefreshProperties(response *smithy case strings.EqualFold("AccessDeniedException", errorCode): return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - case strings.EqualFold("ConflictException", errorCode): - return awsRestjson1_deserializeErrorConflictException(response, errorBody) - case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) + case strings.EqualFold("InvalidNextTokenException", errorCode): + return awsRestjson1_deserializeErrorInvalidNextTokenException(response, errorBody) + case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) - case strings.EqualFold("LimitExceededException", errorCode): - return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody) - - case strings.EqualFold("PreconditionNotMetException", errorCode): - return awsRestjson1_deserializeErrorPreconditionNotMetException(response, errorBody) + case strings.EqualFold("ResourceExistsException", errorCode): + return awsRestjson1_deserializeErrorResourceExistsException(response, errorBody) case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) @@ -19511,7 +19439,7 @@ func awsRestjson1_deserializeOpErrorPutDataSetRefreshProperties(response *smithy } } -func awsRestjson1_deserializeOpHttpBindingsPutDataSetRefreshPropertiesOutput(v *PutDataSetRefreshPropertiesOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsListIngestionsOutput(v *ListIngestionsOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -19520,7 +19448,7 @@ func awsRestjson1_deserializeOpHttpBindingsPutDataSetRefreshPropertiesOutput(v * return nil } -func awsRestjson1_deserializeOpDocumentPutDataSetRefreshPropertiesOutput(v **PutDataSetRefreshPropertiesOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListIngestionsOutput(v **ListIngestionsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -19533,15 +19461,29 @@ func awsRestjson1_deserializeOpDocumentPutDataSetRefreshPropertiesOutput(v **Put return fmt.Errorf("unexpected JSON type %v", value) } - var sv *PutDataSetRefreshPropertiesOutput + var sv *ListIngestionsOutput if *v == nil { - sv = &PutDataSetRefreshPropertiesOutput{} + sv = &ListIngestionsOutput{} } else { sv = *v } for key, value := range shape { switch key { + case "Ingestions": + if err := awsRestjson1_deserializeDocumentIngestions(&sv.Ingestions, value); err != nil { + return err + } + + case "NextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + case "RequestId": if value != nil { jtv, ok := value.(string) @@ -19560,14 +19502,14 @@ func awsRestjson1_deserializeOpDocumentPutDataSetRefreshPropertiesOutput(v **Put return nil } -type awsRestjson1_deserializeOpRegisterUser struct { +type awsRestjson1_deserializeOpListNamespaces struct { } -func (*awsRestjson1_deserializeOpRegisterUser) ID() string { +func (*awsRestjson1_deserializeOpListNamespaces) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpRegisterUser) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListNamespaces) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -19581,12 +19523,12 @@ func (m *awsRestjson1_deserializeOpRegisterUser) HandleDeserialize(ctx context.C } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorRegisterUser(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListNamespaces(response, &metadata) } - output := &RegisterUserOutput{} + output := &ListNamespacesOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsRegisterUserOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsListNamespacesOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -19609,7 +19551,7 @@ func (m *awsRestjson1_deserializeOpRegisterUser) HandleDeserialize(ctx context.C return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentRegisterUserOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListNamespacesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -19622,7 +19564,7 @@ func (m *awsRestjson1_deserializeOpRegisterUser) HandleDeserialize(ctx context.C return out, metadata, err } -func awsRestjson1_deserializeOpErrorRegisterUser(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListNamespaces(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -19669,18 +19611,15 @@ func awsRestjson1_deserializeOpErrorRegisterUser(response *smithyhttp.Response, case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) + case strings.EqualFold("InvalidNextTokenException", errorCode): + return awsRestjson1_deserializeErrorInvalidNextTokenException(response, errorBody) + case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) - case strings.EqualFold("LimitExceededException", errorCode): - return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody) - case strings.EqualFold("PreconditionNotMetException", errorCode): return awsRestjson1_deserializeErrorPreconditionNotMetException(response, errorBody) - case strings.EqualFold("ResourceExistsException", errorCode): - return awsRestjson1_deserializeErrorResourceExistsException(response, errorBody) - case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) @@ -19700,7 +19639,7 @@ func awsRestjson1_deserializeOpErrorRegisterUser(response *smithyhttp.Response, } } -func awsRestjson1_deserializeOpHttpBindingsRegisterUserOutput(v *RegisterUserOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsListNamespacesOutput(v *ListNamespacesOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -19709,7 +19648,7 @@ func awsRestjson1_deserializeOpHttpBindingsRegisterUserOutput(v *RegisterUserOut return nil } -func awsRestjson1_deserializeOpDocumentRegisterUserOutput(v **RegisterUserOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListNamespacesOutput(v **ListNamespacesOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -19722,36 +19661,36 @@ func awsRestjson1_deserializeOpDocumentRegisterUserOutput(v **RegisterUserOutput return fmt.Errorf("unexpected JSON type %v", value) } - var sv *RegisterUserOutput + var sv *ListNamespacesOutput if *v == nil { - sv = &RegisterUserOutput{} + sv = &ListNamespacesOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "RequestId": + case "Namespaces": + if err := awsRestjson1_deserializeDocumentNamespaces(&sv.Namespaces, value); err != nil { + return err + } + + case "NextToken": if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = ptr.String(jtv) - } - - case "User": - if err := awsRestjson1_deserializeDocumentUser(&sv.User, value); err != nil { - return err + sv.NextToken = ptr.String(jtv) } - case "UserInvitationUrl": + case "RequestId": if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.UserInvitationUrl = ptr.String(jtv) + sv.RequestId = ptr.String(jtv) } default: @@ -19763,14 +19702,14 @@ func awsRestjson1_deserializeOpDocumentRegisterUserOutput(v **RegisterUserOutput return nil } -type awsRestjson1_deserializeOpRestoreAnalysis struct { +type awsRestjson1_deserializeOpListRefreshSchedules struct { } -func (*awsRestjson1_deserializeOpRestoreAnalysis) ID() string { +func (*awsRestjson1_deserializeOpListRefreshSchedules) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpRestoreAnalysis) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListRefreshSchedules) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -19784,12 +19723,12 @@ func (m *awsRestjson1_deserializeOpRestoreAnalysis) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorRestoreAnalysis(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListRefreshSchedules(response, &metadata) } - output := &RestoreAnalysisOutput{} + output := &ListRefreshSchedulesOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsRestoreAnalysisOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsListRefreshSchedulesOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -19812,7 +19751,7 @@ func (m *awsRestjson1_deserializeOpRestoreAnalysis) HandleDeserialize(ctx contex return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentRestoreAnalysisOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListRefreshSchedulesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -19825,7 +19764,7 @@ func (m *awsRestjson1_deserializeOpRestoreAnalysis) HandleDeserialize(ctx contex return out, metadata, err } -func awsRestjson1_deserializeOpErrorRestoreAnalysis(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListRefreshSchedules(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -19866,8 +19805,8 @@ func awsRestjson1_deserializeOpErrorRestoreAnalysis(response *smithyhttp.Respons } switch { - case strings.EqualFold("ConflictException", errorCode): - return awsRestjson1_deserializeErrorConflictException(response, errorBody) + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) @@ -19875,15 +19814,15 @@ func awsRestjson1_deserializeOpErrorRestoreAnalysis(response *smithyhttp.Respons case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) + case strings.EqualFold("LimitExceededException", errorCode): + return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - case strings.EqualFold("UnsupportedUserEditionException", errorCode): - return awsRestjson1_deserializeErrorUnsupportedUserEditionException(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -19894,7 +19833,7 @@ func awsRestjson1_deserializeOpErrorRestoreAnalysis(response *smithyhttp.Respons } } -func awsRestjson1_deserializeOpHttpBindingsRestoreAnalysisOutput(v *RestoreAnalysisOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsListRefreshSchedulesOutput(v *ListRefreshSchedulesOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -19903,7 +19842,7 @@ func awsRestjson1_deserializeOpHttpBindingsRestoreAnalysisOutput(v *RestoreAnaly return nil } -func awsRestjson1_deserializeOpDocumentRestoreAnalysisOutput(v **RestoreAnalysisOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListRefreshSchedulesOutput(v **ListRefreshSchedulesOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -19916,31 +19855,18 @@ func awsRestjson1_deserializeOpDocumentRestoreAnalysisOutput(v **RestoreAnalysis return fmt.Errorf("unexpected JSON type %v", value) } - var sv *RestoreAnalysisOutput + var sv *ListRefreshSchedulesOutput if *v == nil { - sv = &RestoreAnalysisOutput{} + sv = &ListRefreshSchedulesOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "AnalysisId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) - } - sv.AnalysisId = ptr.String(jtv) - } - - case "Arn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.Arn = ptr.String(jtv) + case "RefreshSchedules": + if err := awsRestjson1_deserializeDocumentRefreshSchedules(&sv.RefreshSchedules, value); err != nil { + return err } case "RequestId": @@ -19961,14 +19887,14 @@ func awsRestjson1_deserializeOpDocumentRestoreAnalysisOutput(v **RestoreAnalysis return nil } -type awsRestjson1_deserializeOpSearchAnalyses struct { +type awsRestjson1_deserializeOpListTagsForResource struct { } -func (*awsRestjson1_deserializeOpSearchAnalyses) ID() string { +func (*awsRestjson1_deserializeOpListTagsForResource) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpSearchAnalyses) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListTagsForResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -19982,12 +19908,12 @@ func (m *awsRestjson1_deserializeOpSearchAnalyses) HandleDeserialize(ctx context } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorSearchAnalyses(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListTagsForResource(response, &metadata) } - output := &SearchAnalysesOutput{} + output := &ListTagsForResourceOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsSearchAnalysesOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsListTagsForResourceOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -20010,7 +19936,7 @@ func (m *awsRestjson1_deserializeOpSearchAnalyses) HandleDeserialize(ctx context return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentSearchAnalysesOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListTagsForResourceOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -20023,7 +19949,7 @@ func (m *awsRestjson1_deserializeOpSearchAnalyses) HandleDeserialize(ctx context return out, metadata, err } -func awsRestjson1_deserializeOpErrorSearchAnalyses(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListTagsForResource(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -20064,12 +19990,12 @@ func awsRestjson1_deserializeOpErrorSearchAnalyses(response *smithyhttp.Response } switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) - case strings.EqualFold("InvalidNextTokenException", errorCode): - return awsRestjson1_deserializeErrorInvalidNextTokenException(response, errorBody) - case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) @@ -20079,9 +20005,6 @@ func awsRestjson1_deserializeOpErrorSearchAnalyses(response *smithyhttp.Response case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - case strings.EqualFold("UnsupportedUserEditionException", errorCode): - return awsRestjson1_deserializeErrorUnsupportedUserEditionException(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -20092,7 +20015,7 @@ func awsRestjson1_deserializeOpErrorSearchAnalyses(response *smithyhttp.Response } } -func awsRestjson1_deserializeOpHttpBindingsSearchAnalysesOutput(v *SearchAnalysesOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsListTagsForResourceOutput(v *ListTagsForResourceOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -20101,7 +20024,7 @@ func awsRestjson1_deserializeOpHttpBindingsSearchAnalysesOutput(v *SearchAnalyse return nil } -func awsRestjson1_deserializeOpDocumentSearchAnalysesOutput(v **SearchAnalysesOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListTagsForResourceOutput(v **ListTagsForResourceOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -20114,29 +20037,15 @@ func awsRestjson1_deserializeOpDocumentSearchAnalysesOutput(v **SearchAnalysesOu return fmt.Errorf("unexpected JSON type %v", value) } - var sv *SearchAnalysesOutput + var sv *ListTagsForResourceOutput if *v == nil { - sv = &SearchAnalysesOutput{} + sv = &ListTagsForResourceOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "AnalysisSummaryList": - if err := awsRestjson1_deserializeDocumentAnalysisSummaryList(&sv.AnalysisSummaryList, value); err != nil { - return err - } - - case "NextToken": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.NextToken = ptr.String(jtv) - } - case "RequestId": if value != nil { jtv, ok := value.(string) @@ -20146,6 +20055,11 @@ func awsRestjson1_deserializeOpDocumentSearchAnalysesOutput(v **SearchAnalysesOu sv.RequestId = ptr.String(jtv) } + case "Tags": + if err := awsRestjson1_deserializeDocumentTagList(&sv.Tags, value); err != nil { + return err + } + default: _, _ = key, value @@ -20155,14 +20069,14 @@ func awsRestjson1_deserializeOpDocumentSearchAnalysesOutput(v **SearchAnalysesOu return nil } -type awsRestjson1_deserializeOpSearchDashboards struct { +type awsRestjson1_deserializeOpListTemplateAliases struct { } -func (*awsRestjson1_deserializeOpSearchDashboards) ID() string { +func (*awsRestjson1_deserializeOpListTemplateAliases) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpSearchDashboards) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListTemplateAliases) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -20176,12 +20090,12 @@ func (m *awsRestjson1_deserializeOpSearchDashboards) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorSearchDashboards(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListTemplateAliases(response, &metadata) } - output := &SearchDashboardsOutput{} + output := &ListTemplateAliasesOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsSearchDashboardsOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsListTemplateAliasesOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -20204,7 +20118,7 @@ func (m *awsRestjson1_deserializeOpSearchDashboards) HandleDeserialize(ctx conte return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentSearchDashboardsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListTemplateAliasesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -20217,7 +20131,7 @@ func (m *awsRestjson1_deserializeOpSearchDashboards) HandleDeserialize(ctx conte return out, metadata, err } -func awsRestjson1_deserializeOpErrorSearchDashboards(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListTemplateAliases(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -20264,9 +20178,6 @@ func awsRestjson1_deserializeOpErrorSearchDashboards(response *smithyhttp.Respon case strings.EqualFold("InvalidNextTokenException", errorCode): return awsRestjson1_deserializeErrorInvalidNextTokenException(response, errorBody) - case strings.EqualFold("InvalidParameterValueException", errorCode): - return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) - case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) @@ -20286,7 +20197,7 @@ func awsRestjson1_deserializeOpErrorSearchDashboards(response *smithyhttp.Respon } } -func awsRestjson1_deserializeOpHttpBindingsSearchDashboardsOutput(v *SearchDashboardsOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsListTemplateAliasesOutput(v *ListTemplateAliasesOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -20295,7 +20206,7 @@ func awsRestjson1_deserializeOpHttpBindingsSearchDashboardsOutput(v *SearchDashb return nil } -func awsRestjson1_deserializeOpDocumentSearchDashboardsOutput(v **SearchDashboardsOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListTemplateAliasesOutput(v **ListTemplateAliasesOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -20308,20 +20219,15 @@ func awsRestjson1_deserializeOpDocumentSearchDashboardsOutput(v **SearchDashboar return fmt.Errorf("unexpected JSON type %v", value) } - var sv *SearchDashboardsOutput + var sv *ListTemplateAliasesOutput if *v == nil { - sv = &SearchDashboardsOutput{} + sv = &ListTemplateAliasesOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "DashboardSummaryList": - if err := awsRestjson1_deserializeDocumentDashboardSummaryList(&sv.DashboardSummaryList, value); err != nil { - return err - } - case "NextToken": if value != nil { jtv, ok := value.(string) @@ -20340,6 +20246,11 @@ func awsRestjson1_deserializeOpDocumentSearchDashboardsOutput(v **SearchDashboar sv.RequestId = ptr.String(jtv) } + case "TemplateAliasList": + if err := awsRestjson1_deserializeDocumentTemplateAliasList(&sv.TemplateAliasList, value); err != nil { + return err + } + default: _, _ = key, value @@ -20349,14 +20260,14 @@ func awsRestjson1_deserializeOpDocumentSearchDashboardsOutput(v **SearchDashboar return nil } -type awsRestjson1_deserializeOpSearchDataSets struct { +type awsRestjson1_deserializeOpListTemplates struct { } -func (*awsRestjson1_deserializeOpSearchDataSets) ID() string { +func (*awsRestjson1_deserializeOpListTemplates) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpSearchDataSets) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListTemplates) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -20370,12 +20281,12 @@ func (m *awsRestjson1_deserializeOpSearchDataSets) HandleDeserialize(ctx context } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorSearchDataSets(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListTemplates(response, &metadata) } - output := &SearchDataSetsOutput{} + output := &ListTemplatesOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsSearchDataSetsOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsListTemplatesOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -20398,7 +20309,7 @@ func (m *awsRestjson1_deserializeOpSearchDataSets) HandleDeserialize(ctx context return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentSearchDataSetsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListTemplatesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -20411,7 +20322,7 @@ func (m *awsRestjson1_deserializeOpSearchDataSets) HandleDeserialize(ctx context return out, metadata, err } -func awsRestjson1_deserializeOpErrorSearchDataSets(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListTemplates(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -20452,9 +20363,6 @@ func awsRestjson1_deserializeOpErrorSearchDataSets(response *smithyhttp.Response } switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) @@ -20470,6 +20378,9 @@ func awsRestjson1_deserializeOpErrorSearchDataSets(response *smithyhttp.Response case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + case strings.EqualFold("UnsupportedUserEditionException", errorCode): + return awsRestjson1_deserializeErrorUnsupportedUserEditionException(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -20480,7 +20391,7 @@ func awsRestjson1_deserializeOpErrorSearchDataSets(response *smithyhttp.Response } } -func awsRestjson1_deserializeOpHttpBindingsSearchDataSetsOutput(v *SearchDataSetsOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsListTemplatesOutput(v *ListTemplatesOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -20489,7 +20400,7 @@ func awsRestjson1_deserializeOpHttpBindingsSearchDataSetsOutput(v *SearchDataSet return nil } -func awsRestjson1_deserializeOpDocumentSearchDataSetsOutput(v **SearchDataSetsOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListTemplatesOutput(v **ListTemplatesOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -20502,20 +20413,15 @@ func awsRestjson1_deserializeOpDocumentSearchDataSetsOutput(v **SearchDataSetsOu return fmt.Errorf("unexpected JSON type %v", value) } - var sv *SearchDataSetsOutput + var sv *ListTemplatesOutput if *v == nil { - sv = &SearchDataSetsOutput{} + sv = &ListTemplatesOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "DataSetSummaries": - if err := awsRestjson1_deserializeDocumentDataSetSummaryList(&sv.DataSetSummaries, value); err != nil { - return err - } - case "NextToken": if value != nil { jtv, ok := value.(string) @@ -20534,6 +20440,11 @@ func awsRestjson1_deserializeOpDocumentSearchDataSetsOutput(v **SearchDataSetsOu sv.RequestId = ptr.String(jtv) } + case "TemplateSummaryList": + if err := awsRestjson1_deserializeDocumentTemplateSummaryList(&sv.TemplateSummaryList, value); err != nil { + return err + } + default: _, _ = key, value @@ -20543,14 +20454,14 @@ func awsRestjson1_deserializeOpDocumentSearchDataSetsOutput(v **SearchDataSetsOu return nil } -type awsRestjson1_deserializeOpSearchDataSources struct { +type awsRestjson1_deserializeOpListTemplateVersions struct { } -func (*awsRestjson1_deserializeOpSearchDataSources) ID() string { +func (*awsRestjson1_deserializeOpListTemplateVersions) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpSearchDataSources) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListTemplateVersions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -20564,12 +20475,12 @@ func (m *awsRestjson1_deserializeOpSearchDataSources) HandleDeserialize(ctx cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorSearchDataSources(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListTemplateVersions(response, &metadata) } - output := &SearchDataSourcesOutput{} + output := &ListTemplateVersionsOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsSearchDataSourcesOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsListTemplateVersionsOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -20592,7 +20503,7 @@ func (m *awsRestjson1_deserializeOpSearchDataSources) HandleDeserialize(ctx cont return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentSearchDataSourcesOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListTemplateVersionsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -20605,7 +20516,7 @@ func (m *awsRestjson1_deserializeOpSearchDataSources) HandleDeserialize(ctx cont return out, metadata, err } -func awsRestjson1_deserializeOpErrorSearchDataSources(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListTemplateVersions(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -20646,9 +20557,6 @@ func awsRestjson1_deserializeOpErrorSearchDataSources(response *smithyhttp.Respo } switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) @@ -20664,6 +20572,9 @@ func awsRestjson1_deserializeOpErrorSearchDataSources(response *smithyhttp.Respo case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + case strings.EqualFold("UnsupportedUserEditionException", errorCode): + return awsRestjson1_deserializeErrorUnsupportedUserEditionException(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -20674,7 +20585,7 @@ func awsRestjson1_deserializeOpErrorSearchDataSources(response *smithyhttp.Respo } } -func awsRestjson1_deserializeOpHttpBindingsSearchDataSourcesOutput(v *SearchDataSourcesOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsListTemplateVersionsOutput(v *ListTemplateVersionsOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -20683,7 +20594,7 @@ func awsRestjson1_deserializeOpHttpBindingsSearchDataSourcesOutput(v *SearchData return nil } -func awsRestjson1_deserializeOpDocumentSearchDataSourcesOutput(v **SearchDataSourcesOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListTemplateVersionsOutput(v **ListTemplateVersionsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -20696,20 +20607,15 @@ func awsRestjson1_deserializeOpDocumentSearchDataSourcesOutput(v **SearchDataSou return fmt.Errorf("unexpected JSON type %v", value) } - var sv *SearchDataSourcesOutput + var sv *ListTemplateVersionsOutput if *v == nil { - sv = &SearchDataSourcesOutput{} + sv = &ListTemplateVersionsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "DataSourceSummaries": - if err := awsRestjson1_deserializeDocumentDataSourceSummaryList(&sv.DataSourceSummaries, value); err != nil { - return err - } - case "NextToken": if value != nil { jtv, ok := value.(string) @@ -20728,6 +20634,11 @@ func awsRestjson1_deserializeOpDocumentSearchDataSourcesOutput(v **SearchDataSou sv.RequestId = ptr.String(jtv) } + case "TemplateVersionSummaryList": + if err := awsRestjson1_deserializeDocumentTemplateVersionSummaryList(&sv.TemplateVersionSummaryList, value); err != nil { + return err + } + default: _, _ = key, value @@ -20737,14 +20648,14 @@ func awsRestjson1_deserializeOpDocumentSearchDataSourcesOutput(v **SearchDataSou return nil } -type awsRestjson1_deserializeOpSearchFolders struct { +type awsRestjson1_deserializeOpListThemeAliases struct { } -func (*awsRestjson1_deserializeOpSearchFolders) ID() string { +func (*awsRestjson1_deserializeOpListThemeAliases) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpSearchFolders) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListThemeAliases) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -20758,12 +20669,12 @@ func (m *awsRestjson1_deserializeOpSearchFolders) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorSearchFolders(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListThemeAliases(response, &metadata) } - output := &SearchFoldersOutput{} + output := &ListThemeAliasesOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsSearchFoldersOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsListThemeAliasesOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -20786,7 +20697,7 @@ func (m *awsRestjson1_deserializeOpSearchFolders) HandleDeserialize(ctx context. return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentSearchFoldersOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListThemeAliasesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -20799,7 +20710,7 @@ func (m *awsRestjson1_deserializeOpSearchFolders) HandleDeserialize(ctx context. return out, metadata, err } -func awsRestjson1_deserializeOpErrorSearchFolders(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListThemeAliases(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -20840,8 +20751,8 @@ func awsRestjson1_deserializeOpErrorSearchFolders(response *smithyhttp.Response, } switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) @@ -20852,9 +20763,6 @@ func awsRestjson1_deserializeOpErrorSearchFolders(response *smithyhttp.Response, case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) - case strings.EqualFold("InvalidRequestException", errorCode): - return awsRestjson1_deserializeErrorInvalidRequestException(response, errorBody) - case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) @@ -20874,7 +20782,7 @@ func awsRestjson1_deserializeOpErrorSearchFolders(response *smithyhttp.Response, } } -func awsRestjson1_deserializeOpHttpBindingsSearchFoldersOutput(v *SearchFoldersOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsListThemeAliasesOutput(v *ListThemeAliasesOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -20883,7 +20791,7 @@ func awsRestjson1_deserializeOpHttpBindingsSearchFoldersOutput(v *SearchFoldersO return nil } -func awsRestjson1_deserializeOpDocumentSearchFoldersOutput(v **SearchFoldersOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListThemeAliasesOutput(v **ListThemeAliasesOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -20896,20 +20804,15 @@ func awsRestjson1_deserializeOpDocumentSearchFoldersOutput(v **SearchFoldersOutp return fmt.Errorf("unexpected JSON type %v", value) } - var sv *SearchFoldersOutput + var sv *ListThemeAliasesOutput if *v == nil { - sv = &SearchFoldersOutput{} + sv = &ListThemeAliasesOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "FolderSummaryList": - if err := awsRestjson1_deserializeDocumentFolderSummaryList(&sv.FolderSummaryList, value); err != nil { - return err - } - case "NextToken": if value != nil { jtv, ok := value.(string) @@ -20928,6 +20831,11 @@ func awsRestjson1_deserializeOpDocumentSearchFoldersOutput(v **SearchFoldersOutp sv.RequestId = ptr.String(jtv) } + case "ThemeAliasList": + if err := awsRestjson1_deserializeDocumentThemeAliasList(&sv.ThemeAliasList, value); err != nil { + return err + } + default: _, _ = key, value @@ -20937,14 +20845,14 @@ func awsRestjson1_deserializeOpDocumentSearchFoldersOutput(v **SearchFoldersOutp return nil } -type awsRestjson1_deserializeOpSearchGroups struct { +type awsRestjson1_deserializeOpListThemes struct { } -func (*awsRestjson1_deserializeOpSearchGroups) ID() string { +func (*awsRestjson1_deserializeOpListThemes) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpSearchGroups) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListThemes) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -20958,12 +20866,12 @@ func (m *awsRestjson1_deserializeOpSearchGroups) HandleDeserialize(ctx context.C } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorSearchGroups(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListThemes(response, &metadata) } - output := &SearchGroupsOutput{} + output := &ListThemesOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsSearchGroupsOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsListThemesOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -20986,7 +20894,7 @@ func (m *awsRestjson1_deserializeOpSearchGroups) HandleDeserialize(ctx context.C return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentSearchGroupsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListThemesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -20999,7 +20907,7 @@ func (m *awsRestjson1_deserializeOpSearchGroups) HandleDeserialize(ctx context.C return out, metadata, err } -func awsRestjson1_deserializeOpErrorSearchGroups(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListThemes(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -21052,18 +20960,15 @@ func awsRestjson1_deserializeOpErrorSearchGroups(response *smithyhttp.Response, case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) - case strings.EqualFold("PreconditionNotMetException", errorCode): - return awsRestjson1_deserializeErrorPreconditionNotMetException(response, errorBody) - case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - case strings.EqualFold("ResourceUnavailableException", errorCode): - return awsRestjson1_deserializeErrorResourceUnavailableException(response, errorBody) - case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + case strings.EqualFold("UnsupportedUserEditionException", errorCode): + return awsRestjson1_deserializeErrorUnsupportedUserEditionException(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -21074,7 +20979,7 @@ func awsRestjson1_deserializeOpErrorSearchGroups(response *smithyhttp.Response, } } -func awsRestjson1_deserializeOpHttpBindingsSearchGroupsOutput(v *SearchGroupsOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsListThemesOutput(v *ListThemesOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -21083,7 +20988,7 @@ func awsRestjson1_deserializeOpHttpBindingsSearchGroupsOutput(v *SearchGroupsOut return nil } -func awsRestjson1_deserializeOpDocumentSearchGroupsOutput(v **SearchGroupsOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListThemesOutput(v **ListThemesOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -21096,20 +21001,15 @@ func awsRestjson1_deserializeOpDocumentSearchGroupsOutput(v **SearchGroupsOutput return fmt.Errorf("unexpected JSON type %v", value) } - var sv *SearchGroupsOutput + var sv *ListThemesOutput if *v == nil { - sv = &SearchGroupsOutput{} + sv = &ListThemesOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "GroupList": - if err := awsRestjson1_deserializeDocumentGroupList(&sv.GroupList, value); err != nil { - return err - } - case "NextToken": if value != nil { jtv, ok := value.(string) @@ -21128,6 +21028,11 @@ func awsRestjson1_deserializeOpDocumentSearchGroupsOutput(v **SearchGroupsOutput sv.RequestId = ptr.String(jtv) } + case "ThemeSummaryList": + if err := awsRestjson1_deserializeDocumentThemeSummaryList(&sv.ThemeSummaryList, value); err != nil { + return err + } + default: _, _ = key, value @@ -21137,14 +21042,14 @@ func awsRestjson1_deserializeOpDocumentSearchGroupsOutput(v **SearchGroupsOutput return nil } -type awsRestjson1_deserializeOpTagResource struct { +type awsRestjson1_deserializeOpListThemeVersions struct { } -func (*awsRestjson1_deserializeOpTagResource) ID() string { +func (*awsRestjson1_deserializeOpListThemeVersions) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpTagResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListThemeVersions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -21158,12 +21063,12 @@ func (m *awsRestjson1_deserializeOpTagResource) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorTagResource(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListThemeVersions(response, &metadata) } - output := &TagResourceOutput{} + output := &ListThemeVersionsOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsTagResourceOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsListThemeVersionsOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -21186,7 +21091,7 @@ func (m *awsRestjson1_deserializeOpTagResource) HandleDeserialize(ctx context.Co return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentTagResourceOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListThemeVersionsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -21199,7 +21104,7 @@ func (m *awsRestjson1_deserializeOpTagResource) HandleDeserialize(ctx context.Co return out, metadata, err } -func awsRestjson1_deserializeOpErrorTagResource(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListThemeVersions(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -21246,18 +21151,21 @@ func awsRestjson1_deserializeOpErrorTagResource(response *smithyhttp.Response, m case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) + case strings.EqualFold("InvalidNextTokenException", errorCode): + return awsRestjson1_deserializeErrorInvalidNextTokenException(response, errorBody) + case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) - case strings.EqualFold("LimitExceededException", errorCode): - return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody) - case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + case strings.EqualFold("UnsupportedUserEditionException", errorCode): + return awsRestjson1_deserializeErrorUnsupportedUserEditionException(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -21268,7 +21176,7 @@ func awsRestjson1_deserializeOpErrorTagResource(response *smithyhttp.Response, m } } -func awsRestjson1_deserializeOpHttpBindingsTagResourceOutput(v *TagResourceOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsListThemeVersionsOutput(v *ListThemeVersionsOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -21277,7 +21185,7 @@ func awsRestjson1_deserializeOpHttpBindingsTagResourceOutput(v *TagResourceOutpu return nil } -func awsRestjson1_deserializeOpDocumentTagResourceOutput(v **TagResourceOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListThemeVersionsOutput(v **ListThemeVersionsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -21290,15 +21198,24 @@ func awsRestjson1_deserializeOpDocumentTagResourceOutput(v **TagResourceOutput, return fmt.Errorf("unexpected JSON type %v", value) } - var sv *TagResourceOutput + var sv *ListThemeVersionsOutput if *v == nil { - sv = &TagResourceOutput{} + sv = &ListThemeVersionsOutput{} } else { sv = *v } for key, value := range shape { switch key { + case "NextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + case "RequestId": if value != nil { jtv, ok := value.(string) @@ -21308,6 +21225,11 @@ func awsRestjson1_deserializeOpDocumentTagResourceOutput(v **TagResourceOutput, sv.RequestId = ptr.String(jtv) } + case "ThemeVersionSummaryList": + if err := awsRestjson1_deserializeDocumentThemeVersionSummaryList(&sv.ThemeVersionSummaryList, value); err != nil { + return err + } + default: _, _ = key, value @@ -21317,14 +21239,14 @@ func awsRestjson1_deserializeOpDocumentTagResourceOutput(v **TagResourceOutput, return nil } -type awsRestjson1_deserializeOpUntagResource struct { +type awsRestjson1_deserializeOpListTopicRefreshSchedules struct { } -func (*awsRestjson1_deserializeOpUntagResource) ID() string { +func (*awsRestjson1_deserializeOpListTopicRefreshSchedules) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpUntagResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListTopicRefreshSchedules) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -21338,12 +21260,12 @@ func (m *awsRestjson1_deserializeOpUntagResource) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorUntagResource(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListTopicRefreshSchedules(response, &metadata) } - output := &UntagResourceOutput{} + output := &ListTopicRefreshSchedulesOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsUntagResourceOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsListTopicRefreshSchedulesOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -21366,7 +21288,7 @@ func (m *awsRestjson1_deserializeOpUntagResource) HandleDeserialize(ctx context. return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentUntagResourceOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListTopicRefreshSchedulesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -21379,7 +21301,7 @@ func (m *awsRestjson1_deserializeOpUntagResource) HandleDeserialize(ctx context. return out, metadata, err } -func awsRestjson1_deserializeOpErrorUntagResource(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListTopicRefreshSchedules(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -21423,12 +21345,21 @@ func awsRestjson1_deserializeOpErrorUntagResource(response *smithyhttp.Response, case strings.EqualFold("AccessDeniedException", errorCode): return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) + case strings.EqualFold("LimitExceededException", errorCode): + return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody) + + case strings.EqualFold("ResourceExistsException", errorCode): + return awsRestjson1_deserializeErrorResourceExistsException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) @@ -21445,7 +21376,7 @@ func awsRestjson1_deserializeOpErrorUntagResource(response *smithyhttp.Response, } } -func awsRestjson1_deserializeOpHttpBindingsUntagResourceOutput(v *UntagResourceOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsListTopicRefreshSchedulesOutput(v *ListTopicRefreshSchedulesOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -21454,7 +21385,7 @@ func awsRestjson1_deserializeOpHttpBindingsUntagResourceOutput(v *UntagResourceO return nil } -func awsRestjson1_deserializeOpDocumentUntagResourceOutput(v **UntagResourceOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListTopicRefreshSchedulesOutput(v **ListTopicRefreshSchedulesOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -21467,15 +21398,20 @@ func awsRestjson1_deserializeOpDocumentUntagResourceOutput(v **UntagResourceOutp return fmt.Errorf("unexpected JSON type %v", value) } - var sv *UntagResourceOutput + var sv *ListTopicRefreshSchedulesOutput if *v == nil { - sv = &UntagResourceOutput{} + sv = &ListTopicRefreshSchedulesOutput{} } else { sv = *v } for key, value := range shape { switch key { + case "RefreshSchedules": + if err := awsRestjson1_deserializeDocumentTopicRefreshScheduleSummaries(&sv.RefreshSchedules, value); err != nil { + return err + } + case "RequestId": if value != nil { jtv, ok := value.(string) @@ -21485,6 +21421,24 @@ func awsRestjson1_deserializeOpDocumentUntagResourceOutput(v **UntagResourceOutp sv.RequestId = ptr.String(jtv) } + case "TopicArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.TopicArn = ptr.String(jtv) + } + + case "TopicId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TopicId to be of type string, got %T instead", value) + } + sv.TopicId = ptr.String(jtv) + } + default: _, _ = key, value @@ -21494,14 +21448,14 @@ func awsRestjson1_deserializeOpDocumentUntagResourceOutput(v **UntagResourceOutp return nil } -type awsRestjson1_deserializeOpUpdateAccountCustomization struct { +type awsRestjson1_deserializeOpListTopics struct { } -func (*awsRestjson1_deserializeOpUpdateAccountCustomization) ID() string { +func (*awsRestjson1_deserializeOpListTopics) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpUpdateAccountCustomization) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListTopics) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -21515,12 +21469,12 @@ func (m *awsRestjson1_deserializeOpUpdateAccountCustomization) HandleDeserialize } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorUpdateAccountCustomization(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListTopics(response, &metadata) } - output := &UpdateAccountCustomizationOutput{} + output := &ListTopicsOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsUpdateAccountCustomizationOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsListTopicsOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -21543,7 +21497,7 @@ func (m *awsRestjson1_deserializeOpUpdateAccountCustomization) HandleDeserialize return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentUpdateAccountCustomizationOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListTopicsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -21556,7 +21510,7 @@ func (m *awsRestjson1_deserializeOpUpdateAccountCustomization) HandleDeserialize return out, metadata, err } -func awsRestjson1_deserializeOpErrorUpdateAccountCustomization(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListTopics(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -21600,21 +21554,15 @@ func awsRestjson1_deserializeOpErrorUpdateAccountCustomization(response *smithyh case strings.EqualFold("AccessDeniedException", errorCode): return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - case strings.EqualFold("ConflictException", errorCode): - return awsRestjson1_deserializeErrorConflictException(response, errorBody) - case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) + case strings.EqualFold("InvalidNextTokenException", errorCode): + return awsRestjson1_deserializeErrorInvalidNextTokenException(response, errorBody) + case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - - case strings.EqualFold("ResourceUnavailableException", errorCode): - return awsRestjson1_deserializeErrorResourceUnavailableException(response, errorBody) - case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) @@ -21628,7 +21576,7 @@ func awsRestjson1_deserializeOpErrorUpdateAccountCustomization(response *smithyh } } -func awsRestjson1_deserializeOpHttpBindingsUpdateAccountCustomizationOutput(v *UpdateAccountCustomizationOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsListTopicsOutput(v *ListTopicsOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -21637,7 +21585,7 @@ func awsRestjson1_deserializeOpHttpBindingsUpdateAccountCustomizationOutput(v *U return nil } -func awsRestjson1_deserializeOpDocumentUpdateAccountCustomizationOutput(v **UpdateAccountCustomizationOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListTopicsOutput(v **ListTopicsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -21650,45 +21598,22 @@ func awsRestjson1_deserializeOpDocumentUpdateAccountCustomizationOutput(v **Upda return fmt.Errorf("unexpected JSON type %v", value) } - var sv *UpdateAccountCustomizationOutput + var sv *ListTopicsOutput if *v == nil { - sv = &UpdateAccountCustomizationOutput{} + sv = &ListTopicsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "AccountCustomization": - if err := awsRestjson1_deserializeDocumentAccountCustomization(&sv.AccountCustomization, value); err != nil { - return err - } - - case "Arn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.Arn = ptr.String(jtv) - } - - case "AwsAccountId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected AwsAccountId to be of type string, got %T instead", value) - } - sv.AwsAccountId = ptr.String(jtv) - } - - case "Namespace": + case "NextToken": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Namespace to be of type string, got %T instead", value) + return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Namespace = ptr.String(jtv) + sv.NextToken = ptr.String(jtv) } case "RequestId": @@ -21700,6 +21625,11 @@ func awsRestjson1_deserializeOpDocumentUpdateAccountCustomizationOutput(v **Upda sv.RequestId = ptr.String(jtv) } + case "TopicsSummaries": + if err := awsRestjson1_deserializeDocumentTopicSummaries(&sv.TopicsSummaries, value); err != nil { + return err + } + default: _, _ = key, value @@ -21709,14 +21639,14 @@ func awsRestjson1_deserializeOpDocumentUpdateAccountCustomizationOutput(v **Upda return nil } -type awsRestjson1_deserializeOpUpdateAccountSettings struct { +type awsRestjson1_deserializeOpListUserGroups struct { } -func (*awsRestjson1_deserializeOpUpdateAccountSettings) ID() string { +func (*awsRestjson1_deserializeOpListUserGroups) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpUpdateAccountSettings) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListUserGroups) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -21730,12 +21660,12 @@ func (m *awsRestjson1_deserializeOpUpdateAccountSettings) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorUpdateAccountSettings(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListUserGroups(response, &metadata) } - output := &UpdateAccountSettingsOutput{} + output := &ListUserGroupsOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsUpdateAccountSettingsOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsListUserGroupsOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -21758,7 +21688,7 @@ func (m *awsRestjson1_deserializeOpUpdateAccountSettings) HandleDeserialize(ctx return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentUpdateAccountSettingsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListUserGroupsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -21771,7 +21701,7 @@ func (m *awsRestjson1_deserializeOpUpdateAccountSettings) HandleDeserialize(ctx return out, metadata, err } -func awsRestjson1_deserializeOpErrorUpdateAccountSettings(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListUserGroups(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -21821,6 +21751,9 @@ func awsRestjson1_deserializeOpErrorUpdateAccountSettings(response *smithyhttp.R case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) + case strings.EqualFold("PreconditionNotMetException", errorCode): + return awsRestjson1_deserializeErrorPreconditionNotMetException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) @@ -21840,7 +21773,7 @@ func awsRestjson1_deserializeOpErrorUpdateAccountSettings(response *smithyhttp.R } } -func awsRestjson1_deserializeOpHttpBindingsUpdateAccountSettingsOutput(v *UpdateAccountSettingsOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsListUserGroupsOutput(v *ListUserGroupsOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -21849,7 +21782,7 @@ func awsRestjson1_deserializeOpHttpBindingsUpdateAccountSettingsOutput(v *Update return nil } -func awsRestjson1_deserializeOpDocumentUpdateAccountSettingsOutput(v **UpdateAccountSettingsOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListUserGroupsOutput(v **ListUserGroupsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -21862,15 +21795,29 @@ func awsRestjson1_deserializeOpDocumentUpdateAccountSettingsOutput(v **UpdateAcc return fmt.Errorf("unexpected JSON type %v", value) } - var sv *UpdateAccountSettingsOutput + var sv *ListUserGroupsOutput if *v == nil { - sv = &UpdateAccountSettingsOutput{} + sv = &ListUserGroupsOutput{} } else { sv = *v } for key, value := range shape { switch key { + case "GroupList": + if err := awsRestjson1_deserializeDocumentGroupList(&sv.GroupList, value); err != nil { + return err + } + + case "NextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + case "RequestId": if value != nil { jtv, ok := value.(string) @@ -21889,14 +21836,14 @@ func awsRestjson1_deserializeOpDocumentUpdateAccountSettingsOutput(v **UpdateAcc return nil } -type awsRestjson1_deserializeOpUpdateAnalysis struct { +type awsRestjson1_deserializeOpListUsers struct { } -func (*awsRestjson1_deserializeOpUpdateAnalysis) ID() string { +func (*awsRestjson1_deserializeOpListUsers) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpUpdateAnalysis) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListUsers) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -21910,12 +21857,12 @@ func (m *awsRestjson1_deserializeOpUpdateAnalysis) HandleDeserialize(ctx context } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorUpdateAnalysis(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListUsers(response, &metadata) } - output := &UpdateAnalysisOutput{} + output := &ListUsersOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsUpdateAnalysisOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsListUsersOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -21938,7 +21885,7 @@ func (m *awsRestjson1_deserializeOpUpdateAnalysis) HandleDeserialize(ctx context return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentUpdateAnalysisOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListUsersOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -21951,7 +21898,7 @@ func (m *awsRestjson1_deserializeOpUpdateAnalysis) HandleDeserialize(ctx context return out, metadata, err } -func awsRestjson1_deserializeOpErrorUpdateAnalysis(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListUsers(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -21992,27 +21939,30 @@ func awsRestjson1_deserializeOpErrorUpdateAnalysis(response *smithyhttp.Response } switch { - case strings.EqualFold("ConflictException", errorCode): - return awsRestjson1_deserializeErrorConflictException(response, errorBody) + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) + case strings.EqualFold("InvalidNextTokenException", errorCode): + return awsRestjson1_deserializeErrorInvalidNextTokenException(response, errorBody) + case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) - case strings.EqualFold("ResourceExistsException", errorCode): - return awsRestjson1_deserializeErrorResourceExistsException(response, errorBody) + case strings.EqualFold("PreconditionNotMetException", errorCode): + return awsRestjson1_deserializeErrorPreconditionNotMetException(response, errorBody) case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + case strings.EqualFold("ResourceUnavailableException", errorCode): + return awsRestjson1_deserializeErrorResourceUnavailableException(response, errorBody) + case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - case strings.EqualFold("UnsupportedUserEditionException", errorCode): - return awsRestjson1_deserializeErrorUnsupportedUserEditionException(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -22023,7 +21973,7 @@ func awsRestjson1_deserializeOpErrorUpdateAnalysis(response *smithyhttp.Response } } -func awsRestjson1_deserializeOpHttpBindingsUpdateAnalysisOutput(v *UpdateAnalysisOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsListUsersOutput(v *ListUsersOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -22032,7 +21982,7 @@ func awsRestjson1_deserializeOpHttpBindingsUpdateAnalysisOutput(v *UpdateAnalysi return nil } -func awsRestjson1_deserializeOpDocumentUpdateAnalysisOutput(v **UpdateAnalysisOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListUsersOutput(v **ListUsersOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -22045,31 +21995,22 @@ func awsRestjson1_deserializeOpDocumentUpdateAnalysisOutput(v **UpdateAnalysisOu return fmt.Errorf("unexpected JSON type %v", value) } - var sv *UpdateAnalysisOutput + var sv *ListUsersOutput if *v == nil { - sv = &UpdateAnalysisOutput{} + sv = &ListUsersOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "AnalysisId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) - } - sv.AnalysisId = ptr.String(jtv) - } - - case "Arn": + case "NextToken": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Arn = ptr.String(jtv) + sv.NextToken = ptr.String(jtv) } case "RequestId": @@ -22081,13 +22022,9 @@ func awsRestjson1_deserializeOpDocumentUpdateAnalysisOutput(v **UpdateAnalysisOu sv.RequestId = ptr.String(jtv) } - case "UpdateStatus": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ResourceStatus to be of type string, got %T instead", value) - } - sv.UpdateStatus = types.ResourceStatus(jtv) + case "UserList": + if err := awsRestjson1_deserializeDocumentUserList(&sv.UserList, value); err != nil { + return err } default: @@ -22099,14 +22036,14 @@ func awsRestjson1_deserializeOpDocumentUpdateAnalysisOutput(v **UpdateAnalysisOu return nil } -type awsRestjson1_deserializeOpUpdateAnalysisPermissions struct { +type awsRestjson1_deserializeOpListVPCConnections struct { } -func (*awsRestjson1_deserializeOpUpdateAnalysisPermissions) ID() string { +func (*awsRestjson1_deserializeOpListVPCConnections) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpUpdateAnalysisPermissions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListVPCConnections) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -22120,12 +22057,12 @@ func (m *awsRestjson1_deserializeOpUpdateAnalysisPermissions) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorUpdateAnalysisPermissions(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListVPCConnections(response, &metadata) } - output := &UpdateAnalysisPermissionsOutput{} + output := &ListVPCConnectionsOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsUpdateAnalysisPermissionsOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsListVPCConnectionsOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -22148,7 +22085,7 @@ func (m *awsRestjson1_deserializeOpUpdateAnalysisPermissions) HandleDeserialize( return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentUpdateAnalysisPermissionsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListVPCConnectionsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -22161,7 +22098,7 @@ func (m *awsRestjson1_deserializeOpUpdateAnalysisPermissions) HandleDeserialize( return out, metadata, err } -func awsRestjson1_deserializeOpErrorUpdateAnalysisPermissions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListVPCConnections(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -22202,21 +22139,18 @@ func awsRestjson1_deserializeOpErrorUpdateAnalysisPermissions(response *smithyht } switch { - case strings.EqualFold("ConflictException", errorCode): - return awsRestjson1_deserializeErrorConflictException(response, errorBody) + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) + case strings.EqualFold("InvalidNextTokenException", errorCode): + return awsRestjson1_deserializeErrorInvalidNextTokenException(response, errorBody) + case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) - case strings.EqualFold("LimitExceededException", errorCode): - return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody) - - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) @@ -22233,7 +22167,7 @@ func awsRestjson1_deserializeOpErrorUpdateAnalysisPermissions(response *smithyht } } -func awsRestjson1_deserializeOpHttpBindingsUpdateAnalysisPermissionsOutput(v *UpdateAnalysisPermissionsOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsListVPCConnectionsOutput(v *ListVPCConnectionsOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -22242,7 +22176,7 @@ func awsRestjson1_deserializeOpHttpBindingsUpdateAnalysisPermissionsOutput(v *Up return nil } -func awsRestjson1_deserializeOpDocumentUpdateAnalysisPermissionsOutput(v **UpdateAnalysisPermissionsOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListVPCConnectionsOutput(v **ListVPCConnectionsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -22255,36 +22189,22 @@ func awsRestjson1_deserializeOpDocumentUpdateAnalysisPermissionsOutput(v **Updat return fmt.Errorf("unexpected JSON type %v", value) } - var sv *UpdateAnalysisPermissionsOutput + var sv *ListVPCConnectionsOutput if *v == nil { - sv = &UpdateAnalysisPermissionsOutput{} + sv = &ListVPCConnectionsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "AnalysisArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.AnalysisArn = ptr.String(jtv) - } - - case "AnalysisId": + case "NextToken": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.AnalysisId = ptr.String(jtv) - } - - case "Permissions": - if err := awsRestjson1_deserializeDocumentResourcePermissionList(&sv.Permissions, value); err != nil { - return err + sv.NextToken = ptr.String(jtv) } case "RequestId": @@ -22296,6 +22216,11 @@ func awsRestjson1_deserializeOpDocumentUpdateAnalysisPermissionsOutput(v **Updat sv.RequestId = ptr.String(jtv) } + case "VPCConnectionSummaries": + if err := awsRestjson1_deserializeDocumentVPCConnectionSummaryList(&sv.VPCConnectionSummaries, value); err != nil { + return err + } + default: _, _ = key, value @@ -22305,14 +22230,14 @@ func awsRestjson1_deserializeOpDocumentUpdateAnalysisPermissionsOutput(v **Updat return nil } -type awsRestjson1_deserializeOpUpdateDashboard struct { +type awsRestjson1_deserializeOpPutDataSetRefreshProperties struct { } -func (*awsRestjson1_deserializeOpUpdateDashboard) ID() string { +func (*awsRestjson1_deserializeOpPutDataSetRefreshProperties) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpUpdateDashboard) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpPutDataSetRefreshProperties) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -22326,11 +22251,16 @@ func (m *awsRestjson1_deserializeOpUpdateDashboard) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorUpdateDashboard(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorPutDataSetRefreshProperties(response, &metadata) } - output := &UpdateDashboardOutput{} + output := &PutDataSetRefreshPropertiesOutput{} out.Result = output + err = awsRestjson1_deserializeOpHttpBindingsPutDataSetRefreshPropertiesOutput(output, response) + if err != nil { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} + } + var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) @@ -22349,7 +22279,7 @@ func (m *awsRestjson1_deserializeOpUpdateDashboard) HandleDeserialize(ctx contex return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentUpdateDashboardOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentPutDataSetRefreshPropertiesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -22362,7 +22292,7 @@ func (m *awsRestjson1_deserializeOpUpdateDashboard) HandleDeserialize(ctx contex return out, metadata, err } -func awsRestjson1_deserializeOpErrorUpdateDashboard(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorPutDataSetRefreshProperties(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -22403,6 +22333,9 @@ func awsRestjson1_deserializeOpErrorUpdateDashboard(response *smithyhttp.Respons } switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + case strings.EqualFold("ConflictException", errorCode): return awsRestjson1_deserializeErrorConflictException(response, errorBody) @@ -22415,15 +22348,15 @@ func awsRestjson1_deserializeOpErrorUpdateDashboard(response *smithyhttp.Respons case strings.EqualFold("LimitExceededException", errorCode): return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody) + case strings.EqualFold("PreconditionNotMetException", errorCode): + return awsRestjson1_deserializeErrorPreconditionNotMetException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - case strings.EqualFold("UnsupportedUserEditionException", errorCode): - return awsRestjson1_deserializeErrorUnsupportedUserEditionException(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -22434,7 +22367,16 @@ func awsRestjson1_deserializeOpErrorUpdateDashboard(response *smithyhttp.Respons } } -func awsRestjson1_deserializeOpDocumentUpdateDashboardOutput(v **UpdateDashboardOutput, value interface{}) error { +func awsRestjson1_deserializeOpHttpBindingsPutDataSetRefreshPropertiesOutput(v *PutDataSetRefreshPropertiesOutput, response *smithyhttp.Response) error { + if v == nil { + return fmt.Errorf("unsupported deserialization for nil %T", v) + } + + v.Status = int32(response.StatusCode) + + return nil +} +func awsRestjson1_deserializeOpDocumentPutDataSetRefreshPropertiesOutput(v **PutDataSetRefreshPropertiesOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -22447,42 +22389,15 @@ func awsRestjson1_deserializeOpDocumentUpdateDashboardOutput(v **UpdateDashboard return fmt.Errorf("unexpected JSON type %v", value) } - var sv *UpdateDashboardOutput + var sv *PutDataSetRefreshPropertiesOutput if *v == nil { - sv = &UpdateDashboardOutput{} + sv = &PutDataSetRefreshPropertiesOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "Arn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.Arn = ptr.String(jtv) - } - - case "CreationStatus": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ResourceStatus to be of type string, got %T instead", value) - } - sv.CreationStatus = types.ResourceStatus(jtv) - } - - case "DashboardId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) - } - sv.DashboardId = ptr.String(jtv) - } - case "RequestId": if value != nil { jtv, ok := value.(string) @@ -22492,28 +22407,6 @@ func awsRestjson1_deserializeOpDocumentUpdateDashboardOutput(v **UpdateDashboard sv.RequestId = ptr.String(jtv) } - case "Status": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected StatusCode to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.Status = int32(i64) - } - - case "VersionArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.VersionArn = ptr.String(jtv) - } - default: _, _ = key, value @@ -22523,14 +22416,14 @@ func awsRestjson1_deserializeOpDocumentUpdateDashboardOutput(v **UpdateDashboard return nil } -type awsRestjson1_deserializeOpUpdateDashboardPermissions struct { +type awsRestjson1_deserializeOpRegisterUser struct { } -func (*awsRestjson1_deserializeOpUpdateDashboardPermissions) ID() string { +func (*awsRestjson1_deserializeOpRegisterUser) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpUpdateDashboardPermissions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpRegisterUser) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -22544,12 +22437,12 @@ func (m *awsRestjson1_deserializeOpUpdateDashboardPermissions) HandleDeserialize } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorUpdateDashboardPermissions(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorRegisterUser(response, &metadata) } - output := &UpdateDashboardPermissionsOutput{} + output := &RegisterUserOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsUpdateDashboardPermissionsOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsRegisterUserOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -22572,7 +22465,7 @@ func (m *awsRestjson1_deserializeOpUpdateDashboardPermissions) HandleDeserialize return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentUpdateDashboardPermissionsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentRegisterUserOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -22585,7 +22478,7 @@ func (m *awsRestjson1_deserializeOpUpdateDashboardPermissions) HandleDeserialize return out, metadata, err } -func awsRestjson1_deserializeOpErrorUpdateDashboardPermissions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorRegisterUser(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -22626,8 +22519,8 @@ func awsRestjson1_deserializeOpErrorUpdateDashboardPermissions(response *smithyh } switch { - case strings.EqualFold("ConflictException", errorCode): - return awsRestjson1_deserializeErrorConflictException(response, errorBody) + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) @@ -22638,15 +22531,21 @@ func awsRestjson1_deserializeOpErrorUpdateDashboardPermissions(response *smithyh case strings.EqualFold("LimitExceededException", errorCode): return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody) + case strings.EqualFold("PreconditionNotMetException", errorCode): + return awsRestjson1_deserializeErrorPreconditionNotMetException(response, errorBody) + + case strings.EqualFold("ResourceExistsException", errorCode): + return awsRestjson1_deserializeErrorResourceExistsException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + case strings.EqualFold("ResourceUnavailableException", errorCode): + return awsRestjson1_deserializeErrorResourceUnavailableException(response, errorBody) + case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - case strings.EqualFold("UnsupportedUserEditionException", errorCode): - return awsRestjson1_deserializeErrorUnsupportedUserEditionException(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -22657,7 +22556,7 @@ func awsRestjson1_deserializeOpErrorUpdateDashboardPermissions(response *smithyh } } -func awsRestjson1_deserializeOpHttpBindingsUpdateDashboardPermissionsOutput(v *UpdateDashboardPermissionsOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsRegisterUserOutput(v *RegisterUserOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -22666,7 +22565,7 @@ func awsRestjson1_deserializeOpHttpBindingsUpdateDashboardPermissionsOutput(v *U return nil } -func awsRestjson1_deserializeOpDocumentUpdateDashboardPermissionsOutput(v **UpdateDashboardPermissionsOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentRegisterUserOutput(v **RegisterUserOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -22679,50 +22578,36 @@ func awsRestjson1_deserializeOpDocumentUpdateDashboardPermissionsOutput(v **Upda return fmt.Errorf("unexpected JSON type %v", value) } - var sv *UpdateDashboardPermissionsOutput + var sv *RegisterUserOutput if *v == nil { - sv = &UpdateDashboardPermissionsOutput{} + sv = &RegisterUserOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "DashboardArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.DashboardArn = ptr.String(jtv) - } - - case "DashboardId": + case "RequestId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DashboardId = ptr.String(jtv) - } - - case "LinkSharingConfiguration": - if err := awsRestjson1_deserializeDocumentLinkSharingConfiguration(&sv.LinkSharingConfiguration, value); err != nil { - return err + sv.RequestId = ptr.String(jtv) } - case "Permissions": - if err := awsRestjson1_deserializeDocumentResourcePermissionList(&sv.Permissions, value); err != nil { + case "User": + if err := awsRestjson1_deserializeDocumentUser(&sv.User, value); err != nil { return err } - case "RequestId": + case "UserInvitationUrl": if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = ptr.String(jtv) + sv.UserInvitationUrl = ptr.String(jtv) } default: @@ -22734,14 +22619,14 @@ func awsRestjson1_deserializeOpDocumentUpdateDashboardPermissionsOutput(v **Upda return nil } -type awsRestjson1_deserializeOpUpdateDashboardPublishedVersion struct { +type awsRestjson1_deserializeOpRestoreAnalysis struct { } -func (*awsRestjson1_deserializeOpUpdateDashboardPublishedVersion) ID() string { +func (*awsRestjson1_deserializeOpRestoreAnalysis) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpUpdateDashboardPublishedVersion) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpRestoreAnalysis) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -22755,12 +22640,12 @@ func (m *awsRestjson1_deserializeOpUpdateDashboardPublishedVersion) HandleDeseri } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorUpdateDashboardPublishedVersion(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorRestoreAnalysis(response, &metadata) } - output := &UpdateDashboardPublishedVersionOutput{} + output := &RestoreAnalysisOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsUpdateDashboardPublishedVersionOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsRestoreAnalysisOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -22783,7 +22668,7 @@ func (m *awsRestjson1_deserializeOpUpdateDashboardPublishedVersion) HandleDeseri return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentUpdateDashboardPublishedVersionOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentRestoreAnalysisOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -22796,7 +22681,7 @@ func (m *awsRestjson1_deserializeOpUpdateDashboardPublishedVersion) HandleDeseri return out, metadata, err } -func awsRestjson1_deserializeOpErrorUpdateDashboardPublishedVersion(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorRestoreAnalysis(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -22865,7 +22750,7 @@ func awsRestjson1_deserializeOpErrorUpdateDashboardPublishedVersion(response *sm } } -func awsRestjson1_deserializeOpHttpBindingsUpdateDashboardPublishedVersionOutput(v *UpdateDashboardPublishedVersionOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsRestoreAnalysisOutput(v *RestoreAnalysisOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -22874,7 +22759,7 @@ func awsRestjson1_deserializeOpHttpBindingsUpdateDashboardPublishedVersionOutput return nil } -func awsRestjson1_deserializeOpDocumentUpdateDashboardPublishedVersionOutput(v **UpdateDashboardPublishedVersionOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentRestoreAnalysisOutput(v **RestoreAnalysisOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -22887,31 +22772,31 @@ func awsRestjson1_deserializeOpDocumentUpdateDashboardPublishedVersionOutput(v * return fmt.Errorf("unexpected JSON type %v", value) } - var sv *UpdateDashboardPublishedVersionOutput + var sv *RestoreAnalysisOutput if *v == nil { - sv = &UpdateDashboardPublishedVersionOutput{} + sv = &RestoreAnalysisOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "DashboardArn": + case "AnalysisId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) } - sv.DashboardArn = ptr.String(jtv) + sv.AnalysisId = ptr.String(jtv) } - case "DashboardId": + case "Arn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.DashboardId = ptr.String(jtv) + sv.Arn = ptr.String(jtv) } case "RequestId": @@ -22932,14 +22817,14 @@ func awsRestjson1_deserializeOpDocumentUpdateDashboardPublishedVersionOutput(v * return nil } -type awsRestjson1_deserializeOpUpdateDataSet struct { +type awsRestjson1_deserializeOpSearchAnalyses struct { } -func (*awsRestjson1_deserializeOpUpdateDataSet) ID() string { +func (*awsRestjson1_deserializeOpSearchAnalyses) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpUpdateDataSet) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpSearchAnalyses) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -22953,12 +22838,12 @@ func (m *awsRestjson1_deserializeOpUpdateDataSet) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorUpdateDataSet(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorSearchAnalyses(response, &metadata) } - output := &UpdateDataSetOutput{} + output := &SearchAnalysesOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsUpdateDataSetOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsSearchAnalysesOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -22981,7 +22866,7 @@ func (m *awsRestjson1_deserializeOpUpdateDataSet) HandleDeserialize(ctx context. return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentUpdateDataSetOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentSearchAnalysesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -22994,7 +22879,7 @@ func (m *awsRestjson1_deserializeOpUpdateDataSet) HandleDeserialize(ctx context. return out, metadata, err } -func awsRestjson1_deserializeOpErrorUpdateDataSet(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorSearchAnalyses(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -23035,21 +22920,15 @@ func awsRestjson1_deserializeOpErrorUpdateDataSet(response *smithyhttp.Response, } switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("ConflictException", errorCode): - return awsRestjson1_deserializeErrorConflictException(response, errorBody) - case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) + case strings.EqualFold("InvalidNextTokenException", errorCode): + return awsRestjson1_deserializeErrorInvalidNextTokenException(response, errorBody) + case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) - case strings.EqualFold("LimitExceededException", errorCode): - return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody) - case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) @@ -23069,7 +22948,7 @@ func awsRestjson1_deserializeOpErrorUpdateDataSet(response *smithyhttp.Response, } } -func awsRestjson1_deserializeOpHttpBindingsUpdateDataSetOutput(v *UpdateDataSetOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsSearchAnalysesOutput(v *SearchAnalysesOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -23078,7 +22957,7 @@ func awsRestjson1_deserializeOpHttpBindingsUpdateDataSetOutput(v *UpdateDataSetO return nil } -func awsRestjson1_deserializeOpDocumentUpdateDataSetOutput(v **UpdateDataSetOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentSearchAnalysesOutput(v **SearchAnalysesOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -23091,49 +22970,27 @@ func awsRestjson1_deserializeOpDocumentUpdateDataSetOutput(v **UpdateDataSetOutp return fmt.Errorf("unexpected JSON type %v", value) } - var sv *UpdateDataSetOutput + var sv *SearchAnalysesOutput if *v == nil { - sv = &UpdateDataSetOutput{} + sv = &SearchAnalysesOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "Arn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.Arn = ptr.String(jtv) - } - - case "DataSetId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) - } - sv.DataSetId = ptr.String(jtv) - } - - case "IngestionArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.IngestionArn = ptr.String(jtv) + case "AnalysisSummaryList": + if err := awsRestjson1_deserializeDocumentAnalysisSummaryList(&sv.AnalysisSummaryList, value); err != nil { + return err } - case "IngestionId": + case "NextToken": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) + return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.IngestionId = ptr.String(jtv) + sv.NextToken = ptr.String(jtv) } case "RequestId": @@ -23154,14 +23011,14 @@ func awsRestjson1_deserializeOpDocumentUpdateDataSetOutput(v **UpdateDataSetOutp return nil } -type awsRestjson1_deserializeOpUpdateDataSetPermissions struct { +type awsRestjson1_deserializeOpSearchDashboards struct { } -func (*awsRestjson1_deserializeOpUpdateDataSetPermissions) ID() string { +func (*awsRestjson1_deserializeOpSearchDashboards) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpUpdateDataSetPermissions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpSearchDashboards) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -23175,12 +23032,12 @@ func (m *awsRestjson1_deserializeOpUpdateDataSetPermissions) HandleDeserialize(c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorUpdateDataSetPermissions(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorSearchDashboards(response, &metadata) } - output := &UpdateDataSetPermissionsOutput{} + output := &SearchDashboardsOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsUpdateDataSetPermissionsOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsSearchDashboardsOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -23203,7 +23060,7 @@ func (m *awsRestjson1_deserializeOpUpdateDataSetPermissions) HandleDeserialize(c return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentUpdateDataSetPermissionsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentSearchDashboardsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -23216,7 +23073,7 @@ func (m *awsRestjson1_deserializeOpUpdateDataSetPermissions) HandleDeserialize(c return out, metadata, err } -func awsRestjson1_deserializeOpErrorUpdateDataSetPermissions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorSearchDashboards(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -23257,15 +23114,12 @@ func awsRestjson1_deserializeOpErrorUpdateDataSetPermissions(response *smithyhtt } switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("ConflictException", errorCode): - return awsRestjson1_deserializeErrorConflictException(response, errorBody) - case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) + case strings.EqualFold("InvalidNextTokenException", errorCode): + return awsRestjson1_deserializeErrorInvalidNextTokenException(response, errorBody) + case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) @@ -23275,6 +23129,9 @@ func awsRestjson1_deserializeOpErrorUpdateDataSetPermissions(response *smithyhtt case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + case strings.EqualFold("UnsupportedUserEditionException", errorCode): + return awsRestjson1_deserializeErrorUnsupportedUserEditionException(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -23285,7 +23142,7 @@ func awsRestjson1_deserializeOpErrorUpdateDataSetPermissions(response *smithyhtt } } -func awsRestjson1_deserializeOpHttpBindingsUpdateDataSetPermissionsOutput(v *UpdateDataSetPermissionsOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsSearchDashboardsOutput(v *SearchDashboardsOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -23294,7 +23151,7 @@ func awsRestjson1_deserializeOpHttpBindingsUpdateDataSetPermissionsOutput(v *Upd return nil } -func awsRestjson1_deserializeOpDocumentUpdateDataSetPermissionsOutput(v **UpdateDataSetPermissionsOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentSearchDashboardsOutput(v **SearchDashboardsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -23307,31 +23164,27 @@ func awsRestjson1_deserializeOpDocumentUpdateDataSetPermissionsOutput(v **Update return fmt.Errorf("unexpected JSON type %v", value) } - var sv *UpdateDataSetPermissionsOutput + var sv *SearchDashboardsOutput if *v == nil { - sv = &UpdateDataSetPermissionsOutput{} + sv = &SearchDashboardsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "DataSetArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.DataSetArn = ptr.String(jtv) + case "DashboardSummaryList": + if err := awsRestjson1_deserializeDocumentDashboardSummaryList(&sv.DashboardSummaryList, value); err != nil { + return err } - case "DataSetId": + case "NextToken": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) + return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DataSetId = ptr.String(jtv) + sv.NextToken = ptr.String(jtv) } case "RequestId": @@ -23352,14 +23205,14 @@ func awsRestjson1_deserializeOpDocumentUpdateDataSetPermissionsOutput(v **Update return nil } -type awsRestjson1_deserializeOpUpdateDataSource struct { +type awsRestjson1_deserializeOpSearchDataSets struct { } -func (*awsRestjson1_deserializeOpUpdateDataSource) ID() string { +func (*awsRestjson1_deserializeOpSearchDataSets) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpUpdateDataSource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpSearchDataSets) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -23373,12 +23226,12 @@ func (m *awsRestjson1_deserializeOpUpdateDataSource) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorUpdateDataSource(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorSearchDataSets(response, &metadata) } - output := &UpdateDataSourceOutput{} + output := &SearchDataSetsOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsUpdateDataSourceOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsSearchDataSetsOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -23401,7 +23254,7 @@ func (m *awsRestjson1_deserializeOpUpdateDataSource) HandleDeserialize(ctx conte return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentUpdateDataSourceOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentSearchDataSetsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -23414,7 +23267,7 @@ func (m *awsRestjson1_deserializeOpUpdateDataSource) HandleDeserialize(ctx conte return out, metadata, err } -func awsRestjson1_deserializeOpErrorUpdateDataSource(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorSearchDataSets(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -23458,12 +23311,12 @@ func awsRestjson1_deserializeOpErrorUpdateDataSource(response *smithyhttp.Respon case strings.EqualFold("AccessDeniedException", errorCode): return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - case strings.EqualFold("ConflictException", errorCode): - return awsRestjson1_deserializeErrorConflictException(response, errorBody) - case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) + case strings.EqualFold("InvalidNextTokenException", errorCode): + return awsRestjson1_deserializeErrorInvalidNextTokenException(response, errorBody) + case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) @@ -23483,7 +23336,7 @@ func awsRestjson1_deserializeOpErrorUpdateDataSource(response *smithyhttp.Respon } } -func awsRestjson1_deserializeOpHttpBindingsUpdateDataSourceOutput(v *UpdateDataSourceOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsSearchDataSetsOutput(v *SearchDataSetsOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -23492,7 +23345,7 @@ func awsRestjson1_deserializeOpHttpBindingsUpdateDataSourceOutput(v *UpdateDataS return nil } -func awsRestjson1_deserializeOpDocumentUpdateDataSourceOutput(v **UpdateDataSourceOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentSearchDataSetsOutput(v **SearchDataSetsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -23505,31 +23358,27 @@ func awsRestjson1_deserializeOpDocumentUpdateDataSourceOutput(v **UpdateDataSour return fmt.Errorf("unexpected JSON type %v", value) } - var sv *UpdateDataSourceOutput + var sv *SearchDataSetsOutput if *v == nil { - sv = &UpdateDataSourceOutput{} + sv = &SearchDataSetsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "Arn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.Arn = ptr.String(jtv) + case "DataSetSummaries": + if err := awsRestjson1_deserializeDocumentDataSetSummaryList(&sv.DataSetSummaries, value); err != nil { + return err } - case "DataSourceId": + case "NextToken": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) + return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DataSourceId = ptr.String(jtv) + sv.NextToken = ptr.String(jtv) } case "RequestId": @@ -23541,15 +23390,6 @@ func awsRestjson1_deserializeOpDocumentUpdateDataSourceOutput(v **UpdateDataSour sv.RequestId = ptr.String(jtv) } - case "UpdateStatus": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ResourceStatus to be of type string, got %T instead", value) - } - sv.UpdateStatus = types.ResourceStatus(jtv) - } - default: _, _ = key, value @@ -23559,14 +23399,14 @@ func awsRestjson1_deserializeOpDocumentUpdateDataSourceOutput(v **UpdateDataSour return nil } -type awsRestjson1_deserializeOpUpdateDataSourcePermissions struct { +type awsRestjson1_deserializeOpSearchDataSources struct { } -func (*awsRestjson1_deserializeOpUpdateDataSourcePermissions) ID() string { +func (*awsRestjson1_deserializeOpSearchDataSources) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpUpdateDataSourcePermissions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpSearchDataSources) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -23580,12 +23420,12 @@ func (m *awsRestjson1_deserializeOpUpdateDataSourcePermissions) HandleDeserializ } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorUpdateDataSourcePermissions(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorSearchDataSources(response, &metadata) } - output := &UpdateDataSourcePermissionsOutput{} + output := &SearchDataSourcesOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsUpdateDataSourcePermissionsOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsSearchDataSourcesOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -23608,7 +23448,7 @@ func (m *awsRestjson1_deserializeOpUpdateDataSourcePermissions) HandleDeserializ return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentUpdateDataSourcePermissionsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentSearchDataSourcesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -23621,7 +23461,7 @@ func (m *awsRestjson1_deserializeOpUpdateDataSourcePermissions) HandleDeserializ return out, metadata, err } -func awsRestjson1_deserializeOpErrorUpdateDataSourcePermissions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorSearchDataSources(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -23665,12 +23505,12 @@ func awsRestjson1_deserializeOpErrorUpdateDataSourcePermissions(response *smithy case strings.EqualFold("AccessDeniedException", errorCode): return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - case strings.EqualFold("ConflictException", errorCode): - return awsRestjson1_deserializeErrorConflictException(response, errorBody) - case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) + case strings.EqualFold("InvalidNextTokenException", errorCode): + return awsRestjson1_deserializeErrorInvalidNextTokenException(response, errorBody) + case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) @@ -23690,7 +23530,7 @@ func awsRestjson1_deserializeOpErrorUpdateDataSourcePermissions(response *smithy } } -func awsRestjson1_deserializeOpHttpBindingsUpdateDataSourcePermissionsOutput(v *UpdateDataSourcePermissionsOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsSearchDataSourcesOutput(v *SearchDataSourcesOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -23699,7 +23539,7 @@ func awsRestjson1_deserializeOpHttpBindingsUpdateDataSourcePermissionsOutput(v * return nil } -func awsRestjson1_deserializeOpDocumentUpdateDataSourcePermissionsOutput(v **UpdateDataSourcePermissionsOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentSearchDataSourcesOutput(v **SearchDataSourcesOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -23712,31 +23552,27 @@ func awsRestjson1_deserializeOpDocumentUpdateDataSourcePermissionsOutput(v **Upd return fmt.Errorf("unexpected JSON type %v", value) } - var sv *UpdateDataSourcePermissionsOutput + var sv *SearchDataSourcesOutput if *v == nil { - sv = &UpdateDataSourcePermissionsOutput{} + sv = &SearchDataSourcesOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "DataSourceArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.DataSourceArn = ptr.String(jtv) + case "DataSourceSummaries": + if err := awsRestjson1_deserializeDocumentDataSourceSummaryList(&sv.DataSourceSummaries, value); err != nil { + return err } - case "DataSourceId": + case "NextToken": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) + return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DataSourceId = ptr.String(jtv) + sv.NextToken = ptr.String(jtv) } case "RequestId": @@ -23757,14 +23593,14 @@ func awsRestjson1_deserializeOpDocumentUpdateDataSourcePermissionsOutput(v **Upd return nil } -type awsRestjson1_deserializeOpUpdateFolder struct { +type awsRestjson1_deserializeOpSearchFolders struct { } -func (*awsRestjson1_deserializeOpUpdateFolder) ID() string { +func (*awsRestjson1_deserializeOpSearchFolders) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpUpdateFolder) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpSearchFolders) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -23778,12 +23614,12 @@ func (m *awsRestjson1_deserializeOpUpdateFolder) HandleDeserialize(ctx context.C } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorUpdateFolder(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorSearchFolders(response, &metadata) } - output := &UpdateFolderOutput{} + output := &SearchFoldersOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsUpdateFolderOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsSearchFoldersOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -23806,7 +23642,7 @@ func (m *awsRestjson1_deserializeOpUpdateFolder) HandleDeserialize(ctx context.C return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentUpdateFolderOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentSearchFoldersOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -23819,7 +23655,7 @@ func (m *awsRestjson1_deserializeOpUpdateFolder) HandleDeserialize(ctx context.C return out, metadata, err } -func awsRestjson1_deserializeOpErrorUpdateFolder(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorSearchFolders(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -23863,17 +23699,17 @@ func awsRestjson1_deserializeOpErrorUpdateFolder(response *smithyhttp.Response, case strings.EqualFold("AccessDeniedException", errorCode): return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - case strings.EqualFold("ConflictException", errorCode): - return awsRestjson1_deserializeErrorConflictException(response, errorBody) - case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) + case strings.EqualFold("InvalidNextTokenException", errorCode): + return awsRestjson1_deserializeErrorInvalidNextTokenException(response, errorBody) + case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) - case strings.EqualFold("ResourceExistsException", errorCode): - return awsRestjson1_deserializeErrorResourceExistsException(response, errorBody) + case strings.EqualFold("InvalidRequestException", errorCode): + return awsRestjson1_deserializeErrorInvalidRequestException(response, errorBody) case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) @@ -23894,7 +23730,7 @@ func awsRestjson1_deserializeOpErrorUpdateFolder(response *smithyhttp.Response, } } -func awsRestjson1_deserializeOpHttpBindingsUpdateFolderOutput(v *UpdateFolderOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsSearchFoldersOutput(v *SearchFoldersOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -23903,7 +23739,7 @@ func awsRestjson1_deserializeOpHttpBindingsUpdateFolderOutput(v *UpdateFolderOut return nil } -func awsRestjson1_deserializeOpDocumentUpdateFolderOutput(v **UpdateFolderOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentSearchFoldersOutput(v **SearchFoldersOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -23916,31 +23752,27 @@ func awsRestjson1_deserializeOpDocumentUpdateFolderOutput(v **UpdateFolderOutput return fmt.Errorf("unexpected JSON type %v", value) } - var sv *UpdateFolderOutput + var sv *SearchFoldersOutput if *v == nil { - sv = &UpdateFolderOutput{} + sv = &SearchFoldersOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "Arn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.Arn = ptr.String(jtv) + case "FolderSummaryList": + if err := awsRestjson1_deserializeDocumentFolderSummaryList(&sv.FolderSummaryList, value); err != nil { + return err } - case "FolderId": + case "NextToken": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected RestrictiveResourceId to be of type string, got %T instead", value) + return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.FolderId = ptr.String(jtv) + sv.NextToken = ptr.String(jtv) } case "RequestId": @@ -23961,14 +23793,14 @@ func awsRestjson1_deserializeOpDocumentUpdateFolderOutput(v **UpdateFolderOutput return nil } -type awsRestjson1_deserializeOpUpdateFolderPermissions struct { +type awsRestjson1_deserializeOpSearchGroups struct { } -func (*awsRestjson1_deserializeOpUpdateFolderPermissions) ID() string { +func (*awsRestjson1_deserializeOpSearchGroups) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpUpdateFolderPermissions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpSearchGroups) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -23982,11 +23814,16 @@ func (m *awsRestjson1_deserializeOpUpdateFolderPermissions) HandleDeserialize(ct } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorUpdateFolderPermissions(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorSearchGroups(response, &metadata) } - output := &UpdateFolderPermissionsOutput{} + output := &SearchGroupsOutput{} out.Result = output + err = awsRestjson1_deserializeOpHttpBindingsSearchGroupsOutput(output, response) + if err != nil { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} + } + var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) @@ -24005,7 +23842,7 @@ func (m *awsRestjson1_deserializeOpUpdateFolderPermissions) HandleDeserialize(ct return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentUpdateFolderPermissionsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentSearchGroupsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -24018,7 +23855,7 @@ func (m *awsRestjson1_deserializeOpUpdateFolderPermissions) HandleDeserialize(ct return out, metadata, err } -func awsRestjson1_deserializeOpErrorUpdateFolderPermissions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorSearchGroups(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -24065,21 +23902,24 @@ func awsRestjson1_deserializeOpErrorUpdateFolderPermissions(response *smithyhttp case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) + case strings.EqualFold("InvalidNextTokenException", errorCode): + return awsRestjson1_deserializeErrorInvalidNextTokenException(response, errorBody) + case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) - case strings.EqualFold("LimitExceededException", errorCode): - return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody) + case strings.EqualFold("PreconditionNotMetException", errorCode): + return awsRestjson1_deserializeErrorPreconditionNotMetException(response, errorBody) case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + case strings.EqualFold("ResourceUnavailableException", errorCode): + return awsRestjson1_deserializeErrorResourceUnavailableException(response, errorBody) + case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - case strings.EqualFold("UnsupportedUserEditionException", errorCode): - return awsRestjson1_deserializeErrorUnsupportedUserEditionException(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -24090,7 +23930,16 @@ func awsRestjson1_deserializeOpErrorUpdateFolderPermissions(response *smithyhttp } } -func awsRestjson1_deserializeOpDocumentUpdateFolderPermissionsOutput(v **UpdateFolderPermissionsOutput, value interface{}) error { +func awsRestjson1_deserializeOpHttpBindingsSearchGroupsOutput(v *SearchGroupsOutput, response *smithyhttp.Response) error { + if v == nil { + return fmt.Errorf("unsupported deserialization for nil %T", v) + } + + v.Status = int32(response.StatusCode) + + return nil +} +func awsRestjson1_deserializeOpDocumentSearchGroupsOutput(v **SearchGroupsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -24103,36 +23952,27 @@ func awsRestjson1_deserializeOpDocumentUpdateFolderPermissionsOutput(v **UpdateF return fmt.Errorf("unexpected JSON type %v", value) } - var sv *UpdateFolderPermissionsOutput + var sv *SearchGroupsOutput if *v == nil { - sv = &UpdateFolderPermissionsOutput{} + sv = &SearchGroupsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "Arn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.Arn = ptr.String(jtv) + case "GroupList": + if err := awsRestjson1_deserializeDocumentGroupList(&sv.GroupList, value); err != nil { + return err } - case "FolderId": + case "NextToken": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected RestrictiveResourceId to be of type string, got %T instead", value) + return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.FolderId = ptr.String(jtv) - } - - case "Permissions": - if err := awsRestjson1_deserializeDocumentResourcePermissionList(&sv.Permissions, value); err != nil { - return err + sv.NextToken = ptr.String(jtv) } case "RequestId": @@ -24144,19 +23984,6 @@ func awsRestjson1_deserializeOpDocumentUpdateFolderPermissionsOutput(v **UpdateF sv.RequestId = ptr.String(jtv) } - case "Status": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected StatusCode to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.Status = int32(i64) - } - default: _, _ = key, value @@ -24166,14 +23993,14 @@ func awsRestjson1_deserializeOpDocumentUpdateFolderPermissionsOutput(v **UpdateF return nil } -type awsRestjson1_deserializeOpUpdateGroup struct { +type awsRestjson1_deserializeOpTagResource struct { } -func (*awsRestjson1_deserializeOpUpdateGroup) ID() string { +func (*awsRestjson1_deserializeOpTagResource) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpUpdateGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpTagResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -24187,12 +24014,12 @@ func (m *awsRestjson1_deserializeOpUpdateGroup) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorUpdateGroup(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorTagResource(response, &metadata) } - output := &UpdateGroupOutput{} + output := &TagResourceOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsUpdateGroupOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsTagResourceOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -24215,7 +24042,7 @@ func (m *awsRestjson1_deserializeOpUpdateGroup) HandleDeserialize(ctx context.Co return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentUpdateGroupOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentTagResourceOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -24228,7 +24055,7 @@ func (m *awsRestjson1_deserializeOpUpdateGroup) HandleDeserialize(ctx context.Co return out, metadata, err } -func awsRestjson1_deserializeOpErrorUpdateGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorTagResource(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -24278,15 +24105,12 @@ func awsRestjson1_deserializeOpErrorUpdateGroup(response *smithyhttp.Response, m case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) - case strings.EqualFold("PreconditionNotMetException", errorCode): - return awsRestjson1_deserializeErrorPreconditionNotMetException(response, errorBody) + case strings.EqualFold("LimitExceededException", errorCode): + return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody) case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - case strings.EqualFold("ResourceUnavailableException", errorCode): - return awsRestjson1_deserializeErrorResourceUnavailableException(response, errorBody) - case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) @@ -24300,7 +24124,7 @@ func awsRestjson1_deserializeOpErrorUpdateGroup(response *smithyhttp.Response, m } } -func awsRestjson1_deserializeOpHttpBindingsUpdateGroupOutput(v *UpdateGroupOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsTagResourceOutput(v *TagResourceOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -24309,7 +24133,7 @@ func awsRestjson1_deserializeOpHttpBindingsUpdateGroupOutput(v *UpdateGroupOutpu return nil } -func awsRestjson1_deserializeOpDocumentUpdateGroupOutput(v **UpdateGroupOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentTagResourceOutput(v **TagResourceOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -24322,20 +24146,15 @@ func awsRestjson1_deserializeOpDocumentUpdateGroupOutput(v **UpdateGroupOutput, return fmt.Errorf("unexpected JSON type %v", value) } - var sv *UpdateGroupOutput + var sv *TagResourceOutput if *v == nil { - sv = &UpdateGroupOutput{} + sv = &TagResourceOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "Group": - if err := awsRestjson1_deserializeDocumentGroup(&sv.Group, value); err != nil { - return err - } - case "RequestId": if value != nil { jtv, ok := value.(string) @@ -24354,14 +24173,14 @@ func awsRestjson1_deserializeOpDocumentUpdateGroupOutput(v **UpdateGroupOutput, return nil } -type awsRestjson1_deserializeOpUpdateIAMPolicyAssignment struct { +type awsRestjson1_deserializeOpUntagResource struct { } -func (*awsRestjson1_deserializeOpUpdateIAMPolicyAssignment) ID() string { +func (*awsRestjson1_deserializeOpUntagResource) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpUpdateIAMPolicyAssignment) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpUntagResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -24375,12 +24194,12 @@ func (m *awsRestjson1_deserializeOpUpdateIAMPolicyAssignment) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorUpdateIAMPolicyAssignment(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorUntagResource(response, &metadata) } - output := &UpdateIAMPolicyAssignmentOutput{} + output := &UntagResourceOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsUpdateIAMPolicyAssignmentOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsUntagResourceOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -24403,7 +24222,7 @@ func (m *awsRestjson1_deserializeOpUpdateIAMPolicyAssignment) HandleDeserialize( return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentUpdateIAMPolicyAssignmentOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentUntagResourceOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -24416,7 +24235,7 @@ func (m *awsRestjson1_deserializeOpUpdateIAMPolicyAssignment) HandleDeserialize( return out, metadata, err } -func awsRestjson1_deserializeOpErrorUpdateIAMPolicyAssignment(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorUntagResource(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -24460,18 +24279,12 @@ func awsRestjson1_deserializeOpErrorUpdateIAMPolicyAssignment(response *smithyht case strings.EqualFold("AccessDeniedException", errorCode): return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - case strings.EqualFold("ConcurrentUpdatingException", errorCode): - return awsRestjson1_deserializeErrorConcurrentUpdatingException(response, errorBody) - case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) - case strings.EqualFold("ResourceExistsException", errorCode): - return awsRestjson1_deserializeErrorResourceExistsException(response, errorBody) - case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) @@ -24488,7 +24301,7 @@ func awsRestjson1_deserializeOpErrorUpdateIAMPolicyAssignment(response *smithyht } } -func awsRestjson1_deserializeOpHttpBindingsUpdateIAMPolicyAssignmentOutput(v *UpdateIAMPolicyAssignmentOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsUntagResourceOutput(v *UntagResourceOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -24497,7 +24310,7 @@ func awsRestjson1_deserializeOpHttpBindingsUpdateIAMPolicyAssignmentOutput(v *Up return nil } -func awsRestjson1_deserializeOpDocumentUpdateIAMPolicyAssignmentOutput(v **UpdateIAMPolicyAssignmentOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentUntagResourceOutput(v **UntagResourceOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -24510,56 +24323,15 @@ func awsRestjson1_deserializeOpDocumentUpdateIAMPolicyAssignmentOutput(v **Updat return fmt.Errorf("unexpected JSON type %v", value) } - var sv *UpdateIAMPolicyAssignmentOutput + var sv *UntagResourceOutput if *v == nil { - sv = &UpdateIAMPolicyAssignmentOutput{} + sv = &UntagResourceOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "AssignmentId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.AssignmentId = ptr.String(jtv) - } - - case "AssignmentName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected IAMPolicyAssignmentName to be of type string, got %T instead", value) - } - sv.AssignmentName = ptr.String(jtv) - } - - case "AssignmentStatus": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected AssignmentStatus to be of type string, got %T instead", value) - } - sv.AssignmentStatus = types.AssignmentStatus(jtv) - } - - case "Identities": - if err := awsRestjson1_deserializeDocumentIdentityMap(&sv.Identities, value); err != nil { - return err - } - - case "PolicyArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.PolicyArn = ptr.String(jtv) - } - case "RequestId": if value != nil { jtv, ok := value.(string) @@ -24578,14 +24350,14 @@ func awsRestjson1_deserializeOpDocumentUpdateIAMPolicyAssignmentOutput(v **Updat return nil } -type awsRestjson1_deserializeOpUpdateIpRestriction struct { +type awsRestjson1_deserializeOpUpdateAccountCustomization struct { } -func (*awsRestjson1_deserializeOpUpdateIpRestriction) ID() string { +func (*awsRestjson1_deserializeOpUpdateAccountCustomization) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpUpdateIpRestriction) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpUpdateAccountCustomization) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -24599,12 +24371,12 @@ func (m *awsRestjson1_deserializeOpUpdateIpRestriction) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorUpdateIpRestriction(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorUpdateAccountCustomization(response, &metadata) } - output := &UpdateIpRestrictionOutput{} + output := &UpdateAccountCustomizationOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsUpdateIpRestrictionOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsUpdateAccountCustomizationOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -24627,7 +24399,7 @@ func (m *awsRestjson1_deserializeOpUpdateIpRestriction) HandleDeserialize(ctx co return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentUpdateIpRestrictionOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentUpdateAccountCustomizationOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -24640,7 +24412,7 @@ func (m *awsRestjson1_deserializeOpUpdateIpRestriction) HandleDeserialize(ctx co return out, metadata, err } -func awsRestjson1_deserializeOpErrorUpdateIpRestriction(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorUpdateAccountCustomization(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -24684,18 +24456,21 @@ func awsRestjson1_deserializeOpErrorUpdateIpRestriction(response *smithyhttp.Res case strings.EqualFold("AccessDeniedException", errorCode): return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) - case strings.EqualFold("LimitExceededException", errorCode): - return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody) - case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + case strings.EqualFold("ResourceUnavailableException", errorCode): + return awsRestjson1_deserializeErrorResourceUnavailableException(response, errorBody) + case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) @@ -24709,7 +24484,7 @@ func awsRestjson1_deserializeOpErrorUpdateIpRestriction(response *smithyhttp.Res } } -func awsRestjson1_deserializeOpHttpBindingsUpdateIpRestrictionOutput(v *UpdateIpRestrictionOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsUpdateAccountCustomizationOutput(v *UpdateAccountCustomizationOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -24718,7 +24493,7 @@ func awsRestjson1_deserializeOpHttpBindingsUpdateIpRestrictionOutput(v *UpdateIp return nil } -func awsRestjson1_deserializeOpDocumentUpdateIpRestrictionOutput(v **UpdateIpRestrictionOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentUpdateAccountCustomizationOutput(v **UpdateAccountCustomizationOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -24731,15 +24506,29 @@ func awsRestjson1_deserializeOpDocumentUpdateIpRestrictionOutput(v **UpdateIpRes return fmt.Errorf("unexpected JSON type %v", value) } - var sv *UpdateIpRestrictionOutput + var sv *UpdateAccountCustomizationOutput if *v == nil { - sv = &UpdateIpRestrictionOutput{} + sv = &UpdateAccountCustomizationOutput{} } else { sv = *v } for key, value := range shape { switch key { + case "AccountCustomization": + if err := awsRestjson1_deserializeDocumentAccountCustomization(&sv.AccountCustomization, value); err != nil { + return err + } + + case "Arn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) + } + case "AwsAccountId": if value != nil { jtv, ok := value.(string) @@ -24749,6 +24538,15 @@ func awsRestjson1_deserializeOpDocumentUpdateIpRestrictionOutput(v **UpdateIpRes sv.AwsAccountId = ptr.String(jtv) } + case "Namespace": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Namespace to be of type string, got %T instead", value) + } + sv.Namespace = ptr.String(jtv) + } + case "RequestId": if value != nil { jtv, ok := value.(string) @@ -24767,14 +24565,14 @@ func awsRestjson1_deserializeOpDocumentUpdateIpRestrictionOutput(v **UpdateIpRes return nil } -type awsRestjson1_deserializeOpUpdatePublicSharingSettings struct { +type awsRestjson1_deserializeOpUpdateAccountSettings struct { } -func (*awsRestjson1_deserializeOpUpdatePublicSharingSettings) ID() string { +func (*awsRestjson1_deserializeOpUpdateAccountSettings) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpUpdatePublicSharingSettings) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpUpdateAccountSettings) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -24788,12 +24586,12 @@ func (m *awsRestjson1_deserializeOpUpdatePublicSharingSettings) HandleDeserializ } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorUpdatePublicSharingSettings(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorUpdateAccountSettings(response, &metadata) } - output := &UpdatePublicSharingSettingsOutput{} + output := &UpdateAccountSettingsOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsUpdatePublicSharingSettingsOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsUpdateAccountSettingsOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -24816,7 +24614,7 @@ func (m *awsRestjson1_deserializeOpUpdatePublicSharingSettings) HandleDeserializ return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentUpdatePublicSharingSettingsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentUpdateAccountSettingsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -24829,7 +24627,7 @@ func (m *awsRestjson1_deserializeOpUpdatePublicSharingSettings) HandleDeserializ return out, metadata, err } -func awsRestjson1_deserializeOpErrorUpdatePublicSharingSettings(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorUpdateAccountSettings(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -24882,12 +24680,12 @@ func awsRestjson1_deserializeOpErrorUpdatePublicSharingSettings(response *smithy case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + case strings.EqualFold("ResourceUnavailableException", errorCode): + return awsRestjson1_deserializeErrorResourceUnavailableException(response, errorBody) + case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - case strings.EqualFold("UnsupportedPricingPlanException", errorCode): - return awsRestjson1_deserializeErrorUnsupportedPricingPlanException(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -24898,7 +24696,7 @@ func awsRestjson1_deserializeOpErrorUpdatePublicSharingSettings(response *smithy } } -func awsRestjson1_deserializeOpHttpBindingsUpdatePublicSharingSettingsOutput(v *UpdatePublicSharingSettingsOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsUpdateAccountSettingsOutput(v *UpdateAccountSettingsOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -24907,7 +24705,7 @@ func awsRestjson1_deserializeOpHttpBindingsUpdatePublicSharingSettingsOutput(v * return nil } -func awsRestjson1_deserializeOpDocumentUpdatePublicSharingSettingsOutput(v **UpdatePublicSharingSettingsOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentUpdateAccountSettingsOutput(v **UpdateAccountSettingsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -24920,9 +24718,9 @@ func awsRestjson1_deserializeOpDocumentUpdatePublicSharingSettingsOutput(v **Upd return fmt.Errorf("unexpected JSON type %v", value) } - var sv *UpdatePublicSharingSettingsOutput + var sv *UpdateAccountSettingsOutput if *v == nil { - sv = &UpdatePublicSharingSettingsOutput{} + sv = &UpdateAccountSettingsOutput{} } else { sv = *v } @@ -24947,14 +24745,14 @@ func awsRestjson1_deserializeOpDocumentUpdatePublicSharingSettingsOutput(v **Upd return nil } -type awsRestjson1_deserializeOpUpdateRefreshSchedule struct { +type awsRestjson1_deserializeOpUpdateAnalysis struct { } -func (*awsRestjson1_deserializeOpUpdateRefreshSchedule) ID() string { +func (*awsRestjson1_deserializeOpUpdateAnalysis) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpUpdateRefreshSchedule) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpUpdateAnalysis) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -24968,12 +24766,12 @@ func (m *awsRestjson1_deserializeOpUpdateRefreshSchedule) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorUpdateRefreshSchedule(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorUpdateAnalysis(response, &metadata) } - output := &UpdateRefreshScheduleOutput{} + output := &UpdateAnalysisOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsUpdateRefreshScheduleOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsUpdateAnalysisOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -24996,7 +24794,7 @@ func (m *awsRestjson1_deserializeOpUpdateRefreshSchedule) HandleDeserialize(ctx return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentUpdateRefreshScheduleOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentUpdateAnalysisOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -25009,7 +24807,7 @@ func (m *awsRestjson1_deserializeOpUpdateRefreshSchedule) HandleDeserialize(ctx return out, metadata, err } -func awsRestjson1_deserializeOpErrorUpdateRefreshSchedule(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorUpdateAnalysis(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -25050,8 +24848,8 @@ func awsRestjson1_deserializeOpErrorUpdateRefreshSchedule(response *smithyhttp.R } switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) @@ -25059,11 +24857,8 @@ func awsRestjson1_deserializeOpErrorUpdateRefreshSchedule(response *smithyhttp.R case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) - case strings.EqualFold("LimitExceededException", errorCode): - return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody) - - case strings.EqualFold("PreconditionNotMetException", errorCode): - return awsRestjson1_deserializeErrorPreconditionNotMetException(response, errorBody) + case strings.EqualFold("ResourceExistsException", errorCode): + return awsRestjson1_deserializeErrorResourceExistsException(response, errorBody) case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) @@ -25071,6 +24866,9 @@ func awsRestjson1_deserializeOpErrorUpdateRefreshSchedule(response *smithyhttp.R case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + case strings.EqualFold("UnsupportedUserEditionException", errorCode): + return awsRestjson1_deserializeErrorUnsupportedUserEditionException(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -25081,7 +24879,7 @@ func awsRestjson1_deserializeOpErrorUpdateRefreshSchedule(response *smithyhttp.R } } -func awsRestjson1_deserializeOpHttpBindingsUpdateRefreshScheduleOutput(v *UpdateRefreshScheduleOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsUpdateAnalysisOutput(v *UpdateAnalysisOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -25090,7 +24888,7 @@ func awsRestjson1_deserializeOpHttpBindingsUpdateRefreshScheduleOutput(v *Update return nil } -func awsRestjson1_deserializeOpDocumentUpdateRefreshScheduleOutput(v **UpdateRefreshScheduleOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentUpdateAnalysisOutput(v **UpdateAnalysisOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -25103,15 +24901,24 @@ func awsRestjson1_deserializeOpDocumentUpdateRefreshScheduleOutput(v **UpdateRef return fmt.Errorf("unexpected JSON type %v", value) } - var sv *UpdateRefreshScheduleOutput + var sv *UpdateAnalysisOutput if *v == nil { - sv = &UpdateRefreshScheduleOutput{} + sv = &UpdateAnalysisOutput{} } else { sv = *v } for key, value := range shape { switch key { + case "AnalysisId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + } + sv.AnalysisId = ptr.String(jtv) + } + case "Arn": if value != nil { jtv, ok := value.(string) @@ -25130,13 +24937,13 @@ func awsRestjson1_deserializeOpDocumentUpdateRefreshScheduleOutput(v **UpdateRef sv.RequestId = ptr.String(jtv) } - case "ScheduleId": + case "UpdateStatus": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) + return fmt.Errorf("expected ResourceStatus to be of type string, got %T instead", value) } - sv.ScheduleId = ptr.String(jtv) + sv.UpdateStatus = types.ResourceStatus(jtv) } default: @@ -25148,14 +24955,14 @@ func awsRestjson1_deserializeOpDocumentUpdateRefreshScheduleOutput(v **UpdateRef return nil } -type awsRestjson1_deserializeOpUpdateTemplate struct { +type awsRestjson1_deserializeOpUpdateAnalysisPermissions struct { } -func (*awsRestjson1_deserializeOpUpdateTemplate) ID() string { +func (*awsRestjson1_deserializeOpUpdateAnalysisPermissions) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpUpdateTemplate) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpUpdateAnalysisPermissions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -25169,12 +24976,12 @@ func (m *awsRestjson1_deserializeOpUpdateTemplate) HandleDeserialize(ctx context } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorUpdateTemplate(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorUpdateAnalysisPermissions(response, &metadata) } - output := &UpdateTemplateOutput{} + output := &UpdateAnalysisPermissionsOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsUpdateTemplateOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsUpdateAnalysisPermissionsOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -25197,7 +25004,7 @@ func (m *awsRestjson1_deserializeOpUpdateTemplate) HandleDeserialize(ctx context return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentUpdateTemplateOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentUpdateAnalysisPermissionsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -25210,7 +25017,7 @@ func (m *awsRestjson1_deserializeOpUpdateTemplate) HandleDeserialize(ctx context return out, metadata, err } -func awsRestjson1_deserializeOpErrorUpdateTemplate(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorUpdateAnalysisPermissions(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -25263,9 +25070,6 @@ func awsRestjson1_deserializeOpErrorUpdateTemplate(response *smithyhttp.Response case strings.EqualFold("LimitExceededException", errorCode): return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody) - case strings.EqualFold("ResourceExistsException", errorCode): - return awsRestjson1_deserializeErrorResourceExistsException(response, errorBody) - case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) @@ -25285,7 +25089,7 @@ func awsRestjson1_deserializeOpErrorUpdateTemplate(response *smithyhttp.Response } } -func awsRestjson1_deserializeOpHttpBindingsUpdateTemplateOutput(v *UpdateTemplateOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsUpdateAnalysisPermissionsOutput(v *UpdateAnalysisPermissionsOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -25294,7 +25098,7 @@ func awsRestjson1_deserializeOpHttpBindingsUpdateTemplateOutput(v *UpdateTemplat return nil } -func awsRestjson1_deserializeOpDocumentUpdateTemplateOutput(v **UpdateTemplateOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentUpdateAnalysisPermissionsOutput(v **UpdateAnalysisPermissionsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -25307,31 +25111,36 @@ func awsRestjson1_deserializeOpDocumentUpdateTemplateOutput(v **UpdateTemplateOu return fmt.Errorf("unexpected JSON type %v", value) } - var sv *UpdateTemplateOutput + var sv *UpdateAnalysisPermissionsOutput if *v == nil { - sv = &UpdateTemplateOutput{} + sv = &UpdateAnalysisPermissionsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "Arn": + case "AnalysisArn": if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = ptr.String(jtv) + sv.AnalysisArn = ptr.String(jtv) } - case "CreationStatus": + case "AnalysisId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ResourceStatus to be of type string, got %T instead", value) + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) } - sv.CreationStatus = types.ResourceStatus(jtv) + sv.AnalysisId = ptr.String(jtv) + } + + case "Permissions": + if err := awsRestjson1_deserializeDocumentResourcePermissionList(&sv.Permissions, value); err != nil { + return err } case "RequestId": @@ -25343,24 +25152,6 @@ func awsRestjson1_deserializeOpDocumentUpdateTemplateOutput(v **UpdateTemplateOu sv.RequestId = ptr.String(jtv) } - case "TemplateId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) - } - sv.TemplateId = ptr.String(jtv) - } - - case "VersionArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.VersionArn = ptr.String(jtv) - } - default: _, _ = key, value @@ -25370,14 +25161,14 @@ func awsRestjson1_deserializeOpDocumentUpdateTemplateOutput(v **UpdateTemplateOu return nil } -type awsRestjson1_deserializeOpUpdateTemplateAlias struct { +type awsRestjson1_deserializeOpUpdateDashboard struct { } -func (*awsRestjson1_deserializeOpUpdateTemplateAlias) ID() string { +func (*awsRestjson1_deserializeOpUpdateDashboard) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpUpdateTemplateAlias) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpUpdateDashboard) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -25391,16 +25182,11 @@ func (m *awsRestjson1_deserializeOpUpdateTemplateAlias) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorUpdateTemplateAlias(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorUpdateDashboard(response, &metadata) } - output := &UpdateTemplateAliasOutput{} + output := &UpdateDashboardOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsUpdateTemplateAliasOutput(output, response) - if err != nil { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} - } - var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) @@ -25419,7 +25205,7 @@ func (m *awsRestjson1_deserializeOpUpdateTemplateAlias) HandleDeserialize(ctx co return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentUpdateTemplateAliasOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentUpdateDashboardOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -25432,7 +25218,7 @@ func (m *awsRestjson1_deserializeOpUpdateTemplateAlias) HandleDeserialize(ctx co return out, metadata, err } -func awsRestjson1_deserializeOpErrorUpdateTemplateAlias(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorUpdateDashboard(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -25479,6 +25265,12 @@ func awsRestjson1_deserializeOpErrorUpdateTemplateAlias(response *smithyhttp.Res case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) + case strings.EqualFold("InvalidParameterValueException", errorCode): + return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) + + case strings.EqualFold("LimitExceededException", errorCode): + return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) @@ -25498,16 +25290,7 @@ func awsRestjson1_deserializeOpErrorUpdateTemplateAlias(response *smithyhttp.Res } } -func awsRestjson1_deserializeOpHttpBindingsUpdateTemplateAliasOutput(v *UpdateTemplateAliasOutput, response *smithyhttp.Response) error { - if v == nil { - return fmt.Errorf("unsupported deserialization for nil %T", v) - } - - v.Status = int32(response.StatusCode) - - return nil -} -func awsRestjson1_deserializeOpDocumentUpdateTemplateAliasOutput(v **UpdateTemplateAliasOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentUpdateDashboardOutput(v **UpdateDashboardOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -25520,15 +25303,42 @@ func awsRestjson1_deserializeOpDocumentUpdateTemplateAliasOutput(v **UpdateTempl return fmt.Errorf("unexpected JSON type %v", value) } - var sv *UpdateTemplateAliasOutput + var sv *UpdateDashboardOutput if *v == nil { - sv = &UpdateTemplateAliasOutput{} + sv = &UpdateDashboardOutput{} } else { sv = *v } for key, value := range shape { switch key { + case "Arn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) + } + + case "CreationStatus": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourceStatus to be of type string, got %T instead", value) + } + sv.CreationStatus = types.ResourceStatus(jtv) + } + + case "DashboardId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + } + sv.DashboardId = ptr.String(jtv) + } + case "RequestId": if value != nil { jtv, ok := value.(string) @@ -25538,9 +25348,26 @@ func awsRestjson1_deserializeOpDocumentUpdateTemplateAliasOutput(v **UpdateTempl sv.RequestId = ptr.String(jtv) } - case "TemplateAlias": - if err := awsRestjson1_deserializeDocumentTemplateAlias(&sv.TemplateAlias, value); err != nil { - return err + case "Status": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected StatusCode to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.Status = int32(i64) + } + + case "VersionArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.VersionArn = ptr.String(jtv) } default: @@ -25552,14 +25379,14 @@ func awsRestjson1_deserializeOpDocumentUpdateTemplateAliasOutput(v **UpdateTempl return nil } -type awsRestjson1_deserializeOpUpdateTemplatePermissions struct { +type awsRestjson1_deserializeOpUpdateDashboardPermissions struct { } -func (*awsRestjson1_deserializeOpUpdateTemplatePermissions) ID() string { +func (*awsRestjson1_deserializeOpUpdateDashboardPermissions) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpUpdateTemplatePermissions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpUpdateDashboardPermissions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -25573,12 +25400,12 @@ func (m *awsRestjson1_deserializeOpUpdateTemplatePermissions) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorUpdateTemplatePermissions(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorUpdateDashboardPermissions(response, &metadata) } - output := &UpdateTemplatePermissionsOutput{} + output := &UpdateDashboardPermissionsOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsUpdateTemplatePermissionsOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsUpdateDashboardPermissionsOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -25601,7 +25428,7 @@ func (m *awsRestjson1_deserializeOpUpdateTemplatePermissions) HandleDeserialize( return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentUpdateTemplatePermissionsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentUpdateDashboardPermissionsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -25614,7 +25441,7 @@ func (m *awsRestjson1_deserializeOpUpdateTemplatePermissions) HandleDeserialize( return out, metadata, err } -func awsRestjson1_deserializeOpErrorUpdateTemplatePermissions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorUpdateDashboardPermissions(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -25686,7 +25513,7 @@ func awsRestjson1_deserializeOpErrorUpdateTemplatePermissions(response *smithyht } } -func awsRestjson1_deserializeOpHttpBindingsUpdateTemplatePermissionsOutput(v *UpdateTemplatePermissionsOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsUpdateDashboardPermissionsOutput(v *UpdateDashboardPermissionsOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -25695,7 +25522,7 @@ func awsRestjson1_deserializeOpHttpBindingsUpdateTemplatePermissionsOutput(v *Up return nil } -func awsRestjson1_deserializeOpDocumentUpdateTemplatePermissionsOutput(v **UpdateTemplatePermissionsOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentUpdateDashboardPermissionsOutput(v **UpdateDashboardPermissionsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -25708,45 +25535,50 @@ func awsRestjson1_deserializeOpDocumentUpdateTemplatePermissionsOutput(v **Updat return fmt.Errorf("unexpected JSON type %v", value) } - var sv *UpdateTemplatePermissionsOutput + var sv *UpdateDashboardPermissionsOutput if *v == nil { - sv = &UpdateTemplatePermissionsOutput{} + sv = &UpdateDashboardPermissionsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "Permissions": - if err := awsRestjson1_deserializeDocumentResourcePermissionList(&sv.Permissions, value); err != nil { - return err - } - - case "RequestId": + case "DashboardArn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.RequestId = ptr.String(jtv) + sv.DashboardArn = ptr.String(jtv) } - case "TemplateArn": + case "DashboardId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) } - sv.TemplateArn = ptr.String(jtv) + sv.DashboardId = ptr.String(jtv) } - case "TemplateId": + case "LinkSharingConfiguration": + if err := awsRestjson1_deserializeDocumentLinkSharingConfiguration(&sv.LinkSharingConfiguration, value); err != nil { + return err + } + + case "Permissions": + if err := awsRestjson1_deserializeDocumentResourcePermissionList(&sv.Permissions, value); err != nil { + return err + } + + case "RequestId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.TemplateId = ptr.String(jtv) + sv.RequestId = ptr.String(jtv) } default: @@ -25758,14 +25590,14 @@ func awsRestjson1_deserializeOpDocumentUpdateTemplatePermissionsOutput(v **Updat return nil } -type awsRestjson1_deserializeOpUpdateTheme struct { +type awsRestjson1_deserializeOpUpdateDashboardPublishedVersion struct { } -func (*awsRestjson1_deserializeOpUpdateTheme) ID() string { +func (*awsRestjson1_deserializeOpUpdateDashboardPublishedVersion) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpUpdateTheme) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpUpdateDashboardPublishedVersion) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -25779,12 +25611,12 @@ func (m *awsRestjson1_deserializeOpUpdateTheme) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorUpdateTheme(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorUpdateDashboardPublishedVersion(response, &metadata) } - output := &UpdateThemeOutput{} + output := &UpdateDashboardPublishedVersionOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsUpdateThemeOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsUpdateDashboardPublishedVersionOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -25807,7 +25639,7 @@ func (m *awsRestjson1_deserializeOpUpdateTheme) HandleDeserialize(ctx context.Co return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentUpdateThemeOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentUpdateDashboardPublishedVersionOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -25820,7 +25652,7 @@ func (m *awsRestjson1_deserializeOpUpdateTheme) HandleDeserialize(ctx context.Co return out, metadata, err } -func awsRestjson1_deserializeOpErrorUpdateTheme(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorUpdateDashboardPublishedVersion(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -25861,8 +25693,8 @@ func awsRestjson1_deserializeOpErrorUpdateTheme(response *smithyhttp.Response, m } switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) @@ -25870,12 +25702,6 @@ func awsRestjson1_deserializeOpErrorUpdateTheme(response *smithyhttp.Response, m case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) - case strings.EqualFold("LimitExceededException", errorCode): - return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody) - - case strings.EqualFold("ResourceExistsException", errorCode): - return awsRestjson1_deserializeErrorResourceExistsException(response, errorBody) - case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) @@ -25895,7 +25721,7 @@ func awsRestjson1_deserializeOpErrorUpdateTheme(response *smithyhttp.Response, m } } -func awsRestjson1_deserializeOpHttpBindingsUpdateThemeOutput(v *UpdateThemeOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsUpdateDashboardPublishedVersionOutput(v *UpdateDashboardPublishedVersionOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -25904,7 +25730,7 @@ func awsRestjson1_deserializeOpHttpBindingsUpdateThemeOutput(v *UpdateThemeOutpu return nil } -func awsRestjson1_deserializeOpDocumentUpdateThemeOutput(v **UpdateThemeOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentUpdateDashboardPublishedVersionOutput(v **UpdateDashboardPublishedVersionOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -25917,31 +25743,31 @@ func awsRestjson1_deserializeOpDocumentUpdateThemeOutput(v **UpdateThemeOutput, return fmt.Errorf("unexpected JSON type %v", value) } - var sv *UpdateThemeOutput + var sv *UpdateDashboardPublishedVersionOutput if *v == nil { - sv = &UpdateThemeOutput{} + sv = &UpdateDashboardPublishedVersionOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "Arn": + case "DashboardArn": if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Arn = ptr.String(jtv) + sv.DashboardArn = ptr.String(jtv) } - case "CreationStatus": + case "DashboardId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ResourceStatus to be of type string, got %T instead", value) + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) } - sv.CreationStatus = types.ResourceStatus(jtv) + sv.DashboardId = ptr.String(jtv) } case "RequestId": @@ -25953,24 +25779,6 @@ func awsRestjson1_deserializeOpDocumentUpdateThemeOutput(v **UpdateThemeOutput, sv.RequestId = ptr.String(jtv) } - case "ThemeId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) - } - sv.ThemeId = ptr.String(jtv) - } - - case "VersionArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.VersionArn = ptr.String(jtv) - } - default: _, _ = key, value @@ -25980,14 +25788,14 @@ func awsRestjson1_deserializeOpDocumentUpdateThemeOutput(v **UpdateThemeOutput, return nil } -type awsRestjson1_deserializeOpUpdateThemeAlias struct { +type awsRestjson1_deserializeOpUpdateDataSet struct { } -func (*awsRestjson1_deserializeOpUpdateThemeAlias) ID() string { +func (*awsRestjson1_deserializeOpUpdateDataSet) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpUpdateThemeAlias) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpUpdateDataSet) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -26001,12 +25809,12 @@ func (m *awsRestjson1_deserializeOpUpdateThemeAlias) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorUpdateThemeAlias(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorUpdateDataSet(response, &metadata) } - output := &UpdateThemeAliasOutput{} + output := &UpdateDataSetOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsUpdateThemeAliasOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsUpdateDataSetOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -26029,7 +25837,7 @@ func (m *awsRestjson1_deserializeOpUpdateThemeAlias) HandleDeserialize(ctx conte return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentUpdateThemeAliasOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentUpdateDataSetOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -26042,7 +25850,7 @@ func (m *awsRestjson1_deserializeOpUpdateThemeAlias) HandleDeserialize(ctx conte return out, metadata, err } -func awsRestjson1_deserializeOpErrorUpdateThemeAlias(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorUpdateDataSet(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -26083,6 +25891,9 @@ func awsRestjson1_deserializeOpErrorUpdateThemeAlias(response *smithyhttp.Respon } switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + case strings.EqualFold("ConflictException", errorCode): return awsRestjson1_deserializeErrorConflictException(response, errorBody) @@ -26092,8 +25903,8 @@ func awsRestjson1_deserializeOpErrorUpdateThemeAlias(response *smithyhttp.Respon case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) - case strings.EqualFold("ResourceExistsException", errorCode): - return awsRestjson1_deserializeErrorResourceExistsException(response, errorBody) + case strings.EqualFold("LimitExceededException", errorCode): + return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody) case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) @@ -26114,7 +25925,7 @@ func awsRestjson1_deserializeOpErrorUpdateThemeAlias(response *smithyhttp.Respon } } -func awsRestjson1_deserializeOpHttpBindingsUpdateThemeAliasOutput(v *UpdateThemeAliasOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsUpdateDataSetOutput(v *UpdateDataSetOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -26123,7 +25934,7 @@ func awsRestjson1_deserializeOpHttpBindingsUpdateThemeAliasOutput(v *UpdateTheme return nil } -func awsRestjson1_deserializeOpDocumentUpdateThemeAliasOutput(v **UpdateThemeAliasOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentUpdateDataSetOutput(v **UpdateDataSetOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -26136,15 +25947,51 @@ func awsRestjson1_deserializeOpDocumentUpdateThemeAliasOutput(v **UpdateThemeAli return fmt.Errorf("unexpected JSON type %v", value) } - var sv *UpdateThemeAliasOutput + var sv *UpdateDataSetOutput if *v == nil { - sv = &UpdateThemeAliasOutput{} + sv = &UpdateDataSetOutput{} } else { sv = *v } for key, value := range shape { switch key { + case "Arn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) + } + + case "DataSetId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) + } + sv.DataSetId = ptr.String(jtv) + } + + case "IngestionArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.IngestionArn = ptr.String(jtv) + } + + case "IngestionId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) + } + sv.IngestionId = ptr.String(jtv) + } + case "RequestId": if value != nil { jtv, ok := value.(string) @@ -26154,11 +26001,6 @@ func awsRestjson1_deserializeOpDocumentUpdateThemeAliasOutput(v **UpdateThemeAli sv.RequestId = ptr.String(jtv) } - case "ThemeAlias": - if err := awsRestjson1_deserializeDocumentThemeAlias(&sv.ThemeAlias, value); err != nil { - return err - } - default: _, _ = key, value @@ -26168,14 +26010,14 @@ func awsRestjson1_deserializeOpDocumentUpdateThemeAliasOutput(v **UpdateThemeAli return nil } -type awsRestjson1_deserializeOpUpdateThemePermissions struct { +type awsRestjson1_deserializeOpUpdateDataSetPermissions struct { } -func (*awsRestjson1_deserializeOpUpdateThemePermissions) ID() string { +func (*awsRestjson1_deserializeOpUpdateDataSetPermissions) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpUpdateThemePermissions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpUpdateDataSetPermissions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -26189,12 +26031,12 @@ func (m *awsRestjson1_deserializeOpUpdateThemePermissions) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorUpdateThemePermissions(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorUpdateDataSetPermissions(response, &metadata) } - output := &UpdateThemePermissionsOutput{} + output := &UpdateDataSetPermissionsOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsUpdateThemePermissionsOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsUpdateDataSetPermissionsOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -26217,7 +26059,7 @@ func (m *awsRestjson1_deserializeOpUpdateThemePermissions) HandleDeserialize(ctx return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentUpdateThemePermissionsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentUpdateDataSetPermissionsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -26230,7 +26072,7 @@ func (m *awsRestjson1_deserializeOpUpdateThemePermissions) HandleDeserialize(ctx return out, metadata, err } -func awsRestjson1_deserializeOpErrorUpdateThemePermissions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorUpdateDataSetPermissions(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -26274,24 +26116,21 @@ func awsRestjson1_deserializeOpErrorUpdateThemePermissions(response *smithyhttp. case strings.EqualFold("AccessDeniedException", errorCode): return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) - case strings.EqualFold("LimitExceededException", errorCode): - return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody) - case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - case strings.EqualFold("UnsupportedUserEditionException", errorCode): - return awsRestjson1_deserializeErrorUnsupportedUserEditionException(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -26302,7 +26141,7 @@ func awsRestjson1_deserializeOpErrorUpdateThemePermissions(response *smithyhttp. } } -func awsRestjson1_deserializeOpHttpBindingsUpdateThemePermissionsOutput(v *UpdateThemePermissionsOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsUpdateDataSetPermissionsOutput(v *UpdateDataSetPermissionsOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -26311,7 +26150,7 @@ func awsRestjson1_deserializeOpHttpBindingsUpdateThemePermissionsOutput(v *Updat return nil } -func awsRestjson1_deserializeOpDocumentUpdateThemePermissionsOutput(v **UpdateThemePermissionsOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentUpdateDataSetPermissionsOutput(v **UpdateDataSetPermissionsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -26324,45 +26163,40 @@ func awsRestjson1_deserializeOpDocumentUpdateThemePermissionsOutput(v **UpdateTh return fmt.Errorf("unexpected JSON type %v", value) } - var sv *UpdateThemePermissionsOutput + var sv *UpdateDataSetPermissionsOutput if *v == nil { - sv = &UpdateThemePermissionsOutput{} + sv = &UpdateDataSetPermissionsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "Permissions": - if err := awsRestjson1_deserializeDocumentResourcePermissionList(&sv.Permissions, value); err != nil { - return err - } - - case "RequestId": + case "DataSetArn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.RequestId = ptr.String(jtv) + sv.DataSetArn = ptr.String(jtv) } - case "ThemeArn": + case "DataSetId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.ThemeArn = ptr.String(jtv) + sv.DataSetId = ptr.String(jtv) } - case "ThemeId": + case "RequestId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ThemeId = ptr.String(jtv) + sv.RequestId = ptr.String(jtv) } default: @@ -26374,14 +26208,14 @@ func awsRestjson1_deserializeOpDocumentUpdateThemePermissionsOutput(v **UpdateTh return nil } -type awsRestjson1_deserializeOpUpdateUser struct { +type awsRestjson1_deserializeOpUpdateDataSource struct { } -func (*awsRestjson1_deserializeOpUpdateUser) ID() string { +func (*awsRestjson1_deserializeOpUpdateDataSource) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpUpdateUser) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpUpdateDataSource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -26395,12 +26229,12 @@ func (m *awsRestjson1_deserializeOpUpdateUser) HandleDeserialize(ctx context.Con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorUpdateUser(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorUpdateDataSource(response, &metadata) } - output := &UpdateUserOutput{} + output := &UpdateDataSourceOutput{} out.Result = output - err = awsRestjson1_deserializeOpHttpBindingsUpdateUserOutput(output, response) + err = awsRestjson1_deserializeOpHttpBindingsUpdateDataSourceOutput(output, response) if err != nil { return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } @@ -26423,7 +26257,7 @@ func (m *awsRestjson1_deserializeOpUpdateUser) HandleDeserialize(ctx context.Con return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentUpdateUserOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentUpdateDataSourceOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -26436,7 +26270,7 @@ func (m *awsRestjson1_deserializeOpUpdateUser) HandleDeserialize(ctx context.Con return out, metadata, err } -func awsRestjson1_deserializeOpErrorUpdateUser(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorUpdateDataSource(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -26480,21 +26314,18 @@ func awsRestjson1_deserializeOpErrorUpdateUser(response *smithyhttp.Response, me case strings.EqualFold("AccessDeniedException", errorCode): return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + case strings.EqualFold("InternalFailureException", errorCode): return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) case strings.EqualFold("InvalidParameterValueException", errorCode): return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) - case strings.EqualFold("PreconditionNotMetException", errorCode): - return awsRestjson1_deserializeErrorPreconditionNotMetException(response, errorBody) - case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - case strings.EqualFold("ResourceUnavailableException", errorCode): - return awsRestjson1_deserializeErrorResourceUnavailableException(response, errorBody) - case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) @@ -26508,7 +26339,7 @@ func awsRestjson1_deserializeOpErrorUpdateUser(response *smithyhttp.Response, me } } -func awsRestjson1_deserializeOpHttpBindingsUpdateUserOutput(v *UpdateUserOutput, response *smithyhttp.Response) error { +func awsRestjson1_deserializeOpHttpBindingsUpdateDataSourceOutput(v *UpdateDataSourceOutput, response *smithyhttp.Response) error { if v == nil { return fmt.Errorf("unsupported deserialization for nil %T", v) } @@ -26517,7 +26348,7 @@ func awsRestjson1_deserializeOpHttpBindingsUpdateUserOutput(v *UpdateUserOutput, return nil } -func awsRestjson1_deserializeOpDocumentUpdateUserOutput(v **UpdateUserOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentUpdateDataSourceOutput(v **UpdateDataSourceOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -26530,15 +26361,33 @@ func awsRestjson1_deserializeOpDocumentUpdateUserOutput(v **UpdateUserOutput, va return fmt.Errorf("unexpected JSON type %v", value) } - var sv *UpdateUserOutput + var sv *UpdateDataSourceOutput if *v == nil { - sv = &UpdateUserOutput{} + sv = &UpdateDataSourceOutput{} } else { sv = *v } for key, value := range shape { switch key { + case "Arn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) + } + + case "DataSourceId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) + } + sv.DataSourceId = ptr.String(jtv) + } + case "RequestId": if value != nil { jtv, ok := value.(string) @@ -26548,9 +26397,13 @@ func awsRestjson1_deserializeOpDocumentUpdateUserOutput(v **UpdateUserOutput, va sv.RequestId = ptr.String(jtv) } - case "User": - if err := awsRestjson1_deserializeDocumentUser(&sv.User, value); err != nil { - return err + case "UpdateStatus": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourceStatus to be of type string, got %T instead", value) + } + sv.UpdateStatus = types.ResourceStatus(jtv) } default: @@ -26562,12 +26415,42 @@ func awsRestjson1_deserializeOpDocumentUpdateUserOutput(v **UpdateUserOutput, va return nil } -func awsRestjson1_deserializeErrorAccessDeniedException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.AccessDeniedException{} +type awsRestjson1_deserializeOpUpdateDataSourcePermissions struct { +} + +func (*awsRestjson1_deserializeOpUpdateDataSourcePermissions) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUpdateDataSourcePermissions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorUpdateDataSourcePermissions(response, &metadata) + } + output := &UpdateDataSourcePermissionsOutput{} + out.Result = output + + err = awsRestjson1_deserializeOpHttpBindingsUpdateDataSourcePermissionsOutput(output, response) + if err != nil { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} + } + var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) decoder.UseNumber() var shape interface{} @@ -26578,36 +26461,45 @@ func awsRestjson1_deserializeErrorAccessDeniedException(response *smithyhttp.Res Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } - return err + return out, metadata, err } - err := awsRestjson1_deserializeDocumentAccessDeniedException(&output, shape) - + err = awsRestjson1_deserializeOpDocumentUpdateDataSourcePermissionsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), Snapshot: snapshot.Bytes(), } - return err } - errorBody.Seek(0, io.SeekStart) - - return output + return out, metadata, err } -func awsRestjson1_deserializeErrorConcurrentUpdatingException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.ConcurrentUpdatingException{} +func awsRestjson1_deserializeOpErrorUpdateDataSourcePermissions(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) decoder := json.NewDecoder(body) decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) err = &smithy.DeserializationError{ @@ -26617,65 +26509,146 @@ func awsRestjson1_deserializeErrorConcurrentUpdatingException(response *smithyht return err } - err := awsRestjson1_deserializeDocumentConcurrentUpdatingException(&output, shape) + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalFailureException", errorCode): + return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) + + case strings.EqualFold("InvalidParameterValueException", errorCode): + return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, } - return err + return genericError + } +} - errorBody.Seek(0, io.SeekStart) +func awsRestjson1_deserializeOpHttpBindingsUpdateDataSourcePermissionsOutput(v *UpdateDataSourcePermissionsOutput, response *smithyhttp.Response) error { + if v == nil { + return fmt.Errorf("unsupported deserialization for nil %T", v) + } - return output + v.Status = int32(response.StatusCode) + + return nil } +func awsRestjson1_deserializeOpDocumentUpdateDataSourcePermissionsOutput(v **UpdateDataSourcePermissionsOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } -func awsRestjson1_deserializeErrorConflictException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.ConflictException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err + var sv *UpdateDataSourcePermissionsOutput + if *v == nil { + sv = &UpdateDataSourcePermissionsOutput{} + } else { + sv = *v } - err := awsRestjson1_deserializeDocumentConflictException(&output, shape) + for key, value := range shape { + switch key { + case "DataSourceArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.DataSourceArn = ptr.String(jtv) + } + + case "DataSourceId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) + } + sv.DataSourceId = ptr.String(jtv) + } + + case "RequestId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.RequestId = ptr.String(jtv) + } + + default: + _, _ = key, value - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), } - return err } + *v = sv + return nil +} - errorBody.Seek(0, io.SeekStart) +type awsRestjson1_deserializeOpUpdateFolder struct { +} - return output +func (*awsRestjson1_deserializeOpUpdateFolder) ID() string { + return "OperationDeserializer" } -func awsRestjson1_deserializeErrorDomainNotWhitelistedException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.DomainNotWhitelistedException{} +func (m *awsRestjson1_deserializeOpUpdateFolder) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorUpdateFolder(response, &metadata) + } + output := &UpdateFolderOutput{} + out.Result = output + + err = awsRestjson1_deserializeOpHttpBindingsUpdateFolderOutput(output, response) + if err != nil { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} + } + var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) decoder.UseNumber() var shape interface{} @@ -26686,36 +26659,45 @@ func awsRestjson1_deserializeErrorDomainNotWhitelistedException(response *smithy Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } - return err + return out, metadata, err } - err := awsRestjson1_deserializeDocumentDomainNotWhitelistedException(&output, shape) - + err = awsRestjson1_deserializeOpDocumentUpdateFolderOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), Snapshot: snapshot.Bytes(), } - return err } - errorBody.Seek(0, io.SeekStart) - - return output + return out, metadata, err } -func awsRestjson1_deserializeErrorIdentityTypeNotSupportedException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.IdentityTypeNotSupportedException{} +func awsRestjson1_deserializeOpErrorUpdateFolder(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) decoder := json.NewDecoder(body) decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) err = &smithy.DeserializationError{ @@ -26725,137 +26707,147 @@ func awsRestjson1_deserializeErrorIdentityTypeNotSupportedException(response *sm return err } - err := awsRestjson1_deserializeDocumentIdentityTypeNotSupportedException(&output, shape) + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - errorBody.Seek(0, io.SeekStart) + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) - return output -} + case strings.EqualFold("InternalFailureException", errorCode): + return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) -func awsRestjson1_deserializeErrorInternalFailureException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.InternalFailureException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) + case strings.EqualFold("InvalidParameterValueException", errorCode): + return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } + case strings.EqualFold("ResourceExistsException", errorCode): + return awsRestjson1_deserializeErrorResourceExistsException(response, errorBody) - err := awsRestjson1_deserializeDocumentInternalFailureException(&output, shape) + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) - errorBody.Seek(0, io.SeekStart) + case strings.EqualFold("UnsupportedUserEditionException", errorCode): + return awsRestjson1_deserializeErrorUnsupportedUserEditionException(response, errorBody) - return output + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } } -func awsRestjson1_deserializeErrorInvalidNextTokenException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.InvalidNextTokenException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) +func awsRestjson1_deserializeOpHttpBindingsUpdateFolderOutput(v *UpdateFolderOutput, response *smithyhttp.Response) error { + if v == nil { + return fmt.Errorf("unsupported deserialization for nil %T", v) + } - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err + v.Status = int32(response.StatusCode) + + return nil +} +func awsRestjson1_deserializeOpDocumentUpdateFolderOutput(v **UpdateFolderOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil } - err := awsRestjson1_deserializeDocumentInvalidNextTokenException(&output, shape) + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err + var sv *UpdateFolderOutput + if *v == nil { + sv = &UpdateFolderOutput{} + } else { + sv = *v } - errorBody.Seek(0, io.SeekStart) + for key, value := range shape { + switch key { + case "Arn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) + } - return output -} + case "FolderId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RestrictiveResourceId to be of type string, got %T instead", value) + } + sv.FolderId = ptr.String(jtv) + } -func awsRestjson1_deserializeErrorInvalidParameterValueException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.InvalidParameterValueException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) + case "RequestId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.RequestId = ptr.String(jtv) + } + + default: + _, _ = key, value - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), } - return err } + *v = sv + return nil +} - err := awsRestjson1_deserializeDocumentInvalidParameterValueException(&output, shape) +type awsRestjson1_deserializeOpUpdateFolderPermissions struct { +} + +func (*awsRestjson1_deserializeOpUpdateFolderPermissions) ID() string { + return "OperationDeserializer" +} +func (m *awsRestjson1_deserializeOpUpdateFolderPermissions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err + return out, metadata, err } - errorBody.Seek(0, io.SeekStart) + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } - return output -} + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorUpdateFolderPermissions(response, &metadata) + } + output := &UpdateFolderPermissionsOutput{} + out.Result = output -func awsRestjson1_deserializeErrorInvalidRequestException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.InvalidRequestException{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) decoder.UseNumber() var shape interface{} @@ -26866,47 +26858,44 @@ func awsRestjson1_deserializeErrorInvalidRequestException(response *smithyhttp.R Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } - return err + return out, metadata, err } - err := awsRestjson1_deserializeDocumentInvalidRequestException(&output, shape) - + err = awsRestjson1_deserializeOpDocumentUpdateFolderPermissionsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), Snapshot: snapshot.Bytes(), } - return err } - errorBody.Seek(0, io.SeekStart) - - return output + return out, metadata, err } -func awsRestjson1_deserializeErrorLimitExceededException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.LimitExceededException{} +func awsRestjson1_deserializeOpErrorUpdateFolderPermissions(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) decoder := json.NewDecoder(body) decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } - - err := awsRestjson1_deserializeDocumentLimitExceededException(&output, shape) - + jsonCode, message, err := restjson.GetErrorInfo(decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -26918,124 +26907,157 @@ func awsRestjson1_deserializeErrorLimitExceededException(response *smithyhttp.Re } errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } - return output -} + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) -func awsRestjson1_deserializeErrorPreconditionNotMetException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.PreconditionNotMetException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) + case strings.EqualFold("InternalFailureException", errorCode): + return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + case strings.EqualFold("InvalidParameterValueException", errorCode): + return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) + + case strings.EqualFold("LimitExceededException", errorCode): + return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("UnsupportedUserEditionException", errorCode): + return awsRestjson1_deserializeErrorUnsupportedUserEditionException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, } - return err + return genericError + } +} - err := awsRestjson1_deserializeDocumentPreconditionNotMetException(&output, shape) +func awsRestjson1_deserializeOpDocumentUpdateFolderPermissionsOutput(v **UpdateFolderPermissionsOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) } - errorBody.Seek(0, io.SeekStart) + var sv *UpdateFolderPermissionsOutput + if *v == nil { + sv = &UpdateFolderPermissionsOutput{} + } else { + sv = *v + } - return output -} + for key, value := range shape { + switch key { + case "Arn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) + } -func awsRestjson1_deserializeErrorQuickSightUserNotFoundException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.QuickSightUserNotFoundException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) + case "FolderId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RestrictiveResourceId to be of type string, got %T instead", value) + } + sv.FolderId = ptr.String(jtv) + } - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } + case "Permissions": + if err := awsRestjson1_deserializeDocumentResourcePermissionList(&sv.Permissions, value); err != nil { + return err + } - err := awsRestjson1_deserializeDocumentQuickSightUserNotFoundException(&output, shape) + case "RequestId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.RequestId = ptr.String(jtv) + } + + case "Status": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected StatusCode to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.Status = int32(i64) + } + + default: + _, _ = key, value - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), } - return err } + *v = sv + return nil +} - errorBody.Seek(0, io.SeekStart) +type awsRestjson1_deserializeOpUpdateGroup struct { +} - return output +func (*awsRestjson1_deserializeOpUpdateGroup) ID() string { + return "OperationDeserializer" } -func awsRestjson1_deserializeErrorResourceExistsException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.ResourceExistsException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) +func (m *awsRestjson1_deserializeOpUpdateGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} } - err := awsRestjson1_deserializeDocumentResourceExistsException(&output, shape) + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorUpdateGroup(response, &metadata) + } + output := &UpdateGroupOutput{} + out.Result = output + err = awsRestjson1_deserializeOpHttpBindingsUpdateGroupOutput(output, response) if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} } - errorBody.Seek(0, io.SeekStart) - - return output -} - -func awsRestjson1_deserializeErrorResourceNotFoundException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.ResourceNotFoundException{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) decoder.UseNumber() var shape interface{} @@ -27046,36 +27068,45 @@ func awsRestjson1_deserializeErrorResourceNotFoundException(response *smithyhttp Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } - return err + return out, metadata, err } - err := awsRestjson1_deserializeDocumentResourceNotFoundException(&output, shape) - + err = awsRestjson1_deserializeOpDocumentUpdateGroupOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), Snapshot: snapshot.Bytes(), } - return err } - errorBody.Seek(0, io.SeekStart) - - return output + return out, metadata, err } -func awsRestjson1_deserializeErrorResourceUnavailableException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.ResourceUnavailableException{} +func awsRestjson1_deserializeOpErrorUpdateGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) decoder := json.NewDecoder(body) decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) err = &smithy.DeserializationError{ @@ -27085,168 +27116,6775 @@ func awsRestjson1_deserializeErrorResourceUnavailableException(response *smithyh return err } - err := awsRestjson1_deserializeDocumentResourceUnavailableException(&output, shape) - - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message } - errorBody.Seek(0, io.SeekStart) + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalFailureException", errorCode): + return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) + + case strings.EqualFold("InvalidParameterValueException", errorCode): + return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) + + case strings.EqualFold("PreconditionNotMetException", errorCode): + return awsRestjson1_deserializeErrorPreconditionNotMetException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ResourceUnavailableException", errorCode): + return awsRestjson1_deserializeErrorResourceUnavailableException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpHttpBindingsUpdateGroupOutput(v *UpdateGroupOutput, response *smithyhttp.Response) error { + if v == nil { + return fmt.Errorf("unsupported deserialization for nil %T", v) + } + + v.Status = int32(response.StatusCode) + + return nil +} +func awsRestjson1_deserializeOpDocumentUpdateGroupOutput(v **UpdateGroupOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *UpdateGroupOutput + if *v == nil { + sv = &UpdateGroupOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Group": + if err := awsRestjson1_deserializeDocumentGroup(&sv.Group, value); err != nil { + return err + } + + case "RequestId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.RequestId = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpUpdateIAMPolicyAssignment struct { +} + +func (*awsRestjson1_deserializeOpUpdateIAMPolicyAssignment) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUpdateIAMPolicyAssignment) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorUpdateIAMPolicyAssignment(response, &metadata) + } + output := &UpdateIAMPolicyAssignmentOutput{} + out.Result = output + + err = awsRestjson1_deserializeOpHttpBindingsUpdateIAMPolicyAssignmentOutput(output, response) + if err != nil { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsRestjson1_deserializeOpDocumentUpdateIAMPolicyAssignmentOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorUpdateIAMPolicyAssignment(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConcurrentUpdatingException", errorCode): + return awsRestjson1_deserializeErrorConcurrentUpdatingException(response, errorBody) + + case strings.EqualFold("InternalFailureException", errorCode): + return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) + + case strings.EqualFold("InvalidParameterValueException", errorCode): + return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) + + case strings.EqualFold("ResourceExistsException", errorCode): + return awsRestjson1_deserializeErrorResourceExistsException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpHttpBindingsUpdateIAMPolicyAssignmentOutput(v *UpdateIAMPolicyAssignmentOutput, response *smithyhttp.Response) error { + if v == nil { + return fmt.Errorf("unsupported deserialization for nil %T", v) + } + + v.Status = int32(response.StatusCode) + + return nil +} +func awsRestjson1_deserializeOpDocumentUpdateIAMPolicyAssignmentOutput(v **UpdateIAMPolicyAssignmentOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *UpdateIAMPolicyAssignmentOutput + if *v == nil { + sv = &UpdateIAMPolicyAssignmentOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "AssignmentId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.AssignmentId = ptr.String(jtv) + } + + case "AssignmentName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected IAMPolicyAssignmentName to be of type string, got %T instead", value) + } + sv.AssignmentName = ptr.String(jtv) + } + + case "AssignmentStatus": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AssignmentStatus to be of type string, got %T instead", value) + } + sv.AssignmentStatus = types.AssignmentStatus(jtv) + } + + case "Identities": + if err := awsRestjson1_deserializeDocumentIdentityMap(&sv.Identities, value); err != nil { + return err + } + + case "PolicyArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.PolicyArn = ptr.String(jtv) + } + + case "RequestId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.RequestId = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpUpdateIpRestriction struct { +} + +func (*awsRestjson1_deserializeOpUpdateIpRestriction) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUpdateIpRestriction) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorUpdateIpRestriction(response, &metadata) + } + output := &UpdateIpRestrictionOutput{} + out.Result = output + + err = awsRestjson1_deserializeOpHttpBindingsUpdateIpRestrictionOutput(output, response) + if err != nil { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsRestjson1_deserializeOpDocumentUpdateIpRestrictionOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorUpdateIpRestriction(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalFailureException", errorCode): + return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) + + case strings.EqualFold("InvalidParameterValueException", errorCode): + return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) + + case strings.EqualFold("LimitExceededException", errorCode): + return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpHttpBindingsUpdateIpRestrictionOutput(v *UpdateIpRestrictionOutput, response *smithyhttp.Response) error { + if v == nil { + return fmt.Errorf("unsupported deserialization for nil %T", v) + } + + v.Status = int32(response.StatusCode) + + return nil +} +func awsRestjson1_deserializeOpDocumentUpdateIpRestrictionOutput(v **UpdateIpRestrictionOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *UpdateIpRestrictionOutput + if *v == nil { + sv = &UpdateIpRestrictionOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "AwsAccountId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AwsAccountId to be of type string, got %T instead", value) + } + sv.AwsAccountId = ptr.String(jtv) + } + + case "RequestId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.RequestId = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpUpdatePublicSharingSettings struct { +} + +func (*awsRestjson1_deserializeOpUpdatePublicSharingSettings) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUpdatePublicSharingSettings) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorUpdatePublicSharingSettings(response, &metadata) + } + output := &UpdatePublicSharingSettingsOutput{} + out.Result = output + + err = awsRestjson1_deserializeOpHttpBindingsUpdatePublicSharingSettingsOutput(output, response) + if err != nil { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsRestjson1_deserializeOpDocumentUpdatePublicSharingSettingsOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorUpdatePublicSharingSettings(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalFailureException", errorCode): + return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) + + case strings.EqualFold("InvalidParameterValueException", errorCode): + return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("UnsupportedPricingPlanException", errorCode): + return awsRestjson1_deserializeErrorUnsupportedPricingPlanException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpHttpBindingsUpdatePublicSharingSettingsOutput(v *UpdatePublicSharingSettingsOutput, response *smithyhttp.Response) error { + if v == nil { + return fmt.Errorf("unsupported deserialization for nil %T", v) + } + + v.Status = int32(response.StatusCode) + + return nil +} +func awsRestjson1_deserializeOpDocumentUpdatePublicSharingSettingsOutput(v **UpdatePublicSharingSettingsOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *UpdatePublicSharingSettingsOutput + if *v == nil { + sv = &UpdatePublicSharingSettingsOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "RequestId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.RequestId = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpUpdateRefreshSchedule struct { +} + +func (*awsRestjson1_deserializeOpUpdateRefreshSchedule) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUpdateRefreshSchedule) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorUpdateRefreshSchedule(response, &metadata) + } + output := &UpdateRefreshScheduleOutput{} + out.Result = output + + err = awsRestjson1_deserializeOpHttpBindingsUpdateRefreshScheduleOutput(output, response) + if err != nil { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsRestjson1_deserializeOpDocumentUpdateRefreshScheduleOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorUpdateRefreshSchedule(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalFailureException", errorCode): + return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) + + case strings.EqualFold("InvalidParameterValueException", errorCode): + return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) + + case strings.EqualFold("LimitExceededException", errorCode): + return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody) + + case strings.EqualFold("PreconditionNotMetException", errorCode): + return awsRestjson1_deserializeErrorPreconditionNotMetException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpHttpBindingsUpdateRefreshScheduleOutput(v *UpdateRefreshScheduleOutput, response *smithyhttp.Response) error { + if v == nil { + return fmt.Errorf("unsupported deserialization for nil %T", v) + } + + v.Status = int32(response.StatusCode) + + return nil +} +func awsRestjson1_deserializeOpDocumentUpdateRefreshScheduleOutput(v **UpdateRefreshScheduleOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *UpdateRefreshScheduleOutput + if *v == nil { + sv = &UpdateRefreshScheduleOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Arn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) + } + + case "RequestId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.RequestId = ptr.String(jtv) + } + + case "ScheduleId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.ScheduleId = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpUpdateTemplate struct { +} + +func (*awsRestjson1_deserializeOpUpdateTemplate) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUpdateTemplate) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorUpdateTemplate(response, &metadata) + } + output := &UpdateTemplateOutput{} + out.Result = output + + err = awsRestjson1_deserializeOpHttpBindingsUpdateTemplateOutput(output, response) + if err != nil { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsRestjson1_deserializeOpDocumentUpdateTemplateOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorUpdateTemplate(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalFailureException", errorCode): + return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) + + case strings.EqualFold("InvalidParameterValueException", errorCode): + return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) + + case strings.EqualFold("LimitExceededException", errorCode): + return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody) + + case strings.EqualFold("ResourceExistsException", errorCode): + return awsRestjson1_deserializeErrorResourceExistsException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("UnsupportedUserEditionException", errorCode): + return awsRestjson1_deserializeErrorUnsupportedUserEditionException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpHttpBindingsUpdateTemplateOutput(v *UpdateTemplateOutput, response *smithyhttp.Response) error { + if v == nil { + return fmt.Errorf("unsupported deserialization for nil %T", v) + } + + v.Status = int32(response.StatusCode) + + return nil +} +func awsRestjson1_deserializeOpDocumentUpdateTemplateOutput(v **UpdateTemplateOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *UpdateTemplateOutput + if *v == nil { + sv = &UpdateTemplateOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Arn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) + } + + case "CreationStatus": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourceStatus to be of type string, got %T instead", value) + } + sv.CreationStatus = types.ResourceStatus(jtv) + } + + case "RequestId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.RequestId = ptr.String(jtv) + } + + case "TemplateId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + } + sv.TemplateId = ptr.String(jtv) + } + + case "VersionArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.VersionArn = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpUpdateTemplateAlias struct { +} + +func (*awsRestjson1_deserializeOpUpdateTemplateAlias) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUpdateTemplateAlias) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorUpdateTemplateAlias(response, &metadata) + } + output := &UpdateTemplateAliasOutput{} + out.Result = output + + err = awsRestjson1_deserializeOpHttpBindingsUpdateTemplateAliasOutput(output, response) + if err != nil { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsRestjson1_deserializeOpDocumentUpdateTemplateAliasOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorUpdateTemplateAlias(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalFailureException", errorCode): + return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("UnsupportedUserEditionException", errorCode): + return awsRestjson1_deserializeErrorUnsupportedUserEditionException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpHttpBindingsUpdateTemplateAliasOutput(v *UpdateTemplateAliasOutput, response *smithyhttp.Response) error { + if v == nil { + return fmt.Errorf("unsupported deserialization for nil %T", v) + } + + v.Status = int32(response.StatusCode) + + return nil +} +func awsRestjson1_deserializeOpDocumentUpdateTemplateAliasOutput(v **UpdateTemplateAliasOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *UpdateTemplateAliasOutput + if *v == nil { + sv = &UpdateTemplateAliasOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "RequestId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.RequestId = ptr.String(jtv) + } + + case "TemplateAlias": + if err := awsRestjson1_deserializeDocumentTemplateAlias(&sv.TemplateAlias, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpUpdateTemplatePermissions struct { +} + +func (*awsRestjson1_deserializeOpUpdateTemplatePermissions) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUpdateTemplatePermissions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorUpdateTemplatePermissions(response, &metadata) + } + output := &UpdateTemplatePermissionsOutput{} + out.Result = output + + err = awsRestjson1_deserializeOpHttpBindingsUpdateTemplatePermissionsOutput(output, response) + if err != nil { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsRestjson1_deserializeOpDocumentUpdateTemplatePermissionsOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorUpdateTemplatePermissions(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalFailureException", errorCode): + return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) + + case strings.EqualFold("InvalidParameterValueException", errorCode): + return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) + + case strings.EqualFold("LimitExceededException", errorCode): + return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("UnsupportedUserEditionException", errorCode): + return awsRestjson1_deserializeErrorUnsupportedUserEditionException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpHttpBindingsUpdateTemplatePermissionsOutput(v *UpdateTemplatePermissionsOutput, response *smithyhttp.Response) error { + if v == nil { + return fmt.Errorf("unsupported deserialization for nil %T", v) + } + + v.Status = int32(response.StatusCode) + + return nil +} +func awsRestjson1_deserializeOpDocumentUpdateTemplatePermissionsOutput(v **UpdateTemplatePermissionsOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *UpdateTemplatePermissionsOutput + if *v == nil { + sv = &UpdateTemplatePermissionsOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Permissions": + if err := awsRestjson1_deserializeDocumentResourcePermissionList(&sv.Permissions, value); err != nil { + return err + } + + case "RequestId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.RequestId = ptr.String(jtv) + } + + case "TemplateArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.TemplateArn = ptr.String(jtv) + } + + case "TemplateId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + } + sv.TemplateId = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpUpdateTheme struct { +} + +func (*awsRestjson1_deserializeOpUpdateTheme) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUpdateTheme) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorUpdateTheme(response, &metadata) + } + output := &UpdateThemeOutput{} + out.Result = output + + err = awsRestjson1_deserializeOpHttpBindingsUpdateThemeOutput(output, response) + if err != nil { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsRestjson1_deserializeOpDocumentUpdateThemeOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorUpdateTheme(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalFailureException", errorCode): + return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) + + case strings.EqualFold("InvalidParameterValueException", errorCode): + return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) + + case strings.EqualFold("LimitExceededException", errorCode): + return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody) + + case strings.EqualFold("ResourceExistsException", errorCode): + return awsRestjson1_deserializeErrorResourceExistsException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("UnsupportedUserEditionException", errorCode): + return awsRestjson1_deserializeErrorUnsupportedUserEditionException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpHttpBindingsUpdateThemeOutput(v *UpdateThemeOutput, response *smithyhttp.Response) error { + if v == nil { + return fmt.Errorf("unsupported deserialization for nil %T", v) + } + + v.Status = int32(response.StatusCode) + + return nil +} +func awsRestjson1_deserializeOpDocumentUpdateThemeOutput(v **UpdateThemeOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *UpdateThemeOutput + if *v == nil { + sv = &UpdateThemeOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Arn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) + } + + case "CreationStatus": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourceStatus to be of type string, got %T instead", value) + } + sv.CreationStatus = types.ResourceStatus(jtv) + } + + case "RequestId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.RequestId = ptr.String(jtv) + } + + case "ThemeId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + } + sv.ThemeId = ptr.String(jtv) + } + + case "VersionArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.VersionArn = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpUpdateThemeAlias struct { +} + +func (*awsRestjson1_deserializeOpUpdateThemeAlias) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUpdateThemeAlias) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorUpdateThemeAlias(response, &metadata) + } + output := &UpdateThemeAliasOutput{} + out.Result = output + + err = awsRestjson1_deserializeOpHttpBindingsUpdateThemeAliasOutput(output, response) + if err != nil { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsRestjson1_deserializeOpDocumentUpdateThemeAliasOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorUpdateThemeAlias(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalFailureException", errorCode): + return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) + + case strings.EqualFold("InvalidParameterValueException", errorCode): + return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) + + case strings.EqualFold("ResourceExistsException", errorCode): + return awsRestjson1_deserializeErrorResourceExistsException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("UnsupportedUserEditionException", errorCode): + return awsRestjson1_deserializeErrorUnsupportedUserEditionException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpHttpBindingsUpdateThemeAliasOutput(v *UpdateThemeAliasOutput, response *smithyhttp.Response) error { + if v == nil { + return fmt.Errorf("unsupported deserialization for nil %T", v) + } + + v.Status = int32(response.StatusCode) + + return nil +} +func awsRestjson1_deserializeOpDocumentUpdateThemeAliasOutput(v **UpdateThemeAliasOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *UpdateThemeAliasOutput + if *v == nil { + sv = &UpdateThemeAliasOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "RequestId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.RequestId = ptr.String(jtv) + } + + case "ThemeAlias": + if err := awsRestjson1_deserializeDocumentThemeAlias(&sv.ThemeAlias, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpUpdateThemePermissions struct { +} + +func (*awsRestjson1_deserializeOpUpdateThemePermissions) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUpdateThemePermissions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorUpdateThemePermissions(response, &metadata) + } + output := &UpdateThemePermissionsOutput{} + out.Result = output + + err = awsRestjson1_deserializeOpHttpBindingsUpdateThemePermissionsOutput(output, response) + if err != nil { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsRestjson1_deserializeOpDocumentUpdateThemePermissionsOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorUpdateThemePermissions(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalFailureException", errorCode): + return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) + + case strings.EqualFold("InvalidParameterValueException", errorCode): + return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) + + case strings.EqualFold("LimitExceededException", errorCode): + return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("UnsupportedUserEditionException", errorCode): + return awsRestjson1_deserializeErrorUnsupportedUserEditionException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpHttpBindingsUpdateThemePermissionsOutput(v *UpdateThemePermissionsOutput, response *smithyhttp.Response) error { + if v == nil { + return fmt.Errorf("unsupported deserialization for nil %T", v) + } + + v.Status = int32(response.StatusCode) + + return nil +} +func awsRestjson1_deserializeOpDocumentUpdateThemePermissionsOutput(v **UpdateThemePermissionsOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *UpdateThemePermissionsOutput + if *v == nil { + sv = &UpdateThemePermissionsOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Permissions": + if err := awsRestjson1_deserializeDocumentResourcePermissionList(&sv.Permissions, value); err != nil { + return err + } + + case "RequestId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.RequestId = ptr.String(jtv) + } + + case "ThemeArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.ThemeArn = ptr.String(jtv) + } + + case "ThemeId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + } + sv.ThemeId = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpUpdateTopic struct { +} + +func (*awsRestjson1_deserializeOpUpdateTopic) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUpdateTopic) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorUpdateTopic(response, &metadata) + } + output := &UpdateTopicOutput{} + out.Result = output + + err = awsRestjson1_deserializeOpHttpBindingsUpdateTopicOutput(output, response) + if err != nil { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsRestjson1_deserializeOpDocumentUpdateTopicOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorUpdateTopic(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalFailureException", errorCode): + return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) + + case strings.EqualFold("InvalidParameterValueException", errorCode): + return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) + + case strings.EqualFold("LimitExceededException", errorCode): + return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody) + + case strings.EqualFold("ResourceExistsException", errorCode): + return awsRestjson1_deserializeErrorResourceExistsException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpHttpBindingsUpdateTopicOutput(v *UpdateTopicOutput, response *smithyhttp.Response) error { + if v == nil { + return fmt.Errorf("unsupported deserialization for nil %T", v) + } + + v.Status = int32(response.StatusCode) + + return nil +} +func awsRestjson1_deserializeOpDocumentUpdateTopicOutput(v **UpdateTopicOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *UpdateTopicOutput + if *v == nil { + sv = &UpdateTopicOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Arn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) + } + + case "RefreshArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.RefreshArn = ptr.String(jtv) + } + + case "RequestId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.RequestId = ptr.String(jtv) + } + + case "TopicId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TopicId to be of type string, got %T instead", value) + } + sv.TopicId = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpUpdateTopicPermissions struct { +} + +func (*awsRestjson1_deserializeOpUpdateTopicPermissions) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUpdateTopicPermissions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorUpdateTopicPermissions(response, &metadata) + } + output := &UpdateTopicPermissionsOutput{} + out.Result = output + + err = awsRestjson1_deserializeOpHttpBindingsUpdateTopicPermissionsOutput(output, response) + if err != nil { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsRestjson1_deserializeOpDocumentUpdateTopicPermissionsOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorUpdateTopicPermissions(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalFailureException", errorCode): + return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) + + case strings.EqualFold("InvalidParameterValueException", errorCode): + return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) + + case strings.EqualFold("LimitExceededException", errorCode): + return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("UnsupportedUserEditionException", errorCode): + return awsRestjson1_deserializeErrorUnsupportedUserEditionException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpHttpBindingsUpdateTopicPermissionsOutput(v *UpdateTopicPermissionsOutput, response *smithyhttp.Response) error { + if v == nil { + return fmt.Errorf("unsupported deserialization for nil %T", v) + } + + v.Status = int32(response.StatusCode) + + return nil +} +func awsRestjson1_deserializeOpDocumentUpdateTopicPermissionsOutput(v **UpdateTopicPermissionsOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *UpdateTopicPermissionsOutput + if *v == nil { + sv = &UpdateTopicPermissionsOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Permissions": + if err := awsRestjson1_deserializeDocumentResourcePermissionList(&sv.Permissions, value); err != nil { + return err + } + + case "RequestId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.RequestId = ptr.String(jtv) + } + + case "TopicArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.TopicArn = ptr.String(jtv) + } + + case "TopicId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TopicId to be of type string, got %T instead", value) + } + sv.TopicId = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpUpdateTopicRefreshSchedule struct { +} + +func (*awsRestjson1_deserializeOpUpdateTopicRefreshSchedule) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUpdateTopicRefreshSchedule) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorUpdateTopicRefreshSchedule(response, &metadata) + } + output := &UpdateTopicRefreshScheduleOutput{} + out.Result = output + + err = awsRestjson1_deserializeOpHttpBindingsUpdateTopicRefreshScheduleOutput(output, response) + if err != nil { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsRestjson1_deserializeOpDocumentUpdateTopicRefreshScheduleOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorUpdateTopicRefreshSchedule(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalFailureException", errorCode): + return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) + + case strings.EqualFold("InvalidParameterValueException", errorCode): + return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) + + case strings.EqualFold("LimitExceededException", errorCode): + return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody) + + case strings.EqualFold("ResourceExistsException", errorCode): + return awsRestjson1_deserializeErrorResourceExistsException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpHttpBindingsUpdateTopicRefreshScheduleOutput(v *UpdateTopicRefreshScheduleOutput, response *smithyhttp.Response) error { + if v == nil { + return fmt.Errorf("unsupported deserialization for nil %T", v) + } + + v.Status = int32(response.StatusCode) + + return nil +} +func awsRestjson1_deserializeOpDocumentUpdateTopicRefreshScheduleOutput(v **UpdateTopicRefreshScheduleOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *UpdateTopicRefreshScheduleOutput + if *v == nil { + sv = &UpdateTopicRefreshScheduleOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "DatasetArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.DatasetArn = ptr.String(jtv) + } + + case "RequestId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.RequestId = ptr.String(jtv) + } + + case "TopicArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.TopicArn = ptr.String(jtv) + } + + case "TopicId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TopicId to be of type string, got %T instead", value) + } + sv.TopicId = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpUpdateUser struct { +} + +func (*awsRestjson1_deserializeOpUpdateUser) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUpdateUser) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorUpdateUser(response, &metadata) + } + output := &UpdateUserOutput{} + out.Result = output + + err = awsRestjson1_deserializeOpHttpBindingsUpdateUserOutput(output, response) + if err != nil { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsRestjson1_deserializeOpDocumentUpdateUserOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorUpdateUser(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalFailureException", errorCode): + return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) + + case strings.EqualFold("InvalidParameterValueException", errorCode): + return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) + + case strings.EqualFold("PreconditionNotMetException", errorCode): + return awsRestjson1_deserializeErrorPreconditionNotMetException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ResourceUnavailableException", errorCode): + return awsRestjson1_deserializeErrorResourceUnavailableException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpHttpBindingsUpdateUserOutput(v *UpdateUserOutput, response *smithyhttp.Response) error { + if v == nil { + return fmt.Errorf("unsupported deserialization for nil %T", v) + } + + v.Status = int32(response.StatusCode) + + return nil +} +func awsRestjson1_deserializeOpDocumentUpdateUserOutput(v **UpdateUserOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *UpdateUserOutput + if *v == nil { + sv = &UpdateUserOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "RequestId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.RequestId = ptr.String(jtv) + } + + case "User": + if err := awsRestjson1_deserializeDocumentUser(&sv.User, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpUpdateVPCConnection struct { +} + +func (*awsRestjson1_deserializeOpUpdateVPCConnection) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUpdateVPCConnection) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorUpdateVPCConnection(response, &metadata) + } + output := &UpdateVPCConnectionOutput{} + out.Result = output + + err = awsRestjson1_deserializeOpHttpBindingsUpdateVPCConnectionOutput(output, response) + if err != nil { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response with invalid Http bindings, %w", err)} + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsRestjson1_deserializeOpDocumentUpdateVPCConnectionOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorUpdateVPCConnection(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalFailureException", errorCode): + return awsRestjson1_deserializeErrorInternalFailureException(response, errorBody) + + case strings.EqualFold("InvalidParameterValueException", errorCode): + return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) + + case strings.EqualFold("LimitExceededException", errorCode): + return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("UnsupportedUserEditionException", errorCode): + return awsRestjson1_deserializeErrorUnsupportedUserEditionException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpHttpBindingsUpdateVPCConnectionOutput(v *UpdateVPCConnectionOutput, response *smithyhttp.Response) error { + if v == nil { + return fmt.Errorf("unsupported deserialization for nil %T", v) + } + + v.Status = int32(response.StatusCode) + + return nil +} +func awsRestjson1_deserializeOpDocumentUpdateVPCConnectionOutput(v **UpdateVPCConnectionOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *UpdateVPCConnectionOutput + if *v == nil { + sv = &UpdateVPCConnectionOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Arn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) + } + + case "AvailabilityStatus": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected VPCConnectionAvailabilityStatus to be of type string, got %T instead", value) + } + sv.AvailabilityStatus = types.VPCConnectionAvailabilityStatus(jtv) + } + + case "RequestId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.RequestId = ptr.String(jtv) + } + + case "UpdateStatus": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected VPCConnectionResourceStatus to be of type string, got %T instead", value) + } + sv.UpdateStatus = types.VPCConnectionResourceStatus(jtv) + } + + case "VPCConnectionId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected VPCConnectionResourceIdUnrestricted to be of type string, got %T instead", value) + } + sv.VPCConnectionId = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeErrorAccessDeniedException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.AccessDeniedException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentAccessDeniedException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeErrorConcurrentUpdatingException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ConcurrentUpdatingException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentConcurrentUpdatingException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeErrorConflictException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ConflictException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentConflictException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeErrorDomainNotWhitelistedException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.DomainNotWhitelistedException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentDomainNotWhitelistedException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeErrorIdentityTypeNotSupportedException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.IdentityTypeNotSupportedException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentIdentityTypeNotSupportedException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeErrorInternalFailureException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.InternalFailureException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentInternalFailureException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeErrorInvalidNextTokenException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.InvalidNextTokenException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentInvalidNextTokenException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeErrorInvalidParameterValueException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.InvalidParameterValueException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentInvalidParameterValueException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeErrorInvalidRequestException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.InvalidRequestException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentInvalidRequestException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeErrorLimitExceededException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.LimitExceededException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentLimitExceededException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeErrorPreconditionNotMetException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.PreconditionNotMetException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentPreconditionNotMetException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeErrorQuickSightUserNotFoundException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.QuickSightUserNotFoundException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentQuickSightUserNotFoundException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeErrorResourceExistsException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ResourceExistsException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentResourceExistsException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeErrorResourceNotFoundException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ResourceNotFoundException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentResourceNotFoundException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeErrorResourceUnavailableException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ResourceUnavailableException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentResourceUnavailableException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeErrorSessionLifetimeInMinutesInvalidException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.SessionLifetimeInMinutesInvalidException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentSessionLifetimeInMinutesInvalidException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeErrorThrottlingException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ThrottlingException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentThrottlingException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeErrorUnsupportedPricingPlanException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.UnsupportedPricingPlanException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentUnsupportedPricingPlanException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeErrorUnsupportedUserEditionException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.UnsupportedUserEditionException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentUnsupportedUserEditionException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDeniedException, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AccessDeniedException + if *v == nil { + sv = &types.AccessDeniedException{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + case "RequestId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.RequestId = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAccountCustomization(v **types.AccountCustomization, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AccountCustomization + if *v == nil { + sv = &types.AccountCustomization{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "DefaultEmailCustomizationTemplate": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.DefaultEmailCustomizationTemplate = ptr.String(jtv) + } + + case "DefaultTheme": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.DefaultTheme = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAccountInfo(v **types.AccountInfo, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AccountInfo + if *v == nil { + sv = &types.AccountInfo{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "AccountName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.AccountName = ptr.String(jtv) + } + + case "AccountSubscriptionStatus": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.AccountSubscriptionStatus = ptr.String(jtv) + } + + case "AuthenticationType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.AuthenticationType = ptr.String(jtv) + } + + case "Edition": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Edition to be of type string, got %T instead", value) + } + sv.Edition = types.Edition(jtv) + } + + case "NotificationEmail": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.NotificationEmail = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAccountSettings(v **types.AccountSettings, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AccountSettings + if *v == nil { + sv = &types.AccountSettings{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "AccountName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.AccountName = ptr.String(jtv) + } + + case "DefaultNamespace": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Namespace to be of type string, got %T instead", value) + } + sv.DefaultNamespace = ptr.String(jtv) + } + + case "Edition": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Edition to be of type string, got %T instead", value) + } + sv.Edition = types.Edition(jtv) + } + + case "NotificationEmail": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.NotificationEmail = ptr.String(jtv) + } + + case "PublicSharingEnabled": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + } + sv.PublicSharingEnabled = jtv + } + + case "TerminationProtectionEnabled": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + } + sv.TerminationProtectionEnabled = jtv + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentActionList(v *[]string, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []string + if *v == nil { + cv = []string{} + } else { + cv = *v + } + + for _, value := range shape { + var col string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + col = jtv + } + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentActiveIAMPolicyAssignment(v **types.ActiveIAMPolicyAssignment, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ActiveIAMPolicyAssignment + if *v == nil { + sv = &types.ActiveIAMPolicyAssignment{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "AssignmentName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected IAMPolicyAssignmentName to be of type string, got %T instead", value) + } + sv.AssignmentName = ptr.String(jtv) + } + + case "PolicyArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.PolicyArn = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentActiveIAMPolicyAssignmentList(v *[]types.ActiveIAMPolicyAssignment, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.ActiveIAMPolicyAssignment + if *v == nil { + cv = []types.ActiveIAMPolicyAssignment{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.ActiveIAMPolicyAssignment + destAddr := &col + if err := awsRestjson1_deserializeDocumentActiveIAMPolicyAssignment(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentAdHocFilteringOption(v **types.AdHocFilteringOption, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AdHocFilteringOption + if *v == nil { + sv = &types.AdHocFilteringOption{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "AvailabilityStatus": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DashboardBehavior to be of type string, got %T instead", value) + } + sv.AvailabilityStatus = types.DashboardBehavior(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAggregationFunction(v **types.AggregationFunction, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AggregationFunction + if *v == nil { + sv = &types.AggregationFunction{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "CategoricalAggregationFunction": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected CategoricalAggregationFunction to be of type string, got %T instead", value) + } + sv.CategoricalAggregationFunction = types.CategoricalAggregationFunction(jtv) + } + + case "DateAggregationFunction": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DateAggregationFunction to be of type string, got %T instead", value) + } + sv.DateAggregationFunction = types.DateAggregationFunction(jtv) + } + + case "NumericalAggregationFunction": + if err := awsRestjson1_deserializeDocumentNumericalAggregationFunction(&sv.NumericalAggregationFunction, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAggregationFunctionParameters(v *map[string]string, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var mv map[string]string + if *v == nil { + mv = map[string]string{} + } else { + mv = *v + } + + for key, value := range shape { + var parsedVal string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected LimitedString to be of type string, got %T instead", value) + } + parsedVal = jtv + } + mv[key] = parsedVal + + } + *v = mv + return nil +} + +func awsRestjson1_deserializeDocumentAggregationSortConfiguration(v **types.AggregationSortConfiguration, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AggregationSortConfiguration + if *v == nil { + sv = &types.AggregationSortConfiguration{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "AggregationFunction": + if err := awsRestjson1_deserializeDocumentAggregationFunction(&sv.AggregationFunction, value); err != nil { + return err + } + + case "Column": + if err := awsRestjson1_deserializeDocumentColumnIdentifier(&sv.Column, value); err != nil { + return err + } + + case "SortDirection": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected SortDirection to be of type string, got %T instead", value) + } + sv.SortDirection = types.SortDirection(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAggregationSortConfigurationList(v *[]types.AggregationSortConfiguration, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.AggregationSortConfiguration + if *v == nil { + cv = []types.AggregationSortConfiguration{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.AggregationSortConfiguration + destAddr := &col + if err := awsRestjson1_deserializeDocumentAggregationSortConfiguration(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentAmazonElasticsearchParameters(v **types.AmazonElasticsearchParameters, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AmazonElasticsearchParameters + if *v == nil { + sv = &types.AmazonElasticsearchParameters{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Domain": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Domain to be of type string, got %T instead", value) + } + sv.Domain = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAmazonOpenSearchParameters(v **types.AmazonOpenSearchParameters, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AmazonOpenSearchParameters + if *v == nil { + sv = &types.AmazonOpenSearchParameters{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Domain": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Domain to be of type string, got %T instead", value) + } + sv.Domain = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAnalysis(v **types.Analysis, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.Analysis + if *v == nil { + sv = &types.Analysis{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "AnalysisId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + } + sv.AnalysisId = ptr.String(jtv) + } + + case "Arn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) + } + + case "CreatedTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreatedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "DataSetArns": + if err := awsRestjson1_deserializeDocumentDataSetArnsList(&sv.DataSetArns, value); err != nil { + return err + } + + case "Errors": + if err := awsRestjson1_deserializeDocumentAnalysisErrorList(&sv.Errors, value); err != nil { + return err + } + + case "LastUpdatedTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.LastUpdatedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "Name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AnalysisName to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + case "Sheets": + if err := awsRestjson1_deserializeDocumentSheetList(&sv.Sheets, value); err != nil { + return err + } + + case "Status": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourceStatus to be of type string, got %T instead", value) + } + sv.Status = types.ResourceStatus(jtv) + } + + case "ThemeArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.ThemeArn = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAnalysisDefaults(v **types.AnalysisDefaults, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AnalysisDefaults + if *v == nil { + sv = &types.AnalysisDefaults{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "DefaultNewSheetConfiguration": + if err := awsRestjson1_deserializeDocumentDefaultNewSheetConfiguration(&sv.DefaultNewSheetConfiguration, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAnalysisDefinition(v **types.AnalysisDefinition, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AnalysisDefinition + if *v == nil { + sv = &types.AnalysisDefinition{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "AnalysisDefaults": + if err := awsRestjson1_deserializeDocumentAnalysisDefaults(&sv.AnalysisDefaults, value); err != nil { + return err + } + + case "CalculatedFields": + if err := awsRestjson1_deserializeDocumentCalculatedFields(&sv.CalculatedFields, value); err != nil { + return err + } + + case "ColumnConfigurations": + if err := awsRestjson1_deserializeDocumentColumnConfigurationList(&sv.ColumnConfigurations, value); err != nil { + return err + } + + case "DataSetIdentifierDeclarations": + if err := awsRestjson1_deserializeDocumentDataSetIdentifierDeclarationList(&sv.DataSetIdentifierDeclarations, value); err != nil { + return err + } + + case "FilterGroups": + if err := awsRestjson1_deserializeDocumentFilterGroupList(&sv.FilterGroups, value); err != nil { + return err + } + + case "ParameterDeclarations": + if err := awsRestjson1_deserializeDocumentParameterDeclarationList(&sv.ParameterDeclarations, value); err != nil { + return err + } + + case "Sheets": + if err := awsRestjson1_deserializeDocumentSheetDefinitionList(&sv.Sheets, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAnalysisError(v **types.AnalysisError, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AnalysisError + if *v == nil { + sv = &types.AnalysisError{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + case "Type": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AnalysisErrorType to be of type string, got %T instead", value) + } + sv.Type = types.AnalysisErrorType(jtv) + } + + case "ViolatedEntities": + if err := awsRestjson1_deserializeDocumentEntityList(&sv.ViolatedEntities, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAnalysisErrorList(v *[]types.AnalysisError, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.AnalysisError + if *v == nil { + cv = []types.AnalysisError{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.AnalysisError + destAddr := &col + if err := awsRestjson1_deserializeDocumentAnalysisError(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentAnalysisSummary(v **types.AnalysisSummary, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AnalysisSummary + if *v == nil { + sv = &types.AnalysisSummary{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "AnalysisId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + } + sv.AnalysisId = ptr.String(jtv) + } + + case "Arn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) + } + + case "CreatedTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreatedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "LastUpdatedTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.LastUpdatedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "Name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AnalysisName to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + case "Status": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourceStatus to be of type string, got %T instead", value) + } + sv.Status = types.ResourceStatus(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAnalysisSummaryList(v *[]types.AnalysisSummary, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.AnalysisSummary + if *v == nil { + cv = []types.AnalysisSummary{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.AnalysisSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentAnalysisSummary(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentAnchorDateConfiguration(v **types.AnchorDateConfiguration, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AnchorDateConfiguration + if *v == nil { + sv = &types.AnchorDateConfiguration{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "AnchorOption": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AnchorOption to be of type string, got %T instead", value) + } + sv.AnchorOption = types.AnchorOption(jtv) + } + + case "ParameterName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ParameterName to be of type string, got %T instead", value) + } + sv.ParameterName = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentArcAxisConfiguration(v **types.ArcAxisConfiguration, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ArcAxisConfiguration + if *v == nil { + sv = &types.ArcAxisConfiguration{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Range": + if err := awsRestjson1_deserializeDocumentArcAxisDisplayRange(&sv.Range, value); err != nil { + return err + } + + case "ReserveRange": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.ReserveRange = int32(i64) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentArcAxisDisplayRange(v **types.ArcAxisDisplayRange, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ArcAxisDisplayRange + if *v == nil { + sv = &types.ArcAxisDisplayRange{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Max": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.Max = ptr.Float64(f64) + + case string: + var f64 float64 + switch { + case strings.EqualFold(jtv, "NaN"): + f64 = math.NaN() + + case strings.EqualFold(jtv, "Infinity"): + f64 = math.Inf(1) + + case strings.EqualFold(jtv, "-Infinity"): + f64 = math.Inf(-1) + + default: + return fmt.Errorf("unknown JSON number value: %s", jtv) + + } + sv.Max = ptr.Float64(f64) + + default: + return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value) + + } + } + + case "Min": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.Min = ptr.Float64(f64) + + case string: + var f64 float64 + switch { + case strings.EqualFold(jtv, "NaN"): + f64 = math.NaN() + + case strings.EqualFold(jtv, "Infinity"): + f64 = math.Inf(1) + + case strings.EqualFold(jtv, "-Infinity"): + f64 = math.Inf(-1) + + default: + return fmt.Errorf("unknown JSON number value: %s", jtv) + + } + sv.Min = ptr.Float64(f64) + + default: + return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value) + + } + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentArcConfiguration(v **types.ArcConfiguration, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ArcConfiguration + if *v == nil { + sv = &types.ArcConfiguration{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "ArcAngle": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.ArcAngle = ptr.Float64(f64) + + case string: + var f64 float64 + switch { + case strings.EqualFold(jtv, "NaN"): + f64 = math.NaN() + + case strings.EqualFold(jtv, "Infinity"): + f64 = math.Inf(1) + + case strings.EqualFold(jtv, "-Infinity"): + f64 = math.Inf(-1) + + default: + return fmt.Errorf("unknown JSON number value: %s", jtv) + + } + sv.ArcAngle = ptr.Float64(f64) + + default: + return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value) + + } + } + + case "ArcThickness": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ArcThicknessOptions to be of type string, got %T instead", value) + } + sv.ArcThickness = types.ArcThicknessOptions(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentArcOptions(v **types.ArcOptions, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ArcOptions + if *v == nil { + sv = &types.ArcOptions{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "ArcThickness": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ArcThickness to be of type string, got %T instead", value) + } + sv.ArcThickness = types.ArcThickness(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAthenaParameters(v **types.AthenaParameters, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AthenaParameters + if *v == nil { + sv = &types.AthenaParameters{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "RoleArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) + } + sv.RoleArn = ptr.String(jtv) + } + + case "WorkGroup": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected WorkGroup to be of type string, got %T instead", value) + } + sv.WorkGroup = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAuroraParameters(v **types.AuroraParameters, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AuroraParameters + if *v == nil { + sv = &types.AuroraParameters{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Database": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Database to be of type string, got %T instead", value) + } + sv.Database = ptr.String(jtv) + } + + case "Host": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Host to be of type string, got %T instead", value) + } + sv.Host = ptr.String(jtv) + } + + case "Port": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected Port to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.Port = int32(i64) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAuroraPostgreSqlParameters(v **types.AuroraPostgreSqlParameters, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AuroraPostgreSqlParameters + if *v == nil { + sv = &types.AuroraPostgreSqlParameters{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Database": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Database to be of type string, got %T instead", value) + } + sv.Database = ptr.String(jtv) + } + + case "Host": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Host to be of type string, got %T instead", value) + } + sv.Host = ptr.String(jtv) + } + + case "Port": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected Port to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.Port = int32(i64) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAuthorSpecifiedAggregations(v *[]types.AuthorSpecifiedAggregation, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.AuthorSpecifiedAggregation + if *v == nil { + cv = []types.AuthorSpecifiedAggregation{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.AuthorSpecifiedAggregation + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AuthorSpecifiedAggregation to be of type string, got %T instead", value) + } + col = types.AuthorSpecifiedAggregation(jtv) + } + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentAwsIotAnalyticsParameters(v **types.AwsIotAnalyticsParameters, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AwsIotAnalyticsParameters + if *v == nil { + sv = &types.AwsIotAnalyticsParameters{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "DataSetName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DataSetName to be of type string, got %T instead", value) + } + sv.DataSetName = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAxisDataOptions(v **types.AxisDataOptions, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AxisDataOptions + if *v == nil { + sv = &types.AxisDataOptions{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "DateAxisOptions": + if err := awsRestjson1_deserializeDocumentDateAxisOptions(&sv.DateAxisOptions, value); err != nil { + return err + } + + case "NumericAxisOptions": + if err := awsRestjson1_deserializeDocumentNumericAxisOptions(&sv.NumericAxisOptions, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAxisDisplayDataDrivenRange(v **types.AxisDisplayDataDrivenRange, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AxisDisplayDataDrivenRange + if *v == nil { + sv = &types.AxisDisplayDataDrivenRange{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAxisDisplayMinMaxRange(v **types.AxisDisplayMinMaxRange, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AxisDisplayMinMaxRange + if *v == nil { + sv = &types.AxisDisplayMinMaxRange{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Maximum": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.Maximum = ptr.Float64(f64) + + case string: + var f64 float64 + switch { + case strings.EqualFold(jtv, "NaN"): + f64 = math.NaN() + + case strings.EqualFold(jtv, "Infinity"): + f64 = math.Inf(1) + + case strings.EqualFold(jtv, "-Infinity"): + f64 = math.Inf(-1) + + default: + return fmt.Errorf("unknown JSON number value: %s", jtv) + + } + sv.Maximum = ptr.Float64(f64) + + default: + return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value) + + } + } + + case "Minimum": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.Minimum = ptr.Float64(f64) + + case string: + var f64 float64 + switch { + case strings.EqualFold(jtv, "NaN"): + f64 = math.NaN() + + case strings.EqualFold(jtv, "Infinity"): + f64 = math.Inf(1) + + case strings.EqualFold(jtv, "-Infinity"): + f64 = math.Inf(-1) + + default: + return fmt.Errorf("unknown JSON number value: %s", jtv) + + } + sv.Minimum = ptr.Float64(f64) + + default: + return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value) + + } + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAxisDisplayOptions(v **types.AxisDisplayOptions, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AxisDisplayOptions + if *v == nil { + sv = &types.AxisDisplayOptions{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "AxisLineVisibility": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) + } + sv.AxisLineVisibility = types.Visibility(jtv) + } + + case "AxisOffset": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected PixelLength to be of type string, got %T instead", value) + } + sv.AxisOffset = ptr.String(jtv) + } + + case "DataOptions": + if err := awsRestjson1_deserializeDocumentAxisDataOptions(&sv.DataOptions, value); err != nil { + return err + } + + case "GridLineVisibility": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) + } + sv.GridLineVisibility = types.Visibility(jtv) + } + + case "ScrollbarOptions": + if err := awsRestjson1_deserializeDocumentScrollBarOptions(&sv.ScrollbarOptions, value); err != nil { + return err + } + + case "TickLabelOptions": + if err := awsRestjson1_deserializeDocumentAxisTickLabelOptions(&sv.TickLabelOptions, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAxisDisplayRange(v **types.AxisDisplayRange, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AxisDisplayRange + if *v == nil { + sv = &types.AxisDisplayRange{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "DataDriven": + if err := awsRestjson1_deserializeDocumentAxisDisplayDataDrivenRange(&sv.DataDriven, value); err != nil { + return err + } + + case "MinMax": + if err := awsRestjson1_deserializeDocumentAxisDisplayMinMaxRange(&sv.MinMax, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAxisLabelOptions(v **types.AxisLabelOptions, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AxisLabelOptions + if *v == nil { + sv = &types.AxisLabelOptions{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "ApplyTo": + if err := awsRestjson1_deserializeDocumentAxisLabelReferenceOptions(&sv.ApplyTo, value); err != nil { + return err + } + + case "CustomLabel": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.CustomLabel = ptr.String(jtv) + } + + case "FontConfiguration": + if err := awsRestjson1_deserializeDocumentFontConfiguration(&sv.FontConfiguration, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAxisLabelOptionsList(v *[]types.AxisLabelOptions, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.AxisLabelOptions + if *v == nil { + cv = []types.AxisLabelOptions{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.AxisLabelOptions + destAddr := &col + if err := awsRestjson1_deserializeDocumentAxisLabelOptions(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentAxisLabelReferenceOptions(v **types.AxisLabelReferenceOptions, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AxisLabelReferenceOptions + if *v == nil { + sv = &types.AxisLabelReferenceOptions{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Column": + if err := awsRestjson1_deserializeDocumentColumnIdentifier(&sv.Column, value); err != nil { + return err + } + + case "FieldId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected FieldId to be of type string, got %T instead", value) + } + sv.FieldId = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAxisLinearScale(v **types.AxisLinearScale, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AxisLinearScale + if *v == nil { + sv = &types.AxisLinearScale{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "StepCount": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.StepCount = ptr.Int32(int32(i64)) + } + + case "StepSize": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.StepSize = ptr.Float64(f64) + + case string: + var f64 float64 + switch { + case strings.EqualFold(jtv, "NaN"): + f64 = math.NaN() + + case strings.EqualFold(jtv, "Infinity"): + f64 = math.Inf(1) + + case strings.EqualFold(jtv, "-Infinity"): + f64 = math.Inf(-1) + + default: + return fmt.Errorf("unknown JSON number value: %s", jtv) + + } + sv.StepSize = ptr.Float64(f64) + + default: + return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value) + + } + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAxisLogarithmicScale(v **types.AxisLogarithmicScale, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AxisLogarithmicScale + if *v == nil { + sv = &types.AxisLogarithmicScale{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Base": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.Base = ptr.Float64(f64) + + case string: + var f64 float64 + switch { + case strings.EqualFold(jtv, "NaN"): + f64 = math.NaN() + + case strings.EqualFold(jtv, "Infinity"): + f64 = math.Inf(1) + + case strings.EqualFold(jtv, "-Infinity"): + f64 = math.Inf(-1) + + default: + return fmt.Errorf("unknown JSON number value: %s", jtv) + + } + sv.Base = ptr.Float64(f64) + + default: + return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value) + + } + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAxisScale(v **types.AxisScale, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AxisScale + if *v == nil { + sv = &types.AxisScale{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Linear": + if err := awsRestjson1_deserializeDocumentAxisLinearScale(&sv.Linear, value); err != nil { + return err + } + + case "Logarithmic": + if err := awsRestjson1_deserializeDocumentAxisLogarithmicScale(&sv.Logarithmic, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAxisTickLabelOptions(v **types.AxisTickLabelOptions, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AxisTickLabelOptions + if *v == nil { + sv = &types.AxisTickLabelOptions{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "LabelOptions": + if err := awsRestjson1_deserializeDocumentLabelOptions(&sv.LabelOptions, value); err != nil { + return err + } + + case "RotationAngle": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.RotationAngle = ptr.Float64(f64) + + case string: + var f64 float64 + switch { + case strings.EqualFold(jtv, "NaN"): + f64 = math.NaN() + + case strings.EqualFold(jtv, "Infinity"): + f64 = math.Inf(1) + + case strings.EqualFold(jtv, "-Infinity"): + f64 = math.Inf(-1) + + default: + return fmt.Errorf("unknown JSON number value: %s", jtv) + + } + sv.RotationAngle = ptr.Float64(f64) + + default: + return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value) + + } + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentBarChartAggregatedFieldWells(v **types.BarChartAggregatedFieldWells, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.BarChartAggregatedFieldWells + if *v == nil { + sv = &types.BarChartAggregatedFieldWells{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Category": + if err := awsRestjson1_deserializeDocumentDimensionFieldList(&sv.Category, value); err != nil { + return err + } + + case "Colors": + if err := awsRestjson1_deserializeDocumentDimensionFieldList(&sv.Colors, value); err != nil { + return err + } + + case "SmallMultiples": + if err := awsRestjson1_deserializeDocumentSmallMultiplesDimensionFieldList(&sv.SmallMultiples, value); err != nil { + return err + } + + case "Values": + if err := awsRestjson1_deserializeDocumentMeasureFieldList(&sv.Values, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentBarChartConfiguration(v **types.BarChartConfiguration, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.BarChartConfiguration + if *v == nil { + sv = &types.BarChartConfiguration{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "BarsArrangement": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected BarsArrangement to be of type string, got %T instead", value) + } + sv.BarsArrangement = types.BarsArrangement(jtv) + } + + case "CategoryAxis": + if err := awsRestjson1_deserializeDocumentAxisDisplayOptions(&sv.CategoryAxis, value); err != nil { + return err + } + + case "CategoryLabelOptions": + if err := awsRestjson1_deserializeDocumentChartAxisLabelOptions(&sv.CategoryLabelOptions, value); err != nil { + return err + } + + case "ColorLabelOptions": + if err := awsRestjson1_deserializeDocumentChartAxisLabelOptions(&sv.ColorLabelOptions, value); err != nil { + return err + } + + case "ContributionAnalysisDefaults": + if err := awsRestjson1_deserializeDocumentContributionAnalysisDefaultList(&sv.ContributionAnalysisDefaults, value); err != nil { + return err + } + + case "DataLabels": + if err := awsRestjson1_deserializeDocumentDataLabelOptions(&sv.DataLabels, value); err != nil { + return err + } + + case "FieldWells": + if err := awsRestjson1_deserializeDocumentBarChartFieldWells(&sv.FieldWells, value); err != nil { + return err + } + + case "Legend": + if err := awsRestjson1_deserializeDocumentLegendOptions(&sv.Legend, value); err != nil { + return err + } + + case "Orientation": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected BarChartOrientation to be of type string, got %T instead", value) + } + sv.Orientation = types.BarChartOrientation(jtv) + } + + case "ReferenceLines": + if err := awsRestjson1_deserializeDocumentReferenceLineList(&sv.ReferenceLines, value); err != nil { + return err + } + + case "SmallMultiplesOptions": + if err := awsRestjson1_deserializeDocumentSmallMultiplesOptions(&sv.SmallMultiplesOptions, value); err != nil { + return err + } + + case "SortConfiguration": + if err := awsRestjson1_deserializeDocumentBarChartSortConfiguration(&sv.SortConfiguration, value); err != nil { + return err + } + + case "Tooltip": + if err := awsRestjson1_deserializeDocumentTooltipOptions(&sv.Tooltip, value); err != nil { + return err + } + + case "ValueAxis": + if err := awsRestjson1_deserializeDocumentAxisDisplayOptions(&sv.ValueAxis, value); err != nil { + return err + } + + case "ValueLabelOptions": + if err := awsRestjson1_deserializeDocumentChartAxisLabelOptions(&sv.ValueLabelOptions, value); err != nil { + return err + } + + case "VisualPalette": + if err := awsRestjson1_deserializeDocumentVisualPalette(&sv.VisualPalette, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentBarChartFieldWells(v **types.BarChartFieldWells, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.BarChartFieldWells + if *v == nil { + sv = &types.BarChartFieldWells{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "BarChartAggregatedFieldWells": + if err := awsRestjson1_deserializeDocumentBarChartAggregatedFieldWells(&sv.BarChartAggregatedFieldWells, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentBarChartSortConfiguration(v **types.BarChartSortConfiguration, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.BarChartSortConfiguration + if *v == nil { + sv = &types.BarChartSortConfiguration{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "CategoryItemsLimit": + if err := awsRestjson1_deserializeDocumentItemsLimitConfiguration(&sv.CategoryItemsLimit, value); err != nil { + return err + } + + case "CategorySort": + if err := awsRestjson1_deserializeDocumentFieldSortOptionsList(&sv.CategorySort, value); err != nil { + return err + } + + case "ColorItemsLimit": + if err := awsRestjson1_deserializeDocumentItemsLimitConfiguration(&sv.ColorItemsLimit, value); err != nil { + return err + } + + case "ColorSort": + if err := awsRestjson1_deserializeDocumentFieldSortOptionsList(&sv.ColorSort, value); err != nil { + return err + } + + case "SmallMultiplesLimitConfiguration": + if err := awsRestjson1_deserializeDocumentItemsLimitConfiguration(&sv.SmallMultiplesLimitConfiguration, value); err != nil { + return err + } + + case "SmallMultiplesSort": + if err := awsRestjson1_deserializeDocumentFieldSortOptionsList(&sv.SmallMultiplesSort, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentBarChartVisual(v **types.BarChartVisual, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.BarChartVisual + if *v == nil { + sv = &types.BarChartVisual{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Actions": + if err := awsRestjson1_deserializeDocumentVisualCustomActionList(&sv.Actions, value); err != nil { + return err + } + + case "ChartConfiguration": + if err := awsRestjson1_deserializeDocumentBarChartConfiguration(&sv.ChartConfiguration, value); err != nil { + return err + } + + case "ColumnHierarchies": + if err := awsRestjson1_deserializeDocumentColumnHierarchyList(&sv.ColumnHierarchies, value); err != nil { + return err + } + + case "Subtitle": + if err := awsRestjson1_deserializeDocumentVisualSubtitleLabelOptions(&sv.Subtitle, value); err != nil { + return err + } + + case "Title": + if err := awsRestjson1_deserializeDocumentVisualTitleLabelOptions(&sv.Title, value); err != nil { + return err + } + + case "VisualId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + } + sv.VisualId = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentBinCountOptions(v **types.BinCountOptions, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.BinCountOptions + if *v == nil { + sv = &types.BinCountOptions{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Value": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected BinCountValue to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.Value = ptr.Int32(int32(i64)) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentBinWidthOptions(v **types.BinWidthOptions, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.BinWidthOptions + if *v == nil { + sv = &types.BinWidthOptions{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "BinCountLimit": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected BinCountLimit to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.BinCountLimit = ptr.Int64(i64) + } + + case "Value": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.Value = ptr.Float64(f64) + + case string: + var f64 float64 + switch { + case strings.EqualFold(jtv, "NaN"): + f64 = math.NaN() + + case strings.EqualFold(jtv, "Infinity"): + f64 = math.Inf(1) + + case strings.EqualFold(jtv, "-Infinity"): + f64 = math.Inf(-1) + + default: + return fmt.Errorf("unknown JSON number value: %s", jtv) + + } + sv.Value = ptr.Float64(f64) + + default: + return fmt.Errorf("expected BinWidthValue to be a JSON Number, got %T instead", value) - return output -} + } + } -func awsRestjson1_deserializeErrorSessionLifetimeInMinutesInvalidException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.SessionLifetimeInMinutesInvalidException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) + default: + _, _ = key, value - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), } - return err } + *v = sv + return nil +} - err := awsRestjson1_deserializeDocumentSessionLifetimeInMinutesInvalidException(&output, shape) +func awsRestjson1_deserializeDocumentBodySectionConfiguration(v **types.BodySectionConfiguration, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) } - errorBody.Seek(0, io.SeekStart) + var sv *types.BodySectionConfiguration + if *v == nil { + sv = &types.BodySectionConfiguration{} + } else { + sv = *v + } - return output -} + for key, value := range shape { + switch key { + case "Content": + if err := awsRestjson1_deserializeDocumentBodySectionContent(&sv.Content, value); err != nil { + return err + } -func awsRestjson1_deserializeErrorThrottlingException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.ThrottlingException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) + case "PageBreakConfiguration": + if err := awsRestjson1_deserializeDocumentSectionPageBreakConfiguration(&sv.PageBreakConfiguration, value); err != nil { + return err + } - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err - } + case "SectionId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + } + sv.SectionId = ptr.String(jtv) + } - err := awsRestjson1_deserializeDocumentThrottlingException(&output, shape) + case "Style": + if err := awsRestjson1_deserializeDocumentSectionStyle(&sv.Style, value); err != nil { + return err + } + + default: + _, _ = key, value - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), } - return err } - - errorBody.Seek(0, io.SeekStart) - - return output + *v = sv + return nil } -func awsRestjson1_deserializeErrorUnsupportedPricingPlanException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.UnsupportedPricingPlanException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err +func awsRestjson1_deserializeDocumentBodySectionConfigurationList(v *[]types.BodySectionConfiguration, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil } - err := awsRestjson1_deserializeDocumentUnsupportedPricingPlanException(&output, shape) + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err + var cv []types.BodySectionConfiguration + if *v == nil { + cv = []types.BodySectionConfiguration{} + } else { + cv = *v } - errorBody.Seek(0, io.SeekStart) + for _, value := range shape { + var col types.BodySectionConfiguration + destAddr := &col + if err := awsRestjson1_deserializeDocumentBodySectionConfiguration(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) - return output + } + *v = cv + return nil } -func awsRestjson1_deserializeErrorUnsupportedUserEditionException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.UnsupportedUserEditionException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err +func awsRestjson1_deserializeDocumentBodySectionContent(v **types.BodySectionContent, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil } - err := awsRestjson1_deserializeDocumentUnsupportedUserEditionException(&output, shape) + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err + var sv *types.BodySectionContent + if *v == nil { + sv = &types.BodySectionContent{} + } else { + sv = *v } - errorBody.Seek(0, io.SeekStart) + for key, value := range shape { + switch key { + case "Layout": + if err := awsRestjson1_deserializeDocumentSectionLayoutConfiguration(&sv.Layout, value); err != nil { + return err + } - return output + default: + _, _ = key, value + + } + } + *v = sv + return nil } -func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDeniedException, value interface{}) error { +func awsRestjson1_deserializeDocumentBorderStyle(v **types.BorderStyle, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -27259,31 +33897,22 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.AccessDeniedException + var sv *types.BorderStyle if *v == nil { - sv = &types.AccessDeniedException{} + sv = &types.BorderStyle{} } else { sv = *v } for key, value := range shape { switch key { - case "Message": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.Message = ptr.String(jtv) - } - - case "RequestId": + case "Show": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(bool) if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.RequestId = ptr.String(jtv) + sv.Show = ptr.Bool(jtv) } default: @@ -27295,7 +33924,7 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie return nil } -func awsRestjson1_deserializeDocumentAccountCustomization(v **types.AccountCustomization, value interface{}) error { +func awsRestjson1_deserializeDocumentBoxPlotAggregatedFieldWells(v **types.BoxPlotAggregatedFieldWells, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -27308,31 +33937,23 @@ func awsRestjson1_deserializeDocumentAccountCustomization(v **types.AccountCusto return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.AccountCustomization + var sv *types.BoxPlotAggregatedFieldWells if *v == nil { - sv = &types.AccountCustomization{} + sv = &types.BoxPlotAggregatedFieldWells{} } else { sv = *v } for key, value := range shape { switch key { - case "DefaultEmailCustomizationTemplate": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.DefaultEmailCustomizationTemplate = ptr.String(jtv) + case "GroupBy": + if err := awsRestjson1_deserializeDocumentBoxPlotDimensionFieldList(&sv.GroupBy, value); err != nil { + return err } - case "DefaultTheme": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.DefaultTheme = ptr.String(jtv) + case "Values": + if err := awsRestjson1_deserializeDocumentBoxPlotMeasureFieldList(&sv.Values, value); err != nil { + return err } default: @@ -27344,7 +33965,7 @@ func awsRestjson1_deserializeDocumentAccountCustomization(v **types.AccountCusto return nil } -func awsRestjson1_deserializeDocumentAccountInfo(v **types.AccountInfo, value interface{}) error { +func awsRestjson1_deserializeDocumentBoxPlotChartConfiguration(v **types.BoxPlotChartConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -27357,58 +33978,68 @@ func awsRestjson1_deserializeDocumentAccountInfo(v **types.AccountInfo, value in return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.AccountInfo + var sv *types.BoxPlotChartConfiguration if *v == nil { - sv = &types.AccountInfo{} + sv = &types.BoxPlotChartConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "AccountName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.AccountName = ptr.String(jtv) + case "BoxPlotOptions": + if err := awsRestjson1_deserializeDocumentBoxPlotOptions(&sv.BoxPlotOptions, value); err != nil { + return err } - case "AccountSubscriptionStatus": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.AccountSubscriptionStatus = ptr.String(jtv) + case "CategoryAxis": + if err := awsRestjson1_deserializeDocumentAxisDisplayOptions(&sv.CategoryAxis, value); err != nil { + return err } - case "AuthenticationType": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.AuthenticationType = ptr.String(jtv) + case "CategoryLabelOptions": + if err := awsRestjson1_deserializeDocumentChartAxisLabelOptions(&sv.CategoryLabelOptions, value); err != nil { + return err } - case "Edition": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Edition to be of type string, got %T instead", value) - } - sv.Edition = types.Edition(jtv) + case "FieldWells": + if err := awsRestjson1_deserializeDocumentBoxPlotFieldWells(&sv.FieldWells, value); err != nil { + return err } - case "NotificationEmail": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.NotificationEmail = ptr.String(jtv) + case "Legend": + if err := awsRestjson1_deserializeDocumentLegendOptions(&sv.Legend, value); err != nil { + return err + } + + case "PrimaryYAxisDisplayOptions": + if err := awsRestjson1_deserializeDocumentAxisDisplayOptions(&sv.PrimaryYAxisDisplayOptions, value); err != nil { + return err + } + + case "PrimaryYAxisLabelOptions": + if err := awsRestjson1_deserializeDocumentChartAxisLabelOptions(&sv.PrimaryYAxisLabelOptions, value); err != nil { + return err + } + + case "ReferenceLines": + if err := awsRestjson1_deserializeDocumentReferenceLineList(&sv.ReferenceLines, value); err != nil { + return err + } + + case "SortConfiguration": + if err := awsRestjson1_deserializeDocumentBoxPlotSortConfiguration(&sv.SortConfiguration, value); err != nil { + return err + } + + case "Tooltip": + if err := awsRestjson1_deserializeDocumentTooltipOptions(&sv.Tooltip, value); err != nil { + return err + } + + case "VisualPalette": + if err := awsRestjson1_deserializeDocumentVisualPalette(&sv.VisualPalette, value); err != nil { + return err } default: @@ -27420,7 +34051,7 @@ func awsRestjson1_deserializeDocumentAccountInfo(v **types.AccountInfo, value in return nil } -func awsRestjson1_deserializeDocumentAccountSettings(v **types.AccountSettings, value interface{}) error { +func awsRestjson1_deserializeDocumentBoxPlotDimensionFieldList(v *[]types.DimensionField, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -27428,72 +34059,57 @@ func awsRestjson1_deserializeDocumentAccountSettings(v **types.AccountSettings, return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.AccountSettings + var cv []types.DimensionField if *v == nil { - sv = &types.AccountSettings{} + cv = []types.DimensionField{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "AccountName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.AccountName = ptr.String(jtv) - } + for _, value := range shape { + var col types.DimensionField + destAddr := &col + if err := awsRestjson1_deserializeDocumentDimensionField(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) - case "DefaultNamespace": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Namespace to be of type string, got %T instead", value) - } - sv.DefaultNamespace = ptr.String(jtv) - } + } + *v = cv + return nil +} - case "Edition": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Edition to be of type string, got %T instead", value) - } - sv.Edition = types.Edition(jtv) - } +func awsRestjson1_deserializeDocumentBoxPlotFieldWells(v **types.BoxPlotFieldWells, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } - case "NotificationEmail": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.NotificationEmail = ptr.String(jtv) - } + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } - case "PublicSharingEnabled": - if value != nil { - jtv, ok := value.(bool) - if !ok { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) - } - sv.PublicSharingEnabled = jtv - } + var sv *types.BoxPlotFieldWells + if *v == nil { + sv = &types.BoxPlotFieldWells{} + } else { + sv = *v + } - case "TerminationProtectionEnabled": - if value != nil { - jtv, ok := value.(bool) - if !ok { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) - } - sv.TerminationProtectionEnabled = jtv + for key, value := range shape { + switch key { + case "BoxPlotAggregatedFieldWells": + if err := awsRestjson1_deserializeDocumentBoxPlotAggregatedFieldWells(&sv.BoxPlotAggregatedFieldWells, value); err != nil { + return err } default: @@ -27505,7 +34121,7 @@ func awsRestjson1_deserializeDocumentAccountSettings(v **types.AccountSettings, return nil } -func awsRestjson1_deserializeDocumentActionList(v *[]string, value interface{}) error { +func awsRestjson1_deserializeDocumentBoxPlotMeasureFieldList(v *[]types.MeasureField, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -27518,22 +34134,20 @@ func awsRestjson1_deserializeDocumentActionList(v *[]string, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var cv []string + var cv []types.MeasureField if *v == nil { - cv = []string{} + cv = []types.MeasureField{} } else { cv = *v } for _, value := range shape { - var col string - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - col = jtv + var col types.MeasureField + destAddr := &col + if err := awsRestjson1_deserializeDocumentMeasureField(&destAddr, value); err != nil { + return err } + col = *destAddr cv = append(cv, col) } @@ -27541,7 +34155,7 @@ func awsRestjson1_deserializeDocumentActionList(v *[]string, value interface{}) return nil } -func awsRestjson1_deserializeDocumentActiveIAMPolicyAssignment(v **types.ActiveIAMPolicyAssignment, value interface{}) error { +func awsRestjson1_deserializeDocumentBoxPlotOptions(v **types.BoxPlotOptions, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -27554,31 +34168,36 @@ func awsRestjson1_deserializeDocumentActiveIAMPolicyAssignment(v **types.ActiveI return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ActiveIAMPolicyAssignment + var sv *types.BoxPlotOptions if *v == nil { - sv = &types.ActiveIAMPolicyAssignment{} + sv = &types.BoxPlotOptions{} } else { sv = *v } for key, value := range shape { switch key { - case "AssignmentName": + case "AllDataPointsVisibility": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected IAMPolicyAssignmentName to be of type string, got %T instead", value) + return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) } - sv.AssignmentName = ptr.String(jtv) + sv.AllDataPointsVisibility = types.Visibility(jtv) } - case "PolicyArn": + case "OutlierVisibility": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) } - sv.PolicyArn = ptr.String(jtv) + sv.OutlierVisibility = types.Visibility(jtv) + } + + case "StyleOptions": + if err := awsRestjson1_deserializeDocumentBoxPlotStyleOptions(&sv.StyleOptions, value); err != nil { + return err } default: @@ -27590,7 +34209,7 @@ func awsRestjson1_deserializeDocumentActiveIAMPolicyAssignment(v **types.ActiveI return nil } -func awsRestjson1_deserializeDocumentActiveIAMPolicyAssignmentList(v *[]types.ActiveIAMPolicyAssignment, value interface{}) error { +func awsRestjson1_deserializeDocumentBoxPlotSortConfiguration(v **types.BoxPlotSortConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -27598,33 +34217,40 @@ func awsRestjson1_deserializeDocumentActiveIAMPolicyAssignmentList(v *[]types.Ac return nil } - shape, ok := value.([]interface{}) + shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.ActiveIAMPolicyAssignment + var sv *types.BoxPlotSortConfiguration if *v == nil { - cv = []types.ActiveIAMPolicyAssignment{} + sv = &types.BoxPlotSortConfiguration{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col types.ActiveIAMPolicyAssignment - destAddr := &col - if err := awsRestjson1_deserializeDocumentActiveIAMPolicyAssignment(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) + for key, value := range shape { + switch key { + case "CategorySort": + if err := awsRestjson1_deserializeDocumentFieldSortOptionsList(&sv.CategorySort, value); err != nil { + return err + } + + case "PaginationConfiguration": + if err := awsRestjson1_deserializeDocumentPaginationConfiguration(&sv.PaginationConfiguration, value); err != nil { + return err + } + + default: + _, _ = key, value + } } - *v = cv + *v = sv return nil } -func awsRestjson1_deserializeDocumentAdHocFilteringOption(v **types.AdHocFilteringOption, value interface{}) error { +func awsRestjson1_deserializeDocumentBoxPlotStyleOptions(v **types.BoxPlotStyleOptions, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -27637,22 +34263,22 @@ func awsRestjson1_deserializeDocumentAdHocFilteringOption(v **types.AdHocFilteri return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.AdHocFilteringOption + var sv *types.BoxPlotStyleOptions if *v == nil { - sv = &types.AdHocFilteringOption{} + sv = &types.BoxPlotStyleOptions{} } else { sv = *v } for key, value := range shape { switch key { - case "AvailabilityStatus": + case "FillStyle": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected DashboardBehavior to be of type string, got %T instead", value) + return fmt.Errorf("expected BoxPlotFillStyle to be of type string, got %T instead", value) } - sv.AvailabilityStatus = types.DashboardBehavior(jtv) + sv.FillStyle = types.BoxPlotFillStyle(jtv) } default: @@ -27664,7 +34290,7 @@ func awsRestjson1_deserializeDocumentAdHocFilteringOption(v **types.AdHocFilteri return nil } -func awsRestjson1_deserializeDocumentAggregationFunction(v **types.AggregationFunction, value interface{}) error { +func awsRestjson1_deserializeDocumentBoxPlotVisual(v **types.BoxPlotVisual, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -27677,36 +34303,47 @@ func awsRestjson1_deserializeDocumentAggregationFunction(v **types.AggregationFu return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.AggregationFunction + var sv *types.BoxPlotVisual if *v == nil { - sv = &types.AggregationFunction{} + sv = &types.BoxPlotVisual{} } else { sv = *v } for key, value := range shape { switch key { - case "CategoricalAggregationFunction": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected CategoricalAggregationFunction to be of type string, got %T instead", value) - } - sv.CategoricalAggregationFunction = types.CategoricalAggregationFunction(jtv) + case "Actions": + if err := awsRestjson1_deserializeDocumentVisualCustomActionList(&sv.Actions, value); err != nil { + return err } - case "DateAggregationFunction": + case "ChartConfiguration": + if err := awsRestjson1_deserializeDocumentBoxPlotChartConfiguration(&sv.ChartConfiguration, value); err != nil { + return err + } + + case "ColumnHierarchies": + if err := awsRestjson1_deserializeDocumentColumnHierarchyList(&sv.ColumnHierarchies, value); err != nil { + return err + } + + case "Subtitle": + if err := awsRestjson1_deserializeDocumentVisualSubtitleLabelOptions(&sv.Subtitle, value); err != nil { + return err + } + + case "Title": + if err := awsRestjson1_deserializeDocumentVisualTitleLabelOptions(&sv.Title, value); err != nil { + return err + } + + case "VisualId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected DateAggregationFunction to be of type string, got %T instead", value) + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) } - sv.DateAggregationFunction = types.DateAggregationFunction(jtv) - } - - case "NumericalAggregationFunction": - if err := awsRestjson1_deserializeDocumentNumericalAggregationFunction(&sv.NumericalAggregationFunction, value); err != nil { - return err + sv.VisualId = ptr.String(jtv) } default: @@ -27718,7 +34355,7 @@ func awsRestjson1_deserializeDocumentAggregationFunction(v **types.AggregationFu return nil } -func awsRestjson1_deserializeDocumentAggregationSortConfiguration(v **types.AggregationSortConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentCalculatedColumn(v **types.CalculatedColumn, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -27731,32 +34368,40 @@ func awsRestjson1_deserializeDocumentAggregationSortConfiguration(v **types.Aggr return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.AggregationSortConfiguration + var sv *types.CalculatedColumn if *v == nil { - sv = &types.AggregationSortConfiguration{} + sv = &types.CalculatedColumn{} } else { sv = *v } for key, value := range shape { switch key { - case "AggregationFunction": - if err := awsRestjson1_deserializeDocumentAggregationFunction(&sv.AggregationFunction, value); err != nil { - return err + case "ColumnId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ColumnId to be of type string, got %T instead", value) + } + sv.ColumnId = ptr.String(jtv) } - case "Column": - if err := awsRestjson1_deserializeDocumentColumnIdentifier(&sv.Column, value); err != nil { - return err + case "ColumnName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ColumnName to be of type string, got %T instead", value) + } + sv.ColumnName = ptr.String(jtv) } - case "SortDirection": + case "Expression": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected SortDirection to be of type string, got %T instead", value) + return fmt.Errorf("expected Expression to be of type string, got %T instead", value) } - sv.SortDirection = types.SortDirection(jtv) + sv.Expression = ptr.String(jtv) } default: @@ -27768,7 +34413,7 @@ func awsRestjson1_deserializeDocumentAggregationSortConfiguration(v **types.Aggr return nil } -func awsRestjson1_deserializeDocumentAggregationSortConfigurationList(v *[]types.AggregationSortConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentCalculatedColumnList(v *[]types.CalculatedColumn, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -27781,17 +34426,17 @@ func awsRestjson1_deserializeDocumentAggregationSortConfigurationList(v *[]types return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.AggregationSortConfiguration + var cv []types.CalculatedColumn if *v == nil { - cv = []types.AggregationSortConfiguration{} + cv = []types.CalculatedColumn{} } else { cv = *v } for _, value := range shape { - var col types.AggregationSortConfiguration + var col types.CalculatedColumn destAddr := &col - if err := awsRestjson1_deserializeDocumentAggregationSortConfiguration(&destAddr, value); err != nil { + if err := awsRestjson1_deserializeDocumentCalculatedColumn(&destAddr, value); err != nil { return err } col = *destAddr @@ -27802,7 +34447,7 @@ func awsRestjson1_deserializeDocumentAggregationSortConfigurationList(v *[]types return nil } -func awsRestjson1_deserializeDocumentAmazonElasticsearchParameters(v **types.AmazonElasticsearchParameters, value interface{}) error { +func awsRestjson1_deserializeDocumentCalculatedField(v **types.CalculatedField, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -27815,22 +34460,40 @@ func awsRestjson1_deserializeDocumentAmazonElasticsearchParameters(v **types.Ama return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.AmazonElasticsearchParameters + var sv *types.CalculatedField if *v == nil { - sv = &types.AmazonElasticsearchParameters{} + sv = &types.CalculatedField{} } else { sv = *v } for key, value := range shape { switch key { - case "Domain": + case "DataSetIdentifier": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Domain to be of type string, got %T instead", value) + return fmt.Errorf("expected DataSetIdentifier to be of type string, got %T instead", value) } - sv.Domain = ptr.String(jtv) + sv.DataSetIdentifier = ptr.String(jtv) + } + + case "Expression": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected CalculatedFieldExpression to be of type string, got %T instead", value) + } + sv.Expression = ptr.String(jtv) + } + + case "Name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ColumnName to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) } default: @@ -27842,7 +34505,7 @@ func awsRestjson1_deserializeDocumentAmazonElasticsearchParameters(v **types.Ama return nil } -func awsRestjson1_deserializeDocumentAmazonOpenSearchParameters(v **types.AmazonOpenSearchParameters, value interface{}) error { +func awsRestjson1_deserializeDocumentCalculatedFields(v *[]types.CalculatedField, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -27850,39 +34513,33 @@ func awsRestjson1_deserializeDocumentAmazonOpenSearchParameters(v **types.Amazon return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.AmazonOpenSearchParameters + var cv []types.CalculatedField if *v == nil { - sv = &types.AmazonOpenSearchParameters{} + cv = []types.CalculatedField{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "Domain": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Domain to be of type string, got %T instead", value) - } - sv.Domain = ptr.String(jtv) - } - - default: - _, _ = key, value - + for _, value := range shape { + var col types.CalculatedField + destAddr := &col + if err := awsRestjson1_deserializeDocumentCalculatedField(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsRestjson1_deserializeDocumentAnalysis(v **types.Analysis, value interface{}) error { +func awsRestjson1_deserializeDocumentCalculatedMeasureField(v **types.CalculatedMeasureField, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -27895,105 +34552,31 @@ func awsRestjson1_deserializeDocumentAnalysis(v **types.Analysis, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.Analysis + var sv *types.CalculatedMeasureField if *v == nil { - sv = &types.Analysis{} + sv = &types.CalculatedMeasureField{} } else { sv = *v } for key, value := range shape { switch key { - case "AnalysisId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) - } - sv.AnalysisId = ptr.String(jtv) - } - - case "Arn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.Arn = ptr.String(jtv) - } - - case "CreatedTime": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.CreatedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - - } - } - - case "DataSetArns": - if err := awsRestjson1_deserializeDocumentDataSetArnsList(&sv.DataSetArns, value); err != nil { - return err - } - - case "Errors": - if err := awsRestjson1_deserializeDocumentAnalysisErrorList(&sv.Errors, value); err != nil { - return err - } - - case "LastUpdatedTime": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.LastUpdatedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - - } - } - - case "Name": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected AnalysisName to be of type string, got %T instead", value) - } - sv.Name = ptr.String(jtv) - } - - case "Sheets": - if err := awsRestjson1_deserializeDocumentSheetList(&sv.Sheets, value); err != nil { - return err - } - - case "Status": + case "Expression": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ResourceStatus to be of type string, got %T instead", value) + return fmt.Errorf("expected Expression to be of type string, got %T instead", value) } - sv.Status = types.ResourceStatus(jtv) + sv.Expression = ptr.String(jtv) } - case "ThemeArn": + case "FieldId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + return fmt.Errorf("expected FieldId to be of type string, got %T instead", value) } - sv.ThemeArn = ptr.String(jtv) + sv.FieldId = ptr.String(jtv) } default: @@ -28005,7 +34588,7 @@ func awsRestjson1_deserializeDocumentAnalysis(v **types.Analysis, value interfac return nil } -func awsRestjson1_deserializeDocumentAnalysisDefaults(v **types.AnalysisDefaults, value interface{}) error { +func awsRestjson1_deserializeDocumentCascadingControlConfiguration(v **types.CascadingControlConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -28018,17 +34601,17 @@ func awsRestjson1_deserializeDocumentAnalysisDefaults(v **types.AnalysisDefaults return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.AnalysisDefaults + var sv *types.CascadingControlConfiguration if *v == nil { - sv = &types.AnalysisDefaults{} + sv = &types.CascadingControlConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "DefaultNewSheetConfiguration": - if err := awsRestjson1_deserializeDocumentDefaultNewSheetConfiguration(&sv.DefaultNewSheetConfiguration, value); err != nil { + case "SourceControls": + if err := awsRestjson1_deserializeDocumentCascadingControlSourceList(&sv.SourceControls, value); err != nil { return err } @@ -28041,7 +34624,7 @@ func awsRestjson1_deserializeDocumentAnalysisDefaults(v **types.AnalysisDefaults return nil } -func awsRestjson1_deserializeDocumentAnalysisDefinition(v **types.AnalysisDefinition, value interface{}) error { +func awsRestjson1_deserializeDocumentCascadingControlSource(v **types.CascadingControlSource, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -28054,102 +34637,27 @@ func awsRestjson1_deserializeDocumentAnalysisDefinition(v **types.AnalysisDefini return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.AnalysisDefinition + var sv *types.CascadingControlSource if *v == nil { - sv = &types.AnalysisDefinition{} + sv = &types.CascadingControlSource{} } else { sv = *v } for key, value := range shape { switch key { - case "AnalysisDefaults": - if err := awsRestjson1_deserializeDocumentAnalysisDefaults(&sv.AnalysisDefaults, value); err != nil { - return err - } - - case "CalculatedFields": - if err := awsRestjson1_deserializeDocumentCalculatedFields(&sv.CalculatedFields, value); err != nil { - return err - } - - case "ColumnConfigurations": - if err := awsRestjson1_deserializeDocumentColumnConfigurationList(&sv.ColumnConfigurations, value); err != nil { - return err - } - - case "DataSetIdentifierDeclarations": - if err := awsRestjson1_deserializeDocumentDataSetIdentifierDeclarationList(&sv.DataSetIdentifierDeclarations, value); err != nil { - return err - } - - case "FilterGroups": - if err := awsRestjson1_deserializeDocumentFilterGroupList(&sv.FilterGroups, value); err != nil { - return err - } - - case "ParameterDeclarations": - if err := awsRestjson1_deserializeDocumentParameterDeclarationList(&sv.ParameterDeclarations, value); err != nil { - return err - } - - case "Sheets": - if err := awsRestjson1_deserializeDocumentSheetDefinitionList(&sv.Sheets, value); err != nil { + case "ColumnToMatch": + if err := awsRestjson1_deserializeDocumentColumnIdentifier(&sv.ColumnToMatch, value); err != nil { return err } - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentAnalysisError(v **types.AnalysisError, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.AnalysisError - if *v == nil { - sv = &types.AnalysisError{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Message": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) - } - sv.Message = ptr.String(jtv) - } - - case "Type": + case "SourceSheetControlId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected AnalysisErrorType to be of type string, got %T instead", value) + return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Type = types.AnalysisErrorType(jtv) - } - - case "ViolatedEntities": - if err := awsRestjson1_deserializeDocumentEntityList(&sv.ViolatedEntities, value); err != nil { - return err + sv.SourceSheetControlId = ptr.String(jtv) } default: @@ -28161,7 +34669,7 @@ func awsRestjson1_deserializeDocumentAnalysisError(v **types.AnalysisError, valu return nil } -func awsRestjson1_deserializeDocumentAnalysisErrorList(v *[]types.AnalysisError, value interface{}) error { +func awsRestjson1_deserializeDocumentCascadingControlSourceList(v *[]types.CascadingControlSource, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -28174,17 +34682,17 @@ func awsRestjson1_deserializeDocumentAnalysisErrorList(v *[]types.AnalysisError, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.AnalysisError + var cv []types.CascadingControlSource if *v == nil { - cv = []types.AnalysisError{} + cv = []types.CascadingControlSource{} } else { cv = *v } for _, value := range shape { - var col types.AnalysisError + var col types.CascadingControlSource destAddr := &col - if err := awsRestjson1_deserializeDocumentAnalysisError(&destAddr, value); err != nil { + if err := awsRestjson1_deserializeDocumentCascadingControlSource(&destAddr, value); err != nil { return err } col = *destAddr @@ -28195,7 +34703,7 @@ func awsRestjson1_deserializeDocumentAnalysisErrorList(v *[]types.AnalysisError, return nil } -func awsRestjson1_deserializeDocumentAnalysisSummary(v **types.AnalysisSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentCastColumnTypeOperation(v **types.CastColumnTypeOperation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -28208,81 +34716,40 @@ func awsRestjson1_deserializeDocumentAnalysisSummary(v **types.AnalysisSummary, return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.AnalysisSummary + var sv *types.CastColumnTypeOperation if *v == nil { - sv = &types.AnalysisSummary{} + sv = &types.CastColumnTypeOperation{} } else { sv = *v } for key, value := range shape { switch key { - case "AnalysisId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) - } - sv.AnalysisId = ptr.String(jtv) - } - - case "Arn": + case "ColumnName": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.Arn = ptr.String(jtv) - } - - case "CreatedTime": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.CreatedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - - } - } - - case "LastUpdatedTime": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.LastUpdatedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - + return fmt.Errorf("expected ColumnName to be of type string, got %T instead", value) } + sv.ColumnName = ptr.String(jtv) } - case "Name": + case "Format": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected AnalysisName to be of type string, got %T instead", value) + return fmt.Errorf("expected TypeCastFormat to be of type string, got %T instead", value) } - sv.Name = ptr.String(jtv) + sv.Format = ptr.String(jtv) } - case "Status": + case "NewColumnType": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ResourceStatus to be of type string, got %T instead", value) + return fmt.Errorf("expected ColumnDataType to be of type string, got %T instead", value) } - sv.Status = types.ResourceStatus(jtv) + sv.NewColumnType = types.ColumnDataType(jtv) } default: @@ -28294,7 +34761,7 @@ func awsRestjson1_deserializeDocumentAnalysisSummary(v **types.AnalysisSummary, return nil } -func awsRestjson1_deserializeDocumentAnalysisSummaryList(v *[]types.AnalysisSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentCategoricalDimensionField(v **types.CategoricalDimensionField, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -28302,33 +34769,58 @@ func awsRestjson1_deserializeDocumentAnalysisSummaryList(v *[]types.AnalysisSumm return nil } - shape, ok := value.([]interface{}) + shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.AnalysisSummary + var sv *types.CategoricalDimensionField if *v == nil { - cv = []types.AnalysisSummary{} + sv = &types.CategoricalDimensionField{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col types.AnalysisSummary - destAddr := &col - if err := awsRestjson1_deserializeDocumentAnalysisSummary(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) + for key, value := range shape { + switch key { + case "Column": + if err := awsRestjson1_deserializeDocumentColumnIdentifier(&sv.Column, value); err != nil { + return err + } + + case "FieldId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected FieldId to be of type string, got %T instead", value) + } + sv.FieldId = ptr.String(jtv) + } + + case "FormatConfiguration": + if err := awsRestjson1_deserializeDocumentStringFormatConfiguration(&sv.FormatConfiguration, value); err != nil { + return err + } + + case "HierarchyId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected HierarchyId to be of type string, got %T instead", value) + } + sv.HierarchyId = ptr.String(jtv) + } + default: + _, _ = key, value + + } } - *v = cv + *v = sv return nil } -func awsRestjson1_deserializeDocumentAnchorDateConfiguration(v **types.AnchorDateConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentCategoricalMeasureField(v **types.CategoricalMeasureField, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -28341,31 +34833,41 @@ func awsRestjson1_deserializeDocumentAnchorDateConfiguration(v **types.AnchorDat return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.AnchorDateConfiguration + var sv *types.CategoricalMeasureField if *v == nil { - sv = &types.AnchorDateConfiguration{} + sv = &types.CategoricalMeasureField{} } else { sv = *v } for key, value := range shape { switch key { - case "AnchorOption": + case "AggregationFunction": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected AnchorOption to be of type string, got %T instead", value) + return fmt.Errorf("expected CategoricalAggregationFunction to be of type string, got %T instead", value) } - sv.AnchorOption = types.AnchorOption(jtv) + sv.AggregationFunction = types.CategoricalAggregationFunction(jtv) + } + + case "Column": + if err := awsRestjson1_deserializeDocumentColumnIdentifier(&sv.Column, value); err != nil { + return err } - case "ParameterName": + case "FieldId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ParameterName to be of type string, got %T instead", value) + return fmt.Errorf("expected FieldId to be of type string, got %T instead", value) } - sv.ParameterName = ptr.String(jtv) + sv.FieldId = ptr.String(jtv) + } + + case "FormatConfiguration": + if err := awsRestjson1_deserializeDocumentStringFormatConfiguration(&sv.FormatConfiguration, value); err != nil { + return err } default: @@ -28377,7 +34879,7 @@ func awsRestjson1_deserializeDocumentAnchorDateConfiguration(v **types.AnchorDat return nil } -func awsRestjson1_deserializeDocumentArcAxisConfiguration(v **types.ArcAxisConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentCategoryDrillDownFilter(v **types.CategoryDrillDownFilter, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -28390,31 +34892,23 @@ func awsRestjson1_deserializeDocumentArcAxisConfiguration(v **types.ArcAxisConfi return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ArcAxisConfiguration + var sv *types.CategoryDrillDownFilter if *v == nil { - sv = &types.ArcAxisConfiguration{} + sv = &types.CategoryDrillDownFilter{} } else { sv = *v } for key, value := range shape { switch key { - case "Range": - if err := awsRestjson1_deserializeDocumentArcAxisDisplayRange(&sv.Range, value); err != nil { + case "CategoryValues": + if err := awsRestjson1_deserializeDocumentCategoryValueList(&sv.CategoryValues, value); err != nil { return err } - case "ReserveRange": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.ReserveRange = int32(i64) + case "Column": + if err := awsRestjson1_deserializeDocumentColumnIdentifier(&sv.Column, value); err != nil { + return err } default: @@ -28426,7 +34920,7 @@ func awsRestjson1_deserializeDocumentArcAxisConfiguration(v **types.ArcAxisConfi return nil } -func awsRestjson1_deserializeDocumentArcAxisDisplayRange(v **types.ArcAxisDisplayRange, value interface{}) error { +func awsRestjson1_deserializeDocumentCategoryFilter(v **types.CategoryFilter, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -28439,81 +34933,32 @@ func awsRestjson1_deserializeDocumentArcAxisDisplayRange(v **types.ArcAxisDispla return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ArcAxisDisplayRange + var sv *types.CategoryFilter if *v == nil { - sv = &types.ArcAxisDisplayRange{} + sv = &types.CategoryFilter{} } else { sv = *v } for key, value := range shape { switch key { - case "Max": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.Max = ptr.Float64(f64) - - case string: - var f64 float64 - switch { - case strings.EqualFold(jtv, "NaN"): - f64 = math.NaN() - - case strings.EqualFold(jtv, "Infinity"): - f64 = math.Inf(1) - - case strings.EqualFold(jtv, "-Infinity"): - f64 = math.Inf(-1) - - default: - return fmt.Errorf("unknown JSON number value: %s", jtv) - - } - sv.Max = ptr.Float64(f64) - - default: - return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value) + case "Column": + if err := awsRestjson1_deserializeDocumentColumnIdentifier(&sv.Column, value); err != nil { + return err + } - } + case "Configuration": + if err := awsRestjson1_deserializeDocumentCategoryFilterConfiguration(&sv.Configuration, value); err != nil { + return err } - case "Min": + case "FilterId": if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.Min = ptr.Float64(f64) - - case string: - var f64 float64 - switch { - case strings.EqualFold(jtv, "NaN"): - f64 = math.NaN() - - case strings.EqualFold(jtv, "Infinity"): - f64 = math.Inf(1) - - case strings.EqualFold(jtv, "-Infinity"): - f64 = math.Inf(-1) - - default: - return fmt.Errorf("unknown JSON number value: %s", jtv) - - } - sv.Min = ptr.Float64(f64) - - default: - return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value) - + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) } + sv.FilterId = ptr.String(jtv) } default: @@ -28525,7 +34970,7 @@ func awsRestjson1_deserializeDocumentArcAxisDisplayRange(v **types.ArcAxisDispla return nil } -func awsRestjson1_deserializeDocumentArcConfiguration(v **types.ArcConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentCategoryFilterConfiguration(v **types.CategoryFilterConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -28538,56 +34983,28 @@ func awsRestjson1_deserializeDocumentArcConfiguration(v **types.ArcConfiguration return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ArcConfiguration + var sv *types.CategoryFilterConfiguration if *v == nil { - sv = &types.ArcConfiguration{} + sv = &types.CategoryFilterConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "ArcAngle": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.ArcAngle = ptr.Float64(f64) - - case string: - var f64 float64 - switch { - case strings.EqualFold(jtv, "NaN"): - f64 = math.NaN() - - case strings.EqualFold(jtv, "Infinity"): - f64 = math.Inf(1) - - case strings.EqualFold(jtv, "-Infinity"): - f64 = math.Inf(-1) - - default: - return fmt.Errorf("unknown JSON number value: %s", jtv) - - } - sv.ArcAngle = ptr.Float64(f64) - - default: - return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value) + case "CustomFilterConfiguration": + if err := awsRestjson1_deserializeDocumentCustomFilterConfiguration(&sv.CustomFilterConfiguration, value); err != nil { + return err + } - } + case "CustomFilterListConfiguration": + if err := awsRestjson1_deserializeDocumentCustomFilterListConfiguration(&sv.CustomFilterListConfiguration, value); err != nil { + return err } - case "ArcThickness": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ArcThicknessOptions to be of type string, got %T instead", value) - } - sv.ArcThickness = types.ArcThicknessOptions(jtv) + case "FilterListConfiguration": + if err := awsRestjson1_deserializeDocumentFilterListConfiguration(&sv.FilterListConfiguration, value); err != nil { + return err } default: @@ -28599,7 +35016,7 @@ func awsRestjson1_deserializeDocumentArcConfiguration(v **types.ArcConfiguration return nil } -func awsRestjson1_deserializeDocumentArcOptions(v **types.ArcOptions, value interface{}) error { +func awsRestjson1_deserializeDocumentCategoryValueList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -28607,39 +35024,35 @@ func awsRestjson1_deserializeDocumentArcOptions(v **types.ArcOptions, value inte return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ArcOptions + var cv []string if *v == nil { - sv = &types.ArcOptions{} + cv = []string{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "ArcThickness": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ArcThickness to be of type string, got %T instead", value) - } - sv.ArcThickness = types.ArcThickness(jtv) + for _, value := range shape { + var col string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected CategoryValue to be of type string, got %T instead", value) } - - default: - _, _ = key, value - + col = jtv } + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsRestjson1_deserializeDocumentAthenaParameters(v **types.AthenaParameters, value interface{}) error { +func awsRestjson1_deserializeDocumentCellValueSynonym(v **types.CellValueSynonym, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -28652,31 +35065,27 @@ func awsRestjson1_deserializeDocumentAthenaParameters(v **types.AthenaParameters return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.AthenaParameters + var sv *types.CellValueSynonym if *v == nil { - sv = &types.AthenaParameters{} + sv = &types.CellValueSynonym{} } else { sv = *v } for key, value := range shape { switch key { - case "RoleArn": + case "CellValue": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) + return fmt.Errorf("expected LimitedString to be of type string, got %T instead", value) } - sv.RoleArn = ptr.String(jtv) + sv.CellValue = ptr.String(jtv) } - case "WorkGroup": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected WorkGroup to be of type string, got %T instead", value) - } - sv.WorkGroup = ptr.String(jtv) + case "Synonyms": + if err := awsRestjson1_deserializeDocumentStringList(&sv.Synonyms, value); err != nil { + return err } default: @@ -28688,7 +35097,7 @@ func awsRestjson1_deserializeDocumentAthenaParameters(v **types.AthenaParameters return nil } -func awsRestjson1_deserializeDocumentAuroraParameters(v **types.AuroraParameters, value interface{}) error { +func awsRestjson1_deserializeDocumentCellValueSynonyms(v *[]types.CellValueSynonym, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -28696,61 +35105,33 @@ func awsRestjson1_deserializeDocumentAuroraParameters(v **types.AuroraParameters return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.AuroraParameters + var cv []types.CellValueSynonym if *v == nil { - sv = &types.AuroraParameters{} + cv = []types.CellValueSynonym{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "Database": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Database to be of type string, got %T instead", value) - } - sv.Database = ptr.String(jtv) - } - - case "Host": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Host to be of type string, got %T instead", value) - } - sv.Host = ptr.String(jtv) - } - - case "Port": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected Port to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.Port = int32(i64) - } - - default: - _, _ = key, value - + for _, value := range shape { + var col types.CellValueSynonym + destAddr := &col + if err := awsRestjson1_deserializeDocumentCellValueSynonym(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsRestjson1_deserializeDocumentAuroraPostgreSqlParameters(v **types.AuroraPostgreSqlParameters, value interface{}) error { +func awsRestjson1_deserializeDocumentChartAxisLabelOptions(v **types.ChartAxisLabelOptions, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -28763,44 +35144,36 @@ func awsRestjson1_deserializeDocumentAuroraPostgreSqlParameters(v **types.Aurora return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.AuroraPostgreSqlParameters + var sv *types.ChartAxisLabelOptions if *v == nil { - sv = &types.AuroraPostgreSqlParameters{} + sv = &types.ChartAxisLabelOptions{} } else { sv = *v } for key, value := range shape { switch key { - case "Database": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Database to be of type string, got %T instead", value) - } - sv.Database = ptr.String(jtv) + case "AxisLabelOptions": + if err := awsRestjson1_deserializeDocumentAxisLabelOptionsList(&sv.AxisLabelOptions, value); err != nil { + return err } - case "Host": + case "SortIconVisibility": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Host to be of type string, got %T instead", value) + return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) } - sv.Host = ptr.String(jtv) + sv.SortIconVisibility = types.Visibility(jtv) } - case "Port": + case "Visibility": if value != nil { - jtv, ok := value.(json.Number) + jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Port to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err + return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) } - sv.Port = int32(i64) + sv.Visibility = types.Visibility(jtv) } default: @@ -28812,7 +35185,7 @@ func awsRestjson1_deserializeDocumentAuroraPostgreSqlParameters(v **types.Aurora return nil } -func awsRestjson1_deserializeDocumentAwsIotAnalyticsParameters(v **types.AwsIotAnalyticsParameters, value interface{}) error { +func awsRestjson1_deserializeDocumentClusterMarker(v **types.ClusterMarker, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -28825,22 +35198,18 @@ func awsRestjson1_deserializeDocumentAwsIotAnalyticsParameters(v **types.AwsIotA return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.AwsIotAnalyticsParameters + var sv *types.ClusterMarker if *v == nil { - sv = &types.AwsIotAnalyticsParameters{} + sv = &types.ClusterMarker{} } else { sv = *v } for key, value := range shape { switch key { - case "DataSetName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected DataSetName to be of type string, got %T instead", value) - } - sv.DataSetName = ptr.String(jtv) + case "SimpleClusterMarker": + if err := awsRestjson1_deserializeDocumentSimpleClusterMarker(&sv.SimpleClusterMarker, value); err != nil { + return err } default: @@ -28852,7 +35221,7 @@ func awsRestjson1_deserializeDocumentAwsIotAnalyticsParameters(v **types.AwsIotA return nil } -func awsRestjson1_deserializeDocumentAxisDataOptions(v **types.AxisDataOptions, value interface{}) error { +func awsRestjson1_deserializeDocumentClusterMarkerConfiguration(v **types.ClusterMarkerConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -28865,22 +35234,17 @@ func awsRestjson1_deserializeDocumentAxisDataOptions(v **types.AxisDataOptions, return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.AxisDataOptions + var sv *types.ClusterMarkerConfiguration if *v == nil { - sv = &types.AxisDataOptions{} + sv = &types.ClusterMarkerConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "DateAxisOptions": - if err := awsRestjson1_deserializeDocumentDateAxisOptions(&sv.DateAxisOptions, value); err != nil { - return err - } - - case "NumericAxisOptions": - if err := awsRestjson1_deserializeDocumentNumericAxisOptions(&sv.NumericAxisOptions, value); err != nil { + case "ClusterMarker": + if err := awsRestjson1_deserializeDocumentClusterMarker(&sv.ClusterMarker, value); err != nil { return err } @@ -28893,7 +35257,7 @@ func awsRestjson1_deserializeDocumentAxisDataOptions(v **types.AxisDataOptions, return nil } -func awsRestjson1_deserializeDocumentAxisDisplayDataDrivenRange(v **types.AxisDisplayDataDrivenRange, value interface{}) error { +func awsRestjson1_deserializeDocumentCollectiveConstant(v **types.CollectiveConstant, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -28906,15 +35270,20 @@ func awsRestjson1_deserializeDocumentAxisDisplayDataDrivenRange(v **types.AxisDi return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.AxisDisplayDataDrivenRange + var sv *types.CollectiveConstant if *v == nil { - sv = &types.AxisDisplayDataDrivenRange{} + sv = &types.CollectiveConstant{} } else { sv = *v } for key, value := range shape { switch key { + case "ValueList": + if err := awsRestjson1_deserializeDocumentStringList(&sv.ValueList, value); err != nil { + return err + } + default: _, _ = key, value @@ -28924,7 +35293,7 @@ func awsRestjson1_deserializeDocumentAxisDisplayDataDrivenRange(v **types.AxisDi return nil } -func awsRestjson1_deserializeDocumentAxisDisplayMinMaxRange(v **types.AxisDisplayMinMaxRange, value interface{}) error { +func awsRestjson1_deserializeDocumentColorList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -28932,98 +35301,35 @@ func awsRestjson1_deserializeDocumentAxisDisplayMinMaxRange(v **types.AxisDispla return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.AxisDisplayMinMaxRange + var cv []string if *v == nil { - sv = &types.AxisDisplayMinMaxRange{} + cv = []string{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "Maximum": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.Maximum = ptr.Float64(f64) - - case string: - var f64 float64 - switch { - case strings.EqualFold(jtv, "NaN"): - f64 = math.NaN() - - case strings.EqualFold(jtv, "Infinity"): - f64 = math.Inf(1) - - case strings.EqualFold(jtv, "-Infinity"): - f64 = math.Inf(-1) - - default: - return fmt.Errorf("unknown JSON number value: %s", jtv) - - } - sv.Maximum = ptr.Float64(f64) - - default: - return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value) - - } - } - - case "Minimum": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.Minimum = ptr.Float64(f64) - - case string: - var f64 float64 - switch { - case strings.EqualFold(jtv, "NaN"): - f64 = math.NaN() - - case strings.EqualFold(jtv, "Infinity"): - f64 = math.Inf(1) - - case strings.EqualFold(jtv, "-Infinity"): - f64 = math.Inf(-1) - - default: - return fmt.Errorf("unknown JSON number value: %s", jtv) - - } - sv.Minimum = ptr.Float64(f64) - - default: - return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value) - - } + for _, value := range shape { + var col string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected HexColor to be of type string, got %T instead", value) } - - default: - _, _ = key, value - + col = jtv } + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsRestjson1_deserializeDocumentAxisDisplayOptions(v **types.AxisDisplayOptions, value interface{}) error { +func awsRestjson1_deserializeDocumentColorScale(v **types.ColorScale, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -29036,54 +35342,31 @@ func awsRestjson1_deserializeDocumentAxisDisplayOptions(v **types.AxisDisplayOpt return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.AxisDisplayOptions + var sv *types.ColorScale if *v == nil { - sv = &types.AxisDisplayOptions{} + sv = &types.ColorScale{} } else { sv = *v } for key, value := range shape { switch key { - case "AxisLineVisibility": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) - } - sv.AxisLineVisibility = types.Visibility(jtv) - } - - case "AxisOffset": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected PixelLength to be of type string, got %T instead", value) - } - sv.AxisOffset = ptr.String(jtv) - } - - case "DataOptions": - if err := awsRestjson1_deserializeDocumentAxisDataOptions(&sv.DataOptions, value); err != nil { - return err - } - - case "GridLineVisibility": + case "ColorFillType": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) + return fmt.Errorf("expected ColorFillType to be of type string, got %T instead", value) } - sv.GridLineVisibility = types.Visibility(jtv) + sv.ColorFillType = types.ColorFillType(jtv) } - case "ScrollbarOptions": - if err := awsRestjson1_deserializeDocumentScrollBarOptions(&sv.ScrollbarOptions, value); err != nil { + case "Colors": + if err := awsRestjson1_deserializeDocumentColorScaleColorList(&sv.Colors, value); err != nil { return err } - case "TickLabelOptions": - if err := awsRestjson1_deserializeDocumentAxisTickLabelOptions(&sv.TickLabelOptions, value); err != nil { + case "NullValueColor": + if err := awsRestjson1_deserializeDocumentDataColor(&sv.NullValueColor, value); err != nil { return err } @@ -29096,7 +35379,7 @@ func awsRestjson1_deserializeDocumentAxisDisplayOptions(v **types.AxisDisplayOpt return nil } -func awsRestjson1_deserializeDocumentAxisDisplayRange(v **types.AxisDisplayRange, value interface{}) error { +func awsRestjson1_deserializeDocumentColorScaleColorList(v *[]types.DataColor, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -29104,40 +35387,33 @@ func awsRestjson1_deserializeDocumentAxisDisplayRange(v **types.AxisDisplayRange return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.AxisDisplayRange + var cv []types.DataColor if *v == nil { - sv = &types.AxisDisplayRange{} + cv = []types.DataColor{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "DataDriven": - if err := awsRestjson1_deserializeDocumentAxisDisplayDataDrivenRange(&sv.DataDriven, value); err != nil { - return err - } - - case "MinMax": - if err := awsRestjson1_deserializeDocumentAxisDisplayMinMaxRange(&sv.MinMax, value); err != nil { - return err - } - - default: - _, _ = key, value - + for _, value := range shape { + var col types.DataColor + destAddr := &col + if err := awsRestjson1_deserializeDocumentDataColor(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsRestjson1_deserializeDocumentAxisLabelOptions(v **types.AxisLabelOptions, value interface{}) error { +func awsRestjson1_deserializeDocumentColumnConfiguration(v **types.ColumnConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -29150,32 +35426,32 @@ func awsRestjson1_deserializeDocumentAxisLabelOptions(v **types.AxisLabelOptions return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.AxisLabelOptions + var sv *types.ColumnConfiguration if *v == nil { - sv = &types.AxisLabelOptions{} + sv = &types.ColumnConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "ApplyTo": - if err := awsRestjson1_deserializeDocumentAxisLabelReferenceOptions(&sv.ApplyTo, value); err != nil { + case "Column": + if err := awsRestjson1_deserializeDocumentColumnIdentifier(&sv.Column, value); err != nil { return err } - case "CustomLabel": + case "FormatConfiguration": + if err := awsRestjson1_deserializeDocumentFormatConfiguration(&sv.FormatConfiguration, value); err != nil { + return err + } + + case "Role": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) + return fmt.Errorf("expected ColumnRole to be of type string, got %T instead", value) } - sv.CustomLabel = ptr.String(jtv) - } - - case "FontConfiguration": - if err := awsRestjson1_deserializeDocumentFontConfiguration(&sv.FontConfiguration, value); err != nil { - return err + sv.Role = types.ColumnRole(jtv) } default: @@ -29187,7 +35463,7 @@ func awsRestjson1_deserializeDocumentAxisLabelOptions(v **types.AxisLabelOptions return nil } -func awsRestjson1_deserializeDocumentAxisLabelOptionsList(v *[]types.AxisLabelOptions, value interface{}) error { +func awsRestjson1_deserializeDocumentColumnConfigurationList(v *[]types.ColumnConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -29200,17 +35476,17 @@ func awsRestjson1_deserializeDocumentAxisLabelOptionsList(v *[]types.AxisLabelOp return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.AxisLabelOptions + var cv []types.ColumnConfiguration if *v == nil { - cv = []types.AxisLabelOptions{} + cv = []types.ColumnConfiguration{} } else { cv = *v } for _, value := range shape { - var col types.AxisLabelOptions + var col types.ColumnConfiguration destAddr := &col - if err := awsRestjson1_deserializeDocumentAxisLabelOptions(&destAddr, value); err != nil { + if err := awsRestjson1_deserializeDocumentColumnConfiguration(&destAddr, value); err != nil { return err } col = *destAddr @@ -29221,7 +35497,7 @@ func awsRestjson1_deserializeDocumentAxisLabelOptionsList(v *[]types.AxisLabelOp return nil } -func awsRestjson1_deserializeDocumentAxisLabelReferenceOptions(v **types.AxisLabelReferenceOptions, value interface{}) error { +func awsRestjson1_deserializeDocumentColumnDescription(v **types.ColumnDescription, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -29234,27 +35510,22 @@ func awsRestjson1_deserializeDocumentAxisLabelReferenceOptions(v **types.AxisLab return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.AxisLabelReferenceOptions + var sv *types.ColumnDescription if *v == nil { - sv = &types.AxisLabelReferenceOptions{} + sv = &types.ColumnDescription{} } else { sv = *v } for key, value := range shape { switch key { - case "Column": - if err := awsRestjson1_deserializeDocumentColumnIdentifier(&sv.Column, value); err != nil { - return err - } - - case "FieldId": + case "Text": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected FieldId to be of type string, got %T instead", value) + return fmt.Errorf("expected ColumnDescriptiveText to be of type string, got %T instead", value) } - sv.FieldId = ptr.String(jtv) + sv.Text = ptr.String(jtv) } default: @@ -29266,7 +35537,7 @@ func awsRestjson1_deserializeDocumentAxisLabelReferenceOptions(v **types.AxisLab return nil } -func awsRestjson1_deserializeDocumentAxisLinearScale(v **types.AxisLinearScale, value interface{}) error { +func awsRestjson1_deserializeDocumentColumnGroup(v **types.ColumnGroup, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -29279,60 +35550,18 @@ func awsRestjson1_deserializeDocumentAxisLinearScale(v **types.AxisLinearScale, return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.AxisLinearScale + var sv *types.ColumnGroup if *v == nil { - sv = &types.AxisLinearScale{} + sv = &types.ColumnGroup{} } else { sv = *v } for key, value := range shape { switch key { - case "StepCount": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.StepCount = ptr.Int32(int32(i64)) - } - - case "StepSize": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.StepSize = ptr.Float64(f64) - - case string: - var f64 float64 - switch { - case strings.EqualFold(jtv, "NaN"): - f64 = math.NaN() - - case strings.EqualFold(jtv, "Infinity"): - f64 = math.Inf(1) - - case strings.EqualFold(jtv, "-Infinity"): - f64 = math.Inf(-1) - - default: - return fmt.Errorf("unknown JSON number value: %s", jtv) - - } - sv.StepSize = ptr.Float64(f64) - - default: - return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value) - - } + case "GeoSpatialColumnGroup": + if err := awsRestjson1_deserializeDocumentGeoSpatialColumnGroup(&sv.GeoSpatialColumnGroup, value); err != nil { + return err } default: @@ -29344,7 +35573,7 @@ func awsRestjson1_deserializeDocumentAxisLinearScale(v **types.AxisLinearScale, return nil } -func awsRestjson1_deserializeDocumentAxisLogarithmicScale(v **types.AxisLogarithmicScale, value interface{}) error { +func awsRestjson1_deserializeDocumentColumnGroupColumnSchema(v **types.ColumnGroupColumnSchema, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -29357,47 +35586,22 @@ func awsRestjson1_deserializeDocumentAxisLogarithmicScale(v **types.AxisLogarith return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.AxisLogarithmicScale + var sv *types.ColumnGroupColumnSchema if *v == nil { - sv = &types.AxisLogarithmicScale{} + sv = &types.ColumnGroupColumnSchema{} } else { sv = *v } for key, value := range shape { switch key { - case "Base": + case "Name": if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.Base = ptr.Float64(f64) - - case string: - var f64 float64 - switch { - case strings.EqualFold(jtv, "NaN"): - f64 = math.NaN() - - case strings.EqualFold(jtv, "Infinity"): - f64 = math.Inf(1) - - case strings.EqualFold(jtv, "-Infinity"): - f64 = math.Inf(-1) - - default: - return fmt.Errorf("unknown JSON number value: %s", jtv) - - } - sv.Base = ptr.Float64(f64) - - default: - return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value) - + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) } + sv.Name = ptr.String(jtv) } default: @@ -29409,7 +35613,7 @@ func awsRestjson1_deserializeDocumentAxisLogarithmicScale(v **types.AxisLogarith return nil } -func awsRestjson1_deserializeDocumentAxisScale(v **types.AxisScale, value interface{}) error { +func awsRestjson1_deserializeDocumentColumnGroupColumnSchemaList(v *[]types.ColumnGroupColumnSchema, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -29417,40 +35621,67 @@ func awsRestjson1_deserializeDocumentAxisScale(v **types.AxisScale, value interf return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.AxisScale + var cv []types.ColumnGroupColumnSchema if *v == nil { - sv = &types.AxisScale{} + cv = []types.ColumnGroupColumnSchema{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "Linear": - if err := awsRestjson1_deserializeDocumentAxisLinearScale(&sv.Linear, value); err != nil { - return err - } + for _, value := range shape { + var col types.ColumnGroupColumnSchema + destAddr := &col + if err := awsRestjson1_deserializeDocumentColumnGroupColumnSchema(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) - case "Logarithmic": - if err := awsRestjson1_deserializeDocumentAxisLogarithmicScale(&sv.Logarithmic, value); err != nil { - return err - } + } + *v = cv + return nil +} - default: - _, _ = key, value +func awsRestjson1_deserializeDocumentColumnGroupList(v *[]types.ColumnGroup, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.ColumnGroup + if *v == nil { + cv = []types.ColumnGroup{} + } else { + cv = *v + } + for _, value := range shape { + var col types.ColumnGroup + destAddr := &col + if err := awsRestjson1_deserializeDocumentColumnGroup(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsRestjson1_deserializeDocumentAxisTickLabelOptions(v **types.AxisTickLabelOptions, value interface{}) error { +func awsRestjson1_deserializeDocumentColumnGroupSchema(v **types.ColumnGroupSchema, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -29463,52 +35694,27 @@ func awsRestjson1_deserializeDocumentAxisTickLabelOptions(v **types.AxisTickLabe return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.AxisTickLabelOptions + var sv *types.ColumnGroupSchema if *v == nil { - sv = &types.AxisTickLabelOptions{} + sv = &types.ColumnGroupSchema{} } else { sv = *v } for key, value := range shape { switch key { - case "LabelOptions": - if err := awsRestjson1_deserializeDocumentLabelOptions(&sv.LabelOptions, value); err != nil { + case "ColumnGroupColumnSchemaList": + if err := awsRestjson1_deserializeDocumentColumnGroupColumnSchemaList(&sv.ColumnGroupColumnSchemaList, value); err != nil { return err } - case "RotationAngle": + case "Name": if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.RotationAngle = ptr.Float64(f64) - - case string: - var f64 float64 - switch { - case strings.EqualFold(jtv, "NaN"): - f64 = math.NaN() - - case strings.EqualFold(jtv, "Infinity"): - f64 = math.Inf(1) - - case strings.EqualFold(jtv, "-Infinity"): - f64 = math.Inf(-1) - - default: - return fmt.Errorf("unknown JSON number value: %s", jtv) - - } - sv.RotationAngle = ptr.Float64(f64) - - default: - return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value) - + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) } + sv.Name = ptr.String(jtv) } default: @@ -29520,7 +35726,41 @@ func awsRestjson1_deserializeDocumentAxisTickLabelOptions(v **types.AxisTickLabe return nil } -func awsRestjson1_deserializeDocumentBarChartAggregatedFieldWells(v **types.BarChartAggregatedFieldWells, value interface{}) error { +func awsRestjson1_deserializeDocumentColumnGroupSchemaList(v *[]types.ColumnGroupSchema, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.ColumnGroupSchema + if *v == nil { + cv = []types.ColumnGroupSchema{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.ColumnGroupSchema + destAddr := &col + if err := awsRestjson1_deserializeDocumentColumnGroupSchema(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentColumnHierarchy(v **types.ColumnHierarchy, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -29533,32 +35773,27 @@ func awsRestjson1_deserializeDocumentBarChartAggregatedFieldWells(v **types.BarC return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.BarChartAggregatedFieldWells + var sv *types.ColumnHierarchy if *v == nil { - sv = &types.BarChartAggregatedFieldWells{} + sv = &types.ColumnHierarchy{} } else { sv = *v } for key, value := range shape { switch key { - case "Category": - if err := awsRestjson1_deserializeDocumentDimensionFieldList(&sv.Category, value); err != nil { - return err - } - - case "Colors": - if err := awsRestjson1_deserializeDocumentDimensionFieldList(&sv.Colors, value); err != nil { + case "DateTimeHierarchy": + if err := awsRestjson1_deserializeDocumentDateTimeHierarchy(&sv.DateTimeHierarchy, value); err != nil { return err } - case "SmallMultiples": - if err := awsRestjson1_deserializeDocumentSmallMultiplesDimensionFieldList(&sv.SmallMultiples, value); err != nil { + case "ExplicitHierarchy": + if err := awsRestjson1_deserializeDocumentExplicitHierarchy(&sv.ExplicitHierarchy, value); err != nil { return err } - case "Values": - if err := awsRestjson1_deserializeDocumentMeasureFieldList(&sv.Values, value); err != nil { + case "PredefinedHierarchy": + if err := awsRestjson1_deserializeDocumentPredefinedHierarchy(&sv.PredefinedHierarchy, value); err != nil { return err } @@ -29571,7 +35806,41 @@ func awsRestjson1_deserializeDocumentBarChartAggregatedFieldWells(v **types.BarC return nil } -func awsRestjson1_deserializeDocumentBarChartConfiguration(v **types.BarChartConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentColumnHierarchyList(v *[]types.ColumnHierarchy, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.ColumnHierarchy + if *v == nil { + cv = []types.ColumnHierarchy{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.ColumnHierarchy + destAddr := &col + if err := awsRestjson1_deserializeDocumentColumnHierarchy(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentColumnIdentifier(v **types.ColumnIdentifier, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -29584,101 +35853,31 @@ func awsRestjson1_deserializeDocumentBarChartConfiguration(v **types.BarChartCon return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.BarChartConfiguration + var sv *types.ColumnIdentifier if *v == nil { - sv = &types.BarChartConfiguration{} + sv = &types.ColumnIdentifier{} } else { sv = *v } for key, value := range shape { switch key { - case "BarsArrangement": + case "ColumnName": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected BarsArrangement to be of type string, got %T instead", value) + return fmt.Errorf("expected ColumnName to be of type string, got %T instead", value) } - sv.BarsArrangement = types.BarsArrangement(jtv) - } - - case "CategoryAxis": - if err := awsRestjson1_deserializeDocumentAxisDisplayOptions(&sv.CategoryAxis, value); err != nil { - return err - } - - case "CategoryLabelOptions": - if err := awsRestjson1_deserializeDocumentChartAxisLabelOptions(&sv.CategoryLabelOptions, value); err != nil { - return err - } - - case "ColorLabelOptions": - if err := awsRestjson1_deserializeDocumentChartAxisLabelOptions(&sv.ColorLabelOptions, value); err != nil { - return err - } - - case "ContributionAnalysisDefaults": - if err := awsRestjson1_deserializeDocumentContributionAnalysisDefaultList(&sv.ContributionAnalysisDefaults, value); err != nil { - return err - } - - case "DataLabels": - if err := awsRestjson1_deserializeDocumentDataLabelOptions(&sv.DataLabels, value); err != nil { - return err - } - - case "FieldWells": - if err := awsRestjson1_deserializeDocumentBarChartFieldWells(&sv.FieldWells, value); err != nil { - return err - } - - case "Legend": - if err := awsRestjson1_deserializeDocumentLegendOptions(&sv.Legend, value); err != nil { - return err + sv.ColumnName = ptr.String(jtv) } - case "Orientation": + case "DataSetIdentifier": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected BarChartOrientation to be of type string, got %T instead", value) + return fmt.Errorf("expected DataSetIdentifier to be of type string, got %T instead", value) } - sv.Orientation = types.BarChartOrientation(jtv) - } - - case "ReferenceLines": - if err := awsRestjson1_deserializeDocumentReferenceLineList(&sv.ReferenceLines, value); err != nil { - return err - } - - case "SmallMultiplesOptions": - if err := awsRestjson1_deserializeDocumentSmallMultiplesOptions(&sv.SmallMultiplesOptions, value); err != nil { - return err - } - - case "SortConfiguration": - if err := awsRestjson1_deserializeDocumentBarChartSortConfiguration(&sv.SortConfiguration, value); err != nil { - return err - } - - case "Tooltip": - if err := awsRestjson1_deserializeDocumentTooltipOptions(&sv.Tooltip, value); err != nil { - return err - } - - case "ValueAxis": - if err := awsRestjson1_deserializeDocumentAxisDisplayOptions(&sv.ValueAxis, value); err != nil { - return err - } - - case "ValueLabelOptions": - if err := awsRestjson1_deserializeDocumentChartAxisLabelOptions(&sv.ValueLabelOptions, value); err != nil { - return err - } - - case "VisualPalette": - if err := awsRestjson1_deserializeDocumentVisualPalette(&sv.VisualPalette, value); err != nil { - return err + sv.DataSetIdentifier = ptr.String(jtv) } default: @@ -29690,7 +35889,7 @@ func awsRestjson1_deserializeDocumentBarChartConfiguration(v **types.BarChartCon return nil } -func awsRestjson1_deserializeDocumentBarChartFieldWells(v **types.BarChartFieldWells, value interface{}) error { +func awsRestjson1_deserializeDocumentColumnLevelPermissionRule(v **types.ColumnLevelPermissionRule, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -29703,17 +35902,22 @@ func awsRestjson1_deserializeDocumentBarChartFieldWells(v **types.BarChartFieldW return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.BarChartFieldWells + var sv *types.ColumnLevelPermissionRule if *v == nil { - sv = &types.BarChartFieldWells{} + sv = &types.ColumnLevelPermissionRule{} } else { sv = *v } for key, value := range shape { switch key { - case "BarChartAggregatedFieldWells": - if err := awsRestjson1_deserializeDocumentBarChartAggregatedFieldWells(&sv.BarChartAggregatedFieldWells, value); err != nil { + case "ColumnNames": + if err := awsRestjson1_deserializeDocumentColumnNameList(&sv.ColumnNames, value); err != nil { + return err + } + + case "Principals": + if err := awsRestjson1_deserializeDocumentPrincipalList(&sv.Principals, value); err != nil { return err } @@ -29726,7 +35930,7 @@ func awsRestjson1_deserializeDocumentBarChartFieldWells(v **types.BarChartFieldW return nil } -func awsRestjson1_deserializeDocumentBarChartSortConfiguration(v **types.BarChartSortConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentColumnLevelPermissionRuleList(v *[]types.ColumnLevelPermissionRule, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -29734,60 +35938,105 @@ func awsRestjson1_deserializeDocumentBarChartSortConfiguration(v **types.BarChar return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.BarChartSortConfiguration + var cv []types.ColumnLevelPermissionRule if *v == nil { - sv = &types.BarChartSortConfiguration{} + cv = []types.ColumnLevelPermissionRule{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "CategoryItemsLimit": - if err := awsRestjson1_deserializeDocumentItemsLimitConfiguration(&sv.CategoryItemsLimit, value); err != nil { - return err - } + for _, value := range shape { + var col types.ColumnLevelPermissionRule + destAddr := &col + if err := awsRestjson1_deserializeDocumentColumnLevelPermissionRule(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) - case "CategorySort": - if err := awsRestjson1_deserializeDocumentFieldSortOptionsList(&sv.CategorySort, value); err != nil { - return err - } + } + *v = cv + return nil +} - case "ColorItemsLimit": - if err := awsRestjson1_deserializeDocumentItemsLimitConfiguration(&sv.ColorItemsLimit, value); err != nil { - return err - } +func awsRestjson1_deserializeDocumentColumnList(v *[]string, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } - case "ColorSort": - if err := awsRestjson1_deserializeDocumentFieldSortOptionsList(&sv.ColorSort, value); err != nil { - return err + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []string + if *v == nil { + cv = []string{} + } else { + cv = *v + } + + for _, value := range shape { + var col string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ColumnName to be of type string, got %T instead", value) } + col = jtv + } + cv = append(cv, col) - case "SmallMultiplesLimitConfiguration": - if err := awsRestjson1_deserializeDocumentItemsLimitConfiguration(&sv.SmallMultiplesLimitConfiguration, value); err != nil { - return err - } + } + *v = cv + return nil +} - case "SmallMultiplesSort": - if err := awsRestjson1_deserializeDocumentFieldSortOptionsList(&sv.SmallMultiplesSort, value); err != nil { - return err - } +func awsRestjson1_deserializeDocumentColumnNameList(v *[]string, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } - default: - _, _ = key, value + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []string + if *v == nil { + cv = []string{} + } else { + cv = *v + } + for _, value := range shape { + var col string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + col = jtv } + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsRestjson1_deserializeDocumentBarChartVisual(v **types.BarChartVisual, value interface{}) error { +func awsRestjson1_deserializeDocumentColumnSchema(v **types.ColumnSchema, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -29800,47 +36049,40 @@ func awsRestjson1_deserializeDocumentBarChartVisual(v **types.BarChartVisual, va return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.BarChartVisual + var sv *types.ColumnSchema if *v == nil { - sv = &types.BarChartVisual{} + sv = &types.ColumnSchema{} } else { sv = *v } for key, value := range shape { switch key { - case "Actions": - if err := awsRestjson1_deserializeDocumentVisualCustomActionList(&sv.Actions, value); err != nil { - return err - } - - case "ChartConfiguration": - if err := awsRestjson1_deserializeDocumentBarChartConfiguration(&sv.ChartConfiguration, value); err != nil { - return err - } - - case "ColumnHierarchies": - if err := awsRestjson1_deserializeDocumentColumnHierarchyList(&sv.ColumnHierarchies, value); err != nil { - return err - } - - case "Subtitle": - if err := awsRestjson1_deserializeDocumentVisualSubtitleLabelOptions(&sv.Subtitle, value); err != nil { - return err + case "DataType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.DataType = ptr.String(jtv) } - case "Title": - if err := awsRestjson1_deserializeDocumentVisualTitleLabelOptions(&sv.Title, value); err != nil { - return err + case "GeographicRole": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.GeographicRole = ptr.String(jtv) } - case "VisualId": + case "Name": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.VisualId = ptr.String(jtv) + sv.Name = ptr.String(jtv) } default: @@ -29852,7 +36094,7 @@ func awsRestjson1_deserializeDocumentBarChartVisual(v **types.BarChartVisual, va return nil } -func awsRestjson1_deserializeDocumentBinCountOptions(v **types.BinCountOptions, value interface{}) error { +func awsRestjson1_deserializeDocumentColumnSchemaList(v *[]types.ColumnSchema, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -29860,43 +36102,33 @@ func awsRestjson1_deserializeDocumentBinCountOptions(v **types.BinCountOptions, return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.BinCountOptions + var cv []types.ColumnSchema if *v == nil { - sv = &types.BinCountOptions{} + cv = []types.ColumnSchema{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "Value": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected BinCountValue to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.Value = ptr.Int32(int32(i64)) - } - - default: - _, _ = key, value - + for _, value := range shape { + var col types.ColumnSchema + destAddr := &col + if err := awsRestjson1_deserializeDocumentColumnSchema(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsRestjson1_deserializeDocumentBinWidthOptions(v **types.BinWidthOptions, value interface{}) error { +func awsRestjson1_deserializeDocumentColumnSort(v **types.ColumnSort, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -29909,60 +36141,32 @@ func awsRestjson1_deserializeDocumentBinWidthOptions(v **types.BinWidthOptions, return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.BinWidthOptions + var sv *types.ColumnSort if *v == nil { - sv = &types.BinWidthOptions{} + sv = &types.ColumnSort{} } else { sv = *v } for key, value := range shape { switch key { - case "BinCountLimit": + case "AggregationFunction": + if err := awsRestjson1_deserializeDocumentAggregationFunction(&sv.AggregationFunction, value); err != nil { + return err + } + + case "Direction": if value != nil { - jtv, ok := value.(json.Number) + jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected BinCountLimit to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err + return fmt.Errorf("expected SortDirection to be of type string, got %T instead", value) } - sv.BinCountLimit = ptr.Int64(i64) + sv.Direction = types.SortDirection(jtv) } - case "Value": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.Value = ptr.Float64(f64) - - case string: - var f64 float64 - switch { - case strings.EqualFold(jtv, "NaN"): - f64 = math.NaN() - - case strings.EqualFold(jtv, "Infinity"): - f64 = math.Inf(1) - - case strings.EqualFold(jtv, "-Infinity"): - f64 = math.Inf(-1) - - default: - return fmt.Errorf("unknown JSON number value: %s", jtv) - - } - sv.Value = ptr.Float64(f64) - - default: - return fmt.Errorf("expected BinWidthValue to be a JSON Number, got %T instead", value) - - } + case "SortBy": + if err := awsRestjson1_deserializeDocumentColumnIdentifier(&sv.SortBy, value); err != nil { + return err } default: @@ -29974,7 +36178,7 @@ func awsRestjson1_deserializeDocumentBinWidthOptions(v **types.BinWidthOptions, return nil } -func awsRestjson1_deserializeDocumentBodySectionConfiguration(v **types.BodySectionConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentColumnTag(v **types.ColumnTag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -29987,37 +36191,27 @@ func awsRestjson1_deserializeDocumentBodySectionConfiguration(v **types.BodySect return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.BodySectionConfiguration + var sv *types.ColumnTag if *v == nil { - sv = &types.BodySectionConfiguration{} + sv = &types.ColumnTag{} } else { sv = *v } for key, value := range shape { switch key { - case "Content": - if err := awsRestjson1_deserializeDocumentBodySectionContent(&sv.Content, value); err != nil { - return err - } - - case "PageBreakConfiguration": - if err := awsRestjson1_deserializeDocumentSectionPageBreakConfiguration(&sv.PageBreakConfiguration, value); err != nil { + case "ColumnDescription": + if err := awsRestjson1_deserializeDocumentColumnDescription(&sv.ColumnDescription, value); err != nil { return err } - case "SectionId": + case "ColumnGeographicRole": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + return fmt.Errorf("expected GeoSpatialDataRole to be of type string, got %T instead", value) } - sv.SectionId = ptr.String(jtv) - } - - case "Style": - if err := awsRestjson1_deserializeDocumentSectionStyle(&sv.Style, value); err != nil { - return err + sv.ColumnGeographicRole = types.GeoSpatialDataRole(jtv) } default: @@ -30029,7 +36223,7 @@ func awsRestjson1_deserializeDocumentBodySectionConfiguration(v **types.BodySect return nil } -func awsRestjson1_deserializeDocumentBodySectionConfigurationList(v *[]types.BodySectionConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentColumnTagList(v *[]types.ColumnTag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -30042,17 +36236,17 @@ func awsRestjson1_deserializeDocumentBodySectionConfigurationList(v *[]types.Bod return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.BodySectionConfiguration + var cv []types.ColumnTag if *v == nil { - cv = []types.BodySectionConfiguration{} + cv = []types.ColumnTag{} } else { cv = *v } for _, value := range shape { - var col types.BodySectionConfiguration + var col types.ColumnTag destAddr := &col - if err := awsRestjson1_deserializeDocumentBodySectionConfiguration(&destAddr, value); err != nil { + if err := awsRestjson1_deserializeDocumentColumnTag(&destAddr, value); err != nil { return err } col = *destAddr @@ -30063,7 +36257,7 @@ func awsRestjson1_deserializeDocumentBodySectionConfigurationList(v *[]types.Bod return nil } -func awsRestjson1_deserializeDocumentBodySectionContent(v **types.BodySectionContent, value interface{}) error { +func awsRestjson1_deserializeDocumentColumnTagNames(v *[]types.ColumnTagName, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -30071,35 +36265,35 @@ func awsRestjson1_deserializeDocumentBodySectionContent(v **types.BodySectionCon return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.BodySectionContent + var cv []types.ColumnTagName if *v == nil { - sv = &types.BodySectionContent{} + cv = []types.ColumnTagName{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "Layout": - if err := awsRestjson1_deserializeDocumentSectionLayoutConfiguration(&sv.Layout, value); err != nil { - return err + for _, value := range shape { + var col types.ColumnTagName + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ColumnTagName to be of type string, got %T instead", value) } - - default: - _, _ = key, value - + col = types.ColumnTagName(jtv) } + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsRestjson1_deserializeDocumentBorderStyle(v **types.BorderStyle, value interface{}) error { +func awsRestjson1_deserializeDocumentColumnTooltipItem(v **types.ColumnTooltipItem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -30112,22 +36306,41 @@ func awsRestjson1_deserializeDocumentBorderStyle(v **types.BorderStyle, value in return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.BorderStyle + var sv *types.ColumnTooltipItem if *v == nil { - sv = &types.BorderStyle{} + sv = &types.ColumnTooltipItem{} } else { sv = *v } for key, value := range shape { switch key { - case "Show": + case "Aggregation": + if err := awsRestjson1_deserializeDocumentAggregationFunction(&sv.Aggregation, value); err != nil { + return err + } + + case "Column": + if err := awsRestjson1_deserializeDocumentColumnIdentifier(&sv.Column, value); err != nil { + return err + } + + case "Label": if value != nil { - jtv, ok := value.(bool) + jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Show = ptr.Bool(jtv) + sv.Label = ptr.String(jtv) + } + + case "Visibility": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) + } + sv.Visibility = types.Visibility(jtv) } default: @@ -30139,7 +36352,7 @@ func awsRestjson1_deserializeDocumentBorderStyle(v **types.BorderStyle, value in return nil } -func awsRestjson1_deserializeDocumentBoxPlotAggregatedFieldWells(v **types.BoxPlotAggregatedFieldWells, value interface{}) error { +func awsRestjson1_deserializeDocumentComboChartAggregatedFieldWells(v **types.ComboChartAggregatedFieldWells, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -30152,22 +36365,32 @@ func awsRestjson1_deserializeDocumentBoxPlotAggregatedFieldWells(v **types.BoxPl return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.BoxPlotAggregatedFieldWells + var sv *types.ComboChartAggregatedFieldWells if *v == nil { - sv = &types.BoxPlotAggregatedFieldWells{} + sv = &types.ComboChartAggregatedFieldWells{} } else { sv = *v } for key, value := range shape { switch key { - case "GroupBy": - if err := awsRestjson1_deserializeDocumentBoxPlotDimensionFieldList(&sv.GroupBy, value); err != nil { + case "BarValues": + if err := awsRestjson1_deserializeDocumentMeasureFieldList(&sv.BarValues, value); err != nil { return err } - case "Values": - if err := awsRestjson1_deserializeDocumentBoxPlotMeasureFieldList(&sv.Values, value); err != nil { + case "Category": + if err := awsRestjson1_deserializeDocumentDimensionFieldList(&sv.Category, value); err != nil { + return err + } + + case "Colors": + if err := awsRestjson1_deserializeDocumentDimensionFieldList(&sv.Colors, value); err != nil { + return err + } + + case "LineValues": + if err := awsRestjson1_deserializeDocumentMeasureFieldList(&sv.LineValues, value); err != nil { return err } @@ -30180,7 +36403,7 @@ func awsRestjson1_deserializeDocumentBoxPlotAggregatedFieldWells(v **types.BoxPl return nil } -func awsRestjson1_deserializeDocumentBoxPlotChartConfiguration(v **types.BoxPlotChartConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentComboChartConfiguration(v **types.ComboChartConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -30193,20 +36416,29 @@ func awsRestjson1_deserializeDocumentBoxPlotChartConfiguration(v **types.BoxPlot return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.BoxPlotChartConfiguration + var sv *types.ComboChartConfiguration if *v == nil { - sv = &types.BoxPlotChartConfiguration{} + sv = &types.ComboChartConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "BoxPlotOptions": - if err := awsRestjson1_deserializeDocumentBoxPlotOptions(&sv.BoxPlotOptions, value); err != nil { + case "BarDataLabels": + if err := awsRestjson1_deserializeDocumentDataLabelOptions(&sv.BarDataLabels, value); err != nil { return err } + case "BarsArrangement": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected BarsArrangement to be of type string, got %T instead", value) + } + sv.BarsArrangement = types.BarsArrangement(jtv) + } + case "CategoryAxis": if err := awsRestjson1_deserializeDocumentAxisDisplayOptions(&sv.CategoryAxis, value); err != nil { return err @@ -30217,8 +36449,13 @@ func awsRestjson1_deserializeDocumentBoxPlotChartConfiguration(v **types.BoxPlot return err } + case "ColorLabelOptions": + if err := awsRestjson1_deserializeDocumentChartAxisLabelOptions(&sv.ColorLabelOptions, value); err != nil { + return err + } + case "FieldWells": - if err := awsRestjson1_deserializeDocumentBoxPlotFieldWells(&sv.FieldWells, value); err != nil { + if err := awsRestjson1_deserializeDocumentComboChartFieldWells(&sv.FieldWells, value); err != nil { return err } @@ -30227,6 +36464,11 @@ func awsRestjson1_deserializeDocumentBoxPlotChartConfiguration(v **types.BoxPlot return err } + case "LineDataLabels": + if err := awsRestjson1_deserializeDocumentDataLabelOptions(&sv.LineDataLabels, value); err != nil { + return err + } + case "PrimaryYAxisDisplayOptions": if err := awsRestjson1_deserializeDocumentAxisDisplayOptions(&sv.PrimaryYAxisDisplayOptions, value); err != nil { return err @@ -30242,176 +36484,28 @@ func awsRestjson1_deserializeDocumentBoxPlotChartConfiguration(v **types.BoxPlot return err } - case "SortConfiguration": - if err := awsRestjson1_deserializeDocumentBoxPlotSortConfiguration(&sv.SortConfiguration, value); err != nil { + case "SecondaryYAxisDisplayOptions": + if err := awsRestjson1_deserializeDocumentAxisDisplayOptions(&sv.SecondaryYAxisDisplayOptions, value); err != nil { return err } - case "Tooltip": - if err := awsRestjson1_deserializeDocumentTooltipOptions(&sv.Tooltip, value); err != nil { + case "SecondaryYAxisLabelOptions": + if err := awsRestjson1_deserializeDocumentChartAxisLabelOptions(&sv.SecondaryYAxisLabelOptions, value); err != nil { return err } - case "VisualPalette": - if err := awsRestjson1_deserializeDocumentVisualPalette(&sv.VisualPalette, value); err != nil { + case "SortConfiguration": + if err := awsRestjson1_deserializeDocumentComboChartSortConfiguration(&sv.SortConfiguration, value); err != nil { return err } - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentBoxPlotDimensionFieldList(v *[]types.DimensionField, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []types.DimensionField - if *v == nil { - cv = []types.DimensionField{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.DimensionField - destAddr := &col - if err := awsRestjson1_deserializeDocumentDimensionField(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsRestjson1_deserializeDocumentBoxPlotFieldWells(v **types.BoxPlotFieldWells, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.BoxPlotFieldWells - if *v == nil { - sv = &types.BoxPlotFieldWells{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "BoxPlotAggregatedFieldWells": - if err := awsRestjson1_deserializeDocumentBoxPlotAggregatedFieldWells(&sv.BoxPlotAggregatedFieldWells, value); err != nil { + case "Tooltip": + if err := awsRestjson1_deserializeDocumentTooltipOptions(&sv.Tooltip, value); err != nil { return err } - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentBoxPlotMeasureFieldList(v *[]types.MeasureField, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []types.MeasureField - if *v == nil { - cv = []types.MeasureField{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.MeasureField - destAddr := &col - if err := awsRestjson1_deserializeDocumentMeasureField(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsRestjson1_deserializeDocumentBoxPlotOptions(v **types.BoxPlotOptions, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.BoxPlotOptions - if *v == nil { - sv = &types.BoxPlotOptions{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "AllDataPointsVisibility": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) - } - sv.AllDataPointsVisibility = types.Visibility(jtv) - } - - case "OutlierVisibility": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) - } - sv.OutlierVisibility = types.Visibility(jtv) - } - - case "StyleOptions": - if err := awsRestjson1_deserializeDocumentBoxPlotStyleOptions(&sv.StyleOptions, value); err != nil { + case "VisualPalette": + if err := awsRestjson1_deserializeDocumentVisualPalette(&sv.VisualPalette, value); err != nil { return err } @@ -30424,7 +36518,7 @@ func awsRestjson1_deserializeDocumentBoxPlotOptions(v **types.BoxPlotOptions, va return nil } -func awsRestjson1_deserializeDocumentBoxPlotSortConfiguration(v **types.BoxPlotSortConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentComboChartFieldWells(v **types.ComboChartFieldWells, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -30437,22 +36531,17 @@ func awsRestjson1_deserializeDocumentBoxPlotSortConfiguration(v **types.BoxPlotS return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.BoxPlotSortConfiguration + var sv *types.ComboChartFieldWells if *v == nil { - sv = &types.BoxPlotSortConfiguration{} + sv = &types.ComboChartFieldWells{} } else { sv = *v } for key, value := range shape { switch key { - case "CategorySort": - if err := awsRestjson1_deserializeDocumentFieldSortOptionsList(&sv.CategorySort, value); err != nil { - return err - } - - case "PaginationConfiguration": - if err := awsRestjson1_deserializeDocumentPaginationConfiguration(&sv.PaginationConfiguration, value); err != nil { + case "ComboChartAggregatedFieldWells": + if err := awsRestjson1_deserializeDocumentComboChartAggregatedFieldWells(&sv.ComboChartAggregatedFieldWells, value); err != nil { return err } @@ -30465,7 +36554,7 @@ func awsRestjson1_deserializeDocumentBoxPlotSortConfiguration(v **types.BoxPlotS return nil } -func awsRestjson1_deserializeDocumentBoxPlotStyleOptions(v **types.BoxPlotStyleOptions, value interface{}) error { +func awsRestjson1_deserializeDocumentComboChartSortConfiguration(v **types.ComboChartSortConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -30478,22 +36567,33 @@ func awsRestjson1_deserializeDocumentBoxPlotStyleOptions(v **types.BoxPlotStyleO return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.BoxPlotStyleOptions + var sv *types.ComboChartSortConfiguration if *v == nil { - sv = &types.BoxPlotStyleOptions{} + sv = &types.ComboChartSortConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "FillStyle": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected BoxPlotFillStyle to be of type string, got %T instead", value) - } - sv.FillStyle = types.BoxPlotFillStyle(jtv) + case "CategoryItemsLimit": + if err := awsRestjson1_deserializeDocumentItemsLimitConfiguration(&sv.CategoryItemsLimit, value); err != nil { + return err + } + + case "CategorySort": + if err := awsRestjson1_deserializeDocumentFieldSortOptionsList(&sv.CategorySort, value); err != nil { + return err + } + + case "ColorItemsLimit": + if err := awsRestjson1_deserializeDocumentItemsLimitConfiguration(&sv.ColorItemsLimit, value); err != nil { + return err + } + + case "ColorSort": + if err := awsRestjson1_deserializeDocumentFieldSortOptionsList(&sv.ColorSort, value); err != nil { + return err } default: @@ -30505,7 +36605,7 @@ func awsRestjson1_deserializeDocumentBoxPlotStyleOptions(v **types.BoxPlotStyleO return nil } -func awsRestjson1_deserializeDocumentBoxPlotVisual(v **types.BoxPlotVisual, value interface{}) error { +func awsRestjson1_deserializeDocumentComboChartVisual(v **types.ComboChartVisual, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -30518,9 +36618,9 @@ func awsRestjson1_deserializeDocumentBoxPlotVisual(v **types.BoxPlotVisual, valu return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.BoxPlotVisual + var sv *types.ComboChartVisual if *v == nil { - sv = &types.BoxPlotVisual{} + sv = &types.ComboChartVisual{} } else { sv = *v } @@ -30533,7 +36633,7 @@ func awsRestjson1_deserializeDocumentBoxPlotVisual(v **types.BoxPlotVisual, valu } case "ChartConfiguration": - if err := awsRestjson1_deserializeDocumentBoxPlotChartConfiguration(&sv.ChartConfiguration, value); err != nil { + if err := awsRestjson1_deserializeDocumentComboChartConfiguration(&sv.ChartConfiguration, value); err != nil { return err } @@ -30570,7 +36670,7 @@ func awsRestjson1_deserializeDocumentBoxPlotVisual(v **types.BoxPlotVisual, valu return nil } -func awsRestjson1_deserializeDocumentCalculatedColumn(v **types.CalculatedColumn, value interface{}) error { +func awsRestjson1_deserializeDocumentComparativeOrder(v **types.ComparativeOrder, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -30583,40 +36683,36 @@ func awsRestjson1_deserializeDocumentCalculatedColumn(v **types.CalculatedColumn return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.CalculatedColumn + var sv *types.ComparativeOrder if *v == nil { - sv = &types.CalculatedColumn{} + sv = &types.ComparativeOrder{} } else { sv = *v } for key, value := range shape { switch key { - case "ColumnId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ColumnId to be of type string, got %T instead", value) - } - sv.ColumnId = ptr.String(jtv) + case "SpecifedOrder": + if err := awsRestjson1_deserializeDocumentStringList(&sv.SpecifedOrder, value); err != nil { + return err } - case "ColumnName": + case "TreatUndefinedSpecifiedValues": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ColumnName to be of type string, got %T instead", value) + return fmt.Errorf("expected UndefinedSpecifiedValueType to be of type string, got %T instead", value) } - sv.ColumnName = ptr.String(jtv) + sv.TreatUndefinedSpecifiedValues = types.UndefinedSpecifiedValueType(jtv) } - case "Expression": + case "UseOrdering": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Expression to be of type string, got %T instead", value) + return fmt.Errorf("expected ColumnOrderingType to be of type string, got %T instead", value) } - sv.Expression = ptr.String(jtv) + sv.UseOrdering = types.ColumnOrderingType(jtv) } default: @@ -30628,41 +36724,7 @@ func awsRestjson1_deserializeDocumentCalculatedColumn(v **types.CalculatedColumn return nil } -func awsRestjson1_deserializeDocumentCalculatedColumnList(v *[]types.CalculatedColumn, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []types.CalculatedColumn - if *v == nil { - cv = []types.CalculatedColumn{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.CalculatedColumn - destAddr := &col - if err := awsRestjson1_deserializeDocumentCalculatedColumn(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsRestjson1_deserializeDocumentCalculatedField(v **types.CalculatedField, value interface{}) error { +func awsRestjson1_deserializeDocumentComparisonConfiguration(v **types.ComparisonConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -30675,40 +36737,27 @@ func awsRestjson1_deserializeDocumentCalculatedField(v **types.CalculatedField, return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.CalculatedField + var sv *types.ComparisonConfiguration if *v == nil { - sv = &types.CalculatedField{} + sv = &types.ComparisonConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "DataSetIdentifier": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected DataSetIdentifier to be of type string, got %T instead", value) - } - sv.DataSetIdentifier = ptr.String(jtv) - } - - case "Expression": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Expression to be of type string, got %T instead", value) - } - sv.Expression = ptr.String(jtv) + case "ComparisonFormat": + if err := awsRestjson1_deserializeDocumentComparisonFormatConfiguration(&sv.ComparisonFormat, value); err != nil { + return err } - case "Name": + case "ComparisonMethod": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ColumnName to be of type string, got %T instead", value) + return fmt.Errorf("expected ComparisonMethod to be of type string, got %T instead", value) } - sv.Name = ptr.String(jtv) + sv.ComparisonMethod = types.ComparisonMethod(jtv) } default: @@ -30720,41 +36769,7 @@ func awsRestjson1_deserializeDocumentCalculatedField(v **types.CalculatedField, return nil } -func awsRestjson1_deserializeDocumentCalculatedFields(v *[]types.CalculatedField, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []types.CalculatedField - if *v == nil { - cv = []types.CalculatedField{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.CalculatedField - destAddr := &col - if err := awsRestjson1_deserializeDocumentCalculatedField(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsRestjson1_deserializeDocumentCalculatedMeasureField(v **types.CalculatedMeasureField, value interface{}) error { +func awsRestjson1_deserializeDocumentComparisonFormatConfiguration(v **types.ComparisonFormatConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -30767,31 +36782,23 @@ func awsRestjson1_deserializeDocumentCalculatedMeasureField(v **types.Calculated return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.CalculatedMeasureField + var sv *types.ComparisonFormatConfiguration if *v == nil { - sv = &types.CalculatedMeasureField{} + sv = &types.ComparisonFormatConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "Expression": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Expression to be of type string, got %T instead", value) - } - sv.Expression = ptr.String(jtv) + case "NumberDisplayFormatConfiguration": + if err := awsRestjson1_deserializeDocumentNumberDisplayFormatConfiguration(&sv.NumberDisplayFormatConfiguration, value); err != nil { + return err } - case "FieldId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected FieldId to be of type string, got %T instead", value) - } - sv.FieldId = ptr.String(jtv) + case "PercentageDisplayFormatConfiguration": + if err := awsRestjson1_deserializeDocumentPercentageDisplayFormatConfiguration(&sv.PercentageDisplayFormatConfiguration, value); err != nil { + return err } default: @@ -30803,7 +36810,7 @@ func awsRestjson1_deserializeDocumentCalculatedMeasureField(v **types.Calculated return nil } -func awsRestjson1_deserializeDocumentCascadingControlConfiguration(v **types.CascadingControlConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentComputation(v **types.Computation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -30816,63 +36823,63 @@ func awsRestjson1_deserializeDocumentCascadingControlConfiguration(v **types.Cas return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.CascadingControlConfiguration + var sv *types.Computation if *v == nil { - sv = &types.CascadingControlConfiguration{} + sv = &types.Computation{} } else { sv = *v } for key, value := range shape { switch key { - case "SourceControls": - if err := awsRestjson1_deserializeDocumentCascadingControlSourceList(&sv.SourceControls, value); err != nil { + case "Forecast": + if err := awsRestjson1_deserializeDocumentForecastComputation(&sv.Forecast, value); err != nil { return err } - default: - _, _ = key, value + case "GrowthRate": + if err := awsRestjson1_deserializeDocumentGrowthRateComputation(&sv.GrowthRate, value); err != nil { + return err + } - } - } - *v = sv - return nil -} + case "MaximumMinimum": + if err := awsRestjson1_deserializeDocumentMaximumMinimumComputation(&sv.MaximumMinimum, value); err != nil { + return err + } -func awsRestjson1_deserializeDocumentCascadingControlSource(v **types.CascadingControlSource, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } + case "MetricComparison": + if err := awsRestjson1_deserializeDocumentMetricComparisonComputation(&sv.MetricComparison, value); err != nil { + return err + } - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } + case "PeriodOverPeriod": + if err := awsRestjson1_deserializeDocumentPeriodOverPeriodComputation(&sv.PeriodOverPeriod, value); err != nil { + return err + } - var sv *types.CascadingControlSource - if *v == nil { - sv = &types.CascadingControlSource{} - } else { - sv = *v - } + case "PeriodToDate": + if err := awsRestjson1_deserializeDocumentPeriodToDateComputation(&sv.PeriodToDate, value); err != nil { + return err + } - for key, value := range shape { - switch key { - case "ColumnToMatch": - if err := awsRestjson1_deserializeDocumentColumnIdentifier(&sv.ColumnToMatch, value); err != nil { + case "TopBottomMovers": + if err := awsRestjson1_deserializeDocumentTopBottomMoversComputation(&sv.TopBottomMovers, value); err != nil { return err } - case "SourceSheetControlId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.SourceSheetControlId = ptr.String(jtv) + case "TopBottomRanked": + if err := awsRestjson1_deserializeDocumentTopBottomRankedComputation(&sv.TopBottomRanked, value); err != nil { + return err + } + + case "TotalAggregation": + if err := awsRestjson1_deserializeDocumentTotalAggregationComputation(&sv.TotalAggregation, value); err != nil { + return err + } + + case "UniqueValues": + if err := awsRestjson1_deserializeDocumentUniqueValuesComputation(&sv.UniqueValues, value); err != nil { + return err } default: @@ -30884,7 +36891,7 @@ func awsRestjson1_deserializeDocumentCascadingControlSource(v **types.CascadingC return nil } -func awsRestjson1_deserializeDocumentCascadingControlSourceList(v *[]types.CascadingControlSource, value interface{}) error { +func awsRestjson1_deserializeDocumentComputationList(v *[]types.Computation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -30897,17 +36904,17 @@ func awsRestjson1_deserializeDocumentCascadingControlSourceList(v *[]types.Casca return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.CascadingControlSource + var cv []types.Computation if *v == nil { - cv = []types.CascadingControlSource{} + cv = []types.Computation{} } else { cv = *v } for _, value := range shape { - var col types.CascadingControlSource + var col types.Computation destAddr := &col - if err := awsRestjson1_deserializeDocumentCascadingControlSource(&destAddr, value); err != nil { + if err := awsRestjson1_deserializeDocumentComputation(&destAddr, value); err != nil { return err } col = *destAddr @@ -30918,7 +36925,7 @@ func awsRestjson1_deserializeDocumentCascadingControlSourceList(v *[]types.Casca return nil } -func awsRestjson1_deserializeDocumentCastColumnTypeOperation(v **types.CastColumnTypeOperation, value interface{}) error { +func awsRestjson1_deserializeDocumentConcurrentUpdatingException(v **types.ConcurrentUpdatingException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -30931,40 +36938,31 @@ func awsRestjson1_deserializeDocumentCastColumnTypeOperation(v **types.CastColum return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.CastColumnTypeOperation + var sv *types.ConcurrentUpdatingException if *v == nil { - sv = &types.CastColumnTypeOperation{} + sv = &types.ConcurrentUpdatingException{} } else { sv = *v } for key, value := range shape { switch key { - case "ColumnName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ColumnName to be of type string, got %T instead", value) - } - sv.ColumnName = ptr.String(jtv) - } - - case "Format": + case "Message": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected TypeCastFormat to be of type string, got %T instead", value) + return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Format = ptr.String(jtv) + sv.Message = ptr.String(jtv) } - case "NewColumnType": + case "RequestId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ColumnDataType to be of type string, got %T instead", value) + return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.NewColumnType = types.ColumnDataType(jtv) + sv.RequestId = ptr.String(jtv) } default: @@ -30976,7 +36974,7 @@ func awsRestjson1_deserializeDocumentCastColumnTypeOperation(v **types.CastColum return nil } -func awsRestjson1_deserializeDocumentCategoricalDimensionField(v **types.CategoricalDimensionField, value interface{}) error { +func awsRestjson1_deserializeDocumentConditionalFormattingColor(v **types.ConditionalFormattingColor, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -30989,43 +36987,25 @@ func awsRestjson1_deserializeDocumentCategoricalDimensionField(v **types.Categor return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.CategoricalDimensionField + var sv *types.ConditionalFormattingColor if *v == nil { - sv = &types.CategoricalDimensionField{} + sv = &types.ConditionalFormattingColor{} } else { sv = *v } for key, value := range shape { switch key { - case "Column": - if err := awsRestjson1_deserializeDocumentColumnIdentifier(&sv.Column, value); err != nil { + case "Gradient": + if err := awsRestjson1_deserializeDocumentConditionalFormattingGradientColor(&sv.Gradient, value); err != nil { return err } - case "FieldId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected FieldId to be of type string, got %T instead", value) - } - sv.FieldId = ptr.String(jtv) - } - - case "FormatConfiguration": - if err := awsRestjson1_deserializeDocumentStringFormatConfiguration(&sv.FormatConfiguration, value); err != nil { + case "Solid": + if err := awsRestjson1_deserializeDocumentConditionalFormattingSolidColor(&sv.Solid, value); err != nil { return err } - case "HierarchyId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected HierarchyId to be of type string, got %T instead", value) - } - sv.HierarchyId = ptr.String(jtv) - } - default: _, _ = key, value @@ -31035,7 +37015,7 @@ func awsRestjson1_deserializeDocumentCategoricalDimensionField(v **types.Categor return nil } -func awsRestjson1_deserializeDocumentCategoricalMeasureField(v **types.CategoricalMeasureField, value interface{}) error { +func awsRestjson1_deserializeDocumentConditionalFormattingCustomIconCondition(v **types.ConditionalFormattingCustomIconCondition, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -31048,177 +37028,40 @@ func awsRestjson1_deserializeDocumentCategoricalMeasureField(v **types.Categoric return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.CategoricalMeasureField + var sv *types.ConditionalFormattingCustomIconCondition if *v == nil { - sv = &types.CategoricalMeasureField{} + sv = &types.ConditionalFormattingCustomIconCondition{} } else { sv = *v } for key, value := range shape { switch key { - case "AggregationFunction": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected CategoricalAggregationFunction to be of type string, got %T instead", value) - } - sv.AggregationFunction = types.CategoricalAggregationFunction(jtv) - } - - case "Column": - if err := awsRestjson1_deserializeDocumentColumnIdentifier(&sv.Column, value); err != nil { - return err - } - - case "FieldId": + case "Color": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected FieldId to be of type string, got %T instead", value) + return fmt.Errorf("expected HexColor to be of type string, got %T instead", value) } - sv.FieldId = ptr.String(jtv) - } - - case "FormatConfiguration": - if err := awsRestjson1_deserializeDocumentStringFormatConfiguration(&sv.FormatConfiguration, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentCategoryDrillDownFilter(v **types.CategoryDrillDownFilter, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.CategoryDrillDownFilter - if *v == nil { - sv = &types.CategoryDrillDownFilter{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "CategoryValues": - if err := awsRestjson1_deserializeDocumentCategoryValueList(&sv.CategoryValues, value); err != nil { - return err - } - - case "Column": - if err := awsRestjson1_deserializeDocumentColumnIdentifier(&sv.Column, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentCategoryFilter(v **types.CategoryFilter, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.CategoryFilter - if *v == nil { - sv = &types.CategoryFilter{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Column": - if err := awsRestjson1_deserializeDocumentColumnIdentifier(&sv.Column, value); err != nil { - return err + sv.Color = ptr.String(jtv) } - case "Configuration": - if err := awsRestjson1_deserializeDocumentCategoryFilterConfiguration(&sv.Configuration, value); err != nil { + case "DisplayConfiguration": + if err := awsRestjson1_deserializeDocumentConditionalFormattingIconDisplayConfiguration(&sv.DisplayConfiguration, value); err != nil { return err } - case "FilterId": + case "Expression": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + return fmt.Errorf("expected Expression to be of type string, got %T instead", value) } - sv.FilterId = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentCategoryFilterConfiguration(v **types.CategoryFilterConfiguration, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.CategoryFilterConfiguration - if *v == nil { - sv = &types.CategoryFilterConfiguration{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "CustomFilterConfiguration": - if err := awsRestjson1_deserializeDocumentCustomFilterConfiguration(&sv.CustomFilterConfiguration, value); err != nil { - return err - } - - case "CustomFilterListConfiguration": - if err := awsRestjson1_deserializeDocumentCustomFilterListConfiguration(&sv.CustomFilterListConfiguration, value); err != nil { - return err + sv.Expression = ptr.String(jtv) } - case "FilterListConfiguration": - if err := awsRestjson1_deserializeDocumentFilterListConfiguration(&sv.FilterListConfiguration, value); err != nil { + case "IconOptions": + if err := awsRestjson1_deserializeDocumentConditionalFormattingCustomIconOptions(&sv.IconOptions, value); err != nil { return err } @@ -31231,7 +37074,7 @@ func awsRestjson1_deserializeDocumentCategoryFilterConfiguration(v **types.Categ return nil } -func awsRestjson1_deserializeDocumentCategoryValueList(v *[]string, value interface{}) error { +func awsRestjson1_deserializeDocumentConditionalFormattingCustomIconOptions(v **types.ConditionalFormattingCustomIconOptions, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -31239,35 +37082,48 @@ func awsRestjson1_deserializeDocumentCategoryValueList(v *[]string, value interf return nil } - shape, ok := value.([]interface{}) + shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var cv []string + var sv *types.ConditionalFormattingCustomIconOptions if *v == nil { - cv = []string{} + sv = &types.ConditionalFormattingCustomIconOptions{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col string - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected CategoryValue to be of type string, got %T instead", value) + for key, value := range shape { + switch key { + case "Icon": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Icon to be of type string, got %T instead", value) + } + sv.Icon = types.Icon(jtv) } - col = jtv - } - cv = append(cv, col) + case "UnicodeIcon": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected UnicodeIcon to be of type string, got %T instead", value) + } + sv.UnicodeIcon = ptr.String(jtv) + } + + default: + _, _ = key, value + + } } - *v = cv + *v = sv return nil } -func awsRestjson1_deserializeDocumentChartAxisLabelOptions(v **types.ChartAxisLabelOptions, value interface{}) error { +func awsRestjson1_deserializeDocumentConditionalFormattingGradientColor(v **types.ConditionalFormattingGradientColor, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -31280,36 +37136,27 @@ func awsRestjson1_deserializeDocumentChartAxisLabelOptions(v **types.ChartAxisLa return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ChartAxisLabelOptions + var sv *types.ConditionalFormattingGradientColor if *v == nil { - sv = &types.ChartAxisLabelOptions{} + sv = &types.ConditionalFormattingGradientColor{} } else { sv = *v } for key, value := range shape { switch key { - case "AxisLabelOptions": - if err := awsRestjson1_deserializeDocumentAxisLabelOptionsList(&sv.AxisLabelOptions, value); err != nil { + case "Color": + if err := awsRestjson1_deserializeDocumentGradientColor(&sv.Color, value); err != nil { return err } - case "SortIconVisibility": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) - } - sv.SortIconVisibility = types.Visibility(jtv) - } - - case "Visibility": + case "Expression": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) + return fmt.Errorf("expected Expression to be of type string, got %T instead", value) } - sv.Visibility = types.Visibility(jtv) + sv.Expression = ptr.String(jtv) } default: @@ -31321,7 +37168,7 @@ func awsRestjson1_deserializeDocumentChartAxisLabelOptions(v **types.ChartAxisLa return nil } -func awsRestjson1_deserializeDocumentClusterMarker(v **types.ClusterMarker, value interface{}) error { +func awsRestjson1_deserializeDocumentConditionalFormattingIcon(v **types.ConditionalFormattingIcon, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -31334,17 +37181,22 @@ func awsRestjson1_deserializeDocumentClusterMarker(v **types.ClusterMarker, valu return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ClusterMarker + var sv *types.ConditionalFormattingIcon if *v == nil { - sv = &types.ClusterMarker{} + sv = &types.ConditionalFormattingIcon{} } else { sv = *v } for key, value := range shape { switch key { - case "SimpleClusterMarker": - if err := awsRestjson1_deserializeDocumentSimpleClusterMarker(&sv.SimpleClusterMarker, value); err != nil { + case "CustomCondition": + if err := awsRestjson1_deserializeDocumentConditionalFormattingCustomIconCondition(&sv.CustomCondition, value); err != nil { + return err + } + + case "IconSet": + if err := awsRestjson1_deserializeDocumentConditionalFormattingIconSet(&sv.IconSet, value); err != nil { return err } @@ -31357,7 +37209,7 @@ func awsRestjson1_deserializeDocumentClusterMarker(v **types.ClusterMarker, valu return nil } -func awsRestjson1_deserializeDocumentClusterMarkerConfiguration(v **types.ClusterMarkerConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentConditionalFormattingIconDisplayConfiguration(v **types.ConditionalFormattingIconDisplayConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -31370,18 +37222,22 @@ func awsRestjson1_deserializeDocumentClusterMarkerConfiguration(v **types.Cluste return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ClusterMarkerConfiguration + var sv *types.ConditionalFormattingIconDisplayConfiguration if *v == nil { - sv = &types.ClusterMarkerConfiguration{} + sv = &types.ConditionalFormattingIconDisplayConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "ClusterMarker": - if err := awsRestjson1_deserializeDocumentClusterMarker(&sv.ClusterMarker, value); err != nil { - return err + case "IconDisplayOption": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ConditionalFormattingIconDisplayOption to be of type string, got %T instead", value) + } + sv.IconDisplayOption = types.ConditionalFormattingIconDisplayOption(jtv) } default: @@ -31393,7 +37249,7 @@ func awsRestjson1_deserializeDocumentClusterMarkerConfiguration(v **types.Cluste return nil } -func awsRestjson1_deserializeDocumentColorList(v *[]string, value interface{}) error { +func awsRestjson1_deserializeDocumentConditionalFormattingIconSet(v **types.ConditionalFormattingIconSet, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -31401,35 +37257,48 @@ func awsRestjson1_deserializeDocumentColorList(v *[]string, value interface{}) e return nil } - shape, ok := value.([]interface{}) + shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var cv []string + var sv *types.ConditionalFormattingIconSet if *v == nil { - cv = []string{} + sv = &types.ConditionalFormattingIconSet{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col string - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected HexColor to be of type string, got %T instead", value) + for key, value := range shape { + switch key { + case "Expression": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Expression to be of type string, got %T instead", value) + } + sv.Expression = ptr.String(jtv) } - col = jtv - } - cv = append(cv, col) + case "IconSetType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ConditionalFormattingIconSetType to be of type string, got %T instead", value) + } + sv.IconSetType = types.ConditionalFormattingIconSetType(jtv) + } + + default: + _, _ = key, value + + } } - *v = cv + *v = sv return nil } -func awsRestjson1_deserializeDocumentColorScale(v **types.ColorScale, value interface{}) error { +func awsRestjson1_deserializeDocumentConditionalFormattingSolidColor(v **types.ConditionalFormattingSolidColor, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -31442,32 +37311,31 @@ func awsRestjson1_deserializeDocumentColorScale(v **types.ColorScale, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ColorScale + var sv *types.ConditionalFormattingSolidColor if *v == nil { - sv = &types.ColorScale{} + sv = &types.ConditionalFormattingSolidColor{} } else { sv = *v } for key, value := range shape { switch key { - case "ColorFillType": + case "Color": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ColorFillType to be of type string, got %T instead", value) + return fmt.Errorf("expected HexColor to be of type string, got %T instead", value) } - sv.ColorFillType = types.ColorFillType(jtv) - } - - case "Colors": - if err := awsRestjson1_deserializeDocumentColorScaleColorList(&sv.Colors, value); err != nil { - return err + sv.Color = ptr.String(jtv) } - case "NullValueColor": - if err := awsRestjson1_deserializeDocumentDataColor(&sv.NullValueColor, value); err != nil { - return err + case "Expression": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Expression to be of type string, got %T instead", value) + } + sv.Expression = ptr.String(jtv) } default: @@ -31479,7 +37347,7 @@ func awsRestjson1_deserializeDocumentColorScale(v **types.ColorScale, value inte return nil } -func awsRestjson1_deserializeDocumentColorScaleColorList(v *[]types.DataColor, value interface{}) error { +func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -31487,33 +37355,48 @@ func awsRestjson1_deserializeDocumentColorScaleColorList(v *[]types.DataColor, v return nil } - shape, ok := value.([]interface{}) + shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.DataColor + var sv *types.ConflictException if *v == nil { - cv = []types.DataColor{} + sv = &types.ConflictException{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col types.DataColor - destAddr := &col - if err := awsRestjson1_deserializeDocumentDataColor(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) + for key, value := range shape { + switch key { + case "Message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + case "RequestId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.RequestId = ptr.String(jtv) + } + default: + _, _ = key, value + + } } - *v = cv + *v = sv return nil } -func awsRestjson1_deserializeDocumentColumnConfiguration(v **types.ColumnConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentContributionAnalysisDefault(v **types.ContributionAnalysisDefault, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -31526,32 +37409,27 @@ func awsRestjson1_deserializeDocumentColumnConfiguration(v **types.ColumnConfigu return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ColumnConfiguration + var sv *types.ContributionAnalysisDefault if *v == nil { - sv = &types.ColumnConfiguration{} + sv = &types.ContributionAnalysisDefault{} } else { sv = *v } for key, value := range shape { switch key { - case "Column": - if err := awsRestjson1_deserializeDocumentColumnIdentifier(&sv.Column, value); err != nil { - return err - } - - case "FormatConfiguration": - if err := awsRestjson1_deserializeDocumentFormatConfiguration(&sv.FormatConfiguration, value); err != nil { + case "ContributorDimensions": + if err := awsRestjson1_deserializeDocumentContributorDimensionList(&sv.ContributorDimensions, value); err != nil { return err } - case "Role": + case "MeasureFieldId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ColumnRole to be of type string, got %T instead", value) + return fmt.Errorf("expected FieldId to be of type string, got %T instead", value) } - sv.Role = types.ColumnRole(jtv) + sv.MeasureFieldId = ptr.String(jtv) } default: @@ -31563,7 +37441,7 @@ func awsRestjson1_deserializeDocumentColumnConfiguration(v **types.ColumnConfigu return nil } -func awsRestjson1_deserializeDocumentColumnConfigurationList(v *[]types.ColumnConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentContributionAnalysisDefaultList(v *[]types.ContributionAnalysisDefault, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -31576,17 +37454,17 @@ func awsRestjson1_deserializeDocumentColumnConfigurationList(v *[]types.ColumnCo return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.ColumnConfiguration + var cv []types.ContributionAnalysisDefault if *v == nil { - cv = []types.ColumnConfiguration{} + cv = []types.ContributionAnalysisDefault{} } else { cv = *v } for _, value := range shape { - var col types.ColumnConfiguration + var col types.ContributionAnalysisDefault destAddr := &col - if err := awsRestjson1_deserializeDocumentColumnConfiguration(&destAddr, value); err != nil { + if err := awsRestjson1_deserializeDocumentContributionAnalysisDefault(&destAddr, value); err != nil { return err } col = *destAddr @@ -31597,7 +37475,7 @@ func awsRestjson1_deserializeDocumentColumnConfigurationList(v *[]types.ColumnCo return nil } -func awsRestjson1_deserializeDocumentColumnDescription(v **types.ColumnDescription, value interface{}) error { +func awsRestjson1_deserializeDocumentContributorDimensionList(v *[]types.ColumnIdentifier, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -31605,39 +37483,33 @@ func awsRestjson1_deserializeDocumentColumnDescription(v **types.ColumnDescripti return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ColumnDescription + var cv []types.ColumnIdentifier if *v == nil { - sv = &types.ColumnDescription{} + cv = []types.ColumnIdentifier{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "Text": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ColumnDescriptiveText to be of type string, got %T instead", value) - } - sv.Text = ptr.String(jtv) - } - - default: - _, _ = key, value - + for _, value := range shape { + var col types.ColumnIdentifier + destAddr := &col + if err := awsRestjson1_deserializeDocumentColumnIdentifier(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsRestjson1_deserializeDocumentColumnGroup(v **types.ColumnGroup, value interface{}) error { +func awsRestjson1_deserializeDocumentCreateColumnsOperation(v **types.CreateColumnsOperation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -31650,17 +37522,17 @@ func awsRestjson1_deserializeDocumentColumnGroup(v **types.ColumnGroup, value in return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ColumnGroup + var sv *types.CreateColumnsOperation if *v == nil { - sv = &types.ColumnGroup{} + sv = &types.CreateColumnsOperation{} } else { sv = *v } for key, value := range shape { switch key { - case "GeoSpatialColumnGroup": - if err := awsRestjson1_deserializeDocumentGeoSpatialColumnGroup(&sv.GeoSpatialColumnGroup, value); err != nil { + case "Columns": + if err := awsRestjson1_deserializeDocumentCalculatedColumnList(&sv.Columns, value); err != nil { return err } @@ -31673,7 +37545,7 @@ func awsRestjson1_deserializeDocumentColumnGroup(v **types.ColumnGroup, value in return nil } -func awsRestjson1_deserializeDocumentColumnGroupColumnSchema(v **types.ColumnGroupColumnSchema, value interface{}) error { +func awsRestjson1_deserializeDocumentCurrencyDisplayFormatConfiguration(v **types.CurrencyDisplayFormatConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -31686,22 +37558,69 @@ func awsRestjson1_deserializeDocumentColumnGroupColumnSchema(v **types.ColumnGro return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ColumnGroupColumnSchema + var sv *types.CurrencyDisplayFormatConfiguration if *v == nil { - sv = &types.ColumnGroupColumnSchema{} + sv = &types.CurrencyDisplayFormatConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "Name": + case "DecimalPlacesConfiguration": + if err := awsRestjson1_deserializeDocumentDecimalPlacesConfiguration(&sv.DecimalPlacesConfiguration, value); err != nil { + return err + } + + case "NegativeValueConfiguration": + if err := awsRestjson1_deserializeDocumentNegativeValueConfiguration(&sv.NegativeValueConfiguration, value); err != nil { + return err + } + + case "NullValueFormatConfiguration": + if err := awsRestjson1_deserializeDocumentNullValueFormatConfiguration(&sv.NullValueFormatConfiguration, value); err != nil { + return err + } + + case "NumberScale": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) + return fmt.Errorf("expected NumberScale to be of type string, got %T instead", value) } - sv.Name = ptr.String(jtv) + sv.NumberScale = types.NumberScale(jtv) + } + + case "Prefix": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Prefix to be of type string, got %T instead", value) + } + sv.Prefix = ptr.String(jtv) + } + + case "SeparatorConfiguration": + if err := awsRestjson1_deserializeDocumentNumericSeparatorConfiguration(&sv.SeparatorConfiguration, value); err != nil { + return err + } + + case "Suffix": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Suffix to be of type string, got %T instead", value) + } + sv.Suffix = ptr.String(jtv) + } + + case "Symbol": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected CurrencyCode to be of type string, got %T instead", value) + } + sv.Symbol = ptr.String(jtv) } default: @@ -31713,7 +37632,7 @@ func awsRestjson1_deserializeDocumentColumnGroupColumnSchema(v **types.ColumnGro return nil } -func awsRestjson1_deserializeDocumentColumnGroupColumnSchemaList(v *[]types.ColumnGroupColumnSchema, value interface{}) error { +func awsRestjson1_deserializeDocumentCustomActionColumnList(v *[]types.ColumnIdentifier, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -31726,17 +37645,17 @@ func awsRestjson1_deserializeDocumentColumnGroupColumnSchemaList(v *[]types.Colu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.ColumnGroupColumnSchema + var cv []types.ColumnIdentifier if *v == nil { - cv = []types.ColumnGroupColumnSchema{} + cv = []types.ColumnIdentifier{} } else { cv = *v } for _, value := range shape { - var col types.ColumnGroupColumnSchema + var col types.ColumnIdentifier destAddr := &col - if err := awsRestjson1_deserializeDocumentColumnGroupColumnSchema(&destAddr, value); err != nil { + if err := awsRestjson1_deserializeDocumentColumnIdentifier(&destAddr, value); err != nil { return err } col = *destAddr @@ -31747,7 +37666,7 @@ func awsRestjson1_deserializeDocumentColumnGroupColumnSchemaList(v *[]types.Colu return nil } -func awsRestjson1_deserializeDocumentColumnGroupList(v *[]types.ColumnGroup, value interface{}) error { +func awsRestjson1_deserializeDocumentCustomActionFilterOperation(v **types.CustomActionFilterOperation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -31755,33 +37674,40 @@ func awsRestjson1_deserializeDocumentColumnGroupList(v *[]types.ColumnGroup, val return nil } - shape, ok := value.([]interface{}) + shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.ColumnGroup + var sv *types.CustomActionFilterOperation if *v == nil { - cv = []types.ColumnGroup{} + sv = &types.CustomActionFilterOperation{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col types.ColumnGroup - destAddr := &col - if err := awsRestjson1_deserializeDocumentColumnGroup(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) + for key, value := range shape { + switch key { + case "SelectedFieldsConfiguration": + if err := awsRestjson1_deserializeDocumentFilterOperationSelectedFieldsConfiguration(&sv.SelectedFieldsConfiguration, value); err != nil { + return err + } + + case "TargetVisualsConfiguration": + if err := awsRestjson1_deserializeDocumentFilterOperationTargetVisualsConfiguration(&sv.TargetVisualsConfiguration, value); err != nil { + return err + } + + default: + _, _ = key, value + } } - *v = cv + *v = sv return nil } -func awsRestjson1_deserializeDocumentColumnGroupSchema(v **types.ColumnGroupSchema, value interface{}) error { +func awsRestjson1_deserializeDocumentCustomActionNavigationOperation(v **types.CustomActionNavigationOperation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -31794,27 +37720,54 @@ func awsRestjson1_deserializeDocumentColumnGroupSchema(v **types.ColumnGroupSche return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ColumnGroupSchema + var sv *types.CustomActionNavigationOperation if *v == nil { - sv = &types.ColumnGroupSchema{} + sv = &types.CustomActionNavigationOperation{} } else { sv = *v } for key, value := range shape { switch key { - case "ColumnGroupColumnSchemaList": - if err := awsRestjson1_deserializeDocumentColumnGroupColumnSchemaList(&sv.ColumnGroupColumnSchemaList, value); err != nil { + case "LocalNavigationConfiguration": + if err := awsRestjson1_deserializeDocumentLocalNavigationConfiguration(&sv.LocalNavigationConfiguration, value); err != nil { return err } - case "Name": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.Name = ptr.String(jtv) + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentCustomActionSetParametersOperation(v **types.CustomActionSetParametersOperation, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.CustomActionSetParametersOperation + if *v == nil { + sv = &types.CustomActionSetParametersOperation{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "ParameterValueConfigurations": + if err := awsRestjson1_deserializeDocumentSetParameterValueConfigurationList(&sv.ParameterValueConfigurations, value); err != nil { + return err } default: @@ -31826,7 +37779,7 @@ func awsRestjson1_deserializeDocumentColumnGroupSchema(v **types.ColumnGroupSche return nil } -func awsRestjson1_deserializeDocumentColumnGroupSchemaList(v *[]types.ColumnGroupSchema, value interface{}) error { +func awsRestjson1_deserializeDocumentCustomActionURLOperation(v **types.CustomActionURLOperation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -31834,33 +37787,48 @@ func awsRestjson1_deserializeDocumentColumnGroupSchemaList(v *[]types.ColumnGrou return nil } - shape, ok := value.([]interface{}) + shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.ColumnGroupSchema + var sv *types.CustomActionURLOperation if *v == nil { - cv = []types.ColumnGroupSchema{} + sv = &types.CustomActionURLOperation{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col types.ColumnGroupSchema - destAddr := &col - if err := awsRestjson1_deserializeDocumentColumnGroupSchema(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) + for key, value := range shape { + switch key { + case "URLTarget": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected URLTargetConfiguration to be of type string, got %T instead", value) + } + sv.URLTarget = types.URLTargetConfiguration(jtv) + } + + case "URLTemplate": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected URLOperationTemplate to be of type string, got %T instead", value) + } + sv.URLTemplate = ptr.String(jtv) + } + default: + _, _ = key, value + + } } - *v = cv + *v = sv return nil } -func awsRestjson1_deserializeDocumentColumnHierarchy(v **types.ColumnHierarchy, value interface{}) error { +func awsRestjson1_deserializeDocumentCustomContentConfiguration(v **types.CustomContentConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -31873,28 +37841,40 @@ func awsRestjson1_deserializeDocumentColumnHierarchy(v **types.ColumnHierarchy, return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ColumnHierarchy + var sv *types.CustomContentConfiguration if *v == nil { - sv = &types.ColumnHierarchy{} + sv = &types.CustomContentConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "DateTimeHierarchy": - if err := awsRestjson1_deserializeDocumentDateTimeHierarchy(&sv.DateTimeHierarchy, value); err != nil { - return err + case "ContentType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected CustomContentType to be of type string, got %T instead", value) + } + sv.ContentType = types.CustomContentType(jtv) } - case "ExplicitHierarchy": - if err := awsRestjson1_deserializeDocumentExplicitHierarchy(&sv.ExplicitHierarchy, value); err != nil { - return err + case "ContentUrl": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected URLOperationTemplate to be of type string, got %T instead", value) + } + sv.ContentUrl = ptr.String(jtv) } - - case "PredefinedHierarchy": - if err := awsRestjson1_deserializeDocumentPredefinedHierarchy(&sv.PredefinedHierarchy, value); err != nil { - return err + + case "ImageScaling": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected CustomContentImageScalingConfiguration to be of type string, got %T instead", value) + } + sv.ImageScaling = types.CustomContentImageScalingConfiguration(jtv) } default: @@ -31906,7 +37886,7 @@ func awsRestjson1_deserializeDocumentColumnHierarchy(v **types.ColumnHierarchy, return nil } -func awsRestjson1_deserializeDocumentColumnHierarchyList(v *[]types.ColumnHierarchy, value interface{}) error { +func awsRestjson1_deserializeDocumentCustomContentVisual(v **types.CustomContentVisual, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -31914,33 +37894,68 @@ func awsRestjson1_deserializeDocumentColumnHierarchyList(v *[]types.ColumnHierar return nil } - shape, ok := value.([]interface{}) + shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.ColumnHierarchy + var sv *types.CustomContentVisual if *v == nil { - cv = []types.ColumnHierarchy{} + sv = &types.CustomContentVisual{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col types.ColumnHierarchy - destAddr := &col - if err := awsRestjson1_deserializeDocumentColumnHierarchy(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) + for key, value := range shape { + switch key { + case "Actions": + if err := awsRestjson1_deserializeDocumentVisualCustomActionList(&sv.Actions, value); err != nil { + return err + } + + case "ChartConfiguration": + if err := awsRestjson1_deserializeDocumentCustomContentConfiguration(&sv.ChartConfiguration, value); err != nil { + return err + } + + case "DataSetIdentifier": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DataSetIdentifier to be of type string, got %T instead", value) + } + sv.DataSetIdentifier = ptr.String(jtv) + } + + case "Subtitle": + if err := awsRestjson1_deserializeDocumentVisualSubtitleLabelOptions(&sv.Subtitle, value); err != nil { + return err + } + + case "Title": + if err := awsRestjson1_deserializeDocumentVisualTitleLabelOptions(&sv.Title, value); err != nil { + return err + } + + case "VisualId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + } + sv.VisualId = ptr.String(jtv) + } + + default: + _, _ = key, value + } } - *v = cv + *v = sv return nil } -func awsRestjson1_deserializeDocumentColumnIdentifier(v **types.ColumnIdentifier, value interface{}) error { +func awsRestjson1_deserializeDocumentCustomFilterConfiguration(v **types.CustomFilterConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -31953,31 +37968,58 @@ func awsRestjson1_deserializeDocumentColumnIdentifier(v **types.ColumnIdentifier return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ColumnIdentifier + var sv *types.CustomFilterConfiguration if *v == nil { - sv = &types.ColumnIdentifier{} + sv = &types.CustomFilterConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "ColumnName": + case "CategoryValue": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ColumnName to be of type string, got %T instead", value) + return fmt.Errorf("expected CategoryValue to be of type string, got %T instead", value) } - sv.ColumnName = ptr.String(jtv) + sv.CategoryValue = ptr.String(jtv) } - case "DataSetIdentifier": + case "MatchOperator": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected DataSetIdentifier to be of type string, got %T instead", value) + return fmt.Errorf("expected CategoryFilterMatchOperator to be of type string, got %T instead", value) } - sv.DataSetIdentifier = ptr.String(jtv) + sv.MatchOperator = types.CategoryFilterMatchOperator(jtv) + } + + case "NullOption": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected FilterNullOption to be of type string, got %T instead", value) + } + sv.NullOption = types.FilterNullOption(jtv) + } + + case "ParameterName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ParameterName to be of type string, got %T instead", value) + } + sv.ParameterName = ptr.String(jtv) + } + + case "SelectAllOptions": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected CategoryFilterSelectAllOptions to be of type string, got %T instead", value) + } + sv.SelectAllOptions = types.CategoryFilterSelectAllOptions(jtv) } default: @@ -31989,7 +38031,7 @@ func awsRestjson1_deserializeDocumentColumnIdentifier(v **types.ColumnIdentifier return nil } -func awsRestjson1_deserializeDocumentColumnLevelPermissionRule(v **types.ColumnLevelPermissionRule, value interface{}) error { +func awsRestjson1_deserializeDocumentCustomFilterListConfiguration(v **types.CustomFilterListConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -32002,23 +38044,45 @@ func awsRestjson1_deserializeDocumentColumnLevelPermissionRule(v **types.ColumnL return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ColumnLevelPermissionRule + var sv *types.CustomFilterListConfiguration if *v == nil { - sv = &types.ColumnLevelPermissionRule{} + sv = &types.CustomFilterListConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "ColumnNames": - if err := awsRestjson1_deserializeDocumentColumnNameList(&sv.ColumnNames, value); err != nil { + case "CategoryValues": + if err := awsRestjson1_deserializeDocumentCategoryValueList(&sv.CategoryValues, value); err != nil { return err } - case "Principals": - if err := awsRestjson1_deserializeDocumentPrincipalList(&sv.Principals, value); err != nil { - return err + case "MatchOperator": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected CategoryFilterMatchOperator to be of type string, got %T instead", value) + } + sv.MatchOperator = types.CategoryFilterMatchOperator(jtv) + } + + case "NullOption": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected FilterNullOption to be of type string, got %T instead", value) + } + sv.NullOption = types.FilterNullOption(jtv) + } + + case "SelectAllOptions": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected CategoryFilterSelectAllOptions to be of type string, got %T instead", value) + } + sv.SelectAllOptions = types.CategoryFilterSelectAllOptions(jtv) } default: @@ -32030,7 +38094,7 @@ func awsRestjson1_deserializeDocumentColumnLevelPermissionRule(v **types.ColumnL return nil } -func awsRestjson1_deserializeDocumentColumnLevelPermissionRuleList(v *[]types.ColumnLevelPermissionRule, value interface{}) error { +func awsRestjson1_deserializeDocumentCustomNarrativeOptions(v **types.CustomNarrativeOptions, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -32038,33 +38102,39 @@ func awsRestjson1_deserializeDocumentColumnLevelPermissionRuleList(v *[]types.Co return nil } - shape, ok := value.([]interface{}) + shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.ColumnLevelPermissionRule + var sv *types.CustomNarrativeOptions if *v == nil { - cv = []types.ColumnLevelPermissionRule{} + sv = &types.CustomNarrativeOptions{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col types.ColumnLevelPermissionRule - destAddr := &col - if err := awsRestjson1_deserializeDocumentColumnLevelPermissionRule(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) + for key, value := range shape { + switch key { + case "Narrative": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NarrativeString to be of type string, got %T instead", value) + } + sv.Narrative = ptr.String(jtv) + } + + default: + _, _ = key, value + } } - *v = cv + *v = sv return nil } -func awsRestjson1_deserializeDocumentColumnList(v *[]string, value interface{}) error { +func awsRestjson1_deserializeDocumentCustomParameterValues(v **types.CustomParameterValues, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -32072,71 +38142,50 @@ func awsRestjson1_deserializeDocumentColumnList(v *[]string, value interface{}) return nil } - shape, ok := value.([]interface{}) + shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var cv []string + var sv *types.CustomParameterValues if *v == nil { - cv = []string{} + sv = &types.CustomParameterValues{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col string - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ColumnName to be of type string, got %T instead", value) + for key, value := range shape { + switch key { + case "DateTimeValues": + if err := awsRestjson1_deserializeDocumentDateTimeDefaultValueList(&sv.DateTimeValues, value); err != nil { + return err } - col = jtv - } - cv = append(cv, col) - } - *v = cv - return nil -} + case "DecimalValues": + if err := awsRestjson1_deserializeDocumentDecimalDefaultValueList(&sv.DecimalValues, value); err != nil { + return err + } -func awsRestjson1_deserializeDocumentColumnNameList(v *[]string, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } + case "IntegerValues": + if err := awsRestjson1_deserializeDocumentIntegerDefaultValueList(&sv.IntegerValues, value); err != nil { + return err + } - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } + case "StringValues": + if err := awsRestjson1_deserializeDocumentStringDefaultValueList(&sv.StringValues, value); err != nil { + return err + } - var cv []string - if *v == nil { - cv = []string{} - } else { - cv = *v - } + default: + _, _ = key, value - for _, value := range shape { - var col string - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - col = jtv } - cv = append(cv, col) - } - *v = cv + *v = sv return nil } -func awsRestjson1_deserializeDocumentColumnSchema(v **types.ColumnSchema, value interface{}) error { +func awsRestjson1_deserializeDocumentCustomSql(v **types.CustomSql, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -32149,40 +38198,45 @@ func awsRestjson1_deserializeDocumentColumnSchema(v **types.ColumnSchema, value return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ColumnSchema + var sv *types.CustomSql if *v == nil { - sv = &types.ColumnSchema{} + sv = &types.CustomSql{} } else { sv = *v } for key, value := range shape { switch key { - case "DataType": + case "Columns": + if err := awsRestjson1_deserializeDocumentInputColumnList(&sv.Columns, value); err != nil { + return err + } + + case "DataSourceArn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.DataType = ptr.String(jtv) + sv.DataSourceArn = ptr.String(jtv) } - case "GeographicRole": + case "Name": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) + return fmt.Errorf("expected CustomSqlName to be of type string, got %T instead", value) } - sv.GeographicRole = ptr.String(jtv) + sv.Name = ptr.String(jtv) } - case "Name": + case "SqlQuery": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) + return fmt.Errorf("expected SqlQuery to be of type string, got %T instead", value) } - sv.Name = ptr.String(jtv) + sv.SqlQuery = ptr.String(jtv) } default: @@ -32194,7 +38248,7 @@ func awsRestjson1_deserializeDocumentColumnSchema(v **types.ColumnSchema, value return nil } -func awsRestjson1_deserializeDocumentColumnSchemaList(v *[]types.ColumnSchema, value interface{}) error { +func awsRestjson1_deserializeDocumentCustomValuesConfiguration(v **types.CustomValuesConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -32202,33 +38256,44 @@ func awsRestjson1_deserializeDocumentColumnSchemaList(v *[]types.ColumnSchema, v return nil } - shape, ok := value.([]interface{}) + shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.ColumnSchema + var sv *types.CustomValuesConfiguration if *v == nil { - cv = []types.ColumnSchema{} + sv = &types.CustomValuesConfiguration{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col types.ColumnSchema - destAddr := &col - if err := awsRestjson1_deserializeDocumentColumnSchema(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) + for key, value := range shape { + switch key { + case "CustomValues": + if err := awsRestjson1_deserializeDocumentCustomParameterValues(&sv.CustomValues, value); err != nil { + return err + } + + case "IncludeNullValue": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected BooleanObject to be of type *bool, got %T instead", value) + } + sv.IncludeNullValue = ptr.Bool(jtv) + } + + default: + _, _ = key, value + } } - *v = cv + *v = sv return nil } -func awsRestjson1_deserializeDocumentColumnSort(v **types.ColumnSort, value interface{}) error { +func awsRestjson1_deserializeDocumentDashboard(v **types.Dashboard, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -32241,31 +38306,92 @@ func awsRestjson1_deserializeDocumentColumnSort(v **types.ColumnSort, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ColumnSort + var sv *types.Dashboard if *v == nil { - sv = &types.ColumnSort{} + sv = &types.Dashboard{} } else { sv = *v } for key, value := range shape { switch key { - case "AggregationFunction": - if err := awsRestjson1_deserializeDocumentAggregationFunction(&sv.AggregationFunction, value); err != nil { - return err + case "Arn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) } - case "Direction": + case "CreatedTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreatedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "DashboardId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected SortDirection to be of type string, got %T instead", value) + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) } - sv.Direction = types.SortDirection(jtv) + sv.DashboardId = ptr.String(jtv) } - case "SortBy": - if err := awsRestjson1_deserializeDocumentColumnIdentifier(&sv.SortBy, value); err != nil { + case "LastPublishedTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.LastPublishedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "LastUpdatedTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.LastUpdatedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "Name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DashboardName to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + case "Version": + if err := awsRestjson1_deserializeDocumentDashboardVersion(&sv.Version, value); err != nil { return err } @@ -32278,7 +38404,7 @@ func awsRestjson1_deserializeDocumentColumnSort(v **types.ColumnSort, value inte return nil } -func awsRestjson1_deserializeDocumentColumnTag(v **types.ColumnTag, value interface{}) error { +func awsRestjson1_deserializeDocumentDashboardError(v **types.DashboardError, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -32291,27 +38417,36 @@ func awsRestjson1_deserializeDocumentColumnTag(v **types.ColumnTag, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ColumnTag + var sv *types.DashboardError if *v == nil { - sv = &types.ColumnTag{} + sv = &types.DashboardError{} } else { sv = *v } for key, value := range shape { switch key { - case "ColumnDescription": - if err := awsRestjson1_deserializeDocumentColumnDescription(&sv.ColumnDescription, value); err != nil { - return err + case "Message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) } - case "ColumnGeographicRole": + case "Type": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected GeoSpatialDataRole to be of type string, got %T instead", value) + return fmt.Errorf("expected DashboardErrorType to be of type string, got %T instead", value) } - sv.ColumnGeographicRole = types.GeoSpatialDataRole(jtv) + sv.Type = types.DashboardErrorType(jtv) + } + + case "ViolatedEntities": + if err := awsRestjson1_deserializeDocumentEntityList(&sv.ViolatedEntities, value); err != nil { + return err } default: @@ -32323,7 +38458,7 @@ func awsRestjson1_deserializeDocumentColumnTag(v **types.ColumnTag, value interf return nil } -func awsRestjson1_deserializeDocumentColumnTagList(v *[]types.ColumnTag, value interface{}) error { +func awsRestjson1_deserializeDocumentDashboardErrorList(v *[]types.DashboardError, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -32336,17 +38471,17 @@ func awsRestjson1_deserializeDocumentColumnTagList(v *[]types.ColumnTag, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.ColumnTag + var cv []types.DashboardError if *v == nil { - cv = []types.ColumnTag{} + cv = []types.DashboardError{} } else { cv = *v } for _, value := range shape { - var col types.ColumnTag + var col types.DashboardError destAddr := &col - if err := awsRestjson1_deserializeDocumentColumnTag(&destAddr, value); err != nil { + if err := awsRestjson1_deserializeDocumentDashboardError(&destAddr, value); err != nil { return err } col = *destAddr @@ -32357,7 +38492,7 @@ func awsRestjson1_deserializeDocumentColumnTagList(v *[]types.ColumnTag, value i return nil } -func awsRestjson1_deserializeDocumentColumnTagNames(v *[]types.ColumnTagName, value interface{}) error { +func awsRestjson1_deserializeDocumentDashboardPublishOptions(v **types.DashboardPublishOptions, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -32365,35 +38500,85 @@ func awsRestjson1_deserializeDocumentColumnTagNames(v *[]types.ColumnTagName, va return nil } - shape, ok := value.([]interface{}) + shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.ColumnTagName + var sv *types.DashboardPublishOptions if *v == nil { - cv = []types.ColumnTagName{} + sv = &types.DashboardPublishOptions{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col types.ColumnTagName - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ColumnTagName to be of type string, got %T instead", value) + for key, value := range shape { + switch key { + case "AdHocFilteringOption": + if err := awsRestjson1_deserializeDocumentAdHocFilteringOption(&sv.AdHocFilteringOption, value); err != nil { + return err + } + + case "DataPointDrillUpDownOption": + if err := awsRestjson1_deserializeDocumentDataPointDrillUpDownOption(&sv.DataPointDrillUpDownOption, value); err != nil { + return err + } + + case "DataPointMenuLabelOption": + if err := awsRestjson1_deserializeDocumentDataPointMenuLabelOption(&sv.DataPointMenuLabelOption, value); err != nil { + return err + } + + case "DataPointTooltipOption": + if err := awsRestjson1_deserializeDocumentDataPointTooltipOption(&sv.DataPointTooltipOption, value); err != nil { + return err + } + + case "ExportToCSVOption": + if err := awsRestjson1_deserializeDocumentExportToCSVOption(&sv.ExportToCSVOption, value); err != nil { + return err + } + + case "ExportWithHiddenFieldsOption": + if err := awsRestjson1_deserializeDocumentExportWithHiddenFieldsOption(&sv.ExportWithHiddenFieldsOption, value); err != nil { + return err + } + + case "SheetControlsOption": + if err := awsRestjson1_deserializeDocumentSheetControlsOption(&sv.SheetControlsOption, value); err != nil { + return err + } + + case "SheetLayoutElementMaximizationOption": + if err := awsRestjson1_deserializeDocumentSheetLayoutElementMaximizationOption(&sv.SheetLayoutElementMaximizationOption, value); err != nil { + return err + } + + case "VisualAxisSortOption": + if err := awsRestjson1_deserializeDocumentVisualAxisSortOption(&sv.VisualAxisSortOption, value); err != nil { + return err + } + + case "VisualMenuOption": + if err := awsRestjson1_deserializeDocumentVisualMenuOption(&sv.VisualMenuOption, value); err != nil { + return err } - col = types.ColumnTagName(jtv) - } - cv = append(cv, col) + case "VisualPublishOptions": + if err := awsRestjson1_deserializeDocumentDashboardVisualPublishOptions(&sv.VisualPublishOptions, value); err != nil { + return err + } + + default: + _, _ = key, value + + } } - *v = cv + *v = sv return nil } -func awsRestjson1_deserializeDocumentColumnTooltipItem(v **types.ColumnTooltipItem, value interface{}) error { +func awsRestjson1_deserializeDocumentDashboardSummary(v **types.DashboardSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -32406,41 +38591,101 @@ func awsRestjson1_deserializeDocumentColumnTooltipItem(v **types.ColumnTooltipIt return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ColumnTooltipItem + var sv *types.DashboardSummary if *v == nil { - sv = &types.ColumnTooltipItem{} + sv = &types.DashboardSummary{} } else { sv = *v } for key, value := range shape { switch key { - case "Aggregation": - if err := awsRestjson1_deserializeDocumentAggregationFunction(&sv.Aggregation, value); err != nil { - return err + case "Arn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) } - case "Column": - if err := awsRestjson1_deserializeDocumentColumnIdentifier(&sv.Column, value); err != nil { - return err + case "CreatedTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreatedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } } - case "Label": + case "DashboardId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) } - sv.Label = ptr.String(jtv) + sv.DashboardId = ptr.String(jtv) } - case "Visibility": + case "LastPublishedTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.LastPublishedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "LastUpdatedTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.LastUpdatedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "Name": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) + return fmt.Errorf("expected DashboardName to be of type string, got %T instead", value) } - sv.Visibility = types.Visibility(jtv) + sv.Name = ptr.String(jtv) + } + + case "PublishedVersionNumber": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected VersionNumber to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.PublishedVersionNumber = ptr.Int64(i64) } default: @@ -32452,7 +38697,7 @@ func awsRestjson1_deserializeDocumentColumnTooltipItem(v **types.ColumnTooltipIt return nil } -func awsRestjson1_deserializeDocumentComboChartAggregatedFieldWells(v **types.ComboChartAggregatedFieldWells, value interface{}) error { +func awsRestjson1_deserializeDocumentDashboardSummaryList(v *[]types.DashboardSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -32460,50 +38705,33 @@ func awsRestjson1_deserializeDocumentComboChartAggregatedFieldWells(v **types.Co return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ComboChartAggregatedFieldWells + var cv []types.DashboardSummary if *v == nil { - sv = &types.ComboChartAggregatedFieldWells{} + cv = []types.DashboardSummary{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "BarValues": - if err := awsRestjson1_deserializeDocumentMeasureFieldList(&sv.BarValues, value); err != nil { - return err - } - - case "Category": - if err := awsRestjson1_deserializeDocumentDimensionFieldList(&sv.Category, value); err != nil { - return err - } - - case "Colors": - if err := awsRestjson1_deserializeDocumentDimensionFieldList(&sv.Colors, value); err != nil { - return err - } - - case "LineValues": - if err := awsRestjson1_deserializeDocumentMeasureFieldList(&sv.LineValues, value); err != nil { - return err - } - - default: - _, _ = key, value - + for _, value := range shape { + var col types.DashboardSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentDashboardSummary(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsRestjson1_deserializeDocumentComboChartConfiguration(v **types.ComboChartConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentDashboardVersion(v **types.DashboardVersion, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -32516,97 +38744,102 @@ func awsRestjson1_deserializeDocumentComboChartConfiguration(v **types.ComboChar return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ComboChartConfiguration + var sv *types.DashboardVersion if *v == nil { - sv = &types.ComboChartConfiguration{} + sv = &types.DashboardVersion{} } else { sv = *v } for key, value := range shape { switch key { - case "BarDataLabels": - if err := awsRestjson1_deserializeDocumentDataLabelOptions(&sv.BarDataLabels, value); err != nil { - return err - } - - case "BarsArrangement": + case "Arn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected BarsArrangement to be of type string, got %T instead", value) + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.BarsArrangement = types.BarsArrangement(jtv) - } - - case "CategoryAxis": - if err := awsRestjson1_deserializeDocumentAxisDisplayOptions(&sv.CategoryAxis, value); err != nil { - return err - } - - case "CategoryLabelOptions": - if err := awsRestjson1_deserializeDocumentChartAxisLabelOptions(&sv.CategoryLabelOptions, value); err != nil { - return err - } - - case "ColorLabelOptions": - if err := awsRestjson1_deserializeDocumentChartAxisLabelOptions(&sv.ColorLabelOptions, value); err != nil { - return err + sv.Arn = ptr.String(jtv) } - case "FieldWells": - if err := awsRestjson1_deserializeDocumentComboChartFieldWells(&sv.FieldWells, value); err != nil { - return err - } + case "CreatedTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreatedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) - case "Legend": - if err := awsRestjson1_deserializeDocumentLegendOptions(&sv.Legend, value); err != nil { - return err - } + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - case "LineDataLabels": - if err := awsRestjson1_deserializeDocumentDataLabelOptions(&sv.LineDataLabels, value); err != nil { - return err + } } - case "PrimaryYAxisDisplayOptions": - if err := awsRestjson1_deserializeDocumentAxisDisplayOptions(&sv.PrimaryYAxisDisplayOptions, value); err != nil { + case "DataSetArns": + if err := awsRestjson1_deserializeDocumentDataSetArnsList(&sv.DataSetArns, value); err != nil { return err } - case "PrimaryYAxisLabelOptions": - if err := awsRestjson1_deserializeDocumentChartAxisLabelOptions(&sv.PrimaryYAxisLabelOptions, value); err != nil { - return err + case "Description": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected VersionDescription to be of type string, got %T instead", value) + } + sv.Description = ptr.String(jtv) } - case "ReferenceLines": - if err := awsRestjson1_deserializeDocumentReferenceLineList(&sv.ReferenceLines, value); err != nil { + case "Errors": + if err := awsRestjson1_deserializeDocumentDashboardErrorList(&sv.Errors, value); err != nil { return err } - case "SecondaryYAxisDisplayOptions": - if err := awsRestjson1_deserializeDocumentAxisDisplayOptions(&sv.SecondaryYAxisDisplayOptions, value); err != nil { + case "Sheets": + if err := awsRestjson1_deserializeDocumentSheetList(&sv.Sheets, value); err != nil { return err } - case "SecondaryYAxisLabelOptions": - if err := awsRestjson1_deserializeDocumentChartAxisLabelOptions(&sv.SecondaryYAxisLabelOptions, value); err != nil { - return err + case "SourceEntityArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.SourceEntityArn = ptr.String(jtv) } - case "SortConfiguration": - if err := awsRestjson1_deserializeDocumentComboChartSortConfiguration(&sv.SortConfiguration, value); err != nil { - return err + case "Status": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourceStatus to be of type string, got %T instead", value) + } + sv.Status = types.ResourceStatus(jtv) } - case "Tooltip": - if err := awsRestjson1_deserializeDocumentTooltipOptions(&sv.Tooltip, value); err != nil { - return err + case "ThemeArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.ThemeArn = ptr.String(jtv) } - case "VisualPalette": - if err := awsRestjson1_deserializeDocumentVisualPalette(&sv.VisualPalette, value); err != nil { - return err + case "VersionNumber": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected VersionNumber to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.VersionNumber = ptr.Int64(i64) } default: @@ -32618,7 +38851,7 @@ func awsRestjson1_deserializeDocumentComboChartConfiguration(v **types.ComboChar return nil } -func awsRestjson1_deserializeDocumentComboChartFieldWells(v **types.ComboChartFieldWells, value interface{}) error { +func awsRestjson1_deserializeDocumentDashboardVersionDefinition(v **types.DashboardVersionDefinition, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -32631,68 +38864,47 @@ func awsRestjson1_deserializeDocumentComboChartFieldWells(v **types.ComboChartFi return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ComboChartFieldWells + var sv *types.DashboardVersionDefinition if *v == nil { - sv = &types.ComboChartFieldWells{} + sv = &types.DashboardVersionDefinition{} } else { sv = *v } for key, value := range shape { switch key { - case "ComboChartAggregatedFieldWells": - if err := awsRestjson1_deserializeDocumentComboChartAggregatedFieldWells(&sv.ComboChartAggregatedFieldWells, value); err != nil { + case "AnalysisDefaults": + if err := awsRestjson1_deserializeDocumentAnalysisDefaults(&sv.AnalysisDefaults, value); err != nil { return err } - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentComboChartSortConfiguration(v **types.ComboChartSortConfiguration, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } + case "CalculatedFields": + if err := awsRestjson1_deserializeDocumentCalculatedFields(&sv.CalculatedFields, value); err != nil { + return err + } - var sv *types.ComboChartSortConfiguration - if *v == nil { - sv = &types.ComboChartSortConfiguration{} - } else { - sv = *v - } + case "ColumnConfigurations": + if err := awsRestjson1_deserializeDocumentColumnConfigurationList(&sv.ColumnConfigurations, value); err != nil { + return err + } - for key, value := range shape { - switch key { - case "CategoryItemsLimit": - if err := awsRestjson1_deserializeDocumentItemsLimitConfiguration(&sv.CategoryItemsLimit, value); err != nil { + case "DataSetIdentifierDeclarations": + if err := awsRestjson1_deserializeDocumentDataSetIdentifierDeclarationList(&sv.DataSetIdentifierDeclarations, value); err != nil { return err } - case "CategorySort": - if err := awsRestjson1_deserializeDocumentFieldSortOptionsList(&sv.CategorySort, value); err != nil { + case "FilterGroups": + if err := awsRestjson1_deserializeDocumentFilterGroupList(&sv.FilterGroups, value); err != nil { return err } - case "ColorItemsLimit": - if err := awsRestjson1_deserializeDocumentItemsLimitConfiguration(&sv.ColorItemsLimit, value); err != nil { + case "ParameterDeclarations": + if err := awsRestjson1_deserializeDocumentParameterDeclarationList(&sv.ParameterDeclarations, value); err != nil { return err } - case "ColorSort": - if err := awsRestjson1_deserializeDocumentFieldSortOptionsList(&sv.ColorSort, value); err != nil { + case "Sheets": + if err := awsRestjson1_deserializeDocumentSheetDefinitionList(&sv.Sheets, value); err != nil { return err } @@ -32705,7 +38917,7 @@ func awsRestjson1_deserializeDocumentComboChartSortConfiguration(v **types.Combo return nil } -func awsRestjson1_deserializeDocumentComboChartVisual(v **types.ComboChartVisual, value interface{}) error { +func awsRestjson1_deserializeDocumentDashboardVersionSummary(v **types.DashboardVersionSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -32718,47 +38930,78 @@ func awsRestjson1_deserializeDocumentComboChartVisual(v **types.ComboChartVisual return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ComboChartVisual + var sv *types.DashboardVersionSummary if *v == nil { - sv = &types.ComboChartVisual{} + sv = &types.DashboardVersionSummary{} } else { sv = *v } for key, value := range shape { switch key { - case "Actions": - if err := awsRestjson1_deserializeDocumentVisualCustomActionList(&sv.Actions, value); err != nil { - return err + case "Arn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) } - case "ChartConfiguration": - if err := awsRestjson1_deserializeDocumentComboChartConfiguration(&sv.ChartConfiguration, value); err != nil { - return err - } + case "CreatedTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreatedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) - case "ColumnHierarchies": - if err := awsRestjson1_deserializeDocumentColumnHierarchyList(&sv.ColumnHierarchies, value); err != nil { - return err + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } } - case "Subtitle": - if err := awsRestjson1_deserializeDocumentVisualSubtitleLabelOptions(&sv.Subtitle, value); err != nil { - return err + case "Description": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected VersionDescription to be of type string, got %T instead", value) + } + sv.Description = ptr.String(jtv) } - case "Title": - if err := awsRestjson1_deserializeDocumentVisualTitleLabelOptions(&sv.Title, value); err != nil { - return err + case "SourceEntityArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.SourceEntityArn = ptr.String(jtv) } - case "VisualId": + case "Status": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + return fmt.Errorf("expected ResourceStatus to be of type string, got %T instead", value) } - sv.VisualId = ptr.String(jtv) + sv.Status = types.ResourceStatus(jtv) + } + + case "VersionNumber": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected VersionNumber to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.VersionNumber = ptr.Int64(i64) } default: @@ -32770,7 +39013,7 @@ func awsRestjson1_deserializeDocumentComboChartVisual(v **types.ComboChartVisual return nil } -func awsRestjson1_deserializeDocumentComparisonConfiguration(v **types.ComparisonConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentDashboardVersionSummaryList(v *[]types.DashboardVersionSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -32778,44 +39021,33 @@ func awsRestjson1_deserializeDocumentComparisonConfiguration(v **types.Compariso return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ComparisonConfiguration + var cv []types.DashboardVersionSummary if *v == nil { - sv = &types.ComparisonConfiguration{} + cv = []types.DashboardVersionSummary{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "ComparisonFormat": - if err := awsRestjson1_deserializeDocumentComparisonFormatConfiguration(&sv.ComparisonFormat, value); err != nil { - return err - } - - case "ComparisonMethod": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ComparisonMethod to be of type string, got %T instead", value) - } - sv.ComparisonMethod = types.ComparisonMethod(jtv) - } - - default: - _, _ = key, value - + for _, value := range shape { + var col types.DashboardVersionSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentDashboardVersionSummary(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsRestjson1_deserializeDocumentComparisonFormatConfiguration(v **types.ComparisonFormatConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentDashboardVisualPublishOptions(v **types.DashboardVisualPublishOptions, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -32828,22 +39060,17 @@ func awsRestjson1_deserializeDocumentComparisonFormatConfiguration(v **types.Com return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ComparisonFormatConfiguration + var sv *types.DashboardVisualPublishOptions if *v == nil { - sv = &types.ComparisonFormatConfiguration{} + sv = &types.DashboardVisualPublishOptions{} } else { sv = *v } for key, value := range shape { switch key { - case "NumberDisplayFormatConfiguration": - if err := awsRestjson1_deserializeDocumentNumberDisplayFormatConfiguration(&sv.NumberDisplayFormatConfiguration, value); err != nil { - return err - } - - case "PercentageDisplayFormatConfiguration": - if err := awsRestjson1_deserializeDocumentPercentageDisplayFormatConfiguration(&sv.PercentageDisplayFormatConfiguration, value); err != nil { + case "ExportHiddenFieldsOption": + if err := awsRestjson1_deserializeDocumentExportHiddenFieldsOption(&sv.ExportHiddenFieldsOption, value); err != nil { return err } @@ -32856,7 +39083,7 @@ func awsRestjson1_deserializeDocumentComparisonFormatConfiguration(v **types.Com return nil } -func awsRestjson1_deserializeDocumentComputation(v **types.Computation, value interface{}) error { +func awsRestjson1_deserializeDocumentDataAggregation(v **types.DataAggregation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -32869,63 +39096,31 @@ func awsRestjson1_deserializeDocumentComputation(v **types.Computation, value in return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.Computation + var sv *types.DataAggregation if *v == nil { - sv = &types.Computation{} + sv = &types.DataAggregation{} } else { sv = *v } for key, value := range shape { switch key { - case "Forecast": - if err := awsRestjson1_deserializeDocumentForecastComputation(&sv.Forecast, value); err != nil { - return err - } - - case "GrowthRate": - if err := awsRestjson1_deserializeDocumentGrowthRateComputation(&sv.GrowthRate, value); err != nil { - return err - } - - case "MaximumMinimum": - if err := awsRestjson1_deserializeDocumentMaximumMinimumComputation(&sv.MaximumMinimum, value); err != nil { - return err - } - - case "MetricComparison": - if err := awsRestjson1_deserializeDocumentMetricComparisonComputation(&sv.MetricComparison, value); err != nil { - return err - } - - case "PeriodOverPeriod": - if err := awsRestjson1_deserializeDocumentPeriodOverPeriodComputation(&sv.PeriodOverPeriod, value); err != nil { - return err - } - - case "PeriodToDate": - if err := awsRestjson1_deserializeDocumentPeriodToDateComputation(&sv.PeriodToDate, value); err != nil { - return err - } - - case "TopBottomMovers": - if err := awsRestjson1_deserializeDocumentTopBottomMoversComputation(&sv.TopBottomMovers, value); err != nil { - return err - } - - case "TopBottomRanked": - if err := awsRestjson1_deserializeDocumentTopBottomRankedComputation(&sv.TopBottomRanked, value); err != nil { - return err - } - - case "TotalAggregation": - if err := awsRestjson1_deserializeDocumentTotalAggregationComputation(&sv.TotalAggregation, value); err != nil { - return err + case "DatasetRowDateGranularity": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TopicTimeGranularity to be of type string, got %T instead", value) + } + sv.DatasetRowDateGranularity = types.TopicTimeGranularity(jtv) } - case "UniqueValues": - if err := awsRestjson1_deserializeDocumentUniqueValuesComputation(&sv.UniqueValues, value); err != nil { - return err + case "DefaultDateColumnName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected LimitedString to be of type string, got %T instead", value) + } + sv.DefaultDateColumnName = ptr.String(jtv) } default: @@ -32937,7 +39132,7 @@ func awsRestjson1_deserializeDocumentComputation(v **types.Computation, value in return nil } -func awsRestjson1_deserializeDocumentComputationList(v *[]types.Computation, value interface{}) error { +func awsRestjson1_deserializeDocumentDataBarsOptions(v **types.DataBarsOptions, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -32945,33 +39140,57 @@ func awsRestjson1_deserializeDocumentComputationList(v *[]types.Computation, val return nil } - shape, ok := value.([]interface{}) + shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.Computation + var sv *types.DataBarsOptions if *v == nil { - cv = []types.Computation{} + sv = &types.DataBarsOptions{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col types.Computation - destAddr := &col - if err := awsRestjson1_deserializeDocumentComputation(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) + for key, value := range shape { + switch key { + case "FieldId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected FieldId to be of type string, got %T instead", value) + } + sv.FieldId = ptr.String(jtv) + } + + case "NegativeColor": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected HexColor to be of type string, got %T instead", value) + } + sv.NegativeColor = ptr.String(jtv) + } + + case "PositiveColor": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected HexColor to be of type string, got %T instead", value) + } + sv.PositiveColor = ptr.String(jtv) + } + + default: + _, _ = key, value + } } - *v = cv + *v = sv return nil } -func awsRestjson1_deserializeDocumentConcurrentUpdatingException(v **types.ConcurrentUpdatingException, value interface{}) error { +func awsRestjson1_deserializeDocumentDatabricksParameters(v **types.DatabricksParameters, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -32984,31 +39203,44 @@ func awsRestjson1_deserializeDocumentConcurrentUpdatingException(v **types.Concu return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ConcurrentUpdatingException + var sv *types.DatabricksParameters if *v == nil { - sv = &types.ConcurrentUpdatingException{} + sv = &types.DatabricksParameters{} } else { sv = *v } for key, value := range shape { switch key { - case "Message": + case "Host": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) + return fmt.Errorf("expected Host to be of type string, got %T instead", value) } - sv.Message = ptr.String(jtv) + sv.Host = ptr.String(jtv) } - case "RequestId": + case "Port": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected Port to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.Port = int32(i64) + } + + case "SqlEndpointPath": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) + return fmt.Errorf("expected SqlEndpointPath to be of type string, got %T instead", value) } - sv.RequestId = ptr.String(jtv) + sv.SqlEndpointPath = ptr.String(jtv) } default: @@ -33020,7 +39252,7 @@ func awsRestjson1_deserializeDocumentConcurrentUpdatingException(v **types.Concu return nil } -func awsRestjson1_deserializeDocumentConditionalFormattingColor(v **types.ConditionalFormattingColor, value interface{}) error { +func awsRestjson1_deserializeDocumentDataColor(v **types.DataColor, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -33033,23 +39265,56 @@ func awsRestjson1_deserializeDocumentConditionalFormattingColor(v **types.Condit return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ConditionalFormattingColor + var sv *types.DataColor if *v == nil { - sv = &types.ConditionalFormattingColor{} + sv = &types.DataColor{} } else { sv = *v } for key, value := range shape { switch key { - case "Gradient": - if err := awsRestjson1_deserializeDocumentConditionalFormattingGradientColor(&sv.Gradient, value); err != nil { - return err + case "Color": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected HexColor to be of type string, got %T instead", value) + } + sv.Color = ptr.String(jtv) } - case "Solid": - if err := awsRestjson1_deserializeDocumentConditionalFormattingSolidColor(&sv.Solid, value); err != nil { - return err + case "DataValue": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.DataValue = ptr.Float64(f64) + + case string: + var f64 float64 + switch { + case strings.EqualFold(jtv, "NaN"): + f64 = math.NaN() + + case strings.EqualFold(jtv, "Infinity"): + f64 = math.Inf(1) + + case strings.EqualFold(jtv, "-Infinity"): + f64 = math.Inf(-1) + + default: + return fmt.Errorf("unknown JSON number value: %s", jtv) + + } + sv.DataValue = ptr.Float64(f64) + + default: + return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value) + + } } default: @@ -33061,7 +39326,7 @@ func awsRestjson1_deserializeDocumentConditionalFormattingColor(v **types.Condit return nil } -func awsRestjson1_deserializeDocumentConditionalFormattingCustomIconCondition(v **types.ConditionalFormattingCustomIconCondition, value interface{}) error { +func awsRestjson1_deserializeDocumentDataColorPalette(v **types.DataColorPalette, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -33074,40 +39339,31 @@ func awsRestjson1_deserializeDocumentConditionalFormattingCustomIconCondition(v return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ConditionalFormattingCustomIconCondition + var sv *types.DataColorPalette if *v == nil { - sv = &types.ConditionalFormattingCustomIconCondition{} + sv = &types.DataColorPalette{} } else { sv = *v } for key, value := range shape { switch key { - case "Color": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected HexColor to be of type string, got %T instead", value) - } - sv.Color = ptr.String(jtv) - } - - case "DisplayConfiguration": - if err := awsRestjson1_deserializeDocumentConditionalFormattingIconDisplayConfiguration(&sv.DisplayConfiguration, value); err != nil { + case "Colors": + if err := awsRestjson1_deserializeDocumentColorList(&sv.Colors, value); err != nil { return err } - case "Expression": + case "EmptyFillColor": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Expression to be of type string, got %T instead", value) + return fmt.Errorf("expected HexColor to be of type string, got %T instead", value) } - sv.Expression = ptr.String(jtv) + sv.EmptyFillColor = ptr.String(jtv) } - case "IconOptions": - if err := awsRestjson1_deserializeDocumentConditionalFormattingCustomIconOptions(&sv.IconOptions, value); err != nil { + case "MinMaxGradient": + if err := awsRestjson1_deserializeDocumentColorList(&sv.MinMaxGradient, value); err != nil { return err } @@ -33120,7 +39376,7 @@ func awsRestjson1_deserializeDocumentConditionalFormattingCustomIconCondition(v return nil } -func awsRestjson1_deserializeDocumentConditionalFormattingCustomIconOptions(v **types.ConditionalFormattingCustomIconOptions, value interface{}) error { +func awsRestjson1_deserializeDocumentDataFieldSeriesItem(v **types.DataFieldSeriesItem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -33133,31 +39389,45 @@ func awsRestjson1_deserializeDocumentConditionalFormattingCustomIconOptions(v ** return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ConditionalFormattingCustomIconOptions + var sv *types.DataFieldSeriesItem if *v == nil { - sv = &types.ConditionalFormattingCustomIconOptions{} + sv = &types.DataFieldSeriesItem{} } else { sv = *v } for key, value := range shape { switch key { - case "Icon": + case "AxisBinding": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Icon to be of type string, got %T instead", value) + return fmt.Errorf("expected AxisBinding to be of type string, got %T instead", value) } - sv.Icon = types.Icon(jtv) + sv.AxisBinding = types.AxisBinding(jtv) } - case "UnicodeIcon": + case "FieldId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected UnicodeIcon to be of type string, got %T instead", value) + return fmt.Errorf("expected FieldId to be of type string, got %T instead", value) } - sv.UnicodeIcon = ptr.String(jtv) + sv.FieldId = ptr.String(jtv) + } + + case "FieldValue": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected SensitiveString to be of type string, got %T instead", value) + } + sv.FieldValue = ptr.String(jtv) + } + + case "Settings": + if err := awsRestjson1_deserializeDocumentLineChartSeriesSettings(&sv.Settings, value); err != nil { + return err } default: @@ -33169,7 +39439,7 @@ func awsRestjson1_deserializeDocumentConditionalFormattingCustomIconOptions(v ** return nil } -func awsRestjson1_deserializeDocumentConditionalFormattingGradientColor(v **types.ConditionalFormattingGradientColor, value interface{}) error { +func awsRestjson1_deserializeDocumentDataLabelOptions(v **types.DataLabelOptions, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -33182,27 +39452,95 @@ func awsRestjson1_deserializeDocumentConditionalFormattingGradientColor(v **type return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ConditionalFormattingGradientColor + var sv *types.DataLabelOptions if *v == nil { - sv = &types.ConditionalFormattingGradientColor{} + sv = &types.DataLabelOptions{} } else { sv = *v } for key, value := range shape { switch key { - case "Color": - if err := awsRestjson1_deserializeDocumentGradientColor(&sv.Color, value); err != nil { + case "CategoryLabelVisibility": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) + } + sv.CategoryLabelVisibility = types.Visibility(jtv) + } + + case "DataLabelTypes": + if err := awsRestjson1_deserializeDocumentDataLabelTypes(&sv.DataLabelTypes, value); err != nil { return err } - case "Expression": + case "LabelColor": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Expression to be of type string, got %T instead", value) + return fmt.Errorf("expected HexColor to be of type string, got %T instead", value) } - sv.Expression = ptr.String(jtv) + sv.LabelColor = ptr.String(jtv) + } + + case "LabelContent": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DataLabelContent to be of type string, got %T instead", value) + } + sv.LabelContent = types.DataLabelContent(jtv) + } + + case "LabelFontConfiguration": + if err := awsRestjson1_deserializeDocumentFontConfiguration(&sv.LabelFontConfiguration, value); err != nil { + return err + } + + case "MeasureLabelVisibility": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) + } + sv.MeasureLabelVisibility = types.Visibility(jtv) + } + + case "Overlap": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DataLabelOverlap to be of type string, got %T instead", value) + } + sv.Overlap = types.DataLabelOverlap(jtv) + } + + case "Position": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DataLabelPosition to be of type string, got %T instead", value) + } + sv.Position = types.DataLabelPosition(jtv) + } + + case "TotalsVisibility": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) + } + sv.TotalsVisibility = types.Visibility(jtv) + } + + case "Visibility": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) + } + sv.Visibility = types.Visibility(jtv) } default: @@ -33214,7 +39552,7 @@ func awsRestjson1_deserializeDocumentConditionalFormattingGradientColor(v **type return nil } -func awsRestjson1_deserializeDocumentConditionalFormattingIcon(v **types.ConditionalFormattingIcon, value interface{}) error { +func awsRestjson1_deserializeDocumentDataLabelType(v **types.DataLabelType, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -33227,22 +39565,37 @@ func awsRestjson1_deserializeDocumentConditionalFormattingIcon(v **types.Conditi return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ConditionalFormattingIcon + var sv *types.DataLabelType if *v == nil { - sv = &types.ConditionalFormattingIcon{} + sv = &types.DataLabelType{} } else { sv = *v } for key, value := range shape { switch key { - case "CustomCondition": - if err := awsRestjson1_deserializeDocumentConditionalFormattingCustomIconCondition(&sv.CustomCondition, value); err != nil { + case "DataPathLabelType": + if err := awsRestjson1_deserializeDocumentDataPathLabelType(&sv.DataPathLabelType, value); err != nil { return err } - case "IconSet": - if err := awsRestjson1_deserializeDocumentConditionalFormattingIconSet(&sv.IconSet, value); err != nil { + case "FieldLabelType": + if err := awsRestjson1_deserializeDocumentFieldLabelType(&sv.FieldLabelType, value); err != nil { + return err + } + + case "MaximumLabelType": + if err := awsRestjson1_deserializeDocumentMaximumLabelType(&sv.MaximumLabelType, value); err != nil { + return err + } + + case "MinimumLabelType": + if err := awsRestjson1_deserializeDocumentMinimumLabelType(&sv.MinimumLabelType, value); err != nil { + return err + } + + case "RangeEndsLabelType": + if err := awsRestjson1_deserializeDocumentRangeEndsLabelType(&sv.RangeEndsLabelType, value); err != nil { return err } @@ -33255,7 +39608,41 @@ func awsRestjson1_deserializeDocumentConditionalFormattingIcon(v **types.Conditi return nil } -func awsRestjson1_deserializeDocumentConditionalFormattingIconDisplayConfiguration(v **types.ConditionalFormattingIconDisplayConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentDataLabelTypes(v *[]types.DataLabelType, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.DataLabelType + if *v == nil { + cv = []types.DataLabelType{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.DataLabelType + destAddr := &col + if err := awsRestjson1_deserializeDocumentDataLabelType(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentDataPathColor(v **types.DataPathColor, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -33268,22 +39655,36 @@ func awsRestjson1_deserializeDocumentConditionalFormattingIconDisplayConfigurati return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ConditionalFormattingIconDisplayConfiguration + var sv *types.DataPathColor if *v == nil { - sv = &types.ConditionalFormattingIconDisplayConfiguration{} + sv = &types.DataPathColor{} } else { sv = *v } for key, value := range shape { switch key { - case "IconDisplayOption": + case "Color": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ConditionalFormattingIconDisplayOption to be of type string, got %T instead", value) + return fmt.Errorf("expected HexColor to be of type string, got %T instead", value) } - sv.IconDisplayOption = types.ConditionalFormattingIconDisplayOption(jtv) + sv.Color = ptr.String(jtv) + } + + case "Element": + if err := awsRestjson1_deserializeDocumentDataPathValue(&sv.Element, value); err != nil { + return err + } + + case "TimeGranularity": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TimeGranularity to be of type string, got %T instead", value) + } + sv.TimeGranularity = types.TimeGranularity(jtv) } default: @@ -33295,7 +39696,41 @@ func awsRestjson1_deserializeDocumentConditionalFormattingIconDisplayConfigurati return nil } -func awsRestjson1_deserializeDocumentConditionalFormattingIconSet(v **types.ConditionalFormattingIconSet, value interface{}) error { +func awsRestjson1_deserializeDocumentDataPathColorList(v *[]types.DataPathColor, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.DataPathColor + if *v == nil { + cv = []types.DataPathColor{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.DataPathColor + destAddr := &col + if err := awsRestjson1_deserializeDocumentDataPathColor(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentDataPathLabelType(v **types.DataPathLabelType, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -33308,31 +39743,40 @@ func awsRestjson1_deserializeDocumentConditionalFormattingIconSet(v **types.Cond return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ConditionalFormattingIconSet + var sv *types.DataPathLabelType if *v == nil { - sv = &types.ConditionalFormattingIconSet{} + sv = &types.DataPathLabelType{} } else { sv = *v } for key, value := range shape { switch key { - case "Expression": + case "FieldId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Expression to be of type string, got %T instead", value) + return fmt.Errorf("expected FieldId to be of type string, got %T instead", value) } - sv.Expression = ptr.String(jtv) + sv.FieldId = ptr.String(jtv) } - case "IconSetType": + case "FieldValue": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ConditionalFormattingIconSetType to be of type string, got %T instead", value) + return fmt.Errorf("expected FieldValue to be of type string, got %T instead", value) } - sv.IconSetType = types.ConditionalFormattingIconSetType(jtv) + sv.FieldValue = ptr.String(jtv) + } + + case "Visibility": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) + } + sv.Visibility = types.Visibility(jtv) } default: @@ -33344,7 +39788,7 @@ func awsRestjson1_deserializeDocumentConditionalFormattingIconSet(v **types.Cond return nil } -func awsRestjson1_deserializeDocumentConditionalFormattingSolidColor(v **types.ConditionalFormattingSolidColor, value interface{}) error { +func awsRestjson1_deserializeDocumentDataPathSort(v **types.DataPathSort, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -33357,31 +39801,27 @@ func awsRestjson1_deserializeDocumentConditionalFormattingSolidColor(v **types.C return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ConditionalFormattingSolidColor + var sv *types.DataPathSort if *v == nil { - sv = &types.ConditionalFormattingSolidColor{} + sv = &types.DataPathSort{} } else { sv = *v } for key, value := range shape { switch key { - case "Color": + case "Direction": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected HexColor to be of type string, got %T instead", value) + return fmt.Errorf("expected SortDirection to be of type string, got %T instead", value) } - sv.Color = ptr.String(jtv) + sv.Direction = types.SortDirection(jtv) } - case "Expression": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Expression to be of type string, got %T instead", value) - } - sv.Expression = ptr.String(jtv) + case "SortPaths": + if err := awsRestjson1_deserializeDocumentDataPathValueList(&sv.SortPaths, value); err != nil { + return err } default: @@ -33393,7 +39833,7 @@ func awsRestjson1_deserializeDocumentConditionalFormattingSolidColor(v **types.C return nil } -func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictException, value interface{}) error { +func awsRestjson1_deserializeDocumentDataPathValue(v **types.DataPathValue, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -33406,31 +39846,31 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ConflictException + var sv *types.DataPathValue if *v == nil { - sv = &types.ConflictException{} + sv = &types.DataPathValue{} } else { sv = *v } for key, value := range shape { switch key { - case "Message": + case "FieldId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) + return fmt.Errorf("expected FieldId to be of type string, got %T instead", value) } - sv.Message = ptr.String(jtv) + sv.FieldId = ptr.String(jtv) } - case "RequestId": + case "FieldValue": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) + return fmt.Errorf("expected FieldValue to be of type string, got %T instead", value) } - sv.RequestId = ptr.String(jtv) + sv.FieldValue = ptr.String(jtv) } default: @@ -33442,7 +39882,41 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti return nil } -func awsRestjson1_deserializeDocumentContributionAnalysisDefault(v **types.ContributionAnalysisDefault, value interface{}) error { +func awsRestjson1_deserializeDocumentDataPathValueList(v *[]types.DataPathValue, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.DataPathValue + if *v == nil { + cv = []types.DataPathValue{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.DataPathValue + destAddr := &col + if err := awsRestjson1_deserializeDocumentDataPathValue(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentDataPointDrillUpDownOption(v **types.DataPointDrillUpDownOption, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -33455,27 +39929,22 @@ func awsRestjson1_deserializeDocumentContributionAnalysisDefault(v **types.Contr return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ContributionAnalysisDefault + var sv *types.DataPointDrillUpDownOption if *v == nil { - sv = &types.ContributionAnalysisDefault{} + sv = &types.DataPointDrillUpDownOption{} } else { sv = *v } for key, value := range shape { switch key { - case "ContributorDimensions": - if err := awsRestjson1_deserializeDocumentContributorDimensionList(&sv.ContributorDimensions, value); err != nil { - return err - } - - case "MeasureFieldId": + case "AvailabilityStatus": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected FieldId to be of type string, got %T instead", value) + return fmt.Errorf("expected DashboardBehavior to be of type string, got %T instead", value) } - sv.MeasureFieldId = ptr.String(jtv) + sv.AvailabilityStatus = types.DashboardBehavior(jtv) } default: @@ -33487,7 +39956,7 @@ func awsRestjson1_deserializeDocumentContributionAnalysisDefault(v **types.Contr return nil } -func awsRestjson1_deserializeDocumentContributionAnalysisDefaultList(v *[]types.ContributionAnalysisDefault, value interface{}) error { +func awsRestjson1_deserializeDocumentDataPointMenuLabelOption(v **types.DataPointMenuLabelOption, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -33495,67 +39964,39 @@ func awsRestjson1_deserializeDocumentContributionAnalysisDefaultList(v *[]types. return nil } - shape, ok := value.([]interface{}) + shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.ContributionAnalysisDefault + var sv *types.DataPointMenuLabelOption if *v == nil { - cv = []types.ContributionAnalysisDefault{} + sv = &types.DataPointMenuLabelOption{} } else { - cv = *v - } - - for _, value := range shape { - var col types.ContributionAnalysisDefault - destAddr := &col - if err := awsRestjson1_deserializeDocumentContributionAnalysisDefault(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsRestjson1_deserializeDocumentContributorDimensionList(v *[]types.ColumnIdentifier, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil + sv = *v } - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } + for key, value := range shape { + switch key { + case "AvailabilityStatus": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DashboardBehavior to be of type string, got %T instead", value) + } + sv.AvailabilityStatus = types.DashboardBehavior(jtv) + } - var cv []types.ColumnIdentifier - if *v == nil { - cv = []types.ColumnIdentifier{} - } else { - cv = *v - } + default: + _, _ = key, value - for _, value := range shape { - var col types.ColumnIdentifier - destAddr := &col - if err := awsRestjson1_deserializeDocumentColumnIdentifier(&destAddr, value); err != nil { - return err } - col = *destAddr - cv = append(cv, col) - } - *v = cv + *v = sv return nil } -func awsRestjson1_deserializeDocumentCreateColumnsOperation(v **types.CreateColumnsOperation, value interface{}) error { +func awsRestjson1_deserializeDocumentDataPointTooltipOption(v **types.DataPointTooltipOption, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -33568,18 +40009,22 @@ func awsRestjson1_deserializeDocumentCreateColumnsOperation(v **types.CreateColu return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.CreateColumnsOperation + var sv *types.DataPointTooltipOption if *v == nil { - sv = &types.CreateColumnsOperation{} + sv = &types.DataPointTooltipOption{} } else { sv = *v } for key, value := range shape { switch key { - case "Columns": - if err := awsRestjson1_deserializeDocumentCalculatedColumnList(&sv.Columns, value); err != nil { - return err + case "AvailabilityStatus": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DashboardBehavior to be of type string, got %T instead", value) + } + sv.AvailabilityStatus = types.DashboardBehavior(jtv) } default: @@ -33591,7 +40036,7 @@ func awsRestjson1_deserializeDocumentCreateColumnsOperation(v **types.CreateColu return nil } -func awsRestjson1_deserializeDocumentCurrencyDisplayFormatConfiguration(v **types.CurrencyDisplayFormatConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentDataSet(v **types.DataSet, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -33604,69 +40049,144 @@ func awsRestjson1_deserializeDocumentCurrencyDisplayFormatConfiguration(v **type return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.CurrencyDisplayFormatConfiguration + var sv *types.DataSet if *v == nil { - sv = &types.CurrencyDisplayFormatConfiguration{} + sv = &types.DataSet{} } else { sv = *v } for key, value := range shape { switch key { - case "DecimalPlacesConfiguration": - if err := awsRestjson1_deserializeDocumentDecimalPlacesConfiguration(&sv.DecimalPlacesConfiguration, value); err != nil { - return err + case "Arn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) } - case "NegativeValueConfiguration": - if err := awsRestjson1_deserializeDocumentNegativeValueConfiguration(&sv.NegativeValueConfiguration, value); err != nil { + case "ColumnGroups": + if err := awsRestjson1_deserializeDocumentColumnGroupList(&sv.ColumnGroups, value); err != nil { return err } - case "NullValueFormatConfiguration": - if err := awsRestjson1_deserializeDocumentNullValueFormatConfiguration(&sv.NullValueFormatConfiguration, value); err != nil { + case "ColumnLevelPermissionRules": + if err := awsRestjson1_deserializeDocumentColumnLevelPermissionRuleList(&sv.ColumnLevelPermissionRules, value); err != nil { return err } - case "NumberScale": + case "ConsumedSpiceCapacityInBytes": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected NumberScale to be of type string, got %T instead", value) + return fmt.Errorf("expected Long to be json.Number, got %T instead", value) } - sv.NumberScale = types.NumberScale(jtv) + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.ConsumedSpiceCapacityInBytes = i64 } - case "Prefix": + case "CreatedTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreatedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "DataSetId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Prefix to be of type string, got %T instead", value) + return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.Prefix = ptr.String(jtv) + sv.DataSetId = ptr.String(jtv) } - case "SeparatorConfiguration": - if err := awsRestjson1_deserializeDocumentNumericSeparatorConfiguration(&sv.SeparatorConfiguration, value); err != nil { + case "DatasetParameters": + if err := awsRestjson1_deserializeDocumentDatasetParameterList(&sv.DatasetParameters, value); err != nil { return err } - case "Suffix": + case "DataSetUsageConfiguration": + if err := awsRestjson1_deserializeDocumentDataSetUsageConfiguration(&sv.DataSetUsageConfiguration, value); err != nil { + return err + } + + case "FieldFolders": + if err := awsRestjson1_deserializeDocumentFieldFolderMap(&sv.FieldFolders, value); err != nil { + return err + } + + case "ImportMode": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Suffix to be of type string, got %T instead", value) + return fmt.Errorf("expected DataSetImportMode to be of type string, got %T instead", value) } - sv.Suffix = ptr.String(jtv) + sv.ImportMode = types.DataSetImportMode(jtv) } - case "Symbol": + case "LastUpdatedTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.LastUpdatedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "LogicalTableMap": + if err := awsRestjson1_deserializeDocumentLogicalTableMap(&sv.LogicalTableMap, value); err != nil { + return err + } + + case "Name": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected CurrencyCode to be of type string, got %T instead", value) + return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.Symbol = ptr.String(jtv) + sv.Name = ptr.String(jtv) + } + + case "OutputColumns": + if err := awsRestjson1_deserializeDocumentOutputColumnList(&sv.OutputColumns, value); err != nil { + return err + } + + case "PhysicalTableMap": + if err := awsRestjson1_deserializeDocumentPhysicalTableMap(&sv.PhysicalTableMap, value); err != nil { + return err + } + + case "RowLevelPermissionDataSet": + if err := awsRestjson1_deserializeDocumentRowLevelPermissionDataSet(&sv.RowLevelPermissionDataSet, value); err != nil { + return err + } + + case "RowLevelPermissionTagConfiguration": + if err := awsRestjson1_deserializeDocumentRowLevelPermissionTagConfiguration(&sv.RowLevelPermissionTagConfiguration, value); err != nil { + return err } default: @@ -33678,7 +40198,7 @@ func awsRestjson1_deserializeDocumentCurrencyDisplayFormatConfiguration(v **type return nil } -func awsRestjson1_deserializeDocumentCustomActionFilterOperation(v **types.CustomActionFilterOperation, value interface{}) error { +func awsRestjson1_deserializeDocumentDataSetArnsList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -33686,40 +40206,35 @@ func awsRestjson1_deserializeDocumentCustomActionFilterOperation(v **types.Custo return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.CustomActionFilterOperation + var cv []string if *v == nil { - sv = &types.CustomActionFilterOperation{} + cv = []string{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "SelectedFieldsConfiguration": - if err := awsRestjson1_deserializeDocumentFilterOperationSelectedFieldsConfiguration(&sv.SelectedFieldsConfiguration, value); err != nil { - return err - } - - case "TargetVisualsConfiguration": - if err := awsRestjson1_deserializeDocumentFilterOperationTargetVisualsConfiguration(&sv.TargetVisualsConfiguration, value); err != nil { - return err + for _, value := range shape { + var col string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - - default: - _, _ = key, value - + col = jtv } + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsRestjson1_deserializeDocumentCustomActionNavigationOperation(v **types.CustomActionNavigationOperation, value interface{}) error { +func awsRestjson1_deserializeDocumentDataSetConfiguration(v **types.DataSetConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -33732,20 +40247,34 @@ func awsRestjson1_deserializeDocumentCustomActionNavigationOperation(v **types.C return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.CustomActionNavigationOperation + var sv *types.DataSetConfiguration if *v == nil { - sv = &types.CustomActionNavigationOperation{} + sv = &types.DataSetConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "LocalNavigationConfiguration": - if err := awsRestjson1_deserializeDocumentLocalNavigationConfiguration(&sv.LocalNavigationConfiguration, value); err != nil { + case "ColumnGroupSchemaList": + if err := awsRestjson1_deserializeDocumentColumnGroupSchemaList(&sv.ColumnGroupSchemaList, value); err != nil { return err } + case "DataSetSchema": + if err := awsRestjson1_deserializeDocumentDataSetSchema(&sv.DataSetSchema, value); err != nil { + return err + } + + case "Placeholder": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Placeholder = ptr.String(jtv) + } + default: _, _ = key, value @@ -33755,7 +40284,7 @@ func awsRestjson1_deserializeDocumentCustomActionNavigationOperation(v **types.C return nil } -func awsRestjson1_deserializeDocumentCustomActionSetParametersOperation(v **types.CustomActionSetParametersOperation, value interface{}) error { +func awsRestjson1_deserializeDocumentDataSetConfigurationList(v *[]types.DataSetConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -33763,35 +40292,33 @@ func awsRestjson1_deserializeDocumentCustomActionSetParametersOperation(v **type return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.CustomActionSetParametersOperation + var cv []types.DataSetConfiguration if *v == nil { - sv = &types.CustomActionSetParametersOperation{} + cv = []types.DataSetConfiguration{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "ParameterValueConfigurations": - if err := awsRestjson1_deserializeDocumentSetParameterValueConfigurationList(&sv.ParameterValueConfigurations, value); err != nil { - return err - } - - default: - _, _ = key, value - + for _, value := range shape { + var col types.DataSetConfiguration + destAddr := &col + if err := awsRestjson1_deserializeDocumentDataSetConfiguration(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsRestjson1_deserializeDocumentCustomActionURLOperation(v **types.CustomActionURLOperation, value interface{}) error { +func awsRestjson1_deserializeDocumentDataSetIdentifierDeclaration(v **types.DataSetIdentifierDeclaration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -33804,31 +40331,31 @@ func awsRestjson1_deserializeDocumentCustomActionURLOperation(v **types.CustomAc return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.CustomActionURLOperation + var sv *types.DataSetIdentifierDeclaration if *v == nil { - sv = &types.CustomActionURLOperation{} + sv = &types.DataSetIdentifierDeclaration{} } else { sv = *v } for key, value := range shape { switch key { - case "URLTarget": + case "DataSetArn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected URLTargetConfiguration to be of type string, got %T instead", value) + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.URLTarget = types.URLTargetConfiguration(jtv) + sv.DataSetArn = ptr.String(jtv) } - case "URLTemplate": + case "Identifier": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected URLOperationTemplate to be of type string, got %T instead", value) + return fmt.Errorf("expected DataSetIdentifier to be of type string, got %T instead", value) } - sv.URLTemplate = ptr.String(jtv) + sv.Identifier = ptr.String(jtv) } default: @@ -33840,7 +40367,7 @@ func awsRestjson1_deserializeDocumentCustomActionURLOperation(v **types.CustomAc return nil } -func awsRestjson1_deserializeDocumentCustomContentConfiguration(v **types.CustomContentConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentDataSetIdentifierDeclarationList(v *[]types.DataSetIdentifierDeclaration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -33848,57 +40375,33 @@ func awsRestjson1_deserializeDocumentCustomContentConfiguration(v **types.Custom return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.CustomContentConfiguration + var cv []types.DataSetIdentifierDeclaration if *v == nil { - sv = &types.CustomContentConfiguration{} + cv = []types.DataSetIdentifierDeclaration{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "ContentType": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected CustomContentType to be of type string, got %T instead", value) - } - sv.ContentType = types.CustomContentType(jtv) - } - - case "ContentUrl": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected URLOperationTemplate to be of type string, got %T instead", value) - } - sv.ContentUrl = ptr.String(jtv) - } - - case "ImageScaling": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected CustomContentImageScalingConfiguration to be of type string, got %T instead", value) - } - sv.ImageScaling = types.CustomContentImageScalingConfiguration(jtv) - } - - default: - _, _ = key, value - + for _, value := range shape { + var col types.DataSetIdentifierDeclaration + destAddr := &col + if err := awsRestjson1_deserializeDocumentDataSetIdentifierDeclaration(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsRestjson1_deserializeDocumentCustomContentVisual(v **types.CustomContentVisual, value interface{}) error { +func awsRestjson1_deserializeDocumentDatasetMetadata(v **types.DatasetMetadata, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -33911,51 +40414,65 @@ func awsRestjson1_deserializeDocumentCustomContentVisual(v **types.CustomContent return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.CustomContentVisual + var sv *types.DatasetMetadata if *v == nil { - sv = &types.CustomContentVisual{} + sv = &types.DatasetMetadata{} } else { sv = *v } for key, value := range shape { switch key { - case "Actions": - if err := awsRestjson1_deserializeDocumentVisualCustomActionList(&sv.Actions, value); err != nil { + case "CalculatedFields": + if err := awsRestjson1_deserializeDocumentTopicCalculatedFields(&sv.CalculatedFields, value); err != nil { return err } - case "ChartConfiguration": - if err := awsRestjson1_deserializeDocumentCustomContentConfiguration(&sv.ChartConfiguration, value); err != nil { + case "Columns": + if err := awsRestjson1_deserializeDocumentTopicColumns(&sv.Columns, value); err != nil { return err } - case "DataSetIdentifier": + case "DataAggregation": + if err := awsRestjson1_deserializeDocumentDataAggregation(&sv.DataAggregation, value); err != nil { + return err + } + + case "DatasetArn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected DataSetIdentifier to be of type string, got %T instead", value) + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.DataSetIdentifier = ptr.String(jtv) - } - - case "Subtitle": - if err := awsRestjson1_deserializeDocumentVisualSubtitleLabelOptions(&sv.Subtitle, value); err != nil { - return err + sv.DatasetArn = ptr.String(jtv) } - case "Title": - if err := awsRestjson1_deserializeDocumentVisualTitleLabelOptions(&sv.Title, value); err != nil { - return err + case "DatasetDescription": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected LimitedString to be of type string, got %T instead", value) + } + sv.DatasetDescription = ptr.String(jtv) } - case "VisualId": + case "DatasetName": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + return fmt.Errorf("expected LimitedString to be of type string, got %T instead", value) } - sv.VisualId = ptr.String(jtv) + sv.DatasetName = ptr.String(jtv) + } + + case "Filters": + if err := awsRestjson1_deserializeDocumentTopicFilters(&sv.Filters, value); err != nil { + return err + } + + case "NamedEntities": + if err := awsRestjson1_deserializeDocumentTopicNamedEntities(&sv.NamedEntities, value); err != nil { + return err } default: @@ -33967,7 +40484,7 @@ func awsRestjson1_deserializeDocumentCustomContentVisual(v **types.CustomContent return nil } -func awsRestjson1_deserializeDocumentCustomFilterConfiguration(v **types.CustomFilterConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentDatasetParameter(v **types.DatasetParameter, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -33980,58 +40497,33 @@ func awsRestjson1_deserializeDocumentCustomFilterConfiguration(v **types.CustomF return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.CustomFilterConfiguration + var sv *types.DatasetParameter if *v == nil { - sv = &types.CustomFilterConfiguration{} + sv = &types.DatasetParameter{} } else { sv = *v } for key, value := range shape { switch key { - case "CategoryValue": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected CategoryValue to be of type string, got %T instead", value) - } - sv.CategoryValue = ptr.String(jtv) - } - - case "MatchOperator": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected CategoryFilterMatchOperator to be of type string, got %T instead", value) - } - sv.MatchOperator = types.CategoryFilterMatchOperator(jtv) + case "DateTimeDatasetParameter": + if err := awsRestjson1_deserializeDocumentDateTimeDatasetParameter(&sv.DateTimeDatasetParameter, value); err != nil { + return err } - case "NullOption": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected FilterNullOption to be of type string, got %T instead", value) - } - sv.NullOption = types.FilterNullOption(jtv) + case "DecimalDatasetParameter": + if err := awsRestjson1_deserializeDocumentDecimalDatasetParameter(&sv.DecimalDatasetParameter, value); err != nil { + return err } - case "ParameterName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ParameterName to be of type string, got %T instead", value) - } - sv.ParameterName = ptr.String(jtv) + case "IntegerDatasetParameter": + if err := awsRestjson1_deserializeDocumentIntegerDatasetParameter(&sv.IntegerDatasetParameter, value); err != nil { + return err } - case "SelectAllOptions": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected CategoryFilterSelectAllOptions to be of type string, got %T instead", value) - } - sv.SelectAllOptions = types.CategoryFilterSelectAllOptions(jtv) + case "StringDatasetParameter": + if err := awsRestjson1_deserializeDocumentStringDatasetParameter(&sv.StringDatasetParameter, value); err != nil { + return err } default: @@ -34043,7 +40535,7 @@ func awsRestjson1_deserializeDocumentCustomFilterConfiguration(v **types.CustomF return nil } -func awsRestjson1_deserializeDocumentCustomFilterListConfiguration(v **types.CustomFilterListConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentDatasetParameterList(v *[]types.DatasetParameter, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -34051,62 +40543,33 @@ func awsRestjson1_deserializeDocumentCustomFilterListConfiguration(v **types.Cus return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.CustomFilterListConfiguration + var cv []types.DatasetParameter if *v == nil { - sv = &types.CustomFilterListConfiguration{} + cv = []types.DatasetParameter{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "CategoryValues": - if err := awsRestjson1_deserializeDocumentCategoryValueList(&sv.CategoryValues, value); err != nil { - return err - } - - case "MatchOperator": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected CategoryFilterMatchOperator to be of type string, got %T instead", value) - } - sv.MatchOperator = types.CategoryFilterMatchOperator(jtv) - } - - case "NullOption": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected FilterNullOption to be of type string, got %T instead", value) - } - sv.NullOption = types.FilterNullOption(jtv) - } - - case "SelectAllOptions": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected CategoryFilterSelectAllOptions to be of type string, got %T instead", value) - } - sv.SelectAllOptions = types.CategoryFilterSelectAllOptions(jtv) - } - - default: - _, _ = key, value - + for _, value := range shape { + var col types.DatasetParameter + destAddr := &col + if err := awsRestjson1_deserializeDocumentDatasetParameter(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsRestjson1_deserializeDocumentCustomNarrativeOptions(v **types.CustomNarrativeOptions, value interface{}) error { +func awsRestjson1_deserializeDocumentDataSetRefreshProperties(v **types.DataSetRefreshProperties, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -34119,22 +40582,18 @@ func awsRestjson1_deserializeDocumentCustomNarrativeOptions(v **types.CustomNarr return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.CustomNarrativeOptions + var sv *types.DataSetRefreshProperties if *v == nil { - sv = &types.CustomNarrativeOptions{} + sv = &types.DataSetRefreshProperties{} } else { sv = *v } for key, value := range shape { switch key { - case "Narrative": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NarrativeString to be of type string, got %T instead", value) - } - sv.Narrative = ptr.String(jtv) + case "RefreshConfiguration": + if err := awsRestjson1_deserializeDocumentRefreshConfiguration(&sv.RefreshConfiguration, value); err != nil { + return err } default: @@ -34146,7 +40605,41 @@ func awsRestjson1_deserializeDocumentCustomNarrativeOptions(v **types.CustomNarr return nil } -func awsRestjson1_deserializeDocumentCustomParameterValues(v **types.CustomParameterValues, value interface{}) error { +func awsRestjson1_deserializeDocumentDatasets(v *[]types.DatasetMetadata, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.DatasetMetadata + if *v == nil { + cv = []types.DatasetMetadata{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.DatasetMetadata + destAddr := &col + if err := awsRestjson1_deserializeDocumentDatasetMetadata(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentDataSetSchema(v **types.DataSetSchema, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -34159,32 +40652,17 @@ func awsRestjson1_deserializeDocumentCustomParameterValues(v **types.CustomParam return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.CustomParameterValues + var sv *types.DataSetSchema if *v == nil { - sv = &types.CustomParameterValues{} + sv = &types.DataSetSchema{} } else { sv = *v } for key, value := range shape { switch key { - case "DateTimeValues": - if err := awsRestjson1_deserializeDocumentDateTimeDefaultValueList(&sv.DateTimeValues, value); err != nil { - return err - } - - case "DecimalValues": - if err := awsRestjson1_deserializeDocumentDecimalDefaultValueList(&sv.DecimalValues, value); err != nil { - return err - } - - case "IntegerValues": - if err := awsRestjson1_deserializeDocumentIntegerDefaultValueList(&sv.IntegerValues, value); err != nil { - return err - } - - case "StringValues": - if err := awsRestjson1_deserializeDocumentStringDefaultValueList(&sv.StringValues, value); err != nil { + case "ColumnSchemaList": + if err := awsRestjson1_deserializeDocumentColumnSchemaList(&sv.ColumnSchemaList, value); err != nil { return err } @@ -34197,7 +40675,7 @@ func awsRestjson1_deserializeDocumentCustomParameterValues(v **types.CustomParam return nil } -func awsRestjson1_deserializeDocumentCustomSql(v **types.CustomSql, value interface{}) error { +func awsRestjson1_deserializeDocumentDataSetSummary(v **types.DataSetSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -34210,45 +40688,104 @@ func awsRestjson1_deserializeDocumentCustomSql(v **types.CustomSql, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.CustomSql + var sv *types.DataSetSummary if *v == nil { - sv = &types.CustomSql{} + sv = &types.DataSetSummary{} } else { sv = *v } for key, value := range shape { switch key { - case "Columns": - if err := awsRestjson1_deserializeDocumentInputColumnList(&sv.Columns, value); err != nil { - return err + case "Arn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) } - case "DataSourceArn": + case "ColumnLevelPermissionRulesApplied": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + } + sv.ColumnLevelPermissionRulesApplied = jtv + } + + case "CreatedTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreatedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "DataSetId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) + } + sv.DataSetId = ptr.String(jtv) + } + + case "ImportMode": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DataSetImportMode to be of type string, got %T instead", value) + } + sv.ImportMode = types.DataSetImportMode(jtv) + } + + case "LastUpdatedTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.LastUpdatedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + } - sv.DataSourceArn = ptr.String(jtv) } case "Name": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected CustomSqlName to be of type string, got %T instead", value) + return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } sv.Name = ptr.String(jtv) } - case "SqlQuery": + case "RowLevelPermissionDataSet": + if err := awsRestjson1_deserializeDocumentRowLevelPermissionDataSet(&sv.RowLevelPermissionDataSet, value); err != nil { + return err + } + + case "RowLevelPermissionTagConfigurationApplied": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(bool) if !ok { - return fmt.Errorf("expected SqlQuery to be of type string, got %T instead", value) + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.SqlQuery = ptr.String(jtv) + sv.RowLevelPermissionTagConfigurationApplied = jtv } default: @@ -34260,7 +40797,41 @@ func awsRestjson1_deserializeDocumentCustomSql(v **types.CustomSql, value interf return nil } -func awsRestjson1_deserializeDocumentCustomValuesConfiguration(v **types.CustomValuesConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentDataSetSummaryList(v *[]types.DataSetSummary, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.DataSetSummary + if *v == nil { + cv = []types.DataSetSummary{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.DataSetSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentDataSetSummary(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentDataSetUsageConfiguration(v **types.DataSetUsageConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -34273,27 +40844,31 @@ func awsRestjson1_deserializeDocumentCustomValuesConfiguration(v **types.CustomV return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.CustomValuesConfiguration + var sv *types.DataSetUsageConfiguration if *v == nil { - sv = &types.CustomValuesConfiguration{} + sv = &types.DataSetUsageConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "CustomValues": - if err := awsRestjson1_deserializeDocumentCustomParameterValues(&sv.CustomValues, value); err != nil { - return err + case "DisableUseAsDirectQuerySource": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + } + sv.DisableUseAsDirectQuerySource = jtv } - case "IncludeNullValue": + case "DisableUseAsImportedSource": if value != nil { jtv, ok := value.(bool) if !ok { - return fmt.Errorf("expected BooleanObject to be of type *bool, got %T instead", value) + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.IncludeNullValue = ptr.Bool(jtv) + sv.DisableUseAsImportedSource = jtv } default: @@ -34305,7 +40880,7 @@ func awsRestjson1_deserializeDocumentCustomValuesConfiguration(v **types.CustomV return nil } -func awsRestjson1_deserializeDocumentDashboard(v **types.Dashboard, value interface{}) error { +func awsRestjson1_deserializeDocumentDataSource(v **types.DataSource, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -34318,15 +40893,20 @@ func awsRestjson1_deserializeDocumentDashboard(v **types.Dashboard, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.Dashboard + var sv *types.DataSource if *v == nil { - sv = &types.Dashboard{} + sv = &types.DataSource{} } else { sv = *v } for key, value := range shape { switch key { + case "AlternateDataSourceParameters": + if err := awsRestjson1_deserializeDocumentDataSourceParametersList(&sv.AlternateDataSourceParameters, value); err != nil { + return err + } + case "Arn": if value != nil { jtv, ok := value.(string) @@ -34352,29 +40932,23 @@ func awsRestjson1_deserializeDocumentDashboard(v **types.Dashboard, value interf } } - case "DashboardId": + case "DataSourceId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } - sv.DashboardId = ptr.String(jtv) + sv.DataSourceId = ptr.String(jtv) } - case "LastPublishedTime": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.LastPublishedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + case "DataSourceParameters": + if err := awsRestjson1_deserializeDocumentDataSourceParameters(&sv.DataSourceParameters, value); err != nil { + return err + } - } + case "ErrorInfo": + if err := awsRestjson1_deserializeDocumentDataSourceErrorInfo(&sv.ErrorInfo, value); err != nil { + return err } case "LastUpdatedTime": @@ -34397,13 +40971,45 @@ func awsRestjson1_deserializeDocumentDashboard(v **types.Dashboard, value interf if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected DashboardName to be of type string, got %T instead", value) + return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } sv.Name = ptr.String(jtv) } - case "Version": - if err := awsRestjson1_deserializeDocumentDashboardVersion(&sv.Version, value); err != nil { + case "SecretArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected SecretArn to be of type string, got %T instead", value) + } + sv.SecretArn = ptr.String(jtv) + } + + case "SslProperties": + if err := awsRestjson1_deserializeDocumentSslProperties(&sv.SslProperties, value); err != nil { + return err + } + + case "Status": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourceStatus to be of type string, got %T instead", value) + } + sv.Status = types.ResourceStatus(jtv) + } + + case "Type": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DataSourceType to be of type string, got %T instead", value) + } + sv.Type = types.DataSourceType(jtv) + } + + case "VpcConnectionProperties": + if err := awsRestjson1_deserializeDocumentVpcConnectionProperties(&sv.VpcConnectionProperties, value); err != nil { return err } @@ -34416,7 +41022,7 @@ func awsRestjson1_deserializeDocumentDashboard(v **types.Dashboard, value interf return nil } -func awsRestjson1_deserializeDocumentDashboardError(v **types.DashboardError, value interface{}) error { +func awsRestjson1_deserializeDocumentDataSourceErrorInfo(v **types.DataSourceErrorInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -34429,9 +41035,9 @@ func awsRestjson1_deserializeDocumentDashboardError(v **types.DashboardError, va return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DashboardError + var sv *types.DataSourceErrorInfo if *v == nil { - sv = &types.DashboardError{} + sv = &types.DataSourceErrorInfo{} } else { sv = *v } @@ -34442,7 +41048,7 @@ func awsRestjson1_deserializeDocumentDashboardError(v **types.DashboardError, va if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + return fmt.Errorf("expected String to be of type string, got %T instead", value) } sv.Message = ptr.String(jtv) } @@ -34451,14 +41057,9 @@ func awsRestjson1_deserializeDocumentDashboardError(v **types.DashboardError, va if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected DashboardErrorType to be of type string, got %T instead", value) + return fmt.Errorf("expected DataSourceErrorInfoType to be of type string, got %T instead", value) } - sv.Type = types.DashboardErrorType(jtv) - } - - case "ViolatedEntities": - if err := awsRestjson1_deserializeDocumentEntityList(&sv.ViolatedEntities, value); err != nil { - return err + sv.Type = types.DataSourceErrorInfoType(jtv) } default: @@ -34470,7 +41071,7 @@ func awsRestjson1_deserializeDocumentDashboardError(v **types.DashboardError, va return nil } -func awsRestjson1_deserializeDocumentDashboardErrorList(v *[]types.DashboardError, value interface{}) error { +func awsRestjson1_deserializeDocumentDataSourceList(v *[]types.DataSource, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -34483,17 +41084,17 @@ func awsRestjson1_deserializeDocumentDashboardErrorList(v *[]types.DashboardErro return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.DashboardError + var cv []types.DataSource if *v == nil { - cv = []types.DashboardError{} + cv = []types.DataSource{} } else { cv = *v } for _, value := range shape { - var col types.DashboardError + var col types.DataSource destAddr := &col - if err := awsRestjson1_deserializeDocumentDashboardError(&destAddr, value); err != nil { + if err := awsRestjson1_deserializeDocumentDataSource(&destAddr, value); err != nil { return err } col = *destAddr @@ -34504,7 +41105,7 @@ func awsRestjson1_deserializeDocumentDashboardErrorList(v *[]types.DashboardErro return nil } -func awsRestjson1_deserializeDocumentDashboardPublishOptions(v **types.DashboardPublishOptions, value interface{}) error { +func awsRestjson1_deserializeDocumentDataSourceParameters(v *types.DataSourceParameters, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -34517,80 +41118,286 @@ func awsRestjson1_deserializeDocumentDashboardPublishOptions(v **types.Dashboard return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DashboardPublishOptions - if *v == nil { - sv = &types.DashboardPublishOptions{} - } else { - sv = *v - } - + var uv types.DataSourceParameters +loop: for key, value := range shape { + if value == nil { + continue + } switch key { - case "AdHocFilteringOption": - if err := awsRestjson1_deserializeDocumentAdHocFilteringOption(&sv.AdHocFilteringOption, value); err != nil { + case "AmazonElasticsearchParameters": + var mv types.AmazonElasticsearchParameters + destAddr := &mv + if err := awsRestjson1_deserializeDocumentAmazonElasticsearchParameters(&destAddr, value); err != nil { return err } + mv = *destAddr + uv = &types.DataSourceParametersMemberAmazonElasticsearchParameters{Value: mv} + break loop - case "DataPointDrillUpDownOption": - if err := awsRestjson1_deserializeDocumentDataPointDrillUpDownOption(&sv.DataPointDrillUpDownOption, value); err != nil { + case "AmazonOpenSearchParameters": + var mv types.AmazonOpenSearchParameters + destAddr := &mv + if err := awsRestjson1_deserializeDocumentAmazonOpenSearchParameters(&destAddr, value); err != nil { return err } + mv = *destAddr + uv = &types.DataSourceParametersMemberAmazonOpenSearchParameters{Value: mv} + break loop - case "DataPointMenuLabelOption": - if err := awsRestjson1_deserializeDocumentDataPointMenuLabelOption(&sv.DataPointMenuLabelOption, value); err != nil { + case "AthenaParameters": + var mv types.AthenaParameters + destAddr := &mv + if err := awsRestjson1_deserializeDocumentAthenaParameters(&destAddr, value); err != nil { return err } + mv = *destAddr + uv = &types.DataSourceParametersMemberAthenaParameters{Value: mv} + break loop - case "DataPointTooltipOption": - if err := awsRestjson1_deserializeDocumentDataPointTooltipOption(&sv.DataPointTooltipOption, value); err != nil { + case "AuroraParameters": + var mv types.AuroraParameters + destAddr := &mv + if err := awsRestjson1_deserializeDocumentAuroraParameters(&destAddr, value); err != nil { return err } + mv = *destAddr + uv = &types.DataSourceParametersMemberAuroraParameters{Value: mv} + break loop - case "ExportToCSVOption": - if err := awsRestjson1_deserializeDocumentExportToCSVOption(&sv.ExportToCSVOption, value); err != nil { + case "AuroraPostgreSqlParameters": + var mv types.AuroraPostgreSqlParameters + destAddr := &mv + if err := awsRestjson1_deserializeDocumentAuroraPostgreSqlParameters(&destAddr, value); err != nil { return err } + mv = *destAddr + uv = &types.DataSourceParametersMemberAuroraPostgreSqlParameters{Value: mv} + break loop - case "ExportWithHiddenFieldsOption": - if err := awsRestjson1_deserializeDocumentExportWithHiddenFieldsOption(&sv.ExportWithHiddenFieldsOption, value); err != nil { + case "AwsIotAnalyticsParameters": + var mv types.AwsIotAnalyticsParameters + destAddr := &mv + if err := awsRestjson1_deserializeDocumentAwsIotAnalyticsParameters(&destAddr, value); err != nil { return err } + mv = *destAddr + uv = &types.DataSourceParametersMemberAwsIotAnalyticsParameters{Value: mv} + break loop - case "SheetControlsOption": - if err := awsRestjson1_deserializeDocumentSheetControlsOption(&sv.SheetControlsOption, value); err != nil { + case "DatabricksParameters": + var mv types.DatabricksParameters + destAddr := &mv + if err := awsRestjson1_deserializeDocumentDatabricksParameters(&destAddr, value); err != nil { + return err + } + mv = *destAddr + uv = &types.DataSourceParametersMemberDatabricksParameters{Value: mv} + break loop + + case "ExasolParameters": + var mv types.ExasolParameters + destAddr := &mv + if err := awsRestjson1_deserializeDocumentExasolParameters(&destAddr, value); err != nil { + return err + } + mv = *destAddr + uv = &types.DataSourceParametersMemberExasolParameters{Value: mv} + break loop + + case "JiraParameters": + var mv types.JiraParameters + destAddr := &mv + if err := awsRestjson1_deserializeDocumentJiraParameters(&destAddr, value); err != nil { + return err + } + mv = *destAddr + uv = &types.DataSourceParametersMemberJiraParameters{Value: mv} + break loop + + case "MariaDbParameters": + var mv types.MariaDbParameters + destAddr := &mv + if err := awsRestjson1_deserializeDocumentMariaDbParameters(&destAddr, value); err != nil { + return err + } + mv = *destAddr + uv = &types.DataSourceParametersMemberMariaDbParameters{Value: mv} + break loop + + case "MySqlParameters": + var mv types.MySqlParameters + destAddr := &mv + if err := awsRestjson1_deserializeDocumentMySqlParameters(&destAddr, value); err != nil { + return err + } + mv = *destAddr + uv = &types.DataSourceParametersMemberMySqlParameters{Value: mv} + break loop + + case "OracleParameters": + var mv types.OracleParameters + destAddr := &mv + if err := awsRestjson1_deserializeDocumentOracleParameters(&destAddr, value); err != nil { + return err + } + mv = *destAddr + uv = &types.DataSourceParametersMemberOracleParameters{Value: mv} + break loop + + case "PostgreSqlParameters": + var mv types.PostgreSqlParameters + destAddr := &mv + if err := awsRestjson1_deserializeDocumentPostgreSqlParameters(&destAddr, value); err != nil { + return err + } + mv = *destAddr + uv = &types.DataSourceParametersMemberPostgreSqlParameters{Value: mv} + break loop + + case "PrestoParameters": + var mv types.PrestoParameters + destAddr := &mv + if err := awsRestjson1_deserializeDocumentPrestoParameters(&destAddr, value); err != nil { + return err + } + mv = *destAddr + uv = &types.DataSourceParametersMemberPrestoParameters{Value: mv} + break loop + + case "RdsParameters": + var mv types.RdsParameters + destAddr := &mv + if err := awsRestjson1_deserializeDocumentRdsParameters(&destAddr, value); err != nil { + return err + } + mv = *destAddr + uv = &types.DataSourceParametersMemberRdsParameters{Value: mv} + break loop + + case "RedshiftParameters": + var mv types.RedshiftParameters + destAddr := &mv + if err := awsRestjson1_deserializeDocumentRedshiftParameters(&destAddr, value); err != nil { + return err + } + mv = *destAddr + uv = &types.DataSourceParametersMemberRedshiftParameters{Value: mv} + break loop + + case "S3Parameters": + var mv types.S3Parameters + destAddr := &mv + if err := awsRestjson1_deserializeDocumentS3Parameters(&destAddr, value); err != nil { + return err + } + mv = *destAddr + uv = &types.DataSourceParametersMemberS3Parameters{Value: mv} + break loop + + case "ServiceNowParameters": + var mv types.ServiceNowParameters + destAddr := &mv + if err := awsRestjson1_deserializeDocumentServiceNowParameters(&destAddr, value); err != nil { + return err + } + mv = *destAddr + uv = &types.DataSourceParametersMemberServiceNowParameters{Value: mv} + break loop + + case "SnowflakeParameters": + var mv types.SnowflakeParameters + destAddr := &mv + if err := awsRestjson1_deserializeDocumentSnowflakeParameters(&destAddr, value); err != nil { return err } + mv = *destAddr + uv = &types.DataSourceParametersMemberSnowflakeParameters{Value: mv} + break loop - case "SheetLayoutElementMaximizationOption": - if err := awsRestjson1_deserializeDocumentSheetLayoutElementMaximizationOption(&sv.SheetLayoutElementMaximizationOption, value); err != nil { + case "SparkParameters": + var mv types.SparkParameters + destAddr := &mv + if err := awsRestjson1_deserializeDocumentSparkParameters(&destAddr, value); err != nil { return err } + mv = *destAddr + uv = &types.DataSourceParametersMemberSparkParameters{Value: mv} + break loop - case "VisualAxisSortOption": - if err := awsRestjson1_deserializeDocumentVisualAxisSortOption(&sv.VisualAxisSortOption, value); err != nil { + case "SqlServerParameters": + var mv types.SqlServerParameters + destAddr := &mv + if err := awsRestjson1_deserializeDocumentSqlServerParameters(&destAddr, value); err != nil { return err } + mv = *destAddr + uv = &types.DataSourceParametersMemberSqlServerParameters{Value: mv} + break loop - case "VisualMenuOption": - if err := awsRestjson1_deserializeDocumentVisualMenuOption(&sv.VisualMenuOption, value); err != nil { + case "TeradataParameters": + var mv types.TeradataParameters + destAddr := &mv + if err := awsRestjson1_deserializeDocumentTeradataParameters(&destAddr, value); err != nil { return err } + mv = *destAddr + uv = &types.DataSourceParametersMemberTeradataParameters{Value: mv} + break loop - case "VisualPublishOptions": - if err := awsRestjson1_deserializeDocumentDashboardVisualPublishOptions(&sv.VisualPublishOptions, value); err != nil { + case "TwitterParameters": + var mv types.TwitterParameters + destAddr := &mv + if err := awsRestjson1_deserializeDocumentTwitterParameters(&destAddr, value); err != nil { return err } + mv = *destAddr + uv = &types.DataSourceParametersMemberTwitterParameters{Value: mv} + break loop default: - _, _ = key, value + uv = &types.UnknownUnionMember{Tag: key} + break loop } } - *v = sv + *v = uv return nil } -func awsRestjson1_deserializeDocumentDashboardSummary(v **types.DashboardSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentDataSourceParametersList(v *[]types.DataSourceParameters, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.DataSourceParameters + if *v == nil { + cv = []types.DataSourceParameters{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.DataSourceParameters + if err := awsRestjson1_deserializeDocumentDataSourceParameters(&col, value); err != nil { + return err + } + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentDataSourceSummary(v **types.DataSourceSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -34603,9 +41410,9 @@ func awsRestjson1_deserializeDocumentDashboardSummary(v **types.DashboardSummary return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DashboardSummary + var sv *types.DataSourceSummary if *v == nil { - sv = &types.DashboardSummary{} + sv = &types.DataSourceSummary{} } else { sv = *v } @@ -34637,29 +41444,13 @@ func awsRestjson1_deserializeDocumentDashboardSummary(v **types.DashboardSummary } } - case "DashboardId": + case "DataSourceId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) - } - sv.DashboardId = ptr.String(jtv) - } - - case "LastPublishedTime": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.LastPublishedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - + return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) } + sv.DataSourceId = ptr.String(jtv) } case "LastUpdatedTime": @@ -34682,22 +41473,18 @@ func awsRestjson1_deserializeDocumentDashboardSummary(v **types.DashboardSummary if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected DashboardName to be of type string, got %T instead", value) + return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } sv.Name = ptr.String(jtv) } - case "PublishedVersionNumber": + case "Type": if value != nil { - jtv, ok := value.(json.Number) + jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected VersionNumber to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err + return fmt.Errorf("expected DataSourceType to be of type string, got %T instead", value) } - sv.PublishedVersionNumber = ptr.Int64(i64) + sv.Type = types.DataSourceType(jtv) } default: @@ -34709,7 +41496,7 @@ func awsRestjson1_deserializeDocumentDashboardSummary(v **types.DashboardSummary return nil } -func awsRestjson1_deserializeDocumentDashboardSummaryList(v *[]types.DashboardSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentDataSourceSummaryList(v *[]types.DataSourceSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -34722,17 +41509,17 @@ func awsRestjson1_deserializeDocumentDashboardSummaryList(v *[]types.DashboardSu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.DashboardSummary + var cv []types.DataSourceSummary if *v == nil { - cv = []types.DashboardSummary{} + cv = []types.DataSourceSummary{} } else { cv = *v } for _, value := range shape { - var col types.DashboardSummary + var col types.DataSourceSummary destAddr := &col - if err := awsRestjson1_deserializeDocumentDashboardSummary(&destAddr, value); err != nil { + if err := awsRestjson1_deserializeDocumentDataSourceSummary(&destAddr, value); err != nil { return err } col = *destAddr @@ -34743,7 +41530,7 @@ func awsRestjson1_deserializeDocumentDashboardSummaryList(v *[]types.DashboardSu return nil } -func awsRestjson1_deserializeDocumentDashboardVersion(v **types.DashboardVersion, value interface{}) error { +func awsRestjson1_deserializeDocumentDateAxisOptions(v **types.DateAxisOptions, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -34756,102 +41543,90 @@ func awsRestjson1_deserializeDocumentDashboardVersion(v **types.DashboardVersion return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DashboardVersion + var sv *types.DateAxisOptions if *v == nil { - sv = &types.DashboardVersion{} + sv = &types.DateAxisOptions{} } else { sv = *v } for key, value := range shape { switch key { - case "Arn": + case "MissingDateVisibility": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) } - sv.Arn = ptr.String(jtv) + sv.MissingDateVisibility = types.Visibility(jtv) } - case "CreatedTime": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.CreatedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + default: + _, _ = key, value - } - } + } + } + *v = sv + return nil +} - case "DataSetArns": - if err := awsRestjson1_deserializeDocumentDataSetArnsList(&sv.DataSetArns, value); err != nil { - return err - } +func awsRestjson1_deserializeDocumentDateDimensionField(v **types.DateDimensionField, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } - case "Description": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected VersionDescription to be of type string, got %T instead", value) - } - sv.Description = ptr.String(jtv) - } + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } - case "Errors": - if err := awsRestjson1_deserializeDocumentDashboardErrorList(&sv.Errors, value); err != nil { - return err - } + var sv *types.DateDimensionField + if *v == nil { + sv = &types.DateDimensionField{} + } else { + sv = *v + } - case "Sheets": - if err := awsRestjson1_deserializeDocumentSheetList(&sv.Sheets, value); err != nil { + for key, value := range shape { + switch key { + case "Column": + if err := awsRestjson1_deserializeDocumentColumnIdentifier(&sv.Column, value); err != nil { return err } - case "SourceEntityArn": + case "DateGranularity": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + return fmt.Errorf("expected TimeGranularity to be of type string, got %T instead", value) } - sv.SourceEntityArn = ptr.String(jtv) + sv.DateGranularity = types.TimeGranularity(jtv) } - case "Status": + case "FieldId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ResourceStatus to be of type string, got %T instead", value) + return fmt.Errorf("expected FieldId to be of type string, got %T instead", value) } - sv.Status = types.ResourceStatus(jtv) + sv.FieldId = ptr.String(jtv) } - case "ThemeArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.ThemeArn = ptr.String(jtv) + case "FormatConfiguration": + if err := awsRestjson1_deserializeDocumentDateTimeFormatConfiguration(&sv.FormatConfiguration, value); err != nil { + return err } - case "VersionNumber": + case "HierarchyId": if value != nil { - jtv, ok := value.(json.Number) + jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected VersionNumber to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err + return fmt.Errorf("expected HierarchyId to be of type string, got %T instead", value) } - sv.VersionNumber = ptr.Int64(i64) + sv.HierarchyId = ptr.String(jtv) } default: @@ -34863,7 +41638,7 @@ func awsRestjson1_deserializeDocumentDashboardVersion(v **types.DashboardVersion return nil } -func awsRestjson1_deserializeDocumentDashboardVersionDefinition(v **types.DashboardVersionDefinition, value interface{}) error { +func awsRestjson1_deserializeDocumentDateMeasureField(v **types.DateMeasureField, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -34876,47 +41651,40 @@ func awsRestjson1_deserializeDocumentDashboardVersionDefinition(v **types.Dashbo return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DashboardVersionDefinition + var sv *types.DateMeasureField if *v == nil { - sv = &types.DashboardVersionDefinition{} + sv = &types.DateMeasureField{} } else { sv = *v } for key, value := range shape { switch key { - case "AnalysisDefaults": - if err := awsRestjson1_deserializeDocumentAnalysisDefaults(&sv.AnalysisDefaults, value); err != nil { - return err - } - - case "CalculatedFields": - if err := awsRestjson1_deserializeDocumentCalculatedFields(&sv.CalculatedFields, value); err != nil { - return err - } - - case "ColumnConfigurations": - if err := awsRestjson1_deserializeDocumentColumnConfigurationList(&sv.ColumnConfigurations, value); err != nil { - return err - } - - case "DataSetIdentifierDeclarations": - if err := awsRestjson1_deserializeDocumentDataSetIdentifierDeclarationList(&sv.DataSetIdentifierDeclarations, value); err != nil { - return err + case "AggregationFunction": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DateAggregationFunction to be of type string, got %T instead", value) + } + sv.AggregationFunction = types.DateAggregationFunction(jtv) } - case "FilterGroups": - if err := awsRestjson1_deserializeDocumentFilterGroupList(&sv.FilterGroups, value); err != nil { + case "Column": + if err := awsRestjson1_deserializeDocumentColumnIdentifier(&sv.Column, value); err != nil { return err } - case "ParameterDeclarations": - if err := awsRestjson1_deserializeDocumentParameterDeclarationList(&sv.ParameterDeclarations, value); err != nil { - return err + case "FieldId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected FieldId to be of type string, got %T instead", value) + } + sv.FieldId = ptr.String(jtv) } - case "Sheets": - if err := awsRestjson1_deserializeDocumentSheetDefinitionList(&sv.Sheets, value); err != nil { + case "FormatConfiguration": + if err := awsRestjson1_deserializeDocumentDateTimeFormatConfiguration(&sv.FormatConfiguration, value); err != nil { return err } @@ -34929,7 +41697,7 @@ func awsRestjson1_deserializeDocumentDashboardVersionDefinition(v **types.Dashbo return nil } -func awsRestjson1_deserializeDocumentDashboardVersionSummary(v **types.DashboardVersionSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentDateTimeDatasetParameter(v **types.DateTimeDatasetParameter, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -34942,78 +41710,222 @@ func awsRestjson1_deserializeDocumentDashboardVersionSummary(v **types.Dashboard return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DashboardVersionSummary + var sv *types.DateTimeDatasetParameter if *v == nil { - sv = &types.DashboardVersionSummary{} + sv = &types.DateTimeDatasetParameter{} } else { sv = *v } for key, value := range shape { switch key { - case "Arn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.Arn = ptr.String(jtv) + case "DefaultValues": + if err := awsRestjson1_deserializeDocumentDateTimeDatasetParameterDefaultValues(&sv.DefaultValues, value); err != nil { + return err } - case "CreatedTime": + case "Id": if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.CreatedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DatasetParameterId to be of type string, got %T instead", value) } + sv.Id = ptr.String(jtv) } - case "Description": + case "Name": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected VersionDescription to be of type string, got %T instead", value) + return fmt.Errorf("expected DatasetParameterName to be of type string, got %T instead", value) } - sv.Description = ptr.String(jtv) + sv.Name = ptr.String(jtv) } - case "SourceEntityArn": + case "TimeGranularity": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + return fmt.Errorf("expected TimeGranularity to be of type string, got %T instead", value) } - sv.SourceEntityArn = ptr.String(jtv) + sv.TimeGranularity = types.TimeGranularity(jtv) } - case "Status": + case "ValueType": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ResourceStatus to be of type string, got %T instead", value) + return fmt.Errorf("expected DatasetParameterValueType to be of type string, got %T instead", value) } - sv.Status = types.ResourceStatus(jtv) + sv.ValueType = types.DatasetParameterValueType(jtv) } - case "VersionNumber": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected VersionNumber to be json.Number, got %T instead", value) + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentDateTimeDatasetParameterDefaultValues(v **types.DateTimeDatasetParameterDefaultValues, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.DateTimeDatasetParameterDefaultValues + if *v == nil { + sv = &types.DateTimeDatasetParameterDefaultValues{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "StaticValues": + if err := awsRestjson1_deserializeDocumentDateTimeDatasetParameterValueList(&sv.StaticValues, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentDateTimeDatasetParameterValueList(v *[]time.Time, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []time.Time + if *v == nil { + cv = []time.Time{} + } else { + cv = *v + } + + for _, value := range shape { + var col time.Time + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err } - i64, err := jtv.Int64() + col = smithytime.ParseEpochSeconds(f64) + + default: + return fmt.Errorf("expected DateTimeDatasetParameterDefaultValue to be a JSON Number, got %T instead", value) + + } + } + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentDateTimeDefaultValueList(v *[]time.Time, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []time.Time + if *v == nil { + cv = []time.Time{} + } else { + cv = *v + } + + for _, value := range shape { + var col time.Time + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() if err != nil { return err } - sv.VersionNumber = ptr.Int64(i64) + col = smithytime.ParseEpochSeconds(f64) + + default: + return fmt.Errorf("expected SensitiveTimestamp to be a JSON Number, got %T instead", value) + + } + } + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentDateTimeDefaultValues(v **types.DateTimeDefaultValues, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.DateTimeDefaultValues + if *v == nil { + sv = &types.DateTimeDefaultValues{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "DynamicValue": + if err := awsRestjson1_deserializeDocumentDynamicDefaultValue(&sv.DynamicValue, value); err != nil { + return err + } + + case "RollingDate": + if err := awsRestjson1_deserializeDocumentRollingDateConfiguration(&sv.RollingDate, value); err != nil { + return err + } + + case "StaticValues": + if err := awsRestjson1_deserializeDocumentDateTimeDefaultValueList(&sv.StaticValues, value); err != nil { + return err } default: @@ -35025,7 +41937,7 @@ func awsRestjson1_deserializeDocumentDashboardVersionSummary(v **types.Dashboard return nil } -func awsRestjson1_deserializeDocumentDashboardVersionSummaryList(v *[]types.DashboardVersionSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentDateTimeFormatConfiguration(v **types.DateTimeFormatConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -35033,33 +41945,49 @@ func awsRestjson1_deserializeDocumentDashboardVersionSummaryList(v *[]types.Dash return nil } - shape, ok := value.([]interface{}) + shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.DashboardVersionSummary + var sv *types.DateTimeFormatConfiguration if *v == nil { - cv = []types.DashboardVersionSummary{} + sv = &types.DateTimeFormatConfiguration{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col types.DashboardVersionSummary - destAddr := &col - if err := awsRestjson1_deserializeDocumentDashboardVersionSummary(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) + for key, value := range shape { + switch key { + case "DateTimeFormat": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DateTimeFormat to be of type string, got %T instead", value) + } + sv.DateTimeFormat = ptr.String(jtv) + } + + case "NullValueFormatConfiguration": + if err := awsRestjson1_deserializeDocumentNullValueFormatConfiguration(&sv.NullValueFormatConfiguration, value); err != nil { + return err + } + + case "NumericFormatConfiguration": + if err := awsRestjson1_deserializeDocumentNumericFormatConfiguration(&sv.NumericFormatConfiguration, value); err != nil { + return err + } + + default: + _, _ = key, value + } } - *v = cv + *v = sv return nil } -func awsRestjson1_deserializeDocumentDashboardVisualPublishOptions(v **types.DashboardVisualPublishOptions, value interface{}) error { +func awsRestjson1_deserializeDocumentDateTimeHierarchy(v **types.DateTimeHierarchy, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -35072,20 +42000,29 @@ func awsRestjson1_deserializeDocumentDashboardVisualPublishOptions(v **types.Das return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DashboardVisualPublishOptions + var sv *types.DateTimeHierarchy if *v == nil { - sv = &types.DashboardVisualPublishOptions{} + sv = &types.DateTimeHierarchy{} } else { sv = *v } for key, value := range shape { switch key { - case "ExportHiddenFieldsOption": - if err := awsRestjson1_deserializeDocumentExportHiddenFieldsOption(&sv.ExportHiddenFieldsOption, value); err != nil { + case "DrillDownFilters": + if err := awsRestjson1_deserializeDocumentDrillDownFilterList(&sv.DrillDownFilters, value); err != nil { return err } + case "HierarchyId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected HierarchyId to be of type string, got %T instead", value) + } + sv.HierarchyId = ptr.String(jtv) + } + default: _, _ = key, value @@ -35095,7 +42032,7 @@ func awsRestjson1_deserializeDocumentDashboardVisualPublishOptions(v **types.Das return nil } -func awsRestjson1_deserializeDocumentDataBarsOptions(v **types.DataBarsOptions, value interface{}) error { +func awsRestjson1_deserializeDocumentDateTimeParameterDeclaration(v **types.DateTimeParameterDeclaration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -35108,40 +42045,46 @@ func awsRestjson1_deserializeDocumentDataBarsOptions(v **types.DataBarsOptions, return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DataBarsOptions + var sv *types.DateTimeParameterDeclaration if *v == nil { - sv = &types.DataBarsOptions{} + sv = &types.DateTimeParameterDeclaration{} } else { sv = *v } for key, value := range shape { switch key { - case "FieldId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected FieldId to be of type string, got %T instead", value) - } - sv.FieldId = ptr.String(jtv) + case "DefaultValues": + if err := awsRestjson1_deserializeDocumentDateTimeDefaultValues(&sv.DefaultValues, value); err != nil { + return err } - case "NegativeColor": + case "MappedDataSetParameters": + if err := awsRestjson1_deserializeDocumentMappedDataSetParameters(&sv.MappedDataSetParameters, value); err != nil { + return err + } + + case "Name": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected HexColor to be of type string, got %T instead", value) + return fmt.Errorf("expected ParameterName to be of type string, got %T instead", value) } - sv.NegativeColor = ptr.String(jtv) + sv.Name = ptr.String(jtv) } - case "PositiveColor": + case "TimeGranularity": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected HexColor to be of type string, got %T instead", value) + return fmt.Errorf("expected TimeGranularity to be of type string, got %T instead", value) } - sv.PositiveColor = ptr.String(jtv) + sv.TimeGranularity = types.TimeGranularity(jtv) + } + + case "ValueWhenUnset": + if err := awsRestjson1_deserializeDocumentDateTimeValueWhenUnsetConfiguration(&sv.ValueWhenUnset, value); err != nil { + return err } default: @@ -35153,7 +42096,7 @@ func awsRestjson1_deserializeDocumentDataBarsOptions(v **types.DataBarsOptions, return nil } -func awsRestjson1_deserializeDocumentDatabricksParameters(v **types.DatabricksParameters, value interface{}) error { +func awsRestjson1_deserializeDocumentDateTimePickerControlDisplayOptions(v **types.DateTimePickerControlDisplayOptions, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -35166,44 +42109,27 @@ func awsRestjson1_deserializeDocumentDatabricksParameters(v **types.DatabricksPa return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DatabricksParameters + var sv *types.DateTimePickerControlDisplayOptions if *v == nil { - sv = &types.DatabricksParameters{} + sv = &types.DateTimePickerControlDisplayOptions{} } else { sv = *v } for key, value := range shape { switch key { - case "Host": + case "DateTimeFormat": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Host to be of type string, got %T instead", value) - } - sv.Host = ptr.String(jtv) - } - - case "Port": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected Port to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err + return fmt.Errorf("expected DateTimeFormat to be of type string, got %T instead", value) } - sv.Port = int32(i64) + sv.DateTimeFormat = ptr.String(jtv) } - case "SqlEndpointPath": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected SqlEndpointPath to be of type string, got %T instead", value) - } - sv.SqlEndpointPath = ptr.String(jtv) + case "TitleOptions": + if err := awsRestjson1_deserializeDocumentLabelOptions(&sv.TitleOptions, value); err != nil { + return err } default: @@ -35215,7 +42141,7 @@ func awsRestjson1_deserializeDocumentDatabricksParameters(v **types.DatabricksPa return nil } -func awsRestjson1_deserializeDocumentDataColor(v **types.DataColor, value interface{}) error { +func awsRestjson1_deserializeDocumentDateTimeValueWhenUnsetConfiguration(v **types.DateTimeValueWhenUnsetConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -35228,25 +42154,16 @@ func awsRestjson1_deserializeDocumentDataColor(v **types.DataColor, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DataColor + var sv *types.DateTimeValueWhenUnsetConfiguration if *v == nil { - sv = &types.DataColor{} + sv = &types.DateTimeValueWhenUnsetConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "Color": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected HexColor to be of type string, got %T instead", value) - } - sv.Color = ptr.String(jtv) - } - - case "DataValue": + case "CustomValue": if value != nil { switch jtv := value.(type) { case json.Number: @@ -35254,32 +42171,23 @@ func awsRestjson1_deserializeDocumentDataColor(v **types.DataColor, value interf if err != nil { return err } - sv.DataValue = ptr.Float64(f64) - - case string: - var f64 float64 - switch { - case strings.EqualFold(jtv, "NaN"): - f64 = math.NaN() - - case strings.EqualFold(jtv, "Infinity"): - f64 = math.Inf(1) - - case strings.EqualFold(jtv, "-Infinity"): - f64 = math.Inf(-1) - - default: - return fmt.Errorf("unknown JSON number value: %s", jtv) - - } - sv.DataValue = ptr.Float64(f64) + sv.CustomValue = ptr.Time(smithytime.ParseEpochSeconds(f64)) default: - return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value) + return fmt.Errorf("expected SensitiveTimestamp to be a JSON Number, got %T instead", value) } } + case "ValueWhenUnsetOption": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ValueWhenUnsetOption to be of type string, got %T instead", value) + } + sv.ValueWhenUnsetOption = types.ValueWhenUnsetOption(jtv) + } + default: _, _ = key, value @@ -35289,7 +42197,7 @@ func awsRestjson1_deserializeDocumentDataColor(v **types.DataColor, value interf return nil } -func awsRestjson1_deserializeDocumentDataColorPalette(v **types.DataColorPalette, value interface{}) error { +func awsRestjson1_deserializeDocumentDecimalDatasetParameter(v **types.DecimalDatasetParameter, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -35302,32 +42210,45 @@ func awsRestjson1_deserializeDocumentDataColorPalette(v **types.DataColorPalette return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DataColorPalette + var sv *types.DecimalDatasetParameter if *v == nil { - sv = &types.DataColorPalette{} + sv = &types.DecimalDatasetParameter{} } else { sv = *v } for key, value := range shape { switch key { - case "Colors": - if err := awsRestjson1_deserializeDocumentColorList(&sv.Colors, value); err != nil { + case "DefaultValues": + if err := awsRestjson1_deserializeDocumentDecimalDatasetParameterDefaultValues(&sv.DefaultValues, value); err != nil { return err } - case "EmptyFillColor": + case "Id": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected HexColor to be of type string, got %T instead", value) + return fmt.Errorf("expected DatasetParameterId to be of type string, got %T instead", value) } - sv.EmptyFillColor = ptr.String(jtv) + sv.Id = ptr.String(jtv) } - case "MinMaxGradient": - if err := awsRestjson1_deserializeDocumentColorList(&sv.MinMaxGradient, value); err != nil { - return err + case "Name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DatasetParameterName to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + case "ValueType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DatasetParameterValueType to be of type string, got %T instead", value) + } + sv.ValueType = types.DatasetParameterValueType(jtv) } default: @@ -35339,7 +42260,7 @@ func awsRestjson1_deserializeDocumentDataColorPalette(v **types.DataColorPalette return nil } -func awsRestjson1_deserializeDocumentDataFieldSeriesItem(v **types.DataFieldSeriesItem, value interface{}) error { +func awsRestjson1_deserializeDocumentDecimalDatasetParameterDefaultValues(v **types.DecimalDatasetParameterDefaultValues, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -35352,44 +42273,17 @@ func awsRestjson1_deserializeDocumentDataFieldSeriesItem(v **types.DataFieldSeri return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DataFieldSeriesItem + var sv *types.DecimalDatasetParameterDefaultValues if *v == nil { - sv = &types.DataFieldSeriesItem{} + sv = &types.DecimalDatasetParameterDefaultValues{} } else { sv = *v } for key, value := range shape { switch key { - case "AxisBinding": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected AxisBinding to be of type string, got %T instead", value) - } - sv.AxisBinding = types.AxisBinding(jtv) - } - - case "FieldId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected FieldId to be of type string, got %T instead", value) - } - sv.FieldId = ptr.String(jtv) - } - - case "FieldValue": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected SensitiveString to be of type string, got %T instead", value) - } - sv.FieldValue = ptr.String(jtv) - } - - case "Settings": - if err := awsRestjson1_deserializeDocumentLineChartSeriesSettings(&sv.Settings, value); err != nil { + case "StaticValues": + if err := awsRestjson1_deserializeDocumentDecimalDatasetParameterValueList(&sv.StaticValues, value); err != nil { return err } @@ -35402,7 +42296,7 @@ func awsRestjson1_deserializeDocumentDataFieldSeriesItem(v **types.DataFieldSeri return nil } -func awsRestjson1_deserializeDocumentDataLabelOptions(v **types.DataLabelOptions, value interface{}) error { +func awsRestjson1_deserializeDocumentDecimalDatasetParameterValueList(v *[]float64, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -35410,91 +42304,150 @@ func awsRestjson1_deserializeDocumentDataLabelOptions(v **types.DataLabelOptions return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DataLabelOptions + var cv []float64 if *v == nil { - sv = &types.DataLabelOptions{} + cv = []float64{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "CategoryLabelVisibility": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) + for _, value := range shape { + var col float64 + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err } - sv.CategoryLabelVisibility = types.Visibility(jtv) - } + col = f64 - case "DataLabelTypes": - if err := awsRestjson1_deserializeDocumentDataLabelTypes(&sv.DataLabelTypes, value); err != nil { - return err - } + case string: + var f64 float64 + switch { + case strings.EqualFold(jtv, "NaN"): + f64 = math.NaN() - case "LabelColor": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected HexColor to be of type string, got %T instead", value) - } - sv.LabelColor = ptr.String(jtv) - } + case strings.EqualFold(jtv, "Infinity"): + f64 = math.Inf(1) + + case strings.EqualFold(jtv, "-Infinity"): + f64 = math.Inf(-1) + + default: + return fmt.Errorf("unknown JSON number value: %s", jtv) - case "LabelContent": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected DataLabelContent to be of type string, got %T instead", value) } - sv.LabelContent = types.DataLabelContent(jtv) - } + col = f64 + + default: + return fmt.Errorf("expected DecimalDatasetParameterDefaultValue to be a JSON Number, got %T instead", value) - case "LabelFontConfiguration": - if err := awsRestjson1_deserializeDocumentFontConfiguration(&sv.LabelFontConfiguration, value); err != nil { - return err } + } + cv = append(cv, col) - case "MeasureLabelVisibility": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentDecimalDefaultValueList(v *[]float64, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []float64 + if *v == nil { + cv = []float64{} + } else { + cv = *v + } + + for _, value := range shape { + var col float64 + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err } - sv.MeasureLabelVisibility = types.Visibility(jtv) - } + col = f64 + + case string: + var f64 float64 + switch { + case strings.EqualFold(jtv, "NaN"): + f64 = math.NaN() + + case strings.EqualFold(jtv, "Infinity"): + f64 = math.Inf(1) + + case strings.EqualFold(jtv, "-Infinity"): + f64 = math.Inf(-1) + + default: + return fmt.Errorf("unknown JSON number value: %s", jtv) - case "Overlap": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected DataLabelOverlap to be of type string, got %T instead", value) } - sv.Overlap = types.DataLabelOverlap(jtv) + col = f64 + + default: + return fmt.Errorf("expected SensitiveDoubleObject to be a JSON Number, got %T instead", value) + } + } + cv = append(cv, col) - case "Position": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected DataLabelPosition to be of type string, got %T instead", value) - } - sv.Position = types.DataLabelPosition(jtv) + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentDecimalDefaultValues(v **types.DecimalDefaultValues, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.DecimalDefaultValues + if *v == nil { + sv = &types.DecimalDefaultValues{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "DynamicValue": + if err := awsRestjson1_deserializeDocumentDynamicDefaultValue(&sv.DynamicValue, value); err != nil { + return err } - case "Visibility": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) - } - sv.Visibility = types.Visibility(jtv) + case "StaticValues": + if err := awsRestjson1_deserializeDocumentDecimalDefaultValueList(&sv.StaticValues, value); err != nil { + return err } default: @@ -35506,7 +42459,7 @@ func awsRestjson1_deserializeDocumentDataLabelOptions(v **types.DataLabelOptions return nil } -func awsRestjson1_deserializeDocumentDataLabelType(v **types.DataLabelType, value interface{}) error { +func awsRestjson1_deserializeDocumentDecimalParameterDeclaration(v **types.DecimalParameterDeclaration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -35519,37 +42472,45 @@ func awsRestjson1_deserializeDocumentDataLabelType(v **types.DataLabelType, valu return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DataLabelType + var sv *types.DecimalParameterDeclaration if *v == nil { - sv = &types.DataLabelType{} + sv = &types.DecimalParameterDeclaration{} } else { sv = *v } for key, value := range shape { switch key { - case "DataPathLabelType": - if err := awsRestjson1_deserializeDocumentDataPathLabelType(&sv.DataPathLabelType, value); err != nil { + case "DefaultValues": + if err := awsRestjson1_deserializeDocumentDecimalDefaultValues(&sv.DefaultValues, value); err != nil { return err } - case "FieldLabelType": - if err := awsRestjson1_deserializeDocumentFieldLabelType(&sv.FieldLabelType, value); err != nil { + case "MappedDataSetParameters": + if err := awsRestjson1_deserializeDocumentMappedDataSetParameters(&sv.MappedDataSetParameters, value); err != nil { return err } - case "MaximumLabelType": - if err := awsRestjson1_deserializeDocumentMaximumLabelType(&sv.MaximumLabelType, value); err != nil { - return err + case "Name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ParameterName to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) } - case "MinimumLabelType": - if err := awsRestjson1_deserializeDocumentMinimumLabelType(&sv.MinimumLabelType, value); err != nil { - return err + case "ParameterValueType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ParameterValueType to be of type string, got %T instead", value) + } + sv.ParameterValueType = types.ParameterValueType(jtv) } - case "RangeEndsLabelType": - if err := awsRestjson1_deserializeDocumentRangeEndsLabelType(&sv.RangeEndsLabelType, value); err != nil { + case "ValueWhenUnset": + if err := awsRestjson1_deserializeDocumentDecimalValueWhenUnsetConfiguration(&sv.ValueWhenUnset, value); err != nil { return err } @@ -35562,7 +42523,7 @@ func awsRestjson1_deserializeDocumentDataLabelType(v **types.DataLabelType, valu return nil } -func awsRestjson1_deserializeDocumentDataLabelTypes(v *[]types.DataLabelType, value interface{}) error { +func awsRestjson1_deserializeDocumentDecimalPlacesConfiguration(v **types.DecimalPlacesConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -35570,33 +42531,43 @@ func awsRestjson1_deserializeDocumentDataLabelTypes(v *[]types.DataLabelType, va return nil } - shape, ok := value.([]interface{}) + shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.DataLabelType + var sv *types.DecimalPlacesConfiguration if *v == nil { - cv = []types.DataLabelType{} + sv = &types.DecimalPlacesConfiguration{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col types.DataLabelType - destAddr := &col - if err := awsRestjson1_deserializeDocumentDataLabelType(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) + for key, value := range shape { + switch key { + case "DecimalPlaces": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected DecimalPlaces to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.DecimalPlaces = ptr.Int64(i64) + } + + default: + _, _ = key, value + } } - *v = cv + *v = sv return nil } -func awsRestjson1_deserializeDocumentDataPathColor(v **types.DataPathColor, value interface{}) error { +func awsRestjson1_deserializeDocumentDecimalValueWhenUnsetConfiguration(v **types.DecimalValueWhenUnsetConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -35609,36 +42580,56 @@ func awsRestjson1_deserializeDocumentDataPathColor(v **types.DataPathColor, valu return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DataPathColor + var sv *types.DecimalValueWhenUnsetConfiguration if *v == nil { - sv = &types.DataPathColor{} + sv = &types.DecimalValueWhenUnsetConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "Color": + case "CustomValue": if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected HexColor to be of type string, got %T instead", value) - } - sv.Color = ptr.String(jtv) - } + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CustomValue = ptr.Float64(f64) - case "Element": - if err := awsRestjson1_deserializeDocumentDataPathValue(&sv.Element, value); err != nil { - return err + case string: + var f64 float64 + switch { + case strings.EqualFold(jtv, "NaN"): + f64 = math.NaN() + + case strings.EqualFold(jtv, "Infinity"): + f64 = math.Inf(1) + + case strings.EqualFold(jtv, "-Infinity"): + f64 = math.Inf(-1) + + default: + return fmt.Errorf("unknown JSON number value: %s", jtv) + + } + sv.CustomValue = ptr.Float64(f64) + + default: + return fmt.Errorf("expected SensitiveDouble to be a JSON Number, got %T instead", value) + + } } - case "TimeGranularity": + case "ValueWhenUnsetOption": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected TimeGranularity to be of type string, got %T instead", value) + return fmt.Errorf("expected ValueWhenUnsetOption to be of type string, got %T instead", value) } - sv.TimeGranularity = types.TimeGranularity(jtv) + sv.ValueWhenUnsetOption = types.ValueWhenUnsetOption(jtv) } default: @@ -35650,41 +42641,7 @@ func awsRestjson1_deserializeDocumentDataPathColor(v **types.DataPathColor, valu return nil } -func awsRestjson1_deserializeDocumentDataPathColorList(v *[]types.DataPathColor, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []types.DataPathColor - if *v == nil { - cv = []types.DataPathColor{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.DataPathColor - destAddr := &col - if err := awsRestjson1_deserializeDocumentDataPathColor(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsRestjson1_deserializeDocumentDataPathLabelType(v **types.DataPathLabelType, value interface{}) error { +func awsRestjson1_deserializeDocumentDefaultFormatting(v **types.DefaultFormatting, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -35697,40 +42654,27 @@ func awsRestjson1_deserializeDocumentDataPathLabelType(v **types.DataPathLabelTy return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DataPathLabelType + var sv *types.DefaultFormatting if *v == nil { - sv = &types.DataPathLabelType{} + sv = &types.DefaultFormatting{} } else { sv = *v } for key, value := range shape { switch key { - case "FieldId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected FieldId to be of type string, got %T instead", value) - } - sv.FieldId = ptr.String(jtv) - } - - case "FieldValue": + case "DisplayFormat": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected FieldValue to be of type string, got %T instead", value) + return fmt.Errorf("expected DisplayFormat to be of type string, got %T instead", value) } - sv.FieldValue = ptr.String(jtv) + sv.DisplayFormat = types.DisplayFormat(jtv) } - case "Visibility": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) - } - sv.Visibility = types.Visibility(jtv) + case "DisplayFormatOptions": + if err := awsRestjson1_deserializeDocumentDisplayFormatOptions(&sv.DisplayFormatOptions, value); err != nil { + return err } default: @@ -35742,7 +42686,7 @@ func awsRestjson1_deserializeDocumentDataPathLabelType(v **types.DataPathLabelTy return nil } -func awsRestjson1_deserializeDocumentDataPathSort(v **types.DataPathSort, value interface{}) error { +func awsRestjson1_deserializeDocumentDefaultFreeFormLayoutConfiguration(v **types.DefaultFreeFormLayoutConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -35755,26 +42699,17 @@ func awsRestjson1_deserializeDocumentDataPathSort(v **types.DataPathSort, value return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DataPathSort + var sv *types.DefaultFreeFormLayoutConfiguration if *v == nil { - sv = &types.DataPathSort{} + sv = &types.DefaultFreeFormLayoutConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "Direction": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected SortDirection to be of type string, got %T instead", value) - } - sv.Direction = types.SortDirection(jtv) - } - - case "SortPaths": - if err := awsRestjson1_deserializeDocumentDataPathValueList(&sv.SortPaths, value); err != nil { + case "CanvasSizeOptions": + if err := awsRestjson1_deserializeDocumentFreeFormLayoutCanvasSizeOptions(&sv.CanvasSizeOptions, value); err != nil { return err } @@ -35787,7 +42722,7 @@ func awsRestjson1_deserializeDocumentDataPathSort(v **types.DataPathSort, value return nil } -func awsRestjson1_deserializeDocumentDataPathValue(v **types.DataPathValue, value interface{}) error { +func awsRestjson1_deserializeDocumentDefaultGridLayoutConfiguration(v **types.DefaultGridLayoutConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -35800,31 +42735,18 @@ func awsRestjson1_deserializeDocumentDataPathValue(v **types.DataPathValue, valu return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DataPathValue + var sv *types.DefaultGridLayoutConfiguration if *v == nil { - sv = &types.DataPathValue{} + sv = &types.DefaultGridLayoutConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "FieldId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected FieldId to be of type string, got %T instead", value) - } - sv.FieldId = ptr.String(jtv) - } - - case "FieldValue": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected FieldValue to be of type string, got %T instead", value) - } - sv.FieldValue = ptr.String(jtv) + case "CanvasSizeOptions": + if err := awsRestjson1_deserializeDocumentGridLayoutCanvasSizeOptions(&sv.CanvasSizeOptions, value); err != nil { + return err } default: @@ -35836,7 +42758,7 @@ func awsRestjson1_deserializeDocumentDataPathValue(v **types.DataPathValue, valu return nil } -func awsRestjson1_deserializeDocumentDataPathValueList(v *[]types.DataPathValue, value interface{}) error { +func awsRestjson1_deserializeDocumentDefaultInteractiveLayoutConfiguration(v **types.DefaultInteractiveLayoutConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -35844,33 +42766,40 @@ func awsRestjson1_deserializeDocumentDataPathValueList(v *[]types.DataPathValue, return nil } - shape, ok := value.([]interface{}) + shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.DataPathValue + var sv *types.DefaultInteractiveLayoutConfiguration if *v == nil { - cv = []types.DataPathValue{} + sv = &types.DefaultInteractiveLayoutConfiguration{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col types.DataPathValue - destAddr := &col - if err := awsRestjson1_deserializeDocumentDataPathValue(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) + for key, value := range shape { + switch key { + case "FreeForm": + if err := awsRestjson1_deserializeDocumentDefaultFreeFormLayoutConfiguration(&sv.FreeForm, value); err != nil { + return err + } + + case "Grid": + if err := awsRestjson1_deserializeDocumentDefaultGridLayoutConfiguration(&sv.Grid, value); err != nil { + return err + } + + default: + _, _ = key, value + } } - *v = cv + *v = sv return nil } -func awsRestjson1_deserializeDocumentDataPointDrillUpDownOption(v **types.DataPointDrillUpDownOption, value interface{}) error { +func awsRestjson1_deserializeDocumentDefaultNewSheetConfiguration(v **types.DefaultNewSheetConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -35883,22 +42812,32 @@ func awsRestjson1_deserializeDocumentDataPointDrillUpDownOption(v **types.DataPo return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DataPointDrillUpDownOption + var sv *types.DefaultNewSheetConfiguration if *v == nil { - sv = &types.DataPointDrillUpDownOption{} + sv = &types.DefaultNewSheetConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "AvailabilityStatus": + case "InteractiveLayoutConfiguration": + if err := awsRestjson1_deserializeDocumentDefaultInteractiveLayoutConfiguration(&sv.InteractiveLayoutConfiguration, value); err != nil { + return err + } + + case "PaginatedLayoutConfiguration": + if err := awsRestjson1_deserializeDocumentDefaultPaginatedLayoutConfiguration(&sv.PaginatedLayoutConfiguration, value); err != nil { + return err + } + + case "SheetContentType": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected DashboardBehavior to be of type string, got %T instead", value) + return fmt.Errorf("expected SheetContentType to be of type string, got %T instead", value) } - sv.AvailabilityStatus = types.DashboardBehavior(jtv) + sv.SheetContentType = types.SheetContentType(jtv) } default: @@ -35910,7 +42849,7 @@ func awsRestjson1_deserializeDocumentDataPointDrillUpDownOption(v **types.DataPo return nil } -func awsRestjson1_deserializeDocumentDataPointMenuLabelOption(v **types.DataPointMenuLabelOption, value interface{}) error { +func awsRestjson1_deserializeDocumentDefaultPaginatedLayoutConfiguration(v **types.DefaultPaginatedLayoutConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -35923,22 +42862,18 @@ func awsRestjson1_deserializeDocumentDataPointMenuLabelOption(v **types.DataPoin return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DataPointMenuLabelOption + var sv *types.DefaultPaginatedLayoutConfiguration if *v == nil { - sv = &types.DataPointMenuLabelOption{} + sv = &types.DefaultPaginatedLayoutConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "AvailabilityStatus": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected DashboardBehavior to be of type string, got %T instead", value) - } - sv.AvailabilityStatus = types.DashboardBehavior(jtv) + case "SectionBased": + if err := awsRestjson1_deserializeDocumentDefaultSectionBasedLayoutConfiguration(&sv.SectionBased, value); err != nil { + return err } default: @@ -35950,7 +42885,7 @@ func awsRestjson1_deserializeDocumentDataPointMenuLabelOption(v **types.DataPoin return nil } -func awsRestjson1_deserializeDocumentDataPointTooltipOption(v **types.DataPointTooltipOption, value interface{}) error { +func awsRestjson1_deserializeDocumentDefaultSectionBasedLayoutConfiguration(v **types.DefaultSectionBasedLayoutConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -35963,22 +42898,18 @@ func awsRestjson1_deserializeDocumentDataPointTooltipOption(v **types.DataPointT return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DataPointTooltipOption + var sv *types.DefaultSectionBasedLayoutConfiguration if *v == nil { - sv = &types.DataPointTooltipOption{} + sv = &types.DefaultSectionBasedLayoutConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "AvailabilityStatus": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected DashboardBehavior to be of type string, got %T instead", value) - } - sv.AvailabilityStatus = types.DashboardBehavior(jtv) + case "CanvasSizeOptions": + if err := awsRestjson1_deserializeDocumentSectionBasedLayoutCanvasSizeOptions(&sv.CanvasSizeOptions, value); err != nil { + return err } default: @@ -35990,7 +42921,7 @@ func awsRestjson1_deserializeDocumentDataPointTooltipOption(v **types.DataPointT return nil } -func awsRestjson1_deserializeDocumentDataSet(v **types.DataSet, value interface{}) error { +func awsRestjson1_deserializeDocumentDestinationParameterValueConfiguration(v **types.DestinationParameterValueConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -36003,139 +42934,50 @@ func awsRestjson1_deserializeDocumentDataSet(v **types.DataSet, value interface{ return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DataSet + var sv *types.DestinationParameterValueConfiguration if *v == nil { - sv = &types.DataSet{} + sv = &types.DestinationParameterValueConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "Arn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.Arn = ptr.String(jtv) - } - - case "ColumnGroups": - if err := awsRestjson1_deserializeDocumentColumnGroupList(&sv.ColumnGroups, value); err != nil { - return err - } - - case "ColumnLevelPermissionRules": - if err := awsRestjson1_deserializeDocumentColumnLevelPermissionRuleList(&sv.ColumnLevelPermissionRules, value); err != nil { + case "CustomValuesConfiguration": + if err := awsRestjson1_deserializeDocumentCustomValuesConfiguration(&sv.CustomValuesConfiguration, value); err != nil { return err } - case "ConsumedSpiceCapacityInBytes": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected Long to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.ConsumedSpiceCapacityInBytes = i64 - } - - case "CreatedTime": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.CreatedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - - } - } - - case "DataSetId": + case "SelectAllValueOptions": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) + return fmt.Errorf("expected SelectAllValueOptions to be of type string, got %T instead", value) } - sv.DataSetId = ptr.String(jtv) - } - - case "DataSetUsageConfiguration": - if err := awsRestjson1_deserializeDocumentDataSetUsageConfiguration(&sv.DataSetUsageConfiguration, value); err != nil { - return err + sv.SelectAllValueOptions = types.SelectAllValueOptions(jtv) } - case "FieldFolders": - if err := awsRestjson1_deserializeDocumentFieldFolderMap(&sv.FieldFolders, value); err != nil { + case "SourceColumn": + if err := awsRestjson1_deserializeDocumentColumnIdentifier(&sv.SourceColumn, value); err != nil { return err } - case "ImportMode": + case "SourceField": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected DataSetImportMode to be of type string, got %T instead", value) - } - sv.ImportMode = types.DataSetImportMode(jtv) - } - - case "LastUpdatedTime": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.LastUpdatedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - + return fmt.Errorf("expected FieldId to be of type string, got %T instead", value) } + sv.SourceField = ptr.String(jtv) } - case "LogicalTableMap": - if err := awsRestjson1_deserializeDocumentLogicalTableMap(&sv.LogicalTableMap, value); err != nil { - return err - } - - case "Name": + case "SourceParameterName": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) + return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Name = ptr.String(jtv) - } - - case "OutputColumns": - if err := awsRestjson1_deserializeDocumentOutputColumnList(&sv.OutputColumns, value); err != nil { - return err - } - - case "PhysicalTableMap": - if err := awsRestjson1_deserializeDocumentPhysicalTableMap(&sv.PhysicalTableMap, value); err != nil { - return err - } - - case "RowLevelPermissionDataSet": - if err := awsRestjson1_deserializeDocumentRowLevelPermissionDataSet(&sv.RowLevelPermissionDataSet, value); err != nil { - return err - } - - case "RowLevelPermissionTagConfiguration": - if err := awsRestjson1_deserializeDocumentRowLevelPermissionTagConfiguration(&sv.RowLevelPermissionTagConfiguration, value); err != nil { - return err + sv.SourceParameterName = ptr.String(jtv) } default: @@ -36147,43 +42989,7 @@ func awsRestjson1_deserializeDocumentDataSet(v **types.DataSet, value interface{ return nil } -func awsRestjson1_deserializeDocumentDataSetArnsList(v *[]string, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []string - if *v == nil { - cv = []string{} - } else { - cv = *v - } - - for _, value := range shape { - var col string - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - col = jtv - } - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsRestjson1_deserializeDocumentDataSetConfiguration(v **types.DataSetConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentDimensionField(v **types.DimensionField, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -36196,32 +43002,28 @@ func awsRestjson1_deserializeDocumentDataSetConfiguration(v **types.DataSetConfi return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DataSetConfiguration + var sv *types.DimensionField if *v == nil { - sv = &types.DataSetConfiguration{} + sv = &types.DimensionField{} } else { sv = *v } for key, value := range shape { switch key { - case "ColumnGroupSchemaList": - if err := awsRestjson1_deserializeDocumentColumnGroupSchemaList(&sv.ColumnGroupSchemaList, value); err != nil { + case "CategoricalDimensionField": + if err := awsRestjson1_deserializeDocumentCategoricalDimensionField(&sv.CategoricalDimensionField, value); err != nil { return err } - case "DataSetSchema": - if err := awsRestjson1_deserializeDocumentDataSetSchema(&sv.DataSetSchema, value); err != nil { + case "DateDimensionField": + if err := awsRestjson1_deserializeDocumentDateDimensionField(&sv.DateDimensionField, value); err != nil { return err } - case "Placeholder": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.Placeholder = ptr.String(jtv) + case "NumericalDimensionField": + if err := awsRestjson1_deserializeDocumentNumericalDimensionField(&sv.NumericalDimensionField, value); err != nil { + return err } default: @@ -36233,7 +43035,7 @@ func awsRestjson1_deserializeDocumentDataSetConfiguration(v **types.DataSetConfi return nil } -func awsRestjson1_deserializeDocumentDataSetConfigurationList(v *[]types.DataSetConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentDimensionFieldList(v *[]types.DimensionField, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -36246,17 +43048,17 @@ func awsRestjson1_deserializeDocumentDataSetConfigurationList(v *[]types.DataSet return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.DataSetConfiguration + var cv []types.DimensionField if *v == nil { - cv = []types.DataSetConfiguration{} + cv = []types.DimensionField{} } else { cv = *v } for _, value := range shape { - var col types.DataSetConfiguration + var col types.DimensionField destAddr := &col - if err := awsRestjson1_deserializeDocumentDataSetConfiguration(&destAddr, value); err != nil { + if err := awsRestjson1_deserializeDocumentDimensionField(&destAddr, value); err != nil { return err } col = *destAddr @@ -36267,7 +43069,7 @@ func awsRestjson1_deserializeDocumentDataSetConfigurationList(v *[]types.DataSet return nil } -func awsRestjson1_deserializeDocumentDataSetIdentifierDeclaration(v **types.DataSetIdentifierDeclaration, value interface{}) error { +func awsRestjson1_deserializeDocumentDisplayFormatOptions(v **types.DisplayFormatOptions, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -36280,31 +43082,121 @@ func awsRestjson1_deserializeDocumentDataSetIdentifierDeclaration(v **types.Data return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DataSetIdentifierDeclaration + var sv *types.DisplayFormatOptions if *v == nil { - sv = &types.DataSetIdentifierDeclaration{} + sv = &types.DisplayFormatOptions{} } else { sv = *v } for key, value := range shape { switch key { - case "DataSetArn": + case "BlankCellFormat": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + return fmt.Errorf("expected LimitedString to be of type string, got %T instead", value) } - sv.DataSetArn = ptr.String(jtv) + sv.BlankCellFormat = ptr.String(jtv) } - case "Identifier": + case "CurrencySymbol": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected DataSetIdentifier to be of type string, got %T instead", value) + return fmt.Errorf("expected LimitedString to be of type string, got %T instead", value) } - sv.Identifier = ptr.String(jtv) + sv.CurrencySymbol = ptr.String(jtv) + } + + case "DateFormat": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected LimitedString to be of type string, got %T instead", value) + } + sv.DateFormat = ptr.String(jtv) + } + + case "DecimalSeparator": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TopicNumericSeparatorSymbol to be of type string, got %T instead", value) + } + sv.DecimalSeparator = types.TopicNumericSeparatorSymbol(jtv) + } + + case "FractionDigits": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.FractionDigits = int32(i64) + } + + case "GroupingSeparator": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected LimitedString to be of type string, got %T instead", value) + } + sv.GroupingSeparator = ptr.String(jtv) + } + + case "NegativeFormat": + if err := awsRestjson1_deserializeDocumentNegativeFormat(&sv.NegativeFormat, value); err != nil { + return err + } + + case "Prefix": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected LimitedString to be of type string, got %T instead", value) + } + sv.Prefix = ptr.String(jtv) + } + + case "Suffix": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected LimitedString to be of type string, got %T instead", value) + } + sv.Suffix = ptr.String(jtv) + } + + case "UnitScaler": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NumberScale to be of type string, got %T instead", value) + } + sv.UnitScaler = types.NumberScale(jtv) + } + + case "UseBlankCellFormat": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + } + sv.UseBlankCellFormat = jtv + } + + case "UseGrouping": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + } + sv.UseGrouping = jtv } default: @@ -36316,7 +43208,7 @@ func awsRestjson1_deserializeDocumentDataSetIdentifierDeclaration(v **types.Data return nil } -func awsRestjson1_deserializeDocumentDataSetIdentifierDeclarationList(v *[]types.DataSetIdentifierDeclaration, value interface{}) error { +func awsRestjson1_deserializeDocumentDomainNotWhitelistedException(v **types.DomainNotWhitelistedException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -36324,33 +43216,48 @@ func awsRestjson1_deserializeDocumentDataSetIdentifierDeclarationList(v *[]types return nil } - shape, ok := value.([]interface{}) + shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.DataSetIdentifierDeclaration + var sv *types.DomainNotWhitelistedException if *v == nil { - cv = []types.DataSetIdentifierDeclaration{} + sv = &types.DomainNotWhitelistedException{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col types.DataSetIdentifierDeclaration - destAddr := &col - if err := awsRestjson1_deserializeDocumentDataSetIdentifierDeclaration(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) + for key, value := range shape { + switch key { + case "Message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + case "RequestId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.RequestId = ptr.String(jtv) + } + + default: + _, _ = key, value + } } - *v = cv + *v = sv return nil } -func awsRestjson1_deserializeDocumentDataSetRefreshProperties(v **types.DataSetRefreshProperties, value interface{}) error { +func awsRestjson1_deserializeDocumentDonutCenterOptions(v **types.DonutCenterOptions, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -36363,18 +43270,22 @@ func awsRestjson1_deserializeDocumentDataSetRefreshProperties(v **types.DataSetR return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DataSetRefreshProperties + var sv *types.DonutCenterOptions if *v == nil { - sv = &types.DataSetRefreshProperties{} + sv = &types.DonutCenterOptions{} } else { sv = *v } for key, value := range shape { switch key { - case "RefreshConfiguration": - if err := awsRestjson1_deserializeDocumentRefreshConfiguration(&sv.RefreshConfiguration, value); err != nil { - return err + case "LabelVisibility": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) + } + sv.LabelVisibility = types.Visibility(jtv) } default: @@ -36386,7 +43297,7 @@ func awsRestjson1_deserializeDocumentDataSetRefreshProperties(v **types.DataSetR return nil } -func awsRestjson1_deserializeDocumentDataSetSchema(v **types.DataSetSchema, value interface{}) error { +func awsRestjson1_deserializeDocumentDonutOptions(v **types.DonutOptions, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -36399,17 +43310,22 @@ func awsRestjson1_deserializeDocumentDataSetSchema(v **types.DataSetSchema, valu return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DataSetSchema + var sv *types.DonutOptions if *v == nil { - sv = &types.DataSetSchema{} + sv = &types.DonutOptions{} } else { sv = *v } for key, value := range shape { switch key { - case "ColumnSchemaList": - if err := awsRestjson1_deserializeDocumentColumnSchemaList(&sv.ColumnSchemaList, value); err != nil { + case "ArcOptions": + if err := awsRestjson1_deserializeDocumentArcOptions(&sv.ArcOptions, value); err != nil { + return err + } + + case "DonutCenterOptions": + if err := awsRestjson1_deserializeDocumentDonutCenterOptions(&sv.DonutCenterOptions, value); err != nil { return err } @@ -36422,7 +43338,7 @@ func awsRestjson1_deserializeDocumentDataSetSchema(v **types.DataSetSchema, valu return nil } -func awsRestjson1_deserializeDocumentDataSetSummary(v **types.DataSetSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentDrillDownFilter(v **types.DrillDownFilter, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -36435,104 +43351,28 @@ func awsRestjson1_deserializeDocumentDataSetSummary(v **types.DataSetSummary, va return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DataSetSummary + var sv *types.DrillDownFilter if *v == nil { - sv = &types.DataSetSummary{} + sv = &types.DrillDownFilter{} } else { sv = *v } for key, value := range shape { switch key { - case "Arn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.Arn = ptr.String(jtv) - } - - case "ColumnLevelPermissionRulesApplied": - if value != nil { - jtv, ok := value.(bool) - if !ok { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) - } - sv.ColumnLevelPermissionRulesApplied = jtv - } - - case "CreatedTime": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.CreatedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - - } - } - - case "DataSetId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) - } - sv.DataSetId = ptr.String(jtv) - } - - case "ImportMode": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected DataSetImportMode to be of type string, got %T instead", value) - } - sv.ImportMode = types.DataSetImportMode(jtv) - } - - case "LastUpdatedTime": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.LastUpdatedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - - } - } - - case "Name": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) - } - sv.Name = ptr.String(jtv) + case "CategoryFilter": + if err := awsRestjson1_deserializeDocumentCategoryDrillDownFilter(&sv.CategoryFilter, value); err != nil { + return err } - case "RowLevelPermissionDataSet": - if err := awsRestjson1_deserializeDocumentRowLevelPermissionDataSet(&sv.RowLevelPermissionDataSet, value); err != nil { + case "NumericEqualityFilter": + if err := awsRestjson1_deserializeDocumentNumericEqualityDrillDownFilter(&sv.NumericEqualityFilter, value); err != nil { return err } - case "RowLevelPermissionTagConfigurationApplied": - if value != nil { - jtv, ok := value.(bool) - if !ok { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) - } - sv.RowLevelPermissionTagConfigurationApplied = jtv + case "TimeRangeFilter": + if err := awsRestjson1_deserializeDocumentTimeRangeDrillDownFilter(&sv.TimeRangeFilter, value); err != nil { + return err } default: @@ -36544,7 +43384,7 @@ func awsRestjson1_deserializeDocumentDataSetSummary(v **types.DataSetSummary, va return nil } -func awsRestjson1_deserializeDocumentDataSetSummaryList(v *[]types.DataSetSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentDrillDownFilterList(v *[]types.DrillDownFilter, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -36557,17 +43397,17 @@ func awsRestjson1_deserializeDocumentDataSetSummaryList(v *[]types.DataSetSummar return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.DataSetSummary + var cv []types.DrillDownFilter if *v == nil { - cv = []types.DataSetSummary{} + cv = []types.DrillDownFilter{} } else { cv = *v } for _, value := range shape { - var col types.DataSetSummary + var col types.DrillDownFilter destAddr := &col - if err := awsRestjson1_deserializeDocumentDataSetSummary(&destAddr, value); err != nil { + if err := awsRestjson1_deserializeDocumentDrillDownFilter(&destAddr, value); err != nil { return err } col = *destAddr @@ -36578,7 +43418,7 @@ func awsRestjson1_deserializeDocumentDataSetSummaryList(v *[]types.DataSetSummar return nil } -func awsRestjson1_deserializeDocumentDataSetUsageConfiguration(v **types.DataSetUsageConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentDropDownControlDisplayOptions(v **types.DropDownControlDisplayOptions, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -36591,31 +43431,23 @@ func awsRestjson1_deserializeDocumentDataSetUsageConfiguration(v **types.DataSet return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DataSetUsageConfiguration + var sv *types.DropDownControlDisplayOptions if *v == nil { - sv = &types.DataSetUsageConfiguration{} + sv = &types.DropDownControlDisplayOptions{} } else { sv = *v } for key, value := range shape { switch key { - case "DisableUseAsDirectQuerySource": - if value != nil { - jtv, ok := value.(bool) - if !ok { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) - } - sv.DisableUseAsDirectQuerySource = jtv + case "SelectAllOptions": + if err := awsRestjson1_deserializeDocumentListControlSelectAllOptions(&sv.SelectAllOptions, value); err != nil { + return err } - case "DisableUseAsImportedSource": - if value != nil { - jtv, ok := value.(bool) - if !ok { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) - } - sv.DisableUseAsImportedSource = jtv + case "TitleOptions": + if err := awsRestjson1_deserializeDocumentLabelOptions(&sv.TitleOptions, value); err != nil { + return err } default: @@ -36627,7 +43459,7 @@ func awsRestjson1_deserializeDocumentDataSetUsageConfiguration(v **types.DataSet return nil } -func awsRestjson1_deserializeDocumentDataSource(v **types.DataSource, value interface{}) error { +func awsRestjson1_deserializeDocumentDynamicDefaultValue(v **types.DynamicDefaultValue, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -36640,124 +43472,82 @@ func awsRestjson1_deserializeDocumentDataSource(v **types.DataSource, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DataSource + var sv *types.DynamicDefaultValue if *v == nil { - sv = &types.DataSource{} + sv = &types.DynamicDefaultValue{} } else { sv = *v } for key, value := range shape { switch key { - case "AlternateDataSourceParameters": - if err := awsRestjson1_deserializeDocumentDataSourceParametersList(&sv.AlternateDataSourceParameters, value); err != nil { + case "DefaultValueColumn": + if err := awsRestjson1_deserializeDocumentColumnIdentifier(&sv.DefaultValueColumn, value); err != nil { return err } - case "Arn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.Arn = ptr.String(jtv) - } - - case "CreatedTime": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.CreatedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - - } - } - - case "DataSourceId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) - } - sv.DataSourceId = ptr.String(jtv) - } - - case "DataSourceParameters": - if err := awsRestjson1_deserializeDocumentDataSourceParameters(&sv.DataSourceParameters, value); err != nil { + case "GroupNameColumn": + if err := awsRestjson1_deserializeDocumentColumnIdentifier(&sv.GroupNameColumn, value); err != nil { return err } - case "ErrorInfo": - if err := awsRestjson1_deserializeDocumentDataSourceErrorInfo(&sv.ErrorInfo, value); err != nil { + case "UserNameColumn": + if err := awsRestjson1_deserializeDocumentColumnIdentifier(&sv.UserNameColumn, value); err != nil { return err } - case "LastUpdatedTime": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.LastUpdatedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + default: + _, _ = key, value - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + } + } + *v = sv + return nil +} - } - } +func awsRestjson1_deserializeDocumentEmptyVisual(v **types.EmptyVisual, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } - case "Name": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) - } - sv.Name = ptr.String(jtv) - } + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } - case "SecretArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected SecretArn to be of type string, got %T instead", value) - } - sv.SecretArn = ptr.String(jtv) - } + var sv *types.EmptyVisual + if *v == nil { + sv = &types.EmptyVisual{} + } else { + sv = *v + } - case "SslProperties": - if err := awsRestjson1_deserializeDocumentSslProperties(&sv.SslProperties, value); err != nil { + for key, value := range shape { + switch key { + case "Actions": + if err := awsRestjson1_deserializeDocumentVisualCustomActionList(&sv.Actions, value); err != nil { return err } - case "Status": + case "DataSetIdentifier": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ResourceStatus to be of type string, got %T instead", value) + return fmt.Errorf("expected DataSetIdentifier to be of type string, got %T instead", value) } - sv.Status = types.ResourceStatus(jtv) + sv.DataSetIdentifier = ptr.String(jtv) } - case "Type": + case "VisualId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected DataSourceType to be of type string, got %T instead", value) + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) } - sv.Type = types.DataSourceType(jtv) - } - - case "VpcConnectionProperties": - if err := awsRestjson1_deserializeDocumentVpcConnectionProperties(&sv.VpcConnectionProperties, value); err != nil { - return err + sv.VisualId = ptr.String(jtv) } default: @@ -36769,7 +43559,7 @@ func awsRestjson1_deserializeDocumentDataSource(v **types.DataSource, value inte return nil } -func awsRestjson1_deserializeDocumentDataSourceErrorInfo(v **types.DataSourceErrorInfo, value interface{}) error { +func awsRestjson1_deserializeDocumentEntity(v **types.Entity, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -36782,31 +43572,22 @@ func awsRestjson1_deserializeDocumentDataSourceErrorInfo(v **types.DataSourceErr return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DataSourceErrorInfo + var sv *types.Entity if *v == nil { - sv = &types.DataSourceErrorInfo{} + sv = &types.Entity{} } else { sv = *v } for key, value := range shape { switch key { - case "Message": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.Message = ptr.String(jtv) - } - - case "Type": + case "Path": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected DataSourceErrorInfoType to be of type string, got %T instead", value) + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Type = types.DataSourceErrorInfoType(jtv) + sv.Path = ptr.String(jtv) } default: @@ -36818,7 +43599,7 @@ func awsRestjson1_deserializeDocumentDataSourceErrorInfo(v **types.DataSourceErr return nil } -func awsRestjson1_deserializeDocumentDataSourceList(v *[]types.DataSource, value interface{}) error { +func awsRestjson1_deserializeDocumentEntityList(v *[]types.Entity, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -36831,17 +43612,17 @@ func awsRestjson1_deserializeDocumentDataSourceList(v *[]types.DataSource, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.DataSource + var cv []types.Entity if *v == nil { - cv = []types.DataSource{} + cv = []types.Entity{} } else { cv = *v } for _, value := range shape { - var col types.DataSource + var col types.Entity destAddr := &col - if err := awsRestjson1_deserializeDocumentDataSource(&destAddr, value); err != nil { + if err := awsRestjson1_deserializeDocumentEntity(&destAddr, value); err != nil { return err } col = *destAddr @@ -36852,7 +43633,7 @@ func awsRestjson1_deserializeDocumentDataSourceList(v *[]types.DataSource, value return nil } -func awsRestjson1_deserializeDocumentDataSourceParameters(v *types.DataSourceParameters, value interface{}) error { +func awsRestjson1_deserializeDocumentErrorInfo(v **types.ErrorInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -36865,254 +43646,208 @@ func awsRestjson1_deserializeDocumentDataSourceParameters(v *types.DataSourcePar return fmt.Errorf("unexpected JSON type %v", value) } - var uv types.DataSourceParameters -loop: + var sv *types.ErrorInfo + if *v == nil { + sv = &types.ErrorInfo{} + } else { + sv = *v + } + for key, value := range shape { - if value == nil { - continue - } switch key { - case "AmazonElasticsearchParameters": - var mv types.AmazonElasticsearchParameters - destAddr := &mv - if err := awsRestjson1_deserializeDocumentAmazonElasticsearchParameters(&destAddr, value); err != nil { - return err + case "Message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) } - mv = *destAddr - uv = &types.DataSourceParametersMemberAmazonElasticsearchParameters{Value: mv} - break loop - case "AmazonOpenSearchParameters": - var mv types.AmazonOpenSearchParameters - destAddr := &mv - if err := awsRestjson1_deserializeDocumentAmazonOpenSearchParameters(&destAddr, value); err != nil { - return err + case "Type": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected IngestionErrorType to be of type string, got %T instead", value) + } + sv.Type = types.IngestionErrorType(jtv) } - mv = *destAddr - uv = &types.DataSourceParametersMemberAmazonOpenSearchParameters{Value: mv} - break loop - case "AthenaParameters": - var mv types.AthenaParameters - destAddr := &mv - if err := awsRestjson1_deserializeDocumentAthenaParameters(&destAddr, value); err != nil { - return err - } - mv = *destAddr - uv = &types.DataSourceParametersMemberAthenaParameters{Value: mv} - break loop + default: + _, _ = key, value - case "AuroraParameters": - var mv types.AuroraParameters - destAddr := &mv - if err := awsRestjson1_deserializeDocumentAuroraParameters(&destAddr, value); err != nil { - return err - } - mv = *destAddr - uv = &types.DataSourceParametersMemberAuroraParameters{Value: mv} - break loop + } + } + *v = sv + return nil +} - case "AuroraPostgreSqlParameters": - var mv types.AuroraPostgreSqlParameters - destAddr := &mv - if err := awsRestjson1_deserializeDocumentAuroraPostgreSqlParameters(&destAddr, value); err != nil { - return err - } - mv = *destAddr - uv = &types.DataSourceParametersMemberAuroraPostgreSqlParameters{Value: mv} - break loop +func awsRestjson1_deserializeDocumentExasolParameters(v **types.ExasolParameters, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } - case "AwsIotAnalyticsParameters": - var mv types.AwsIotAnalyticsParameters - destAddr := &mv - if err := awsRestjson1_deserializeDocumentAwsIotAnalyticsParameters(&destAddr, value); err != nil { - return err - } - mv = *destAddr - uv = &types.DataSourceParametersMemberAwsIotAnalyticsParameters{Value: mv} - break loop + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } - case "DatabricksParameters": - var mv types.DatabricksParameters - destAddr := &mv - if err := awsRestjson1_deserializeDocumentDatabricksParameters(&destAddr, value); err != nil { - return err - } - mv = *destAddr - uv = &types.DataSourceParametersMemberDatabricksParameters{Value: mv} - break loop + var sv *types.ExasolParameters + if *v == nil { + sv = &types.ExasolParameters{} + } else { + sv = *v + } - case "ExasolParameters": - var mv types.ExasolParameters - destAddr := &mv - if err := awsRestjson1_deserializeDocumentExasolParameters(&destAddr, value); err != nil { - return err + for key, value := range shape { + switch key { + case "Host": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Host to be of type string, got %T instead", value) + } + sv.Host = ptr.String(jtv) } - mv = *destAddr - uv = &types.DataSourceParametersMemberExasolParameters{Value: mv} - break loop - case "JiraParameters": - var mv types.JiraParameters - destAddr := &mv - if err := awsRestjson1_deserializeDocumentJiraParameters(&destAddr, value); err != nil { - return err + case "Port": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected Port to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.Port = int32(i64) } - mv = *destAddr - uv = &types.DataSourceParametersMemberJiraParameters{Value: mv} - break loop - case "MariaDbParameters": - var mv types.MariaDbParameters - destAddr := &mv - if err := awsRestjson1_deserializeDocumentMariaDbParameters(&destAddr, value); err != nil { - return err - } - mv = *destAddr - uv = &types.DataSourceParametersMemberMariaDbParameters{Value: mv} - break loop + default: + _, _ = key, value - case "MySqlParameters": - var mv types.MySqlParameters - destAddr := &mv - if err := awsRestjson1_deserializeDocumentMySqlParameters(&destAddr, value); err != nil { - return err - } - mv = *destAddr - uv = &types.DataSourceParametersMemberMySqlParameters{Value: mv} - break loop + } + } + *v = sv + return nil +} - case "OracleParameters": - var mv types.OracleParameters - destAddr := &mv - if err := awsRestjson1_deserializeDocumentOracleParameters(&destAddr, value); err != nil { - return err - } - mv = *destAddr - uv = &types.DataSourceParametersMemberOracleParameters{Value: mv} - break loop +func awsRestjson1_deserializeDocumentExcludePeriodConfiguration(v **types.ExcludePeriodConfiguration, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } - case "PostgreSqlParameters": - var mv types.PostgreSqlParameters - destAddr := &mv - if err := awsRestjson1_deserializeDocumentPostgreSqlParameters(&destAddr, value); err != nil { - return err - } - mv = *destAddr - uv = &types.DataSourceParametersMemberPostgreSqlParameters{Value: mv} - break loop + var sv *types.ExcludePeriodConfiguration + if *v == nil { + sv = &types.ExcludePeriodConfiguration{} + } else { + sv = *v + } - case "PrestoParameters": - var mv types.PrestoParameters - destAddr := &mv - if err := awsRestjson1_deserializeDocumentPrestoParameters(&destAddr, value); err != nil { - return err + for key, value := range shape { + switch key { + case "Amount": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.Amount = ptr.Int32(int32(i64)) } - mv = *destAddr - uv = &types.DataSourceParametersMemberPrestoParameters{Value: mv} - break loop - case "RdsParameters": - var mv types.RdsParameters - destAddr := &mv - if err := awsRestjson1_deserializeDocumentRdsParameters(&destAddr, value); err != nil { - return err + case "Granularity": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TimeGranularity to be of type string, got %T instead", value) + } + sv.Granularity = types.TimeGranularity(jtv) } - mv = *destAddr - uv = &types.DataSourceParametersMemberRdsParameters{Value: mv} - break loop - case "RedshiftParameters": - var mv types.RedshiftParameters - destAddr := &mv - if err := awsRestjson1_deserializeDocumentRedshiftParameters(&destAddr, value); err != nil { - return err + case "Status": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected WidgetStatus to be of type string, got %T instead", value) + } + sv.Status = types.WidgetStatus(jtv) } - mv = *destAddr - uv = &types.DataSourceParametersMemberRedshiftParameters{Value: mv} - break loop - case "S3Parameters": - var mv types.S3Parameters - destAddr := &mv - if err := awsRestjson1_deserializeDocumentS3Parameters(&destAddr, value); err != nil { - return err - } - mv = *destAddr - uv = &types.DataSourceParametersMemberS3Parameters{Value: mv} - break loop + default: + _, _ = key, value - case "ServiceNowParameters": - var mv types.ServiceNowParameters - destAddr := &mv - if err := awsRestjson1_deserializeDocumentServiceNowParameters(&destAddr, value); err != nil { - return err - } - mv = *destAddr - uv = &types.DataSourceParametersMemberServiceNowParameters{Value: mv} - break loop + } + } + *v = sv + return nil +} - case "SnowflakeParameters": - var mv types.SnowflakeParameters - destAddr := &mv - if err := awsRestjson1_deserializeDocumentSnowflakeParameters(&destAddr, value); err != nil { - return err - } - mv = *destAddr - uv = &types.DataSourceParametersMemberSnowflakeParameters{Value: mv} - break loop +func awsRestjson1_deserializeDocumentExplicitHierarchy(v **types.ExplicitHierarchy, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } - case "SparkParameters": - var mv types.SparkParameters - destAddr := &mv - if err := awsRestjson1_deserializeDocumentSparkParameters(&destAddr, value); err != nil { - return err - } - mv = *destAddr - uv = &types.DataSourceParametersMemberSparkParameters{Value: mv} - break loop + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } - case "SqlServerParameters": - var mv types.SqlServerParameters - destAddr := &mv - if err := awsRestjson1_deserializeDocumentSqlServerParameters(&destAddr, value); err != nil { + var sv *types.ExplicitHierarchy + if *v == nil { + sv = &types.ExplicitHierarchy{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Columns": + if err := awsRestjson1_deserializeDocumentExplicitHierarchyColumnList(&sv.Columns, value); err != nil { return err } - mv = *destAddr - uv = &types.DataSourceParametersMemberSqlServerParameters{Value: mv} - break loop - case "TeradataParameters": - var mv types.TeradataParameters - destAddr := &mv - if err := awsRestjson1_deserializeDocumentTeradataParameters(&destAddr, value); err != nil { + case "DrillDownFilters": + if err := awsRestjson1_deserializeDocumentDrillDownFilterList(&sv.DrillDownFilters, value); err != nil { return err } - mv = *destAddr - uv = &types.DataSourceParametersMemberTeradataParameters{Value: mv} - break loop - case "TwitterParameters": - var mv types.TwitterParameters - destAddr := &mv - if err := awsRestjson1_deserializeDocumentTwitterParameters(&destAddr, value); err != nil { - return err + case "HierarchyId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected HierarchyId to be of type string, got %T instead", value) + } + sv.HierarchyId = ptr.String(jtv) } - mv = *destAddr - uv = &types.DataSourceParametersMemberTwitterParameters{Value: mv} - break loop default: - uv = &types.UnknownUnionMember{Tag: key} - break loop + _, _ = key, value } } - *v = uv + *v = sv return nil } -func awsRestjson1_deserializeDocumentDataSourceParametersList(v *[]types.DataSourceParameters, value interface{}) error { +func awsRestjson1_deserializeDocumentExplicitHierarchyColumnList(v *[]types.ColumnIdentifier, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -37125,18 +43860,20 @@ func awsRestjson1_deserializeDocumentDataSourceParametersList(v *[]types.DataSou return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.DataSourceParameters + var cv []types.ColumnIdentifier if *v == nil { - cv = []types.DataSourceParameters{} + cv = []types.ColumnIdentifier{} } else { cv = *v } for _, value := range shape { - var col types.DataSourceParameters - if err := awsRestjson1_deserializeDocumentDataSourceParameters(&col, value); err != nil { + var col types.ColumnIdentifier + destAddr := &col + if err := awsRestjson1_deserializeDocumentColumnIdentifier(&destAddr, value); err != nil { return err } + col = *destAddr cv = append(cv, col) } @@ -37144,7 +43881,7 @@ func awsRestjson1_deserializeDocumentDataSourceParametersList(v *[]types.DataSou return nil } -func awsRestjson1_deserializeDocumentDataSourceSummary(v **types.DataSourceSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentExportHiddenFieldsOption(v **types.ExportHiddenFieldsOption, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -37157,81 +43894,62 @@ func awsRestjson1_deserializeDocumentDataSourceSummary(v **types.DataSourceSumma return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DataSourceSummary + var sv *types.ExportHiddenFieldsOption if *v == nil { - sv = &types.DataSourceSummary{} + sv = &types.ExportHiddenFieldsOption{} } else { sv = *v } for key, value := range shape { switch key { - case "Arn": + case "AvailabilityStatus": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.Arn = ptr.String(jtv) - } - - case "CreatedTime": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.CreatedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - + return fmt.Errorf("expected DashboardBehavior to be of type string, got %T instead", value) } + sv.AvailabilityStatus = types.DashboardBehavior(jtv) } - case "DataSourceId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) - } - sv.DataSourceId = ptr.String(jtv) - } + default: + _, _ = key, value - case "LastUpdatedTime": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.LastUpdatedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + } + } + *v = sv + return nil +} - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) +func awsRestjson1_deserializeDocumentExportToCSVOption(v **types.ExportToCSVOption, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } - } - } + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } - case "Name": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) - } - sv.Name = ptr.String(jtv) - } + var sv *types.ExportToCSVOption + if *v == nil { + sv = &types.ExportToCSVOption{} + } else { + sv = *v + } - case "Type": + for key, value := range shape { + switch key { + case "AvailabilityStatus": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected DataSourceType to be of type string, got %T instead", value) + return fmt.Errorf("expected DashboardBehavior to be of type string, got %T instead", value) } - sv.Type = types.DataSourceType(jtv) + sv.AvailabilityStatus = types.DashboardBehavior(jtv) } default: @@ -37243,7 +43961,7 @@ func awsRestjson1_deserializeDocumentDataSourceSummary(v **types.DataSourceSumma return nil } -func awsRestjson1_deserializeDocumentDataSourceSummaryList(v *[]types.DataSourceSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentExportWithHiddenFieldsOption(v **types.ExportWithHiddenFieldsOption, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -37251,33 +43969,39 @@ func awsRestjson1_deserializeDocumentDataSourceSummaryList(v *[]types.DataSource return nil } - shape, ok := value.([]interface{}) + shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.DataSourceSummary + var sv *types.ExportWithHiddenFieldsOption if *v == nil { - cv = []types.DataSourceSummary{} + sv = &types.ExportWithHiddenFieldsOption{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col types.DataSourceSummary - destAddr := &col - if err := awsRestjson1_deserializeDocumentDataSourceSummary(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) + for key, value := range shape { + switch key { + case "AvailabilityStatus": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DashboardBehavior to be of type string, got %T instead", value) + } + sv.AvailabilityStatus = types.DashboardBehavior(jtv) + } + + default: + _, _ = key, value + } } - *v = cv + *v = sv return nil } -func awsRestjson1_deserializeDocumentDateAxisOptions(v **types.DateAxisOptions, value interface{}) error { +func awsRestjson1_deserializeDocumentFieldBasedTooltip(v **types.FieldBasedTooltip, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -37290,22 +44014,36 @@ func awsRestjson1_deserializeDocumentDateAxisOptions(v **types.DateAxisOptions, return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DateAxisOptions + var sv *types.FieldBasedTooltip if *v == nil { - sv = &types.DateAxisOptions{} + sv = &types.FieldBasedTooltip{} } else { sv = *v } for key, value := range shape { switch key { - case "MissingDateVisibility": + case "AggregationVisibility": if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) } - sv.MissingDateVisibility = types.Visibility(jtv) + sv.AggregationVisibility = types.Visibility(jtv) + } + + case "TooltipFields": + if err := awsRestjson1_deserializeDocumentTooltipItemList(&sv.TooltipFields, value); err != nil { + return err + } + + case "TooltipTitleType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TooltipTitleType to be of type string, got %T instead", value) + } + sv.TooltipTitleType = types.TooltipTitleType(jtv) } default: @@ -37317,7 +44055,7 @@ func awsRestjson1_deserializeDocumentDateAxisOptions(v **types.DateAxisOptions, return nil } -func awsRestjson1_deserializeDocumentDateDimensionField(v **types.DateDimensionField, value interface{}) error { +func awsRestjson1_deserializeDocumentFieldFolder(v **types.FieldFolder, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -37330,29 +44068,95 @@ func awsRestjson1_deserializeDocumentDateDimensionField(v **types.DateDimensionF return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DateDimensionField + var sv *types.FieldFolder if *v == nil { - sv = &types.DateDimensionField{} + sv = &types.FieldFolder{} } else { sv = *v } for key, value := range shape { switch key { - case "Column": - if err := awsRestjson1_deserializeDocumentColumnIdentifier(&sv.Column, value); err != nil { + case "columns": + if err := awsRestjson1_deserializeDocumentFolderColumnList(&sv.Columns, value); err != nil { return err } - case "DateGranularity": + case "description": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected TimeGranularity to be of type string, got %T instead", value) + return fmt.Errorf("expected FieldFolderDescription to be of type string, got %T instead", value) } - sv.DateGranularity = types.TimeGranularity(jtv) + sv.Description = ptr.String(jtv) } + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentFieldFolderMap(v *map[string]types.FieldFolder, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var mv map[string]types.FieldFolder + if *v == nil { + mv = map[string]types.FieldFolder{} + } else { + mv = *v + } + + for key, value := range shape { + var parsedVal types.FieldFolder + mapVar := parsedVal + destAddr := &mapVar + if err := awsRestjson1_deserializeDocumentFieldFolder(&destAddr, value); err != nil { + return err + } + parsedVal = *destAddr + mv[key] = parsedVal + + } + *v = mv + return nil +} + +func awsRestjson1_deserializeDocumentFieldLabelType(v **types.FieldLabelType, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.FieldLabelType + if *v == nil { + sv = &types.FieldLabelType{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { case "FieldId": if value != nil { jtv, ok := value.(string) @@ -37362,18 +44166,13 @@ func awsRestjson1_deserializeDocumentDateDimensionField(v **types.DateDimensionF sv.FieldId = ptr.String(jtv) } - case "FormatConfiguration": - if err := awsRestjson1_deserializeDocumentDateTimeFormatConfiguration(&sv.FormatConfiguration, value); err != nil { - return err - } - - case "HierarchyId": + case "Visibility": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected HierarchyId to be of type string, got %T instead", value) + return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) } - sv.HierarchyId = ptr.String(jtv) + sv.Visibility = types.Visibility(jtv) } default: @@ -37385,7 +44184,43 @@ func awsRestjson1_deserializeDocumentDateDimensionField(v **types.DateDimensionF return nil } -func awsRestjson1_deserializeDocumentDateMeasureField(v **types.DateMeasureField, value interface{}) error { +func awsRestjson1_deserializeDocumentFieldOrderList(v *[]string, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []string + if *v == nil { + cv = []string{} + } else { + cv = *v + } + + for _, value := range shape { + var col string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected FieldId to be of type string, got %T instead", value) + } + col = jtv + } + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentFieldSeriesItem(v **types.FieldSeriesItem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -37398,27 +44233,22 @@ func awsRestjson1_deserializeDocumentDateMeasureField(v **types.DateMeasureField return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DateMeasureField + var sv *types.FieldSeriesItem if *v == nil { - sv = &types.DateMeasureField{} + sv = &types.FieldSeriesItem{} } else { sv = *v } for key, value := range shape { switch key { - case "AggregationFunction": + case "AxisBinding": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected DateAggregationFunction to be of type string, got %T instead", value) + return fmt.Errorf("expected AxisBinding to be of type string, got %T instead", value) } - sv.AggregationFunction = types.DateAggregationFunction(jtv) - } - - case "Column": - if err := awsRestjson1_deserializeDocumentColumnIdentifier(&sv.Column, value); err != nil { - return err + sv.AxisBinding = types.AxisBinding(jtv) } case "FieldId": @@ -37430,8 +44260,8 @@ func awsRestjson1_deserializeDocumentDateMeasureField(v **types.DateMeasureField sv.FieldId = ptr.String(jtv) } - case "FormatConfiguration": - if err := awsRestjson1_deserializeDocumentDateTimeFormatConfiguration(&sv.FormatConfiguration, value); err != nil { + case "Settings": + if err := awsRestjson1_deserializeDocumentLineChartSeriesSettings(&sv.Settings, value); err != nil { return err } @@ -37444,7 +44274,7 @@ func awsRestjson1_deserializeDocumentDateMeasureField(v **types.DateMeasureField return nil } -func awsRestjson1_deserializeDocumentDateTimeDefaultValueList(v *[]time.Time, value interface{}) error { +func awsRestjson1_deserializeDocumentFieldSort(v **types.FieldSort, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -37452,42 +44282,48 @@ func awsRestjson1_deserializeDocumentDateTimeDefaultValueList(v *[]time.Time, va return nil } - shape, ok := value.([]interface{}) + shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var cv []time.Time + var sv *types.FieldSort if *v == nil { - cv = []time.Time{} + sv = &types.FieldSort{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col time.Time - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err + for key, value := range shape { + switch key { + case "Direction": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected SortDirection to be of type string, got %T instead", value) + } + sv.Direction = types.SortDirection(jtv) + } + + case "FieldId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected FieldId to be of type string, got %T instead", value) } - col = smithytime.ParseEpochSeconds(f64) + sv.FieldId = ptr.String(jtv) + } - default: - return fmt.Errorf("expected SensitiveTimestamp to be a JSON Number, got %T instead", value) + default: + _, _ = key, value - } } - cv = append(cv, col) - } - *v = cv + *v = sv return nil } -func awsRestjson1_deserializeDocumentDateTimeDefaultValues(v **types.DateTimeDefaultValues, value interface{}) error { +func awsRestjson1_deserializeDocumentFieldSortOptions(v **types.FieldSortOptions, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -37500,27 +44336,22 @@ func awsRestjson1_deserializeDocumentDateTimeDefaultValues(v **types.DateTimeDef return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DateTimeDefaultValues + var sv *types.FieldSortOptions if *v == nil { - sv = &types.DateTimeDefaultValues{} + sv = &types.FieldSortOptions{} } else { sv = *v } for key, value := range shape { switch key { - case "DynamicValue": - if err := awsRestjson1_deserializeDocumentDynamicDefaultValue(&sv.DynamicValue, value); err != nil { - return err - } - - case "RollingDate": - if err := awsRestjson1_deserializeDocumentRollingDateConfiguration(&sv.RollingDate, value); err != nil { + case "ColumnSort": + if err := awsRestjson1_deserializeDocumentColumnSort(&sv.ColumnSort, value); err != nil { return err } - case "StaticValues": - if err := awsRestjson1_deserializeDocumentDateTimeDefaultValueList(&sv.StaticValues, value); err != nil { + case "FieldSort": + if err := awsRestjson1_deserializeDocumentFieldSort(&sv.FieldSort, value); err != nil { return err } @@ -37533,7 +44364,7 @@ func awsRestjson1_deserializeDocumentDateTimeDefaultValues(v **types.DateTimeDef return nil } -func awsRestjson1_deserializeDocumentDateTimeFormatConfiguration(v **types.DateTimeFormatConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentFieldSortOptionsList(v *[]types.FieldSortOptions, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -37541,49 +44372,33 @@ func awsRestjson1_deserializeDocumentDateTimeFormatConfiguration(v **types.DateT return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DateTimeFormatConfiguration + var cv []types.FieldSortOptions if *v == nil { - sv = &types.DateTimeFormatConfiguration{} + cv = []types.FieldSortOptions{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "DateTimeFormat": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected DateTimeFormat to be of type string, got %T instead", value) - } - sv.DateTimeFormat = ptr.String(jtv) - } - - case "NullValueFormatConfiguration": - if err := awsRestjson1_deserializeDocumentNullValueFormatConfiguration(&sv.NullValueFormatConfiguration, value); err != nil { - return err - } - - case "NumericFormatConfiguration": - if err := awsRestjson1_deserializeDocumentNumericFormatConfiguration(&sv.NumericFormatConfiguration, value); err != nil { - return err - } - - default: - _, _ = key, value - + for _, value := range shape { + var col types.FieldSortOptions + destAddr := &col + if err := awsRestjson1_deserializeDocumentFieldSortOptions(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsRestjson1_deserializeDocumentDateTimeHierarchy(v **types.DateTimeHierarchy, value interface{}) error { +func awsRestjson1_deserializeDocumentFieldTooltipItem(v **types.FieldTooltipItem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -37596,27 +44411,40 @@ func awsRestjson1_deserializeDocumentDateTimeHierarchy(v **types.DateTimeHierarc return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DateTimeHierarchy + var sv *types.FieldTooltipItem if *v == nil { - sv = &types.DateTimeHierarchy{} + sv = &types.FieldTooltipItem{} } else { sv = *v } for key, value := range shape { switch key { - case "DrillDownFilters": - if err := awsRestjson1_deserializeDocumentDrillDownFilterList(&sv.DrillDownFilters, value); err != nil { - return err + case "FieldId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected FieldId to be of type string, got %T instead", value) + } + sv.FieldId = ptr.String(jtv) } - case "HierarchyId": + case "Label": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected HierarchyId to be of type string, got %T instead", value) + return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.HierarchyId = ptr.String(jtv) + sv.Label = ptr.String(jtv) + } + + case "Visibility": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) + } + sv.Visibility = types.Visibility(jtv) } default: @@ -37628,7 +44456,7 @@ func awsRestjson1_deserializeDocumentDateTimeHierarchy(v **types.DateTimeHierarc return nil } -func awsRestjson1_deserializeDocumentDateTimeParameterDeclaration(v **types.DateTimeParameterDeclaration, value interface{}) error { +func awsRestjson1_deserializeDocumentFilledMapAggregatedFieldWells(v **types.FilledMapAggregatedFieldWells, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -37641,40 +44469,22 @@ func awsRestjson1_deserializeDocumentDateTimeParameterDeclaration(v **types.Date return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DateTimeParameterDeclaration + var sv *types.FilledMapAggregatedFieldWells if *v == nil { - sv = &types.DateTimeParameterDeclaration{} + sv = &types.FilledMapAggregatedFieldWells{} } else { sv = *v } for key, value := range shape { switch key { - case "DefaultValues": - if err := awsRestjson1_deserializeDocumentDateTimeDefaultValues(&sv.DefaultValues, value); err != nil { + case "Geospatial": + if err := awsRestjson1_deserializeDocumentFilledMapDimensionFieldList(&sv.Geospatial, value); err != nil { return err } - case "Name": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ParameterName to be of type string, got %T instead", value) - } - sv.Name = ptr.String(jtv) - } - - case "TimeGranularity": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected TimeGranularity to be of type string, got %T instead", value) - } - sv.TimeGranularity = types.TimeGranularity(jtv) - } - - case "ValueWhenUnset": - if err := awsRestjson1_deserializeDocumentDateTimeValueWhenUnsetConfiguration(&sv.ValueWhenUnset, value); err != nil { + case "Values": + if err := awsRestjson1_deserializeDocumentFilledMapMeasureFieldList(&sv.Values, value); err != nil { return err } @@ -37687,7 +44497,7 @@ func awsRestjson1_deserializeDocumentDateTimeParameterDeclaration(v **types.Date return nil } -func awsRestjson1_deserializeDocumentDateTimePickerControlDisplayOptions(v **types.DateTimePickerControlDisplayOptions, value interface{}) error { +func awsRestjson1_deserializeDocumentFilledMapConditionalFormatting(v **types.FilledMapConditionalFormatting, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -37700,26 +44510,17 @@ func awsRestjson1_deserializeDocumentDateTimePickerControlDisplayOptions(v **typ return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DateTimePickerControlDisplayOptions + var sv *types.FilledMapConditionalFormatting if *v == nil { - sv = &types.DateTimePickerControlDisplayOptions{} + sv = &types.FilledMapConditionalFormatting{} } else { sv = *v } for key, value := range shape { switch key { - case "DateTimeFormat": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected DateTimeFormat to be of type string, got %T instead", value) - } - sv.DateTimeFormat = ptr.String(jtv) - } - - case "TitleOptions": - if err := awsRestjson1_deserializeDocumentLabelOptions(&sv.TitleOptions, value); err != nil { + case "ConditionalFormattingOptions": + if err := awsRestjson1_deserializeDocumentFilledMapConditionalFormattingOptionList(&sv.ConditionalFormattingOptions, value); err != nil { return err } @@ -37732,7 +44533,7 @@ func awsRestjson1_deserializeDocumentDateTimePickerControlDisplayOptions(v **typ return nil } -func awsRestjson1_deserializeDocumentDateTimeValueWhenUnsetConfiguration(v **types.DateTimeValueWhenUnsetConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentFilledMapConditionalFormattingOption(v **types.FilledMapConditionalFormattingOption, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -37745,38 +44546,18 @@ func awsRestjson1_deserializeDocumentDateTimeValueWhenUnsetConfiguration(v **typ return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DateTimeValueWhenUnsetConfiguration + var sv *types.FilledMapConditionalFormattingOption if *v == nil { - sv = &types.DateTimeValueWhenUnsetConfiguration{} + sv = &types.FilledMapConditionalFormattingOption{} } else { sv = *v } for key, value := range shape { switch key { - case "CustomValue": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.CustomValue = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected SensitiveTimestamp to be a JSON Number, got %T instead", value) - - } - } - - case "ValueWhenUnsetOption": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ValueWhenUnsetOption to be of type string, got %T instead", value) - } - sv.ValueWhenUnsetOption = types.ValueWhenUnsetOption(jtv) + case "Shape": + if err := awsRestjson1_deserializeDocumentFilledMapShapeConditionalFormatting(&sv.Shape, value); err != nil { + return err } default: @@ -37788,7 +44569,7 @@ func awsRestjson1_deserializeDocumentDateTimeValueWhenUnsetConfiguration(v **typ return nil } -func awsRestjson1_deserializeDocumentDecimalDefaultValueList(v *[]float64, value interface{}) error { +func awsRestjson1_deserializeDocumentFilledMapConditionalFormattingOptionList(v *[]types.FilledMapConditionalFormattingOption, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -37801,47 +44582,20 @@ func awsRestjson1_deserializeDocumentDecimalDefaultValueList(v *[]float64, value return fmt.Errorf("unexpected JSON type %v", value) } - var cv []float64 + var cv []types.FilledMapConditionalFormattingOption if *v == nil { - cv = []float64{} + cv = []types.FilledMapConditionalFormattingOption{} } else { cv = *v } for _, value := range shape { - var col float64 - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - col = f64 - - case string: - var f64 float64 - switch { - case strings.EqualFold(jtv, "NaN"): - f64 = math.NaN() - - case strings.EqualFold(jtv, "Infinity"): - f64 = math.Inf(1) - - case strings.EqualFold(jtv, "-Infinity"): - f64 = math.Inf(-1) - - default: - return fmt.Errorf("unknown JSON number value: %s", jtv) - - } - col = f64 - - default: - return fmt.Errorf("expected SensitiveDoubleObject to be a JSON Number, got %T instead", value) - - } + var col types.FilledMapConditionalFormattingOption + destAddr := &col + if err := awsRestjson1_deserializeDocumentFilledMapConditionalFormattingOption(&destAddr, value); err != nil { + return err } + col = *destAddr cv = append(cv, col) } @@ -37849,7 +44603,7 @@ func awsRestjson1_deserializeDocumentDecimalDefaultValueList(v *[]float64, value return nil } -func awsRestjson1_deserializeDocumentDecimalDefaultValues(v **types.DecimalDefaultValues, value interface{}) error { +func awsRestjson1_deserializeDocumentFilledMapConfiguration(v **types.FilledMapConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -37862,22 +44616,42 @@ func awsRestjson1_deserializeDocumentDecimalDefaultValues(v **types.DecimalDefau return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DecimalDefaultValues + var sv *types.FilledMapConfiguration if *v == nil { - sv = &types.DecimalDefaultValues{} + sv = &types.FilledMapConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "DynamicValue": - if err := awsRestjson1_deserializeDocumentDynamicDefaultValue(&sv.DynamicValue, value); err != nil { + case "FieldWells": + if err := awsRestjson1_deserializeDocumentFilledMapFieldWells(&sv.FieldWells, value); err != nil { return err } - case "StaticValues": - if err := awsRestjson1_deserializeDocumentDecimalDefaultValueList(&sv.StaticValues, value); err != nil { + case "Legend": + if err := awsRestjson1_deserializeDocumentLegendOptions(&sv.Legend, value); err != nil { + return err + } + + case "MapStyleOptions": + if err := awsRestjson1_deserializeDocumentGeospatialMapStyleOptions(&sv.MapStyleOptions, value); err != nil { + return err + } + + case "SortConfiguration": + if err := awsRestjson1_deserializeDocumentFilledMapSortConfiguration(&sv.SortConfiguration, value); err != nil { + return err + } + + case "Tooltip": + if err := awsRestjson1_deserializeDocumentTooltipOptions(&sv.Tooltip, value); err != nil { + return err + } + + case "WindowOptions": + if err := awsRestjson1_deserializeDocumentGeospatialWindowOptions(&sv.WindowOptions, value); err != nil { return err } @@ -37890,7 +44664,7 @@ func awsRestjson1_deserializeDocumentDecimalDefaultValues(v **types.DecimalDefau return nil } -func awsRestjson1_deserializeDocumentDecimalParameterDeclaration(v **types.DecimalParameterDeclaration, value interface{}) error { +func awsRestjson1_deserializeDocumentFilledMapDimensionFieldList(v *[]types.DimensionField, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -37898,58 +44672,33 @@ func awsRestjson1_deserializeDocumentDecimalParameterDeclaration(v **types.Decim return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DecimalParameterDeclaration + var cv []types.DimensionField if *v == nil { - sv = &types.DecimalParameterDeclaration{} + cv = []types.DimensionField{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "DefaultValues": - if err := awsRestjson1_deserializeDocumentDecimalDefaultValues(&sv.DefaultValues, value); err != nil { - return err - } - - case "Name": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ParameterName to be of type string, got %T instead", value) - } - sv.Name = ptr.String(jtv) - } - - case "ParameterValueType": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ParameterValueType to be of type string, got %T instead", value) - } - sv.ParameterValueType = types.ParameterValueType(jtv) - } - - case "ValueWhenUnset": - if err := awsRestjson1_deserializeDocumentDecimalValueWhenUnsetConfiguration(&sv.ValueWhenUnset, value); err != nil { - return err - } - - default: - _, _ = key, value - + for _, value := range shape { + var col types.DimensionField + destAddr := &col + if err := awsRestjson1_deserializeDocumentDimensionField(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsRestjson1_deserializeDocumentDecimalPlacesConfiguration(v **types.DecimalPlacesConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentFilledMapFieldWells(v **types.FilledMapFieldWells, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -37962,26 +44711,18 @@ func awsRestjson1_deserializeDocumentDecimalPlacesConfiguration(v **types.Decima return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DecimalPlacesConfiguration + var sv *types.FilledMapFieldWells if *v == nil { - sv = &types.DecimalPlacesConfiguration{} + sv = &types.FilledMapFieldWells{} } else { sv = *v } for key, value := range shape { switch key { - case "DecimalPlaces": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected DecimalPlaces to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.DecimalPlaces = ptr.Int64(i64) + case "FilledMapAggregatedFieldWells": + if err := awsRestjson1_deserializeDocumentFilledMapAggregatedFieldWells(&sv.FilledMapAggregatedFieldWells, value); err != nil { + return err } default: @@ -37993,7 +44734,7 @@ func awsRestjson1_deserializeDocumentDecimalPlacesConfiguration(v **types.Decima return nil } -func awsRestjson1_deserializeDocumentDecimalValueWhenUnsetConfiguration(v **types.DecimalValueWhenUnsetConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentFilledMapMeasureFieldList(v *[]types.MeasureField, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -38001,61 +44742,66 @@ func awsRestjson1_deserializeDocumentDecimalValueWhenUnsetConfiguration(v **type return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DecimalValueWhenUnsetConfiguration + var cv []types.MeasureField if *v == nil { - sv = &types.DecimalValueWhenUnsetConfiguration{} + cv = []types.MeasureField{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "CustomValue": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.CustomValue = ptr.Float64(f64) - - case string: - var f64 float64 - switch { - case strings.EqualFold(jtv, "NaN"): - f64 = math.NaN() - - case strings.EqualFold(jtv, "Infinity"): - f64 = math.Inf(1) - - case strings.EqualFold(jtv, "-Infinity"): - f64 = math.Inf(-1) + for _, value := range shape { + var col types.MeasureField + destAddr := &col + if err := awsRestjson1_deserializeDocumentMeasureField(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) - default: - return fmt.Errorf("unknown JSON number value: %s", jtv) + } + *v = cv + return nil +} - } - sv.CustomValue = ptr.Float64(f64) +func awsRestjson1_deserializeDocumentFilledMapShapeConditionalFormatting(v **types.FilledMapShapeConditionalFormatting, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } - default: - return fmt.Errorf("expected SensitiveDouble to be a JSON Number, got %T instead", value) + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } - } - } + var sv *types.FilledMapShapeConditionalFormatting + if *v == nil { + sv = &types.FilledMapShapeConditionalFormatting{} + } else { + sv = *v + } - case "ValueWhenUnsetOption": + for key, value := range shape { + switch key { + case "FieldId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ValueWhenUnsetOption to be of type string, got %T instead", value) + return fmt.Errorf("expected FieldId to be of type string, got %T instead", value) } - sv.ValueWhenUnsetOption = types.ValueWhenUnsetOption(jtv) + sv.FieldId = ptr.String(jtv) + } + + case "Format": + if err := awsRestjson1_deserializeDocumentShapeConditionalFormat(&sv.Format, value); err != nil { + return err } default: @@ -38067,7 +44813,7 @@ func awsRestjson1_deserializeDocumentDecimalValueWhenUnsetConfiguration(v **type return nil } -func awsRestjson1_deserializeDocumentDefaultFreeFormLayoutConfiguration(v **types.DefaultFreeFormLayoutConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentFilledMapSortConfiguration(v **types.FilledMapSortConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -38080,17 +44826,17 @@ func awsRestjson1_deserializeDocumentDefaultFreeFormLayoutConfiguration(v **type return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DefaultFreeFormLayoutConfiguration + var sv *types.FilledMapSortConfiguration if *v == nil { - sv = &types.DefaultFreeFormLayoutConfiguration{} + sv = &types.FilledMapSortConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "CanvasSizeOptions": - if err := awsRestjson1_deserializeDocumentFreeFormLayoutCanvasSizeOptions(&sv.CanvasSizeOptions, value); err != nil { + case "CategorySort": + if err := awsRestjson1_deserializeDocumentFieldSortOptionsList(&sv.CategorySort, value); err != nil { return err } @@ -38103,7 +44849,7 @@ func awsRestjson1_deserializeDocumentDefaultFreeFormLayoutConfiguration(v **type return nil } -func awsRestjson1_deserializeDocumentDefaultGridLayoutConfiguration(v **types.DefaultGridLayoutConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentFilledMapVisual(v **types.FilledMapVisual, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -38116,20 +44862,54 @@ func awsRestjson1_deserializeDocumentDefaultGridLayoutConfiguration(v **types.De return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DefaultGridLayoutConfiguration + var sv *types.FilledMapVisual if *v == nil { - sv = &types.DefaultGridLayoutConfiguration{} + sv = &types.FilledMapVisual{} } else { sv = *v } for key, value := range shape { switch key { - case "CanvasSizeOptions": - if err := awsRestjson1_deserializeDocumentGridLayoutCanvasSizeOptions(&sv.CanvasSizeOptions, value); err != nil { + case "Actions": + if err := awsRestjson1_deserializeDocumentVisualCustomActionList(&sv.Actions, value); err != nil { + return err + } + + case "ChartConfiguration": + if err := awsRestjson1_deserializeDocumentFilledMapConfiguration(&sv.ChartConfiguration, value); err != nil { return err } + case "ColumnHierarchies": + if err := awsRestjson1_deserializeDocumentColumnHierarchyList(&sv.ColumnHierarchies, value); err != nil { + return err + } + + case "ConditionalFormatting": + if err := awsRestjson1_deserializeDocumentFilledMapConditionalFormatting(&sv.ConditionalFormatting, value); err != nil { + return err + } + + case "Subtitle": + if err := awsRestjson1_deserializeDocumentVisualSubtitleLabelOptions(&sv.Subtitle, value); err != nil { + return err + } + + case "Title": + if err := awsRestjson1_deserializeDocumentVisualTitleLabelOptions(&sv.Title, value); err != nil { + return err + } + + case "VisualId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + } + sv.VisualId = ptr.String(jtv) + } + default: _, _ = key, value @@ -38139,7 +44919,7 @@ func awsRestjson1_deserializeDocumentDefaultGridLayoutConfiguration(v **types.De return nil } -func awsRestjson1_deserializeDocumentDefaultInteractiveLayoutConfiguration(v **types.DefaultInteractiveLayoutConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentFilter(v **types.Filter, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -38152,22 +44932,47 @@ func awsRestjson1_deserializeDocumentDefaultInteractiveLayoutConfiguration(v **t return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DefaultInteractiveLayoutConfiguration + var sv *types.Filter if *v == nil { - sv = &types.DefaultInteractiveLayoutConfiguration{} + sv = &types.Filter{} } else { sv = *v } for key, value := range shape { switch key { - case "FreeForm": - if err := awsRestjson1_deserializeDocumentDefaultFreeFormLayoutConfiguration(&sv.FreeForm, value); err != nil { + case "CategoryFilter": + if err := awsRestjson1_deserializeDocumentCategoryFilter(&sv.CategoryFilter, value); err != nil { + return err + } + + case "NumericEqualityFilter": + if err := awsRestjson1_deserializeDocumentNumericEqualityFilter(&sv.NumericEqualityFilter, value); err != nil { + return err + } + + case "NumericRangeFilter": + if err := awsRestjson1_deserializeDocumentNumericRangeFilter(&sv.NumericRangeFilter, value); err != nil { + return err + } + + case "RelativeDatesFilter": + if err := awsRestjson1_deserializeDocumentRelativeDatesFilter(&sv.RelativeDatesFilter, value); err != nil { + return err + } + + case "TimeEqualityFilter": + if err := awsRestjson1_deserializeDocumentTimeEqualityFilter(&sv.TimeEqualityFilter, value); err != nil { + return err + } + + case "TimeRangeFilter": + if err := awsRestjson1_deserializeDocumentTimeRangeFilter(&sv.TimeRangeFilter, value); err != nil { return err } - case "Grid": - if err := awsRestjson1_deserializeDocumentDefaultGridLayoutConfiguration(&sv.Grid, value); err != nil { + case "TopBottomFilter": + if err := awsRestjson1_deserializeDocumentTopBottomFilter(&sv.TopBottomFilter, value); err != nil { return err } @@ -38180,7 +44985,7 @@ func awsRestjson1_deserializeDocumentDefaultInteractiveLayoutConfiguration(v **t return nil } -func awsRestjson1_deserializeDocumentDefaultNewSheetConfiguration(v **types.DefaultNewSheetConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentFilterControl(v **types.FilterControl, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -38193,67 +44998,47 @@ func awsRestjson1_deserializeDocumentDefaultNewSheetConfiguration(v **types.Defa return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DefaultNewSheetConfiguration + var sv *types.FilterControl if *v == nil { - sv = &types.DefaultNewSheetConfiguration{} + sv = &types.FilterControl{} } else { sv = *v } for key, value := range shape { switch key { - case "InteractiveLayoutConfiguration": - if err := awsRestjson1_deserializeDocumentDefaultInteractiveLayoutConfiguration(&sv.InteractiveLayoutConfiguration, value); err != nil { + case "DateTimePicker": + if err := awsRestjson1_deserializeDocumentFilterDateTimePickerControl(&sv.DateTimePicker, value); err != nil { return err } - case "PaginatedLayoutConfiguration": - if err := awsRestjson1_deserializeDocumentDefaultPaginatedLayoutConfiguration(&sv.PaginatedLayoutConfiguration, value); err != nil { + case "Dropdown": + if err := awsRestjson1_deserializeDocumentFilterDropDownControl(&sv.Dropdown, value); err != nil { return err } - case "SheetContentType": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected SheetContentType to be of type string, got %T instead", value) - } - sv.SheetContentType = types.SheetContentType(jtv) + case "List": + if err := awsRestjson1_deserializeDocumentFilterListControl(&sv.List, value); err != nil { + return err } - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentDefaultPaginatedLayoutConfiguration(v **types.DefaultPaginatedLayoutConfiguration, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } + case "RelativeDateTime": + if err := awsRestjson1_deserializeDocumentFilterRelativeDateTimeControl(&sv.RelativeDateTime, value); err != nil { + return err + } - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } + case "Slider": + if err := awsRestjson1_deserializeDocumentFilterSliderControl(&sv.Slider, value); err != nil { + return err + } - var sv *types.DefaultPaginatedLayoutConfiguration - if *v == nil { - sv = &types.DefaultPaginatedLayoutConfiguration{} - } else { - sv = *v - } + case "TextArea": + if err := awsRestjson1_deserializeDocumentFilterTextAreaControl(&sv.TextArea, value); err != nil { + return err + } - for key, value := range shape { - switch key { - case "SectionBased": - if err := awsRestjson1_deserializeDocumentDefaultSectionBasedLayoutConfiguration(&sv.SectionBased, value); err != nil { + case "TextField": + if err := awsRestjson1_deserializeDocumentFilterTextFieldControl(&sv.TextField, value); err != nil { return err } @@ -38266,7 +45051,7 @@ func awsRestjson1_deserializeDocumentDefaultPaginatedLayoutConfiguration(v **typ return nil } -func awsRestjson1_deserializeDocumentDefaultSectionBasedLayoutConfiguration(v **types.DefaultSectionBasedLayoutConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentFilterControlList(v *[]types.FilterControl, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -38274,35 +45059,33 @@ func awsRestjson1_deserializeDocumentDefaultSectionBasedLayoutConfiguration(v ** return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DefaultSectionBasedLayoutConfiguration + var cv []types.FilterControl if *v == nil { - sv = &types.DefaultSectionBasedLayoutConfiguration{} + cv = []types.FilterControl{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "CanvasSizeOptions": - if err := awsRestjson1_deserializeDocumentSectionBasedLayoutCanvasSizeOptions(&sv.CanvasSizeOptions, value); err != nil { - return err - } - - default: - _, _ = key, value - + for _, value := range shape { + var col types.FilterControl + destAddr := &col + if err := awsRestjson1_deserializeDocumentFilterControl(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsRestjson1_deserializeDocumentDestinationParameterValueConfiguration(v **types.DestinationParameterValueConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentFilterDateTimePickerControl(v **types.FilterDateTimePickerControl, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -38315,45 +45098,54 @@ func awsRestjson1_deserializeDocumentDestinationParameterValueConfiguration(v ** return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DestinationParameterValueConfiguration + var sv *types.FilterDateTimePickerControl if *v == nil { - sv = &types.DestinationParameterValueConfiguration{} + sv = &types.FilterDateTimePickerControl{} } else { sv = *v } for key, value := range shape { switch key { - case "CustomValuesConfiguration": - if err := awsRestjson1_deserializeDocumentCustomValuesConfiguration(&sv.CustomValuesConfiguration, value); err != nil { + case "DisplayOptions": + if err := awsRestjson1_deserializeDocumentDateTimePickerControlDisplayOptions(&sv.DisplayOptions, value); err != nil { return err } - case "SelectAllValueOptions": + case "FilterControlId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected SelectAllValueOptions to be of type string, got %T instead", value) + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) } - sv.SelectAllValueOptions = types.SelectAllValueOptions(jtv) + sv.FilterControlId = ptr.String(jtv) } - case "SourceField": + case "SourceFilterId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected FieldId to be of type string, got %T instead", value) + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) } - sv.SourceField = ptr.String(jtv) + sv.SourceFilterId = ptr.String(jtv) } - case "SourceParameterName": + case "Title": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) + return fmt.Errorf("expected SheetControlTitle to be of type string, got %T instead", value) } - sv.SourceParameterName = ptr.String(jtv) + sv.Title = ptr.String(jtv) + } + + case "Type": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected SheetControlDateTimePickerType to be of type string, got %T instead", value) + } + sv.Type = types.SheetControlDateTimePickerType(jtv) } default: @@ -38365,7 +45157,7 @@ func awsRestjson1_deserializeDocumentDestinationParameterValueConfiguration(v ** return nil } -func awsRestjson1_deserializeDocumentDimensionField(v **types.DimensionField, value interface{}) error { +func awsRestjson1_deserializeDocumentFilterDropDownControl(v **types.FilterDropDownControl, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -38378,30 +45170,66 @@ func awsRestjson1_deserializeDocumentDimensionField(v **types.DimensionField, va return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DimensionField + var sv *types.FilterDropDownControl if *v == nil { - sv = &types.DimensionField{} + sv = &types.FilterDropDownControl{} } else { sv = *v } for key, value := range shape { switch key { - case "CategoricalDimensionField": - if err := awsRestjson1_deserializeDocumentCategoricalDimensionField(&sv.CategoricalDimensionField, value); err != nil { + case "CascadingControlConfiguration": + if err := awsRestjson1_deserializeDocumentCascadingControlConfiguration(&sv.CascadingControlConfiguration, value); err != nil { return err } - case "DateDimensionField": - if err := awsRestjson1_deserializeDocumentDateDimensionField(&sv.DateDimensionField, value); err != nil { + case "DisplayOptions": + if err := awsRestjson1_deserializeDocumentDropDownControlDisplayOptions(&sv.DisplayOptions, value); err != nil { return err } - case "NumericalDimensionField": - if err := awsRestjson1_deserializeDocumentNumericalDimensionField(&sv.NumericalDimensionField, value); err != nil { + case "FilterControlId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + } + sv.FilterControlId = ptr.String(jtv) + } + + case "SelectableValues": + if err := awsRestjson1_deserializeDocumentFilterSelectableValues(&sv.SelectableValues, value); err != nil { return err } + case "SourceFilterId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + } + sv.SourceFilterId = ptr.String(jtv) + } + + case "Title": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected SheetControlTitle to be of type string, got %T instead", value) + } + sv.Title = ptr.String(jtv) + } + + case "Type": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected SheetControlListType to be of type string, got %T instead", value) + } + sv.Type = types.SheetControlListType(jtv) + } + default: _, _ = key, value @@ -38411,7 +45239,7 @@ func awsRestjson1_deserializeDocumentDimensionField(v **types.DimensionField, va return nil } -func awsRestjson1_deserializeDocumentDimensionFieldList(v *[]types.DimensionField, value interface{}) error { +func awsRestjson1_deserializeDocumentFilteredVisualsList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -38424,20 +45252,22 @@ func awsRestjson1_deserializeDocumentDimensionFieldList(v *[]types.DimensionFiel return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.DimensionField + var cv []string if *v == nil { - cv = []types.DimensionField{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col types.DimensionField - destAddr := &col - if err := awsRestjson1_deserializeDocumentDimensionField(&destAddr, value); err != nil { - return err + var col string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + } + col = jtv } - col = *destAddr cv = append(cv, col) } @@ -38445,7 +45275,7 @@ func awsRestjson1_deserializeDocumentDimensionFieldList(v *[]types.DimensionFiel return nil } -func awsRestjson1_deserializeDocumentDomainNotWhitelistedException(v **types.DomainNotWhitelistedException, value interface{}) error { +func awsRestjson1_deserializeDocumentFilterGroup(v **types.FilterGroup, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -38458,31 +45288,50 @@ func awsRestjson1_deserializeDocumentDomainNotWhitelistedException(v **types.Dom return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DomainNotWhitelistedException + var sv *types.FilterGroup if *v == nil { - sv = &types.DomainNotWhitelistedException{} + sv = &types.FilterGroup{} } else { sv = *v } for key, value := range shape { switch key { - case "Message": + case "CrossDataset": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) + return fmt.Errorf("expected CrossDatasetTypes to be of type string, got %T instead", value) } - sv.Message = ptr.String(jtv) + sv.CrossDataset = types.CrossDatasetTypes(jtv) } - case "RequestId": + case "FilterGroupId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) } - sv.RequestId = ptr.String(jtv) + sv.FilterGroupId = ptr.String(jtv) + } + + case "Filters": + if err := awsRestjson1_deserializeDocumentFilterList(&sv.Filters, value); err != nil { + return err + } + + case "ScopeConfiguration": + if err := awsRestjson1_deserializeDocumentFilterScopeConfiguration(&sv.ScopeConfiguration, value); err != nil { + return err + } + + case "Status": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected WidgetStatus to be of type string, got %T instead", value) + } + sv.Status = types.WidgetStatus(jtv) } default: @@ -38494,7 +45343,7 @@ func awsRestjson1_deserializeDocumentDomainNotWhitelistedException(v **types.Dom return nil } -func awsRestjson1_deserializeDocumentDonutCenterOptions(v **types.DonutCenterOptions, value interface{}) error { +func awsRestjson1_deserializeDocumentFilterGroupList(v *[]types.FilterGroup, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -38502,39 +45351,67 @@ func awsRestjson1_deserializeDocumentDonutCenterOptions(v **types.DonutCenterOpt return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DonutCenterOptions + var cv []types.FilterGroup if *v == nil { - sv = &types.DonutCenterOptions{} + cv = []types.FilterGroup{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "LabelVisibility": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) - } - sv.LabelVisibility = types.Visibility(jtv) - } + for _, value := range shape { + var col types.FilterGroup + destAddr := &col + if err := awsRestjson1_deserializeDocumentFilterGroup(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) - default: - _, _ = key, value + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentFilterList(v *[]types.Filter, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.Filter + if *v == nil { + cv = []types.Filter{} + } else { + cv = *v + } + for _, value := range shape { + var col types.Filter + destAddr := &col + if err := awsRestjson1_deserializeDocumentFilter(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsRestjson1_deserializeDocumentDonutOptions(v **types.DonutOptions, value interface{}) error { +func awsRestjson1_deserializeDocumentFilterListConfiguration(v **types.FilterListConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -38547,23 +45424,36 @@ func awsRestjson1_deserializeDocumentDonutOptions(v **types.DonutOptions, value return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DonutOptions + var sv *types.FilterListConfiguration if *v == nil { - sv = &types.DonutOptions{} + sv = &types.FilterListConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "ArcOptions": - if err := awsRestjson1_deserializeDocumentArcOptions(&sv.ArcOptions, value); err != nil { + case "CategoryValues": + if err := awsRestjson1_deserializeDocumentCategoryValueList(&sv.CategoryValues, value); err != nil { return err } - case "DonutCenterOptions": - if err := awsRestjson1_deserializeDocumentDonutCenterOptions(&sv.DonutCenterOptions, value); err != nil { - return err + case "MatchOperator": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected CategoryFilterMatchOperator to be of type string, got %T instead", value) + } + sv.MatchOperator = types.CategoryFilterMatchOperator(jtv) + } + + case "SelectAllOptions": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected CategoryFilterSelectAllOptions to be of type string, got %T instead", value) + } + sv.SelectAllOptions = types.CategoryFilterSelectAllOptions(jtv) } default: @@ -38575,7 +45465,7 @@ func awsRestjson1_deserializeDocumentDonutOptions(v **types.DonutOptions, value return nil } -func awsRestjson1_deserializeDocumentDrillDownFilter(v **types.DrillDownFilter, value interface{}) error { +func awsRestjson1_deserializeDocumentFilterListControl(v **types.FilterListControl, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -38588,30 +45478,66 @@ func awsRestjson1_deserializeDocumentDrillDownFilter(v **types.DrillDownFilter, return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DrillDownFilter + var sv *types.FilterListControl if *v == nil { - sv = &types.DrillDownFilter{} + sv = &types.FilterListControl{} } else { sv = *v } for key, value := range shape { switch key { - case "CategoryFilter": - if err := awsRestjson1_deserializeDocumentCategoryDrillDownFilter(&sv.CategoryFilter, value); err != nil { + case "CascadingControlConfiguration": + if err := awsRestjson1_deserializeDocumentCascadingControlConfiguration(&sv.CascadingControlConfiguration, value); err != nil { return err } - case "NumericEqualityFilter": - if err := awsRestjson1_deserializeDocumentNumericEqualityDrillDownFilter(&sv.NumericEqualityFilter, value); err != nil { + case "DisplayOptions": + if err := awsRestjson1_deserializeDocumentListControlDisplayOptions(&sv.DisplayOptions, value); err != nil { return err } - case "TimeRangeFilter": - if err := awsRestjson1_deserializeDocumentTimeRangeDrillDownFilter(&sv.TimeRangeFilter, value); err != nil { + case "FilterControlId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + } + sv.FilterControlId = ptr.String(jtv) + } + + case "SelectableValues": + if err := awsRestjson1_deserializeDocumentFilterSelectableValues(&sv.SelectableValues, value); err != nil { return err } + case "SourceFilterId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + } + sv.SourceFilterId = ptr.String(jtv) + } + + case "Title": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected SheetControlTitle to be of type string, got %T instead", value) + } + sv.Title = ptr.String(jtv) + } + + case "Type": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected SheetControlListType to be of type string, got %T instead", value) + } + sv.Type = types.SheetControlListType(jtv) + } + default: _, _ = key, value @@ -38621,7 +45547,7 @@ func awsRestjson1_deserializeDocumentDrillDownFilter(v **types.DrillDownFilter, return nil } -func awsRestjson1_deserializeDocumentDrillDownFilterList(v *[]types.DrillDownFilter, value interface{}) error { +func awsRestjson1_deserializeDocumentFilterOperation(v **types.FilterOperation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -38629,33 +45555,39 @@ func awsRestjson1_deserializeDocumentDrillDownFilterList(v *[]types.DrillDownFil return nil } - shape, ok := value.([]interface{}) + shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.DrillDownFilter + var sv *types.FilterOperation if *v == nil { - cv = []types.DrillDownFilter{} + sv = &types.FilterOperation{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col types.DrillDownFilter - destAddr := &col - if err := awsRestjson1_deserializeDocumentDrillDownFilter(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) + for key, value := range shape { + switch key { + case "ConditionExpression": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Expression to be of type string, got %T instead", value) + } + sv.ConditionExpression = ptr.String(jtv) + } + + default: + _, _ = key, value + } } - *v = cv + *v = sv return nil } -func awsRestjson1_deserializeDocumentDropDownControlDisplayOptions(v **types.DropDownControlDisplayOptions, value interface{}) error { +func awsRestjson1_deserializeDocumentFilterOperationSelectedFieldsConfiguration(v **types.FilterOperationSelectedFieldsConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -38668,22 +45600,31 @@ func awsRestjson1_deserializeDocumentDropDownControlDisplayOptions(v **types.Dro return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DropDownControlDisplayOptions + var sv *types.FilterOperationSelectedFieldsConfiguration if *v == nil { - sv = &types.DropDownControlDisplayOptions{} + sv = &types.FilterOperationSelectedFieldsConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "SelectAllOptions": - if err := awsRestjson1_deserializeDocumentListControlSelectAllOptions(&sv.SelectAllOptions, value); err != nil { + case "SelectedColumns": + if err := awsRestjson1_deserializeDocumentCustomActionColumnList(&sv.SelectedColumns, value); err != nil { return err } - case "TitleOptions": - if err := awsRestjson1_deserializeDocumentLabelOptions(&sv.TitleOptions, value); err != nil { + case "SelectedFieldOptions": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected SelectedFieldOptions to be of type string, got %T instead", value) + } + sv.SelectedFieldOptions = types.SelectedFieldOptions(jtv) + } + + case "SelectedFields": + if err := awsRestjson1_deserializeDocumentSelectedFieldList(&sv.SelectedFields, value); err != nil { return err } @@ -38696,7 +45637,7 @@ func awsRestjson1_deserializeDocumentDropDownControlDisplayOptions(v **types.Dro return nil } -func awsRestjson1_deserializeDocumentDynamicDefaultValue(v **types.DynamicDefaultValue, value interface{}) error { +func awsRestjson1_deserializeDocumentFilterOperationTargetVisualsConfiguration(v **types.FilterOperationTargetVisualsConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -38709,27 +45650,17 @@ func awsRestjson1_deserializeDocumentDynamicDefaultValue(v **types.DynamicDefaul return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.DynamicDefaultValue + var sv *types.FilterOperationTargetVisualsConfiguration if *v == nil { - sv = &types.DynamicDefaultValue{} + sv = &types.FilterOperationTargetVisualsConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "DefaultValueColumn": - if err := awsRestjson1_deserializeDocumentColumnIdentifier(&sv.DefaultValueColumn, value); err != nil { - return err - } - - case "GroupNameColumn": - if err := awsRestjson1_deserializeDocumentColumnIdentifier(&sv.GroupNameColumn, value); err != nil { - return err - } - - case "UserNameColumn": - if err := awsRestjson1_deserializeDocumentColumnIdentifier(&sv.UserNameColumn, value); err != nil { + case "SameSheetTargetVisualConfiguration": + if err := awsRestjson1_deserializeDocumentSameSheetTargetVisualConfiguration(&sv.SameSheetTargetVisualConfiguration, value); err != nil { return err } @@ -38742,7 +45673,7 @@ func awsRestjson1_deserializeDocumentDynamicDefaultValue(v **types.DynamicDefaul return nil } -func awsRestjson1_deserializeDocumentEmptyVisual(v **types.EmptyVisual, value interface{}) error { +func awsRestjson1_deserializeDocumentFilterRelativeDateTimeControl(v **types.FilterRelativeDateTimeControl, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -38755,36 +45686,45 @@ func awsRestjson1_deserializeDocumentEmptyVisual(v **types.EmptyVisual, value in return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.EmptyVisual + var sv *types.FilterRelativeDateTimeControl if *v == nil { - sv = &types.EmptyVisual{} + sv = &types.FilterRelativeDateTimeControl{} } else { sv = *v } for key, value := range shape { switch key { - case "Actions": - if err := awsRestjson1_deserializeDocumentVisualCustomActionList(&sv.Actions, value); err != nil { + case "DisplayOptions": + if err := awsRestjson1_deserializeDocumentRelativeDateTimeControlDisplayOptions(&sv.DisplayOptions, value); err != nil { return err } - case "DataSetIdentifier": + case "FilterControlId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected DataSetIdentifier to be of type string, got %T instead", value) + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) } - sv.DataSetIdentifier = ptr.String(jtv) + sv.FilterControlId = ptr.String(jtv) } - case "VisualId": + case "SourceFilterId": if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) } - sv.VisualId = ptr.String(jtv) + sv.SourceFilterId = ptr.String(jtv) + } + + case "Title": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected SheetControlTitle to be of type string, got %T instead", value) + } + sv.Title = ptr.String(jtv) } default: @@ -38796,7 +45736,7 @@ func awsRestjson1_deserializeDocumentEmptyVisual(v **types.EmptyVisual, value in return nil } -func awsRestjson1_deserializeDocumentEntity(v **types.Entity, value interface{}) error { +func awsRestjson1_deserializeDocumentFilterScopeConfiguration(v **types.FilterScopeConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -38809,22 +45749,18 @@ func awsRestjson1_deserializeDocumentEntity(v **types.Entity, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.Entity + var sv *types.FilterScopeConfiguration if *v == nil { - sv = &types.Entity{} + sv = &types.FilterScopeConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "Path": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) - } - sv.Path = ptr.String(jtv) + case "SelectedSheets": + if err := awsRestjson1_deserializeDocumentSelectedSheetsFilterScopeConfiguration(&sv.SelectedSheets, value); err != nil { + return err } default: @@ -38836,7 +45772,7 @@ func awsRestjson1_deserializeDocumentEntity(v **types.Entity, value interface{}) return nil } -func awsRestjson1_deserializeDocumentEntityList(v *[]types.Entity, value interface{}) error { +func awsRestjson1_deserializeDocumentFilterSelectableValues(v **types.FilterSelectableValues, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -38844,33 +45780,35 @@ func awsRestjson1_deserializeDocumentEntityList(v *[]types.Entity, value interfa return nil } - shape, ok := value.([]interface{}) + shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.Entity + var sv *types.FilterSelectableValues if *v == nil { - cv = []types.Entity{} + sv = &types.FilterSelectableValues{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col types.Entity - destAddr := &col - if err := awsRestjson1_deserializeDocumentEntity(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) + for key, value := range shape { + switch key { + case "Values": + if err := awsRestjson1_deserializeDocumentParameterSelectableValueList(&sv.Values, value); err != nil { + return err + } + + default: + _, _ = key, value + } } - *v = cv + *v = sv return nil } -func awsRestjson1_deserializeDocumentErrorInfo(v **types.ErrorInfo, value interface{}) error { +func awsRestjson1_deserializeDocumentFilterSliderControl(v **types.FilterSliderControl, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -38883,31 +45821,156 @@ func awsRestjson1_deserializeDocumentErrorInfo(v **types.ErrorInfo, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ErrorInfo + var sv *types.FilterSliderControl if *v == nil { - sv = &types.ErrorInfo{} + sv = &types.FilterSliderControl{} } else { sv = *v } for key, value := range shape { switch key { - case "Message": + case "DisplayOptions": + if err := awsRestjson1_deserializeDocumentSliderControlDisplayOptions(&sv.DisplayOptions, value); err != nil { + return err + } + + case "FilterControlId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) } - sv.Message = ptr.String(jtv) + sv.FilterControlId = ptr.String(jtv) + } + + case "MaximumValue": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.MaximumValue = f64 + + case string: + var f64 float64 + switch { + case strings.EqualFold(jtv, "NaN"): + f64 = math.NaN() + + case strings.EqualFold(jtv, "Infinity"): + f64 = math.Inf(1) + + case strings.EqualFold(jtv, "-Infinity"): + f64 = math.Inf(-1) + + default: + return fmt.Errorf("unknown JSON number value: %s", jtv) + + } + sv.MaximumValue = f64 + + default: + return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value) + + } + } + + case "MinimumValue": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.MinimumValue = f64 + + case string: + var f64 float64 + switch { + case strings.EqualFold(jtv, "NaN"): + f64 = math.NaN() + + case strings.EqualFold(jtv, "Infinity"): + f64 = math.Inf(1) + + case strings.EqualFold(jtv, "-Infinity"): + f64 = math.Inf(-1) + + default: + return fmt.Errorf("unknown JSON number value: %s", jtv) + + } + sv.MinimumValue = f64 + + default: + return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value) + + } + } + + case "SourceFilterId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + } + sv.SourceFilterId = ptr.String(jtv) + } + + case "StepSize": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.StepSize = f64 + + case string: + var f64 float64 + switch { + case strings.EqualFold(jtv, "NaN"): + f64 = math.NaN() + + case strings.EqualFold(jtv, "Infinity"): + f64 = math.Inf(1) + + case strings.EqualFold(jtv, "-Infinity"): + f64 = math.Inf(-1) + + default: + return fmt.Errorf("unknown JSON number value: %s", jtv) + + } + sv.StepSize = f64 + + default: + return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value) + + } + } + + case "Title": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected SheetControlTitle to be of type string, got %T instead", value) + } + sv.Title = ptr.String(jtv) } case "Type": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected IngestionErrorType to be of type string, got %T instead", value) + return fmt.Errorf("expected SheetControlSliderType to be of type string, got %T instead", value) } - sv.Type = types.IngestionErrorType(jtv) + sv.Type = types.SheetControlSliderType(jtv) } default: @@ -38919,7 +45982,7 @@ func awsRestjson1_deserializeDocumentErrorInfo(v **types.ErrorInfo, value interf return nil } -func awsRestjson1_deserializeDocumentExasolParameters(v **types.ExasolParameters, value interface{}) error { +func awsRestjson1_deserializeDocumentFilterTextAreaControl(v **types.FilterTextAreaControl, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -38932,35 +45995,54 @@ func awsRestjson1_deserializeDocumentExasolParameters(v **types.ExasolParameters return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ExasolParameters + var sv *types.FilterTextAreaControl if *v == nil { - sv = &types.ExasolParameters{} + sv = &types.FilterTextAreaControl{} } else { sv = *v } for key, value := range shape { switch key { - case "Host": + case "Delimiter": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Host to be of type string, got %T instead", value) + return fmt.Errorf("expected TextAreaControlDelimiter to be of type string, got %T instead", value) } - sv.Host = ptr.String(jtv) + sv.Delimiter = ptr.String(jtv) } - case "Port": + case "DisplayOptions": + if err := awsRestjson1_deserializeDocumentTextAreaControlDisplayOptions(&sv.DisplayOptions, value); err != nil { + return err + } + + case "FilterControlId": if value != nil { - jtv, ok := value.(json.Number) + jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Port to be json.Number, got %T instead", value) + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) } - i64, err := jtv.Int64() - if err != nil { - return err + sv.FilterControlId = ptr.String(jtv) + } + + case "SourceFilterId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) } - sv.Port = int32(i64) + sv.SourceFilterId = ptr.String(jtv) + } + + case "Title": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected SheetControlTitle to be of type string, got %T instead", value) + } + sv.Title = ptr.String(jtv) } default: @@ -38972,7 +46054,7 @@ func awsRestjson1_deserializeDocumentExasolParameters(v **types.ExasolParameters return nil } -func awsRestjson1_deserializeDocumentExcludePeriodConfiguration(v **types.ExcludePeriodConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentFilterTextFieldControl(v **types.FilterTextFieldControl, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -38985,44 +46067,45 @@ func awsRestjson1_deserializeDocumentExcludePeriodConfiguration(v **types.Exclud return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ExcludePeriodConfiguration + var sv *types.FilterTextFieldControl if *v == nil { - sv = &types.ExcludePeriodConfiguration{} + sv = &types.FilterTextFieldControl{} } else { sv = *v } for key, value := range shape { switch key { - case "Amount": + case "DisplayOptions": + if err := awsRestjson1_deserializeDocumentTextFieldControlDisplayOptions(&sv.DisplayOptions, value); err != nil { + return err + } + + case "FilterControlId": if value != nil { - jtv, ok := value.(json.Number) + jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) } - sv.Amount = ptr.Int32(int32(i64)) + sv.FilterControlId = ptr.String(jtv) } - case "Granularity": + case "SourceFilterId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected TimeGranularity to be of type string, got %T instead", value) + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) } - sv.Granularity = types.TimeGranularity(jtv) + sv.SourceFilterId = ptr.String(jtv) } - case "Status": + case "Title": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected WidgetStatus to be of type string, got %T instead", value) + return fmt.Errorf("expected SheetControlTitle to be of type string, got %T instead", value) } - sv.Status = types.WidgetStatus(jtv) + sv.Title = ptr.String(jtv) } default: @@ -39034,7 +46117,7 @@ func awsRestjson1_deserializeDocumentExcludePeriodConfiguration(v **types.Exclud return nil } -func awsRestjson1_deserializeDocumentExplicitHierarchy(v **types.ExplicitHierarchy, value interface{}) error { +func awsRestjson1_deserializeDocumentFolder(v **types.Folder, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -39047,32 +46130,86 @@ func awsRestjson1_deserializeDocumentExplicitHierarchy(v **types.ExplicitHierarc return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ExplicitHierarchy + var sv *types.Folder if *v == nil { - sv = &types.ExplicitHierarchy{} + sv = &types.Folder{} } else { sv = *v } for key, value := range shape { switch key { - case "Columns": - if err := awsRestjson1_deserializeDocumentExplicitHierarchyColumnList(&sv.Columns, value); err != nil { - return err + case "Arn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) } - case "DrillDownFilters": - if err := awsRestjson1_deserializeDocumentDrillDownFilterList(&sv.DrillDownFilters, value); err != nil { + case "CreatedTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreatedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "FolderId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RestrictiveResourceId to be of type string, got %T instead", value) + } + sv.FolderId = ptr.String(jtv) + } + + case "FolderPath": + if err := awsRestjson1_deserializeDocumentPath(&sv.FolderPath, value); err != nil { return err } - case "HierarchyId": + case "FolderType": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected HierarchyId to be of type string, got %T instead", value) + return fmt.Errorf("expected FolderType to be of type string, got %T instead", value) } - sv.HierarchyId = ptr.String(jtv) + sv.FolderType = types.FolderType(jtv) + } + + case "LastUpdatedTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.LastUpdatedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "Name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected FolderName to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) } default: @@ -39084,7 +46221,7 @@ func awsRestjson1_deserializeDocumentExplicitHierarchy(v **types.ExplicitHierarc return nil } -func awsRestjson1_deserializeDocumentExplicitHierarchyColumnList(v *[]types.ColumnIdentifier, value interface{}) error { +func awsRestjson1_deserializeDocumentFolderColumnList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -39097,20 +46234,22 @@ func awsRestjson1_deserializeDocumentExplicitHierarchyColumnList(v *[]types.Colu return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.ColumnIdentifier + var cv []string if *v == nil { - cv = []types.ColumnIdentifier{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col types.ColumnIdentifier - destAddr := &col - if err := awsRestjson1_deserializeDocumentColumnIdentifier(&destAddr, value); err != nil { - return err + var col string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + col = jtv } - col = *destAddr cv = append(cv, col) } @@ -39118,7 +46257,7 @@ func awsRestjson1_deserializeDocumentExplicitHierarchyColumnList(v *[]types.Colu return nil } -func awsRestjson1_deserializeDocumentExportHiddenFieldsOption(v **types.ExportHiddenFieldsOption, value interface{}) error { +func awsRestjson1_deserializeDocumentFolderMember(v **types.FolderMember, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -39131,22 +46270,31 @@ func awsRestjson1_deserializeDocumentExportHiddenFieldsOption(v **types.ExportHi return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ExportHiddenFieldsOption + var sv *types.FolderMember if *v == nil { - sv = &types.ExportHiddenFieldsOption{} + sv = &types.FolderMember{} } else { sv = *v } for key, value := range shape { switch key { - case "AvailabilityStatus": + case "MemberId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected DashboardBehavior to be of type string, got %T instead", value) + return fmt.Errorf("expected RestrictiveResourceId to be of type string, got %T instead", value) } - sv.AvailabilityStatus = types.DashboardBehavior(jtv) + sv.MemberId = ptr.String(jtv) + } + + case "MemberType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MemberType to be of type string, got %T instead", value) + } + sv.MemberType = types.MemberType(jtv) } default: @@ -39158,7 +46306,7 @@ func awsRestjson1_deserializeDocumentExportHiddenFieldsOption(v **types.ExportHi return nil } -func awsRestjson1_deserializeDocumentExportToCSVOption(v **types.ExportToCSVOption, value interface{}) error { +func awsRestjson1_deserializeDocumentFolderMemberList(v *[]types.MemberIdArnPair, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -39166,39 +46314,33 @@ func awsRestjson1_deserializeDocumentExportToCSVOption(v **types.ExportToCSVOpti return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ExportToCSVOption + var cv []types.MemberIdArnPair if *v == nil { - sv = &types.ExportToCSVOption{} + cv = []types.MemberIdArnPair{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "AvailabilityStatus": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected DashboardBehavior to be of type string, got %T instead", value) - } - sv.AvailabilityStatus = types.DashboardBehavior(jtv) - } - - default: - _, _ = key, value - + for _, value := range shape { + var col types.MemberIdArnPair + destAddr := &col + if err := awsRestjson1_deserializeDocumentMemberIdArnPair(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsRestjson1_deserializeDocumentExportWithHiddenFieldsOption(v **types.ExportWithHiddenFieldsOption, value interface{}) error { +func awsRestjson1_deserializeDocumentFolderSummary(v **types.FolderSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -39211,22 +46353,81 @@ func awsRestjson1_deserializeDocumentExportWithHiddenFieldsOption(v **types.Expo return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ExportWithHiddenFieldsOption + var sv *types.FolderSummary if *v == nil { - sv = &types.ExportWithHiddenFieldsOption{} + sv = &types.FolderSummary{} } else { sv = *v } for key, value := range shape { switch key { - case "AvailabilityStatus": + case "Arn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected DashboardBehavior to be of type string, got %T instead", value) + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.AvailabilityStatus = types.DashboardBehavior(jtv) + sv.Arn = ptr.String(jtv) + } + + case "CreatedTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreatedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "FolderId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RestrictiveResourceId to be of type string, got %T instead", value) + } + sv.FolderId = ptr.String(jtv) + } + + case "FolderType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected FolderType to be of type string, got %T instead", value) + } + sv.FolderType = types.FolderType(jtv) + } + + case "LastUpdatedTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.LastUpdatedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "Name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected FolderName to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) } default: @@ -39238,7 +46439,41 @@ func awsRestjson1_deserializeDocumentExportWithHiddenFieldsOption(v **types.Expo return nil } -func awsRestjson1_deserializeDocumentFieldBasedTooltip(v **types.FieldBasedTooltip, value interface{}) error { +func awsRestjson1_deserializeDocumentFolderSummaryList(v *[]types.FolderSummary, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.FolderSummary + if *v == nil { + cv = []types.FolderSummary{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.FolderSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentFolderSummary(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentFont(v **types.Font, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -39251,36 +46486,22 @@ func awsRestjson1_deserializeDocumentFieldBasedTooltip(v **types.FieldBasedToolt return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.FieldBasedTooltip + var sv *types.Font if *v == nil { - sv = &types.FieldBasedTooltip{} + sv = &types.Font{} } else { sv = *v } for key, value := range shape { switch key { - case "AggregationVisibility": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) - } - sv.AggregationVisibility = types.Visibility(jtv) - } - - case "TooltipFields": - if err := awsRestjson1_deserializeDocumentTooltipItemList(&sv.TooltipFields, value); err != nil { - return err - } - - case "TooltipTitleType": + case "FontFamily": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected TooltipTitleType to be of type string, got %T instead", value) + return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.TooltipTitleType = types.TooltipTitleType(jtv) + sv.FontFamily = ptr.String(jtv) } default: @@ -39292,7 +46513,7 @@ func awsRestjson1_deserializeDocumentFieldBasedTooltip(v **types.FieldBasedToolt return nil } -func awsRestjson1_deserializeDocumentFieldFolder(v **types.FieldFolder, value interface{}) error { +func awsRestjson1_deserializeDocumentFontConfiguration(v **types.FontConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -39305,27 +46526,50 @@ func awsRestjson1_deserializeDocumentFieldFolder(v **types.FieldFolder, value in return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.FieldFolder + var sv *types.FontConfiguration if *v == nil { - sv = &types.FieldFolder{} + sv = &types.FontConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "columns": - if err := awsRestjson1_deserializeDocumentFolderColumnList(&sv.Columns, value); err != nil { + case "FontColor": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected HexColor to be of type string, got %T instead", value) + } + sv.FontColor = ptr.String(jtv) + } + + case "FontDecoration": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected FontDecoration to be of type string, got %T instead", value) + } + sv.FontDecoration = types.FontDecoration(jtv) + } + + case "FontSize": + if err := awsRestjson1_deserializeDocumentFontSize(&sv.FontSize, value); err != nil { return err } - case "description": + case "FontStyle": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected FieldFolderDescription to be of type string, got %T instead", value) + return fmt.Errorf("expected FontStyle to be of type string, got %T instead", value) } - sv.Description = ptr.String(jtv) + sv.FontStyle = types.FontStyle(jtv) + } + + case "FontWeight": + if err := awsRestjson1_deserializeDocumentFontWeight(&sv.FontWeight, value); err != nil { + return err } default: @@ -39337,7 +46581,7 @@ func awsRestjson1_deserializeDocumentFieldFolder(v **types.FieldFolder, value in return nil } -func awsRestjson1_deserializeDocumentFieldFolderMap(v *map[string]types.FieldFolder, value interface{}) error { +func awsRestjson1_deserializeDocumentFontList(v *[]types.Font, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -39345,34 +46589,33 @@ func awsRestjson1_deserializeDocumentFieldFolderMap(v *map[string]types.FieldFol return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]types.FieldFolder + var cv []types.Font if *v == nil { - mv = map[string]types.FieldFolder{} + cv = []types.Font{} } else { - mv = *v + cv = *v } - for key, value := range shape { - var parsedVal types.FieldFolder - mapVar := parsedVal - destAddr := &mapVar - if err := awsRestjson1_deserializeDocumentFieldFolder(&destAddr, value); err != nil { + for _, value := range shape { + var col types.Font + destAddr := &col + if err := awsRestjson1_deserializeDocumentFont(&destAddr, value); err != nil { return err } - parsedVal = *destAddr - mv[key] = parsedVal + col = *destAddr + cv = append(cv, col) } - *v = mv + *v = cv return nil } -func awsRestjson1_deserializeDocumentFieldLabelType(v **types.FieldLabelType, value interface{}) error { +func awsRestjson1_deserializeDocumentFontSize(v **types.FontSize, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -39385,31 +46628,22 @@ func awsRestjson1_deserializeDocumentFieldLabelType(v **types.FieldLabelType, va return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.FieldLabelType + var sv *types.FontSize if *v == nil { - sv = &types.FieldLabelType{} + sv = &types.FontSize{} } else { sv = *v } for key, value := range shape { switch key { - case "FieldId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected FieldId to be of type string, got %T instead", value) - } - sv.FieldId = ptr.String(jtv) - } - - case "Visibility": + case "Relative": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) + return fmt.Errorf("expected RelativeFontSize to be of type string, got %T instead", value) } - sv.Visibility = types.Visibility(jtv) + sv.Relative = types.RelativeFontSize(jtv) } default: @@ -39421,7 +46655,7 @@ func awsRestjson1_deserializeDocumentFieldLabelType(v **types.FieldLabelType, va return nil } -func awsRestjson1_deserializeDocumentFieldOrderList(v *[]string, value interface{}) error { +func awsRestjson1_deserializeDocumentFontWeight(v **types.FontWeight, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -39429,35 +46663,39 @@ func awsRestjson1_deserializeDocumentFieldOrderList(v *[]string, value interface return nil } - shape, ok := value.([]interface{}) + shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var cv []string + var sv *types.FontWeight if *v == nil { - cv = []string{} + sv = &types.FontWeight{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col string - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected FieldId to be of type string, got %T instead", value) + for key, value := range shape { + switch key { + case "Name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected FontWeightName to be of type string, got %T instead", value) + } + sv.Name = types.FontWeightName(jtv) } - col = jtv - } - cv = append(cv, col) + default: + _, _ = key, value + + } } - *v = cv + *v = sv return nil } -func awsRestjson1_deserializeDocumentFieldSeriesItem(v **types.FieldSeriesItem, value interface{}) error { +func awsRestjson1_deserializeDocumentForecastComputation(v **types.ForecastComputation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -39470,85 +46708,170 @@ func awsRestjson1_deserializeDocumentFieldSeriesItem(v **types.FieldSeriesItem, return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.FieldSeriesItem + var sv *types.ForecastComputation if *v == nil { - sv = &types.FieldSeriesItem{} + sv = &types.ForecastComputation{} } else { sv = *v } for key, value := range shape { switch key { - case "AxisBinding": + case "ComputationId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected AxisBinding to be of type string, got %T instead", value) + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) } - sv.AxisBinding = types.AxisBinding(jtv) + sv.ComputationId = ptr.String(jtv) } - case "FieldId": + case "CustomSeasonalityValue": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected FieldId to be of type string, got %T instead", value) + return fmt.Errorf("expected ForecastComputationCustomSeasonalityValue to be json.Number, got %T instead", value) } - sv.FieldId = ptr.String(jtv) + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.CustomSeasonalityValue = ptr.Int32(int32(i64)) } - case "Settings": - if err := awsRestjson1_deserializeDocumentLineChartSeriesSettings(&sv.Settings, value); err != nil { - return err - } + case "LowerBoundary": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.LowerBoundary = ptr.Float64(f64) - default: - _, _ = key, value + case string: + var f64 float64 + switch { + case strings.EqualFold(jtv, "NaN"): + f64 = math.NaN() - } - } - *v = sv - return nil -} + case strings.EqualFold(jtv, "Infinity"): + f64 = math.Inf(1) -func awsRestjson1_deserializeDocumentFieldSort(v **types.FieldSort, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } + case strings.EqualFold(jtv, "-Infinity"): + f64 = math.Inf(-1) - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } + default: + return fmt.Errorf("unknown JSON number value: %s", jtv) - var sv *types.FieldSort - if *v == nil { - sv = &types.FieldSort{} - } else { - sv = *v - } + } + sv.LowerBoundary = ptr.Float64(f64) - for key, value := range shape { - switch key { - case "Direction": + default: + return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value) + + } + } + + case "Name": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected SortDirection to be of type string, got %T instead", value) + return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Direction = types.SortDirection(jtv) + sv.Name = ptr.String(jtv) } - case "FieldId": + case "PeriodsBackward": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected PeriodsBackward to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.PeriodsBackward = ptr.Int32(int32(i64)) + } + + case "PeriodsForward": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected PeriodsForward to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.PeriodsForward = ptr.Int32(int32(i64)) + } + + case "PredictionInterval": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected PredictionInterval to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.PredictionInterval = ptr.Int32(int32(i64)) + } + + case "Seasonality": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected FieldId to be of type string, got %T instead", value) + return fmt.Errorf("expected ForecastComputationSeasonality to be of type string, got %T instead", value) } - sv.FieldId = ptr.String(jtv) + sv.Seasonality = types.ForecastComputationSeasonality(jtv) + } + + case "Time": + if err := awsRestjson1_deserializeDocumentDimensionField(&sv.Time, value); err != nil { + return err + } + + case "UpperBoundary": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.UpperBoundary = ptr.Float64(f64) + + case string: + var f64 float64 + switch { + case strings.EqualFold(jtv, "NaN"): + f64 = math.NaN() + + case strings.EqualFold(jtv, "Infinity"): + f64 = math.Inf(1) + + case strings.EqualFold(jtv, "-Infinity"): + f64 = math.Inf(-1) + + default: + return fmt.Errorf("unknown JSON number value: %s", jtv) + + } + sv.UpperBoundary = ptr.Float64(f64) + + default: + return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value) + + } + } + + case "Value": + if err := awsRestjson1_deserializeDocumentMeasureField(&sv.Value, value); err != nil { + return err } default: @@ -39560,7 +46883,7 @@ func awsRestjson1_deserializeDocumentFieldSort(v **types.FieldSort, value interf return nil } -func awsRestjson1_deserializeDocumentFieldSortOptions(v **types.FieldSortOptions, value interface{}) error { +func awsRestjson1_deserializeDocumentForecastConfiguration(v **types.ForecastConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -39573,22 +46896,22 @@ func awsRestjson1_deserializeDocumentFieldSortOptions(v **types.FieldSortOptions return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.FieldSortOptions + var sv *types.ForecastConfiguration if *v == nil { - sv = &types.FieldSortOptions{} + sv = &types.ForecastConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "ColumnSort": - if err := awsRestjson1_deserializeDocumentColumnSort(&sv.ColumnSort, value); err != nil { + case "ForecastProperties": + if err := awsRestjson1_deserializeDocumentTimeBasedForecastProperties(&sv.ForecastProperties, value); err != nil { return err } - case "FieldSort": - if err := awsRestjson1_deserializeDocumentFieldSort(&sv.FieldSort, value); err != nil { + case "Scenario": + if err := awsRestjson1_deserializeDocumentForecastScenario(&sv.Scenario, value); err != nil { return err } @@ -39601,7 +46924,7 @@ func awsRestjson1_deserializeDocumentFieldSortOptions(v **types.FieldSortOptions return nil } -func awsRestjson1_deserializeDocumentFieldSortOptionsList(v *[]types.FieldSortOptions, value interface{}) error { +func awsRestjson1_deserializeDocumentForecastConfigurationList(v *[]types.ForecastConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -39614,17 +46937,17 @@ func awsRestjson1_deserializeDocumentFieldSortOptionsList(v *[]types.FieldSortOp return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.FieldSortOptions + var cv []types.ForecastConfiguration if *v == nil { - cv = []types.FieldSortOptions{} + cv = []types.ForecastConfiguration{} } else { cv = *v } for _, value := range shape { - var col types.FieldSortOptions + var col types.ForecastConfiguration destAddr := &col - if err := awsRestjson1_deserializeDocumentFieldSortOptions(&destAddr, value); err != nil { + if err := awsRestjson1_deserializeDocumentForecastConfiguration(&destAddr, value); err != nil { return err } col = *destAddr @@ -39635,7 +46958,7 @@ func awsRestjson1_deserializeDocumentFieldSortOptionsList(v *[]types.FieldSortOp return nil } -func awsRestjson1_deserializeDocumentFieldTooltipItem(v **types.FieldTooltipItem, value interface{}) error { +func awsRestjson1_deserializeDocumentForecastScenario(v **types.ForecastScenario, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -39648,40 +46971,23 @@ func awsRestjson1_deserializeDocumentFieldTooltipItem(v **types.FieldTooltipItem return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.FieldTooltipItem + var sv *types.ForecastScenario if *v == nil { - sv = &types.FieldTooltipItem{} + sv = &types.ForecastScenario{} } else { sv = *v } for key, value := range shape { switch key { - case "FieldId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected FieldId to be of type string, got %T instead", value) - } - sv.FieldId = ptr.String(jtv) - } - - case "Label": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.Label = ptr.String(jtv) + case "WhatIfPointScenario": + if err := awsRestjson1_deserializeDocumentWhatIfPointScenario(&sv.WhatIfPointScenario, value); err != nil { + return err } - case "Visibility": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) - } - sv.Visibility = types.Visibility(jtv) + case "WhatIfRangeScenario": + if err := awsRestjson1_deserializeDocumentWhatIfRangeScenario(&sv.WhatIfRangeScenario, value); err != nil { + return err } default: @@ -39693,7 +46999,7 @@ func awsRestjson1_deserializeDocumentFieldTooltipItem(v **types.FieldTooltipItem return nil } -func awsRestjson1_deserializeDocumentFilledMapAggregatedFieldWells(v **types.FilledMapAggregatedFieldWells, value interface{}) error { +func awsRestjson1_deserializeDocumentFormatConfiguration(v **types.FormatConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -39706,22 +47012,27 @@ func awsRestjson1_deserializeDocumentFilledMapAggregatedFieldWells(v **types.Fil return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.FilledMapAggregatedFieldWells + var sv *types.FormatConfiguration if *v == nil { - sv = &types.FilledMapAggregatedFieldWells{} + sv = &types.FormatConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "Geospatial": - if err := awsRestjson1_deserializeDocumentFilledMapDimensionFieldList(&sv.Geospatial, value); err != nil { + case "DateTimeFormatConfiguration": + if err := awsRestjson1_deserializeDocumentDateTimeFormatConfiguration(&sv.DateTimeFormatConfiguration, value); err != nil { return err } - case "Values": - if err := awsRestjson1_deserializeDocumentFilledMapMeasureFieldList(&sv.Values, value); err != nil { + case "NumberFormatConfiguration": + if err := awsRestjson1_deserializeDocumentNumberFormatConfiguration(&sv.NumberFormatConfiguration, value); err != nil { + return err + } + + case "StringFormatConfiguration": + if err := awsRestjson1_deserializeDocumentStringFormatConfiguration(&sv.StringFormatConfiguration, value); err != nil { return err } @@ -39734,7 +47045,7 @@ func awsRestjson1_deserializeDocumentFilledMapAggregatedFieldWells(v **types.Fil return nil } -func awsRestjson1_deserializeDocumentFilledMapConditionalFormatting(v **types.FilledMapConditionalFormatting, value interface{}) error { +func awsRestjson1_deserializeDocumentFreeFormLayoutCanvasSizeOptions(v **types.FreeFormLayoutCanvasSizeOptions, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -39747,17 +47058,17 @@ func awsRestjson1_deserializeDocumentFilledMapConditionalFormatting(v **types.Fi return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.FilledMapConditionalFormatting + var sv *types.FreeFormLayoutCanvasSizeOptions if *v == nil { - sv = &types.FilledMapConditionalFormatting{} + sv = &types.FreeFormLayoutCanvasSizeOptions{} } else { sv = *v } for key, value := range shape { switch key { - case "ConditionalFormattingOptions": - if err := awsRestjson1_deserializeDocumentFilledMapConditionalFormattingOptionList(&sv.ConditionalFormattingOptions, value); err != nil { + case "ScreenCanvasSizeOptions": + if err := awsRestjson1_deserializeDocumentFreeFormLayoutScreenCanvasSizeOptions(&sv.ScreenCanvasSizeOptions, value); err != nil { return err } @@ -39770,7 +47081,7 @@ func awsRestjson1_deserializeDocumentFilledMapConditionalFormatting(v **types.Fi return nil } -func awsRestjson1_deserializeDocumentFilledMapConditionalFormattingOption(v **types.FilledMapConditionalFormattingOption, value interface{}) error { +func awsRestjson1_deserializeDocumentFreeFormLayoutConfiguration(v **types.FreeFormLayoutConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -39783,17 +47094,22 @@ func awsRestjson1_deserializeDocumentFilledMapConditionalFormattingOption(v **ty return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.FilledMapConditionalFormattingOption + var sv *types.FreeFormLayoutConfiguration if *v == nil { - sv = &types.FilledMapConditionalFormattingOption{} + sv = &types.FreeFormLayoutConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "Shape": - if err := awsRestjson1_deserializeDocumentFilledMapShapeConditionalFormatting(&sv.Shape, value); err != nil { + case "CanvasSizeOptions": + if err := awsRestjson1_deserializeDocumentFreeFormLayoutCanvasSizeOptions(&sv.CanvasSizeOptions, value); err != nil { + return err + } + + case "Elements": + if err := awsRestjson1_deserializeDocumentFreeFromLayoutElementList(&sv.Elements, value); err != nil { return err } @@ -39806,7 +47122,7 @@ func awsRestjson1_deserializeDocumentFilledMapConditionalFormattingOption(v **ty return nil } -func awsRestjson1_deserializeDocumentFilledMapConditionalFormattingOptionList(v *[]types.FilledMapConditionalFormattingOption, value interface{}) error { +func awsRestjson1_deserializeDocumentFreeFormLayoutElement(v **types.FreeFormLayoutElement, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -39814,82 +47130,106 @@ func awsRestjson1_deserializeDocumentFilledMapConditionalFormattingOptionList(v return nil } - shape, ok := value.([]interface{}) + shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.FilledMapConditionalFormattingOption + var sv *types.FreeFormLayoutElement if *v == nil { - cv = []types.FilledMapConditionalFormattingOption{} + sv = &types.FreeFormLayoutElement{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col types.FilledMapConditionalFormattingOption - destAddr := &col - if err := awsRestjson1_deserializeDocumentFilledMapConditionalFormattingOption(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) + for key, value := range shape { + switch key { + case "BackgroundStyle": + if err := awsRestjson1_deserializeDocumentFreeFormLayoutElementBackgroundStyle(&sv.BackgroundStyle, value); err != nil { + return err + } - } - *v = cv - return nil -} + case "BorderStyle": + if err := awsRestjson1_deserializeDocumentFreeFormLayoutElementBorderStyle(&sv.BorderStyle, value); err != nil { + return err + } -func awsRestjson1_deserializeDocumentFilledMapConfiguration(v **types.FilledMapConfiguration, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } + case "ElementId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + } + sv.ElementId = ptr.String(jtv) + } - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } + case "ElementType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected LayoutElementType to be of type string, got %T instead", value) + } + sv.ElementType = types.LayoutElementType(jtv) + } - var sv *types.FilledMapConfiguration - if *v == nil { - sv = &types.FilledMapConfiguration{} - } else { - sv = *v - } + case "Height": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected PixelLength to be of type string, got %T instead", value) + } + sv.Height = ptr.String(jtv) + } - for key, value := range shape { - switch key { - case "FieldWells": - if err := awsRestjson1_deserializeDocumentFilledMapFieldWells(&sv.FieldWells, value); err != nil { + case "LoadingAnimation": + if err := awsRestjson1_deserializeDocumentLoadingAnimation(&sv.LoadingAnimation, value); err != nil { return err } - case "Legend": - if err := awsRestjson1_deserializeDocumentLegendOptions(&sv.Legend, value); err != nil { + case "RenderingRules": + if err := awsRestjson1_deserializeDocumentSheetElementRenderingRuleList(&sv.RenderingRules, value); err != nil { return err } - case "MapStyleOptions": - if err := awsRestjson1_deserializeDocumentGeospatialMapStyleOptions(&sv.MapStyleOptions, value); err != nil { + case "SelectedBorderStyle": + if err := awsRestjson1_deserializeDocumentFreeFormLayoutElementBorderStyle(&sv.SelectedBorderStyle, value); err != nil { return err } - case "SortConfiguration": - if err := awsRestjson1_deserializeDocumentFilledMapSortConfiguration(&sv.SortConfiguration, value); err != nil { - return err + case "Visibility": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) + } + sv.Visibility = types.Visibility(jtv) + } + + case "Width": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected PixelLength to be of type string, got %T instead", value) + } + sv.Width = ptr.String(jtv) } - case "Tooltip": - if err := awsRestjson1_deserializeDocumentTooltipOptions(&sv.Tooltip, value); err != nil { - return err + case "XAxisLocation": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected PixelLength to be of type string, got %T instead", value) + } + sv.XAxisLocation = ptr.String(jtv) } - case "WindowOptions": - if err := awsRestjson1_deserializeDocumentGeospatialWindowOptions(&sv.WindowOptions, value); err != nil { - return err + case "YAxisLocation": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected UnlimitedPixelLength to be of type string, got %T instead", value) + } + sv.YAxisLocation = ptr.String(jtv) } default: @@ -39901,7 +47241,7 @@ func awsRestjson1_deserializeDocumentFilledMapConfiguration(v **types.FilledMapC return nil } -func awsRestjson1_deserializeDocumentFilledMapDimensionFieldList(v *[]types.DimensionField, value interface{}) error { +func awsRestjson1_deserializeDocumentFreeFormLayoutElementBackgroundStyle(v **types.FreeFormLayoutElementBackgroundStyle, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -39909,33 +47249,48 @@ func awsRestjson1_deserializeDocumentFilledMapDimensionFieldList(v *[]types.Dime return nil } - shape, ok := value.([]interface{}) + shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.DimensionField + var sv *types.FreeFormLayoutElementBackgroundStyle if *v == nil { - cv = []types.DimensionField{} + sv = &types.FreeFormLayoutElementBackgroundStyle{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col types.DimensionField - destAddr := &col - if err := awsRestjson1_deserializeDocumentDimensionField(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) + for key, value := range shape { + switch key { + case "Color": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected HexColorWithTransparency to be of type string, got %T instead", value) + } + sv.Color = ptr.String(jtv) + } + + case "Visibility": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) + } + sv.Visibility = types.Visibility(jtv) + } + default: + _, _ = key, value + + } } - *v = cv + *v = sv return nil } -func awsRestjson1_deserializeDocumentFilledMapFieldWells(v **types.FilledMapFieldWells, value interface{}) error { +func awsRestjson1_deserializeDocumentFreeFormLayoutElementBorderStyle(v **types.FreeFormLayoutElementBorderStyle, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -39948,18 +47303,31 @@ func awsRestjson1_deserializeDocumentFilledMapFieldWells(v **types.FilledMapFiel return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.FilledMapFieldWells + var sv *types.FreeFormLayoutElementBorderStyle if *v == nil { - sv = &types.FilledMapFieldWells{} + sv = &types.FreeFormLayoutElementBorderStyle{} } else { sv = *v } for key, value := range shape { switch key { - case "FilledMapAggregatedFieldWells": - if err := awsRestjson1_deserializeDocumentFilledMapAggregatedFieldWells(&sv.FilledMapAggregatedFieldWells, value); err != nil { - return err + case "Color": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected HexColorWithTransparency to be of type string, got %T instead", value) + } + sv.Color = ptr.String(jtv) + } + + case "Visibility": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) + } + sv.Visibility = types.Visibility(jtv) } default: @@ -39971,7 +47339,7 @@ func awsRestjson1_deserializeDocumentFilledMapFieldWells(v **types.FilledMapFiel return nil } -func awsRestjson1_deserializeDocumentFilledMapMeasureFieldList(v *[]types.MeasureField, value interface{}) error { +func awsRestjson1_deserializeDocumentFreeFormLayoutScreenCanvasSizeOptions(v **types.FreeFormLayoutScreenCanvasSizeOptions, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -39979,33 +47347,39 @@ func awsRestjson1_deserializeDocumentFilledMapMeasureFieldList(v *[]types.Measur return nil } - shape, ok := value.([]interface{}) + shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.MeasureField + var sv *types.FreeFormLayoutScreenCanvasSizeOptions if *v == nil { - cv = []types.MeasureField{} + sv = &types.FreeFormLayoutScreenCanvasSizeOptions{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col types.MeasureField - destAddr := &col - if err := awsRestjson1_deserializeDocumentMeasureField(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) + for key, value := range shape { + switch key { + case "OptimizedViewPortWidth": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected PixelLength to be of type string, got %T instead", value) + } + sv.OptimizedViewPortWidth = ptr.String(jtv) + } + + default: + _, _ = key, value + } } - *v = cv + *v = sv return nil } -func awsRestjson1_deserializeDocumentFilledMapShapeConditionalFormatting(v **types.FilledMapShapeConditionalFormatting, value interface{}) error { +func awsRestjson1_deserializeDocumentFreeFormSectionLayoutConfiguration(v **types.FreeFormSectionLayoutConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -40018,26 +47392,17 @@ func awsRestjson1_deserializeDocumentFilledMapShapeConditionalFormatting(v **typ return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.FilledMapShapeConditionalFormatting + var sv *types.FreeFormSectionLayoutConfiguration if *v == nil { - sv = &types.FilledMapShapeConditionalFormatting{} + sv = &types.FreeFormSectionLayoutConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "FieldId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected FieldId to be of type string, got %T instead", value) - } - sv.FieldId = ptr.String(jtv) - } - - case "Format": - if err := awsRestjson1_deserializeDocumentShapeConditionalFormat(&sv.Format, value); err != nil { + case "Elements": + if err := awsRestjson1_deserializeDocumentFreeFromLayoutElementList(&sv.Elements, value); err != nil { return err } @@ -40050,7 +47415,7 @@ func awsRestjson1_deserializeDocumentFilledMapShapeConditionalFormatting(v **typ return nil } -func awsRestjson1_deserializeDocumentFilledMapSortConfiguration(v **types.FilledMapSortConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentFreeFromLayoutElementList(v *[]types.FreeFormLayoutElement, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -40058,35 +47423,33 @@ func awsRestjson1_deserializeDocumentFilledMapSortConfiguration(v **types.Filled return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.FilledMapSortConfiguration + var cv []types.FreeFormLayoutElement if *v == nil { - sv = &types.FilledMapSortConfiguration{} + cv = []types.FreeFormLayoutElement{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "CategorySort": - if err := awsRestjson1_deserializeDocumentFieldSortOptionsList(&sv.CategorySort, value); err != nil { - return err - } - - default: - _, _ = key, value - + for _, value := range shape { + var col types.FreeFormLayoutElement + destAddr := &col + if err := awsRestjson1_deserializeDocumentFreeFormLayoutElement(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsRestjson1_deserializeDocumentFilledMapVisual(v **types.FilledMapVisual, value interface{}) error { +func awsRestjson1_deserializeDocumentFunnelChartAggregatedFieldWells(v **types.FunnelChartAggregatedFieldWells, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -40099,54 +47462,25 @@ func awsRestjson1_deserializeDocumentFilledMapVisual(v **types.FilledMapVisual, return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.FilledMapVisual + var sv *types.FunnelChartAggregatedFieldWells if *v == nil { - sv = &types.FilledMapVisual{} + sv = &types.FunnelChartAggregatedFieldWells{} } else { sv = *v } for key, value := range shape { switch key { - case "Actions": - if err := awsRestjson1_deserializeDocumentVisualCustomActionList(&sv.Actions, value); err != nil { - return err - } - - case "ChartConfiguration": - if err := awsRestjson1_deserializeDocumentFilledMapConfiguration(&sv.ChartConfiguration, value); err != nil { - return err - } - - case "ColumnHierarchies": - if err := awsRestjson1_deserializeDocumentColumnHierarchyList(&sv.ColumnHierarchies, value); err != nil { - return err - } - - case "ConditionalFormatting": - if err := awsRestjson1_deserializeDocumentFilledMapConditionalFormatting(&sv.ConditionalFormatting, value); err != nil { - return err - } - - case "Subtitle": - if err := awsRestjson1_deserializeDocumentVisualSubtitleLabelOptions(&sv.Subtitle, value); err != nil { + case "Category": + if err := awsRestjson1_deserializeDocumentFunnelChartDimensionFieldList(&sv.Category, value); err != nil { return err } - case "Title": - if err := awsRestjson1_deserializeDocumentVisualTitleLabelOptions(&sv.Title, value); err != nil { + case "Values": + if err := awsRestjson1_deserializeDocumentFunnelChartMeasureFieldList(&sv.Values, value); err != nil { return err } - case "VisualId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) - } - sv.VisualId = ptr.String(jtv) - } - default: _, _ = key, value @@ -40156,7 +47490,7 @@ func awsRestjson1_deserializeDocumentFilledMapVisual(v **types.FilledMapVisual, return nil } -func awsRestjson1_deserializeDocumentFilter(v **types.Filter, value interface{}) error { +func awsRestjson1_deserializeDocumentFunnelChartConfiguration(v **types.FunnelChartConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -40169,47 +47503,47 @@ func awsRestjson1_deserializeDocumentFilter(v **types.Filter, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.Filter + var sv *types.FunnelChartConfiguration if *v == nil { - sv = &types.Filter{} + sv = &types.FunnelChartConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "CategoryFilter": - if err := awsRestjson1_deserializeDocumentCategoryFilter(&sv.CategoryFilter, value); err != nil { + case "CategoryLabelOptions": + if err := awsRestjson1_deserializeDocumentChartAxisLabelOptions(&sv.CategoryLabelOptions, value); err != nil { return err } - case "NumericEqualityFilter": - if err := awsRestjson1_deserializeDocumentNumericEqualityFilter(&sv.NumericEqualityFilter, value); err != nil { + case "DataLabelOptions": + if err := awsRestjson1_deserializeDocumentFunnelChartDataLabelOptions(&sv.DataLabelOptions, value); err != nil { return err } - case "NumericRangeFilter": - if err := awsRestjson1_deserializeDocumentNumericRangeFilter(&sv.NumericRangeFilter, value); err != nil { + case "FieldWells": + if err := awsRestjson1_deserializeDocumentFunnelChartFieldWells(&sv.FieldWells, value); err != nil { return err } - case "RelativeDatesFilter": - if err := awsRestjson1_deserializeDocumentRelativeDatesFilter(&sv.RelativeDatesFilter, value); err != nil { + case "SortConfiguration": + if err := awsRestjson1_deserializeDocumentFunnelChartSortConfiguration(&sv.SortConfiguration, value); err != nil { return err } - case "TimeEqualityFilter": - if err := awsRestjson1_deserializeDocumentTimeEqualityFilter(&sv.TimeEqualityFilter, value); err != nil { + case "Tooltip": + if err := awsRestjson1_deserializeDocumentTooltipOptions(&sv.Tooltip, value); err != nil { return err } - case "TimeRangeFilter": - if err := awsRestjson1_deserializeDocumentTimeRangeFilter(&sv.TimeRangeFilter, value); err != nil { + case "ValueLabelOptions": + if err := awsRestjson1_deserializeDocumentChartAxisLabelOptions(&sv.ValueLabelOptions, value); err != nil { return err } - case "TopBottomFilter": - if err := awsRestjson1_deserializeDocumentTopBottomFilter(&sv.TopBottomFilter, value); err != nil { + case "VisualPalette": + if err := awsRestjson1_deserializeDocumentVisualPalette(&sv.VisualPalette, value); err != nil { return err } @@ -40222,7 +47556,7 @@ func awsRestjson1_deserializeDocumentFilter(v **types.Filter, value interface{}) return nil } -func awsRestjson1_deserializeDocumentFilterControl(v **types.FilterControl, value interface{}) error { +func awsRestjson1_deserializeDocumentFunnelChartDataLabelOptions(v **types.FunnelChartDataLabelOptions, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -40235,48 +47569,72 @@ func awsRestjson1_deserializeDocumentFilterControl(v **types.FilterControl, valu return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.FilterControl + var sv *types.FunnelChartDataLabelOptions if *v == nil { - sv = &types.FilterControl{} + sv = &types.FunnelChartDataLabelOptions{} } else { sv = *v } for key, value := range shape { switch key { - case "DateTimePicker": - if err := awsRestjson1_deserializeDocumentFilterDateTimePickerControl(&sv.DateTimePicker, value); err != nil { - return err + case "CategoryLabelVisibility": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) + } + sv.CategoryLabelVisibility = types.Visibility(jtv) } - case "Dropdown": - if err := awsRestjson1_deserializeDocumentFilterDropDownControl(&sv.Dropdown, value); err != nil { - return err + case "LabelColor": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected HexColor to be of type string, got %T instead", value) + } + sv.LabelColor = ptr.String(jtv) } - case "List": - if err := awsRestjson1_deserializeDocumentFilterListControl(&sv.List, value); err != nil { + case "LabelFontConfiguration": + if err := awsRestjson1_deserializeDocumentFontConfiguration(&sv.LabelFontConfiguration, value); err != nil { return err } - case "RelativeDateTime": - if err := awsRestjson1_deserializeDocumentFilterRelativeDateTimeControl(&sv.RelativeDateTime, value); err != nil { - return err + case "MeasureDataLabelStyle": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected FunnelChartMeasureDataLabelStyle to be of type string, got %T instead", value) + } + sv.MeasureDataLabelStyle = types.FunnelChartMeasureDataLabelStyle(jtv) } - case "Slider": - if err := awsRestjson1_deserializeDocumentFilterSliderControl(&sv.Slider, value); err != nil { - return err + case "MeasureLabelVisibility": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) + } + sv.MeasureLabelVisibility = types.Visibility(jtv) } - case "TextArea": - if err := awsRestjson1_deserializeDocumentFilterTextAreaControl(&sv.TextArea, value); err != nil { - return err + case "Position": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DataLabelPosition to be of type string, got %T instead", value) + } + sv.Position = types.DataLabelPosition(jtv) } - case "TextField": - if err := awsRestjson1_deserializeDocumentFilterTextFieldControl(&sv.TextField, value); err != nil { - return err + case "Visibility": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) + } + sv.Visibility = types.Visibility(jtv) } default: @@ -40288,7 +47646,7 @@ func awsRestjson1_deserializeDocumentFilterControl(v **types.FilterControl, valu return nil } -func awsRestjson1_deserializeDocumentFilterControlList(v *[]types.FilterControl, value interface{}) error { +func awsRestjson1_deserializeDocumentFunnelChartDimensionFieldList(v *[]types.DimensionField, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -40301,17 +47659,17 @@ func awsRestjson1_deserializeDocumentFilterControlList(v *[]types.FilterControl, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.FilterControl + var cv []types.DimensionField if *v == nil { - cv = []types.FilterControl{} + cv = []types.DimensionField{} } else { cv = *v } for _, value := range shape { - var col types.FilterControl + var col types.DimensionField destAddr := &col - if err := awsRestjson1_deserializeDocumentFilterControl(&destAddr, value); err != nil { + if err := awsRestjson1_deserializeDocumentDimensionField(&destAddr, value); err != nil { return err } col = *destAddr @@ -40322,7 +47680,7 @@ func awsRestjson1_deserializeDocumentFilterControlList(v *[]types.FilterControl, return nil } -func awsRestjson1_deserializeDocumentFilterDateTimePickerControl(v **types.FilterDateTimePickerControl, value interface{}) error { +func awsRestjson1_deserializeDocumentFunnelChartFieldWells(v **types.FunnelChartFieldWells, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -40335,56 +47693,20 @@ func awsRestjson1_deserializeDocumentFilterDateTimePickerControl(v **types.Filte return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.FilterDateTimePickerControl + var sv *types.FunnelChartFieldWells if *v == nil { - sv = &types.FilterDateTimePickerControl{} + sv = &types.FunnelChartFieldWells{} } else { sv = *v } for key, value := range shape { switch key { - case "DisplayOptions": - if err := awsRestjson1_deserializeDocumentDateTimePickerControlDisplayOptions(&sv.DisplayOptions, value); err != nil { + case "FunnelChartAggregatedFieldWells": + if err := awsRestjson1_deserializeDocumentFunnelChartAggregatedFieldWells(&sv.FunnelChartAggregatedFieldWells, value); err != nil { return err } - case "FilterControlId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) - } - sv.FilterControlId = ptr.String(jtv) - } - - case "SourceFilterId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) - } - sv.SourceFilterId = ptr.String(jtv) - } - - case "Title": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected SheetControlTitle to be of type string, got %T instead", value) - } - sv.Title = ptr.String(jtv) - } - - case "Type": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected SheetControlDateTimePickerType to be of type string, got %T instead", value) - } - sv.Type = types.SheetControlDateTimePickerType(jtv) - } - default: _, _ = key, value @@ -40394,7 +47716,7 @@ func awsRestjson1_deserializeDocumentFilterDateTimePickerControl(v **types.Filte return nil } -func awsRestjson1_deserializeDocumentFilterDropDownControl(v **types.FilterDropDownControl, value interface{}) error { +func awsRestjson1_deserializeDocumentFunnelChartMeasureFieldList(v *[]types.MeasureField, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -40402,81 +47724,33 @@ func awsRestjson1_deserializeDocumentFilterDropDownControl(v **types.FilterDropD return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.FilterDropDownControl + var cv []types.MeasureField if *v == nil { - sv = &types.FilterDropDownControl{} + cv = []types.MeasureField{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "CascadingControlConfiguration": - if err := awsRestjson1_deserializeDocumentCascadingControlConfiguration(&sv.CascadingControlConfiguration, value); err != nil { - return err - } - - case "DisplayOptions": - if err := awsRestjson1_deserializeDocumentDropDownControlDisplayOptions(&sv.DisplayOptions, value); err != nil { - return err - } - - case "FilterControlId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) - } - sv.FilterControlId = ptr.String(jtv) - } - - case "SelectableValues": - if err := awsRestjson1_deserializeDocumentFilterSelectableValues(&sv.SelectableValues, value); err != nil { - return err - } - - case "SourceFilterId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) - } - sv.SourceFilterId = ptr.String(jtv) - } - - case "Title": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected SheetControlTitle to be of type string, got %T instead", value) - } - sv.Title = ptr.String(jtv) - } - - case "Type": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected SheetControlListType to be of type string, got %T instead", value) - } - sv.Type = types.SheetControlListType(jtv) - } - - default: - _, _ = key, value - + for _, value := range shape { + var col types.MeasureField + destAddr := &col + if err := awsRestjson1_deserializeDocumentMeasureField(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsRestjson1_deserializeDocumentFilteredVisualsList(v *[]string, value interface{}) error { +func awsRestjson1_deserializeDocumentFunnelChartSortConfiguration(v **types.FunnelChartSortConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -40484,35 +47758,40 @@ func awsRestjson1_deserializeDocumentFilteredVisualsList(v *[]string, value inte return nil } - shape, ok := value.([]interface{}) + shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var cv []string + var sv *types.FunnelChartSortConfiguration if *v == nil { - cv = []string{} + sv = &types.FunnelChartSortConfiguration{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col string - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + for key, value := range shape { + switch key { + case "CategoryItemsLimit": + if err := awsRestjson1_deserializeDocumentItemsLimitConfiguration(&sv.CategoryItemsLimit, value); err != nil { + return err } - col = jtv - } - cv = append(cv, col) + case "CategorySort": + if err := awsRestjson1_deserializeDocumentFieldSortOptionsList(&sv.CategorySort, value); err != nil { + return err + } + + default: + _, _ = key, value + + } } - *v = cv + *v = sv return nil } -func awsRestjson1_deserializeDocumentFilterGroup(v **types.FilterGroup, value interface{}) error { +func awsRestjson1_deserializeDocumentFunnelChartVisual(v **types.FunnelChartVisual, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -40525,50 +47804,47 @@ func awsRestjson1_deserializeDocumentFilterGroup(v **types.FilterGroup, value in return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.FilterGroup + var sv *types.FunnelChartVisual if *v == nil { - sv = &types.FilterGroup{} + sv = &types.FunnelChartVisual{} } else { sv = *v } - for key, value := range shape { - switch key { - case "CrossDataset": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected CrossDatasetTypes to be of type string, got %T instead", value) - } - sv.CrossDataset = types.CrossDatasetTypes(jtv) + for key, value := range shape { + switch key { + case "Actions": + if err := awsRestjson1_deserializeDocumentVisualCustomActionList(&sv.Actions, value); err != nil { + return err + } + + case "ChartConfiguration": + if err := awsRestjson1_deserializeDocumentFunnelChartConfiguration(&sv.ChartConfiguration, value); err != nil { + return err } - case "FilterGroupId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) - } - sv.FilterGroupId = ptr.String(jtv) + case "ColumnHierarchies": + if err := awsRestjson1_deserializeDocumentColumnHierarchyList(&sv.ColumnHierarchies, value); err != nil { + return err } - case "Filters": - if err := awsRestjson1_deserializeDocumentFilterList(&sv.Filters, value); err != nil { + case "Subtitle": + if err := awsRestjson1_deserializeDocumentVisualSubtitleLabelOptions(&sv.Subtitle, value); err != nil { return err } - case "ScopeConfiguration": - if err := awsRestjson1_deserializeDocumentFilterScopeConfiguration(&sv.ScopeConfiguration, value); err != nil { + case "Title": + if err := awsRestjson1_deserializeDocumentVisualTitleLabelOptions(&sv.Title, value); err != nil { return err } - case "Status": + case "VisualId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected WidgetStatus to be of type string, got %T instead", value) + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) } - sv.Status = types.WidgetStatus(jtv) + sv.VisualId = ptr.String(jtv) } default: @@ -40580,7 +47856,7 @@ func awsRestjson1_deserializeDocumentFilterGroup(v **types.FilterGroup, value in return nil } -func awsRestjson1_deserializeDocumentFilterGroupList(v *[]types.FilterGroup, value interface{}) error { +func awsRestjson1_deserializeDocumentGaugeChartArcConditionalFormatting(v **types.GaugeChartArcConditionalFormatting, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -40588,33 +47864,35 @@ func awsRestjson1_deserializeDocumentFilterGroupList(v *[]types.FilterGroup, val return nil } - shape, ok := value.([]interface{}) + shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.FilterGroup + var sv *types.GaugeChartArcConditionalFormatting if *v == nil { - cv = []types.FilterGroup{} + sv = &types.GaugeChartArcConditionalFormatting{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col types.FilterGroup - destAddr := &col - if err := awsRestjson1_deserializeDocumentFilterGroup(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) + for key, value := range shape { + switch key { + case "ForegroundColor": + if err := awsRestjson1_deserializeDocumentConditionalFormattingColor(&sv.ForegroundColor, value); err != nil { + return err + } + + default: + _, _ = key, value + } } - *v = cv + *v = sv return nil } -func awsRestjson1_deserializeDocumentFilterList(v *[]types.Filter, value interface{}) error { +func awsRestjson1_deserializeDocumentGaugeChartConditionalFormatting(v **types.GaugeChartConditionalFormatting, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -40622,33 +47900,35 @@ func awsRestjson1_deserializeDocumentFilterList(v *[]types.Filter, value interfa return nil } - shape, ok := value.([]interface{}) + shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.Filter + var sv *types.GaugeChartConditionalFormatting if *v == nil { - cv = []types.Filter{} + sv = &types.GaugeChartConditionalFormatting{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col types.Filter - destAddr := &col - if err := awsRestjson1_deserializeDocumentFilter(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) + for key, value := range shape { + switch key { + case "ConditionalFormattingOptions": + if err := awsRestjson1_deserializeDocumentGaugeChartConditionalFormattingOptionList(&sv.ConditionalFormattingOptions, value); err != nil { + return err + } + + default: + _, _ = key, value + } } - *v = cv + *v = sv return nil } -func awsRestjson1_deserializeDocumentFilterListConfiguration(v **types.FilterListConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentGaugeChartConditionalFormattingOption(v **types.GaugeChartConditionalFormattingOption, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -40661,36 +47941,23 @@ func awsRestjson1_deserializeDocumentFilterListConfiguration(v **types.FilterLis return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.FilterListConfiguration + var sv *types.GaugeChartConditionalFormattingOption if *v == nil { - sv = &types.FilterListConfiguration{} + sv = &types.GaugeChartConditionalFormattingOption{} } else { sv = *v } for key, value := range shape { switch key { - case "CategoryValues": - if err := awsRestjson1_deserializeDocumentCategoryValueList(&sv.CategoryValues, value); err != nil { + case "Arc": + if err := awsRestjson1_deserializeDocumentGaugeChartArcConditionalFormatting(&sv.Arc, value); err != nil { return err } - case "MatchOperator": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected CategoryFilterMatchOperator to be of type string, got %T instead", value) - } - sv.MatchOperator = types.CategoryFilterMatchOperator(jtv) - } - - case "SelectAllOptions": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected CategoryFilterSelectAllOptions to be of type string, got %T instead", value) - } - sv.SelectAllOptions = types.CategoryFilterSelectAllOptions(jtv) + case "PrimaryValue": + if err := awsRestjson1_deserializeDocumentGaugeChartPrimaryValueConditionalFormatting(&sv.PrimaryValue, value); err != nil { + return err } default: @@ -40702,7 +47969,41 @@ func awsRestjson1_deserializeDocumentFilterListConfiguration(v **types.FilterLis return nil } -func awsRestjson1_deserializeDocumentFilterListControl(v **types.FilterListControl, value interface{}) error { +func awsRestjson1_deserializeDocumentGaugeChartConditionalFormattingOptionList(v *[]types.GaugeChartConditionalFormattingOption, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.GaugeChartConditionalFormattingOption + if *v == nil { + cv = []types.GaugeChartConditionalFormattingOption{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.GaugeChartConditionalFormattingOption + destAddr := &col + if err := awsRestjson1_deserializeDocumentGaugeChartConditionalFormattingOption(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentGaugeChartConfiguration(v **types.GaugeChartConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -40715,64 +48016,38 @@ func awsRestjson1_deserializeDocumentFilterListControl(v **types.FilterListContr return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.FilterListControl + var sv *types.GaugeChartConfiguration if *v == nil { - sv = &types.FilterListControl{} + sv = &types.GaugeChartConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "CascadingControlConfiguration": - if err := awsRestjson1_deserializeDocumentCascadingControlConfiguration(&sv.CascadingControlConfiguration, value); err != nil { + case "DataLabels": + if err := awsRestjson1_deserializeDocumentDataLabelOptions(&sv.DataLabels, value); err != nil { return err } - case "DisplayOptions": - if err := awsRestjson1_deserializeDocumentListControlDisplayOptions(&sv.DisplayOptions, value); err != nil { + case "FieldWells": + if err := awsRestjson1_deserializeDocumentGaugeChartFieldWells(&sv.FieldWells, value); err != nil { return err } - case "FilterControlId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) - } - sv.FilterControlId = ptr.String(jtv) - } - - case "SelectableValues": - if err := awsRestjson1_deserializeDocumentFilterSelectableValues(&sv.SelectableValues, value); err != nil { + case "GaugeChartOptions": + if err := awsRestjson1_deserializeDocumentGaugeChartOptions(&sv.GaugeChartOptions, value); err != nil { return err } - case "SourceFilterId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) - } - sv.SourceFilterId = ptr.String(jtv) - } - - case "Title": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected SheetControlTitle to be of type string, got %T instead", value) - } - sv.Title = ptr.String(jtv) + case "TooltipOptions": + if err := awsRestjson1_deserializeDocumentTooltipOptions(&sv.TooltipOptions, value); err != nil { + return err } - case "Type": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected SheetControlListType to be of type string, got %T instead", value) - } - sv.Type = types.SheetControlListType(jtv) + case "VisualPalette": + if err := awsRestjson1_deserializeDocumentVisualPalette(&sv.VisualPalette, value); err != nil { + return err } default: @@ -40784,7 +48059,7 @@ func awsRestjson1_deserializeDocumentFilterListControl(v **types.FilterListContr return nil } -func awsRestjson1_deserializeDocumentFilterOperation(v **types.FilterOperation, value interface{}) error { +func awsRestjson1_deserializeDocumentGaugeChartFieldWells(v **types.GaugeChartFieldWells, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -40797,22 +48072,23 @@ func awsRestjson1_deserializeDocumentFilterOperation(v **types.FilterOperation, return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.FilterOperation + var sv *types.GaugeChartFieldWells if *v == nil { - sv = &types.FilterOperation{} + sv = &types.GaugeChartFieldWells{} } else { sv = *v } for key, value := range shape { switch key { - case "ConditionExpression": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Expression to be of type string, got %T instead", value) - } - sv.ConditionExpression = ptr.String(jtv) + case "TargetValues": + if err := awsRestjson1_deserializeDocumentMeasureFieldList(&sv.TargetValues, value); err != nil { + return err + } + + case "Values": + if err := awsRestjson1_deserializeDocumentMeasureFieldList(&sv.Values, value); err != nil { + return err } default: @@ -40824,7 +48100,7 @@ func awsRestjson1_deserializeDocumentFilterOperation(v **types.FilterOperation, return nil } -func awsRestjson1_deserializeDocumentFilterOperationSelectedFieldsConfiguration(v **types.FilterOperationSelectedFieldsConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentGaugeChartOptions(v **types.GaugeChartOptions, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -40837,26 +48113,41 @@ func awsRestjson1_deserializeDocumentFilterOperationSelectedFieldsConfiguration( return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.FilterOperationSelectedFieldsConfiguration + var sv *types.GaugeChartOptions if *v == nil { - sv = &types.FilterOperationSelectedFieldsConfiguration{} + sv = &types.GaugeChartOptions{} } else { sv = *v } for key, value := range shape { switch key { - case "SelectedFieldOptions": + case "Arc": + if err := awsRestjson1_deserializeDocumentArcConfiguration(&sv.Arc, value); err != nil { + return err + } + + case "ArcAxis": + if err := awsRestjson1_deserializeDocumentArcAxisConfiguration(&sv.ArcAxis, value); err != nil { + return err + } + + case "Comparison": + if err := awsRestjson1_deserializeDocumentComparisonConfiguration(&sv.Comparison, value); err != nil { + return err + } + + case "PrimaryValueDisplayType": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected SelectedFieldOptions to be of type string, got %T instead", value) + return fmt.Errorf("expected PrimaryValueDisplayType to be of type string, got %T instead", value) } - sv.SelectedFieldOptions = types.SelectedFieldOptions(jtv) + sv.PrimaryValueDisplayType = types.PrimaryValueDisplayType(jtv) } - case "SelectedFields": - if err := awsRestjson1_deserializeDocumentSelectedFieldList(&sv.SelectedFields, value); err != nil { + case "PrimaryValueFontConfiguration": + if err := awsRestjson1_deserializeDocumentFontConfiguration(&sv.PrimaryValueFontConfiguration, value); err != nil { return err } @@ -40869,7 +48160,7 @@ func awsRestjson1_deserializeDocumentFilterOperationSelectedFieldsConfiguration( return nil } -func awsRestjson1_deserializeDocumentFilterOperationTargetVisualsConfiguration(v **types.FilterOperationTargetVisualsConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentGaugeChartPrimaryValueConditionalFormatting(v **types.GaugeChartPrimaryValueConditionalFormatting, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -40882,17 +48173,22 @@ func awsRestjson1_deserializeDocumentFilterOperationTargetVisualsConfiguration(v return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.FilterOperationTargetVisualsConfiguration + var sv *types.GaugeChartPrimaryValueConditionalFormatting if *v == nil { - sv = &types.FilterOperationTargetVisualsConfiguration{} + sv = &types.GaugeChartPrimaryValueConditionalFormatting{} } else { sv = *v } for key, value := range shape { switch key { - case "SameSheetTargetVisualConfiguration": - if err := awsRestjson1_deserializeDocumentSameSheetTargetVisualConfiguration(&sv.SameSheetTargetVisualConfiguration, value); err != nil { + case "Icon": + if err := awsRestjson1_deserializeDocumentConditionalFormattingIcon(&sv.Icon, value); err != nil { + return err + } + + case "TextColor": + if err := awsRestjson1_deserializeDocumentConditionalFormattingColor(&sv.TextColor, value); err != nil { return err } @@ -40905,7 +48201,7 @@ func awsRestjson1_deserializeDocumentFilterOperationTargetVisualsConfiguration(v return nil } -func awsRestjson1_deserializeDocumentFilterRelativeDateTimeControl(v **types.FilterRelativeDateTimeControl, value interface{}) error { +func awsRestjson1_deserializeDocumentGaugeChartVisual(v **types.GaugeChartVisual, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -40918,45 +48214,47 @@ func awsRestjson1_deserializeDocumentFilterRelativeDateTimeControl(v **types.Fil return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.FilterRelativeDateTimeControl + var sv *types.GaugeChartVisual if *v == nil { - sv = &types.FilterRelativeDateTimeControl{} + sv = &types.GaugeChartVisual{} } else { sv = *v } for key, value := range shape { switch key { - case "DisplayOptions": - if err := awsRestjson1_deserializeDocumentRelativeDateTimeControlDisplayOptions(&sv.DisplayOptions, value); err != nil { + case "Actions": + if err := awsRestjson1_deserializeDocumentVisualCustomActionList(&sv.Actions, value); err != nil { return err } - case "FilterControlId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) - } - sv.FilterControlId = ptr.String(jtv) + case "ChartConfiguration": + if err := awsRestjson1_deserializeDocumentGaugeChartConfiguration(&sv.ChartConfiguration, value); err != nil { + return err } - case "SourceFilterId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) - } - sv.SourceFilterId = ptr.String(jtv) + case "ConditionalFormatting": + if err := awsRestjson1_deserializeDocumentGaugeChartConditionalFormatting(&sv.ConditionalFormatting, value); err != nil { + return err + } + + case "Subtitle": + if err := awsRestjson1_deserializeDocumentVisualSubtitleLabelOptions(&sv.Subtitle, value); err != nil { + return err } case "Title": + if err := awsRestjson1_deserializeDocumentVisualTitleLabelOptions(&sv.Title, value); err != nil { + return err + } + + case "VisualId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected SheetControlTitle to be of type string, got %T instead", value) + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) } - sv.Title = ptr.String(jtv) + sv.VisualId = ptr.String(jtv) } default: @@ -40968,7 +48266,7 @@ func awsRestjson1_deserializeDocumentFilterRelativeDateTimeControl(v **types.Fil return nil } -func awsRestjson1_deserializeDocumentFilterScopeConfiguration(v **types.FilterScopeConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentGeoSpatialColumnGroup(v **types.GeoSpatialColumnGroup, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -40981,54 +48279,36 @@ func awsRestjson1_deserializeDocumentFilterScopeConfiguration(v **types.FilterSc return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.FilterScopeConfiguration + var sv *types.GeoSpatialColumnGroup if *v == nil { - sv = &types.FilterScopeConfiguration{} + sv = &types.GeoSpatialColumnGroup{} } else { sv = *v } for key, value := range shape { switch key { - case "SelectedSheets": - if err := awsRestjson1_deserializeDocumentSelectedSheetsFilterScopeConfiguration(&sv.SelectedSheets, value); err != nil { + case "Columns": + if err := awsRestjson1_deserializeDocumentColumnList(&sv.Columns, value); err != nil { return err } - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentFilterSelectableValues(v **types.FilterSelectableValues, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.FilterSelectableValues - if *v == nil { - sv = &types.FilterSelectableValues{} - } else { - sv = *v - } + case "CountryCode": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected GeoSpatialCountryCode to be of type string, got %T instead", value) + } + sv.CountryCode = types.GeoSpatialCountryCode(jtv) + } - for key, value := range shape { - switch key { - case "Values": - if err := awsRestjson1_deserializeDocumentParameterSelectableValueList(&sv.Values, value); err != nil { - return err + case "Name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ColumnGroupName to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) } default: @@ -41040,7 +48320,7 @@ func awsRestjson1_deserializeDocumentFilterSelectableValues(v **types.FilterSele return nil } -func awsRestjson1_deserializeDocumentFilterSliderControl(v **types.FilterSliderControl, value interface{}) error { +func awsRestjson1_deserializeDocumentGeospatialCoordinateBounds(v **types.GeospatialCoordinateBounds, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -41053,30 +48333,16 @@ func awsRestjson1_deserializeDocumentFilterSliderControl(v **types.FilterSliderC return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.FilterSliderControl + var sv *types.GeospatialCoordinateBounds if *v == nil { - sv = &types.FilterSliderControl{} + sv = &types.GeospatialCoordinateBounds{} } else { sv = *v } for key, value := range shape { switch key { - case "DisplayOptions": - if err := awsRestjson1_deserializeDocumentSliderControlDisplayOptions(&sv.DisplayOptions, value); err != nil { - return err - } - - case "FilterControlId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) - } - sv.FilterControlId = ptr.String(jtv) - } - - case "MaximumValue": + case "East": if value != nil { switch jtv := value.(type) { case json.Number: @@ -41084,7 +48350,7 @@ func awsRestjson1_deserializeDocumentFilterSliderControl(v **types.FilterSliderC if err != nil { return err } - sv.MaximumValue = f64 + sv.East = ptr.Float64(f64) case string: var f64 float64 @@ -41102,15 +48368,15 @@ func awsRestjson1_deserializeDocumentFilterSliderControl(v **types.FilterSliderC return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.MaximumValue = f64 + sv.East = ptr.Float64(f64) default: - return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value) + return fmt.Errorf("expected Longitude to be a JSON Number, got %T instead", value) } } - case "MinimumValue": + case "North": if value != nil { switch jtv := value.(type) { case json.Number: @@ -41118,7 +48384,7 @@ func awsRestjson1_deserializeDocumentFilterSliderControl(v **types.FilterSliderC if err != nil { return err } - sv.MinimumValue = f64 + sv.North = ptr.Float64(f64) case string: var f64 float64 @@ -41136,24 +48402,15 @@ func awsRestjson1_deserializeDocumentFilterSliderControl(v **types.FilterSliderC return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.MinimumValue = f64 + sv.North = ptr.Float64(f64) default: - return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value) - - } - } + return fmt.Errorf("expected Latitude to be a JSON Number, got %T instead", value) - case "SourceFilterId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) } - sv.SourceFilterId = ptr.String(jtv) } - case "StepSize": + case "South": if value != nil { switch jtv := value.(type) { case json.Number: @@ -41161,7 +48418,7 @@ func awsRestjson1_deserializeDocumentFilterSliderControl(v **types.FilterSliderC if err != nil { return err } - sv.StepSize = f64 + sv.South = ptr.Float64(f64) case string: var f64 float64 @@ -41179,102 +48436,46 @@ func awsRestjson1_deserializeDocumentFilterSliderControl(v **types.FilterSliderC return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.StepSize = f64 + sv.South = ptr.Float64(f64) default: - return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value) - - } - } + return fmt.Errorf("expected Latitude to be a JSON Number, got %T instead", value) - case "Title": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected SheetControlTitle to be of type string, got %T instead", value) } - sv.Title = ptr.String(jtv) } - case "Type": + case "West": if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected SheetControlSliderType to be of type string, got %T instead", value) - } - sv.Type = types.SheetControlSliderType(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentFilterTextAreaControl(v **types.FilterTextAreaControl, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.West = ptr.Float64(f64) - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } + case string: + var f64 float64 + switch { + case strings.EqualFold(jtv, "NaN"): + f64 = math.NaN() - var sv *types.FilterTextAreaControl - if *v == nil { - sv = &types.FilterTextAreaControl{} - } else { - sv = *v - } + case strings.EqualFold(jtv, "Infinity"): + f64 = math.Inf(1) - for key, value := range shape { - switch key { - case "Delimiter": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected TextAreaControlDelimiter to be of type string, got %T instead", value) - } - sv.Delimiter = ptr.String(jtv) - } + case strings.EqualFold(jtv, "-Infinity"): + f64 = math.Inf(-1) - case "DisplayOptions": - if err := awsRestjson1_deserializeDocumentTextAreaControlDisplayOptions(&sv.DisplayOptions, value); err != nil { - return err - } + default: + return fmt.Errorf("unknown JSON number value: %s", jtv) - case "FilterControlId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) - } - sv.FilterControlId = ptr.String(jtv) - } + } + sv.West = ptr.Float64(f64) - case "SourceFilterId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) - } - sv.SourceFilterId = ptr.String(jtv) - } + default: + return fmt.Errorf("expected Longitude to be a JSON Number, got %T instead", value) - case "Title": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected SheetControlTitle to be of type string, got %T instead", value) } - sv.Title = ptr.String(jtv) } default: @@ -41286,7 +48487,7 @@ func awsRestjson1_deserializeDocumentFilterTextAreaControl(v **types.FilterTextA return nil } -func awsRestjson1_deserializeDocumentFilterTextFieldControl(v **types.FilterTextFieldControl, value interface{}) error { +func awsRestjson1_deserializeDocumentGeospatialMapAggregatedFieldWells(v **types.GeospatialMapAggregatedFieldWells, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -41299,45 +48500,28 @@ func awsRestjson1_deserializeDocumentFilterTextFieldControl(v **types.FilterText return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.FilterTextFieldControl + var sv *types.GeospatialMapAggregatedFieldWells if *v == nil { - sv = &types.FilterTextFieldControl{} + sv = &types.GeospatialMapAggregatedFieldWells{} } else { sv = *v } for key, value := range shape { switch key { - case "DisplayOptions": - if err := awsRestjson1_deserializeDocumentTextFieldControlDisplayOptions(&sv.DisplayOptions, value); err != nil { + case "Colors": + if err := awsRestjson1_deserializeDocumentDimensionFieldList(&sv.Colors, value); err != nil { return err } - case "FilterControlId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) - } - sv.FilterControlId = ptr.String(jtv) - } - - case "SourceFilterId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) - } - sv.SourceFilterId = ptr.String(jtv) + case "Geospatial": + if err := awsRestjson1_deserializeDocumentDimensionFieldList(&sv.Geospatial, value); err != nil { + return err } - case "Title": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected SheetControlTitle to be of type string, got %T instead", value) - } - sv.Title = ptr.String(jtv) + case "Values": + if err := awsRestjson1_deserializeDocumentMeasureFieldList(&sv.Values, value); err != nil { + return err } default: @@ -41349,7 +48533,7 @@ func awsRestjson1_deserializeDocumentFilterTextFieldControl(v **types.FilterText return nil } -func awsRestjson1_deserializeDocumentFolder(v **types.Folder, value interface{}) error { +func awsRestjson1_deserializeDocumentGeospatialMapConfiguration(v **types.GeospatialMapConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -41362,86 +48546,48 @@ func awsRestjson1_deserializeDocumentFolder(v **types.Folder, value interface{}) return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.Folder + var sv *types.GeospatialMapConfiguration if *v == nil { - sv = &types.Folder{} + sv = &types.GeospatialMapConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "Arn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.Arn = ptr.String(jtv) + case "FieldWells": + if err := awsRestjson1_deserializeDocumentGeospatialMapFieldWells(&sv.FieldWells, value); err != nil { + return err } - case "CreatedTime": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.CreatedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - - } + case "Legend": + if err := awsRestjson1_deserializeDocumentLegendOptions(&sv.Legend, value); err != nil { + return err } - case "FolderId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected RestrictiveResourceId to be of type string, got %T instead", value) - } - sv.FolderId = ptr.String(jtv) + case "MapStyleOptions": + if err := awsRestjson1_deserializeDocumentGeospatialMapStyleOptions(&sv.MapStyleOptions, value); err != nil { + return err } - case "FolderPath": - if err := awsRestjson1_deserializeDocumentPath(&sv.FolderPath, value); err != nil { + case "PointStyleOptions": + if err := awsRestjson1_deserializeDocumentGeospatialPointStyleOptions(&sv.PointStyleOptions, value); err != nil { return err } - case "FolderType": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected FolderType to be of type string, got %T instead", value) - } - sv.FolderType = types.FolderType(jtv) + case "Tooltip": + if err := awsRestjson1_deserializeDocumentTooltipOptions(&sv.Tooltip, value); err != nil { + return err } - case "LastUpdatedTime": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.LastUpdatedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - - } + case "VisualPalette": + if err := awsRestjson1_deserializeDocumentVisualPalette(&sv.VisualPalette, value); err != nil { + return err } - case "Name": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected FolderName to be of type string, got %T instead", value) - } - sv.Name = ptr.String(jtv) + case "WindowOptions": + if err := awsRestjson1_deserializeDocumentGeospatialWindowOptions(&sv.WindowOptions, value); err != nil { + return err } default: @@ -41453,7 +48599,7 @@ func awsRestjson1_deserializeDocumentFolder(v **types.Folder, value interface{}) return nil } -func awsRestjson1_deserializeDocumentFolderColumnList(v *[]string, value interface{}) error { +func awsRestjson1_deserializeDocumentGeospatialMapFieldWells(v **types.GeospatialMapFieldWells, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -41461,35 +48607,35 @@ func awsRestjson1_deserializeDocumentFolderColumnList(v *[]string, value interfa return nil } - shape, ok := value.([]interface{}) + shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var cv []string + var sv *types.GeospatialMapFieldWells if *v == nil { - cv = []string{} + sv = &types.GeospatialMapFieldWells{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col string - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) + for key, value := range shape { + switch key { + case "GeospatialMapAggregatedFieldWells": + if err := awsRestjson1_deserializeDocumentGeospatialMapAggregatedFieldWells(&sv.GeospatialMapAggregatedFieldWells, value); err != nil { + return err } - col = jtv - } - cv = append(cv, col) + default: + _, _ = key, value + + } } - *v = cv + *v = sv return nil } -func awsRestjson1_deserializeDocumentFolderMember(v **types.FolderMember, value interface{}) error { +func awsRestjson1_deserializeDocumentGeospatialMapStyleOptions(v **types.GeospatialMapStyleOptions, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -41502,31 +48648,22 @@ func awsRestjson1_deserializeDocumentFolderMember(v **types.FolderMember, value return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.FolderMember + var sv *types.GeospatialMapStyleOptions if *v == nil { - sv = &types.FolderMember{} + sv = &types.GeospatialMapStyleOptions{} } else { sv = *v } for key, value := range shape { switch key { - case "MemberId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected RestrictiveResourceId to be of type string, got %T instead", value) - } - sv.MemberId = ptr.String(jtv) - } - - case "MemberType": + case "BaseMapStyle": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected MemberType to be of type string, got %T instead", value) + return fmt.Errorf("expected BaseMapStyleType to be of type string, got %T instead", value) } - sv.MemberType = types.MemberType(jtv) + sv.BaseMapStyle = types.BaseMapStyleType(jtv) } default: @@ -41538,7 +48675,7 @@ func awsRestjson1_deserializeDocumentFolderMember(v **types.FolderMember, value return nil } -func awsRestjson1_deserializeDocumentFolderMemberList(v *[]types.MemberIdArnPair, value interface{}) error { +func awsRestjson1_deserializeDocumentGeospatialMapVisual(v **types.GeospatialMapVisual, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -41546,33 +48683,64 @@ func awsRestjson1_deserializeDocumentFolderMemberList(v *[]types.MemberIdArnPair return nil } - shape, ok := value.([]interface{}) + shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.MemberIdArnPair + var sv *types.GeospatialMapVisual if *v == nil { - cv = []types.MemberIdArnPair{} + sv = &types.GeospatialMapVisual{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col types.MemberIdArnPair - destAddr := &col - if err := awsRestjson1_deserializeDocumentMemberIdArnPair(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) + for key, value := range shape { + switch key { + case "Actions": + if err := awsRestjson1_deserializeDocumentVisualCustomActionList(&sv.Actions, value); err != nil { + return err + } + + case "ChartConfiguration": + if err := awsRestjson1_deserializeDocumentGeospatialMapConfiguration(&sv.ChartConfiguration, value); err != nil { + return err + } + + case "ColumnHierarchies": + if err := awsRestjson1_deserializeDocumentColumnHierarchyList(&sv.ColumnHierarchies, value); err != nil { + return err + } + + case "Subtitle": + if err := awsRestjson1_deserializeDocumentVisualSubtitleLabelOptions(&sv.Subtitle, value); err != nil { + return err + } + + case "Title": + if err := awsRestjson1_deserializeDocumentVisualTitleLabelOptions(&sv.Title, value); err != nil { + return err + } + + case "VisualId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + } + sv.VisualId = ptr.String(jtv) + } + + default: + _, _ = key, value + } } - *v = cv + *v = sv return nil } -func awsRestjson1_deserializeDocumentFolderSummary(v **types.FolderSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentGeospatialPointStyleOptions(v **types.GeospatialPointStyleOptions, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -41585,81 +48753,72 @@ func awsRestjson1_deserializeDocumentFolderSummary(v **types.FolderSummary, valu return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.FolderSummary + var sv *types.GeospatialPointStyleOptions if *v == nil { - sv = &types.FolderSummary{} + sv = &types.GeospatialPointStyleOptions{} } else { sv = *v } for key, value := range shape { switch key { - case "Arn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.Arn = ptr.String(jtv) - } - - case "CreatedTime": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.CreatedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - - } + case "ClusterMarkerConfiguration": + if err := awsRestjson1_deserializeDocumentClusterMarkerConfiguration(&sv.ClusterMarkerConfiguration, value); err != nil { + return err } - case "FolderId": + case "SelectedPointStyle": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected RestrictiveResourceId to be of type string, got %T instead", value) + return fmt.Errorf("expected GeospatialSelectedPointStyle to be of type string, got %T instead", value) } - sv.FolderId = ptr.String(jtv) + sv.SelectedPointStyle = types.GeospatialSelectedPointStyle(jtv) } - case "FolderType": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected FolderType to be of type string, got %T instead", value) - } - sv.FolderType = types.FolderType(jtv) - } + default: + _, _ = key, value - case "LastUpdatedTime": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.LastUpdatedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + } + } + *v = sv + return nil +} - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) +func awsRestjson1_deserializeDocumentGeospatialWindowOptions(v **types.GeospatialWindowOptions, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } - } + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.GeospatialWindowOptions + if *v == nil { + sv = &types.GeospatialWindowOptions{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Bounds": + if err := awsRestjson1_deserializeDocumentGeospatialCoordinateBounds(&sv.Bounds, value); err != nil { + return err } - case "Name": + case "MapZoomMode": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected FolderName to be of type string, got %T instead", value) + return fmt.Errorf("expected MapZoomMode to be of type string, got %T instead", value) } - sv.Name = ptr.String(jtv) + sv.MapZoomMode = types.MapZoomMode(jtv) } default: @@ -41671,7 +48830,7 @@ func awsRestjson1_deserializeDocumentFolderSummary(v **types.FolderSummary, valu return nil } -func awsRestjson1_deserializeDocumentFolderSummaryList(v *[]types.FolderSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentGlobalTableBorderOptions(v **types.GlobalTableBorderOptions, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -41679,33 +48838,40 @@ func awsRestjson1_deserializeDocumentFolderSummaryList(v *[]types.FolderSummary, return nil } - shape, ok := value.([]interface{}) + shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.FolderSummary + var sv *types.GlobalTableBorderOptions if *v == nil { - cv = []types.FolderSummary{} + sv = &types.GlobalTableBorderOptions{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col types.FolderSummary - destAddr := &col - if err := awsRestjson1_deserializeDocumentFolderSummary(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) + for key, value := range shape { + switch key { + case "SideSpecificBorder": + if err := awsRestjson1_deserializeDocumentTableSideBorderOptions(&sv.SideSpecificBorder, value); err != nil { + return err + } + + case "UniformBorder": + if err := awsRestjson1_deserializeDocumentTableBorderOptions(&sv.UniformBorder, value); err != nil { + return err + } + + default: + _, _ = key, value + } } - *v = cv + *v = sv return nil } -func awsRestjson1_deserializeDocumentFont(v **types.Font, value interface{}) error { +func awsRestjson1_deserializeDocumentGradientColor(v **types.GradientColor, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -41718,22 +48884,18 @@ func awsRestjson1_deserializeDocumentFont(v **types.Font, value interface{}) err return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.Font + var sv *types.GradientColor if *v == nil { - sv = &types.Font{} + sv = &types.GradientColor{} } else { sv = *v } for key, value := range shape { switch key { - case "FontFamily": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.FontFamily = ptr.String(jtv) + case "Stops": + if err := awsRestjson1_deserializeDocumentGradientStopList(&sv.Stops, value); err != nil { + return err } default: @@ -41745,7 +48907,7 @@ func awsRestjson1_deserializeDocumentFont(v **types.Font, value interface{}) err return nil } -func awsRestjson1_deserializeDocumentFontConfiguration(v **types.FontConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentGradientStop(v **types.GradientStop, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -41758,50 +48920,90 @@ func awsRestjson1_deserializeDocumentFontConfiguration(v **types.FontConfigurati return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.FontConfiguration + var sv *types.GradientStop if *v == nil { - sv = &types.FontConfiguration{} + sv = &types.GradientStop{} } else { sv = *v } for key, value := range shape { switch key { - case "FontColor": + case "Color": if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected HexColor to be of type string, got %T instead", value) } - sv.FontColor = ptr.String(jtv) + sv.Color = ptr.String(jtv) } - case "FontDecoration": + case "DataValue": if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected FontDecoration to be of type string, got %T instead", value) - } - sv.FontDecoration = types.FontDecoration(jtv) - } + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.DataValue = ptr.Float64(f64) - case "FontSize": - if err := awsRestjson1_deserializeDocumentFontSize(&sv.FontSize, value); err != nil { - return err - } + case string: + var f64 float64 + switch { + case strings.EqualFold(jtv, "NaN"): + f64 = math.NaN() + + case strings.EqualFold(jtv, "Infinity"): + f64 = math.Inf(1) + + case strings.EqualFold(jtv, "-Infinity"): + f64 = math.Inf(-1) + + default: + return fmt.Errorf("unknown JSON number value: %s", jtv) + + } + sv.DataValue = ptr.Float64(f64) + + default: + return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value) - case "FontStyle": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected FontStyle to be of type string, got %T instead", value) } - sv.FontStyle = types.FontStyle(jtv) } - case "FontWeight": - if err := awsRestjson1_deserializeDocumentFontWeight(&sv.FontWeight, value); err != nil { - return err + case "GradientOffset": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.GradientOffset = f64 + + case string: + var f64 float64 + switch { + case strings.EqualFold(jtv, "NaN"): + f64 = math.NaN() + + case strings.EqualFold(jtv, "Infinity"): + f64 = math.Inf(1) + + case strings.EqualFold(jtv, "-Infinity"): + f64 = math.Inf(-1) + + default: + return fmt.Errorf("unknown JSON number value: %s", jtv) + + } + sv.GradientOffset = f64 + + default: + return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value) + + } } default: @@ -41813,7 +49015,7 @@ func awsRestjson1_deserializeDocumentFontConfiguration(v **types.FontConfigurati return nil } -func awsRestjson1_deserializeDocumentFontList(v *[]types.Font, value interface{}) error { +func awsRestjson1_deserializeDocumentGradientStopList(v *[]types.GradientStop, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -41826,17 +49028,17 @@ func awsRestjson1_deserializeDocumentFontList(v *[]types.Font, value interface{} return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.Font + var cv []types.GradientStop if *v == nil { - cv = []types.Font{} + cv = []types.GradientStop{} } else { cv = *v } for _, value := range shape { - var col types.Font + var col types.GradientStop destAddr := &col - if err := awsRestjson1_deserializeDocumentFont(&destAddr, value); err != nil { + if err := awsRestjson1_deserializeDocumentGradientStop(&destAddr, value); err != nil { return err } col = *destAddr @@ -41847,7 +49049,7 @@ func awsRestjson1_deserializeDocumentFontList(v *[]types.Font, value interface{} return nil } -func awsRestjson1_deserializeDocumentFontSize(v **types.FontSize, value interface{}) error { +func awsRestjson1_deserializeDocumentGridLayoutCanvasSizeOptions(v **types.GridLayoutCanvasSizeOptions, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -41860,22 +49062,18 @@ func awsRestjson1_deserializeDocumentFontSize(v **types.FontSize, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.FontSize + var sv *types.GridLayoutCanvasSizeOptions if *v == nil { - sv = &types.FontSize{} + sv = &types.GridLayoutCanvasSizeOptions{} } else { sv = *v } for key, value := range shape { switch key { - case "Relative": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected RelativeFontSize to be of type string, got %T instead", value) - } - sv.Relative = types.RelativeFontSize(jtv) + case "ScreenCanvasSizeOptions": + if err := awsRestjson1_deserializeDocumentGridLayoutScreenCanvasSizeOptions(&sv.ScreenCanvasSizeOptions, value); err != nil { + return err } default: @@ -41887,7 +49085,7 @@ func awsRestjson1_deserializeDocumentFontSize(v **types.FontSize, value interfac return nil } -func awsRestjson1_deserializeDocumentFontWeight(v **types.FontWeight, value interface{}) error { +func awsRestjson1_deserializeDocumentGridLayoutConfiguration(v **types.GridLayoutConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -41900,22 +49098,23 @@ func awsRestjson1_deserializeDocumentFontWeight(v **types.FontWeight, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.FontWeight + var sv *types.GridLayoutConfiguration if *v == nil { - sv = &types.FontWeight{} + sv = &types.GridLayoutConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "Name": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected FontWeightName to be of type string, got %T instead", value) - } - sv.Name = types.FontWeightName(jtv) + case "CanvasSizeOptions": + if err := awsRestjson1_deserializeDocumentGridLayoutCanvasSizeOptions(&sv.CanvasSizeOptions, value); err != nil { + return err + } + + case "Elements": + if err := awsRestjson1_deserializeDocumentGridLayoutElementList(&sv.Elements, value); err != nil { + return err } default: @@ -41927,7 +49126,7 @@ func awsRestjson1_deserializeDocumentFontWeight(v **types.FontWeight, value inte return nil } -func awsRestjson1_deserializeDocumentForecastComputation(v **types.ForecastComputation, value interface{}) error { +func awsRestjson1_deserializeDocumentGridLayoutElement(v **types.GridLayoutElement, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -41940,170 +49139,166 @@ func awsRestjson1_deserializeDocumentForecastComputation(v **types.ForecastCompu return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ForecastComputation + var sv *types.GridLayoutElement if *v == nil { - sv = &types.ForecastComputation{} + sv = &types.GridLayoutElement{} } else { sv = *v } for key, value := range shape { switch key { - case "ComputationId": + case "ColumnIndex": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + return fmt.Errorf("expected GridLayoutElementColumnIndex to be json.Number, got %T instead", value) } - sv.ComputationId = ptr.String(jtv) + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.ColumnIndex = ptr.Int32(int32(i64)) } - case "CustomSeasonalityValue": + case "ColumnSpan": if value != nil { jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected ForecastComputationCustomSeasonalityValue to be json.Number, got %T instead", value) + return fmt.Errorf("expected GridLayoutElementColumnSpan to be json.Number, got %T instead", value) } i64, err := jtv.Int64() if err != nil { return err } - sv.CustomSeasonalityValue = ptr.Int32(int32(i64)) - } - - case "LowerBoundary": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.LowerBoundary = ptr.Float64(f64) - - case string: - var f64 float64 - switch { - case strings.EqualFold(jtv, "NaN"): - f64 = math.NaN() - - case strings.EqualFold(jtv, "Infinity"): - f64 = math.Inf(1) - - case strings.EqualFold(jtv, "-Infinity"): - f64 = math.Inf(-1) - - default: - return fmt.Errorf("unknown JSON number value: %s", jtv) - - } - sv.LowerBoundary = ptr.Float64(f64) - - default: - return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value) - - } + sv.ColumnSpan = ptr.Int32(int32(i64)) } - case "Name": + case "ElementId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) } - sv.Name = ptr.String(jtv) + sv.ElementId = ptr.String(jtv) } - case "PeriodsBackward": + case "ElementType": if value != nil { - jtv, ok := value.(json.Number) + jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected PeriodsBackward to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err + return fmt.Errorf("expected LayoutElementType to be of type string, got %T instead", value) } - sv.PeriodsBackward = ptr.Int32(int32(i64)) + sv.ElementType = types.LayoutElementType(jtv) } - case "PeriodsForward": + case "RowIndex": if value != nil { jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected PeriodsForward to be json.Number, got %T instead", value) + return fmt.Errorf("expected GridLayoutElementRowIndex to be json.Number, got %T instead", value) } i64, err := jtv.Int64() if err != nil { return err } - sv.PeriodsForward = ptr.Int32(int32(i64)) + sv.RowIndex = ptr.Int32(int32(i64)) } - case "PredictionInterval": + case "RowSpan": if value != nil { jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected PredictionInterval to be json.Number, got %T instead", value) + return fmt.Errorf("expected GridLayoutElementRowSpan to be json.Number, got %T instead", value) } i64, err := jtv.Int64() if err != nil { return err } - sv.PredictionInterval = ptr.Int32(int32(i64)) + sv.RowSpan = ptr.Int32(int32(i64)) } - case "Seasonality": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ForecastComputationSeasonality to be of type string, got %T instead", value) - } - sv.Seasonality = types.ForecastComputationSeasonality(jtv) - } + default: + _, _ = key, value - case "Time": - if err := awsRestjson1_deserializeDocumentDimensionField(&sv.Time, value); err != nil { - return err - } + } + } + *v = sv + return nil +} - case "UpperBoundary": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.UpperBoundary = ptr.Float64(f64) +func awsRestjson1_deserializeDocumentGridLayoutElementList(v *[]types.GridLayoutElement, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } - case string: - var f64 float64 - switch { - case strings.EqualFold(jtv, "NaN"): - f64 = math.NaN() + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } - case strings.EqualFold(jtv, "Infinity"): - f64 = math.Inf(1) + var cv []types.GridLayoutElement + if *v == nil { + cv = []types.GridLayoutElement{} + } else { + cv = *v + } - case strings.EqualFold(jtv, "-Infinity"): - f64 = math.Inf(-1) + for _, value := range shape { + var col types.GridLayoutElement + destAddr := &col + if err := awsRestjson1_deserializeDocumentGridLayoutElement(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) - default: - return fmt.Errorf("unknown JSON number value: %s", jtv) + } + *v = cv + return nil +} - } - sv.UpperBoundary = ptr.Float64(f64) +func awsRestjson1_deserializeDocumentGridLayoutScreenCanvasSizeOptions(v **types.GridLayoutScreenCanvasSizeOptions, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } - default: - return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value) + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.GridLayoutScreenCanvasSizeOptions + if *v == nil { + sv = &types.GridLayoutScreenCanvasSizeOptions{} + } else { + sv = *v + } + for key, value := range shape { + switch key { + case "OptimizedViewPortWidth": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected PixelLength to be of type string, got %T instead", value) } + sv.OptimizedViewPortWidth = ptr.String(jtv) } - case "Value": - if err := awsRestjson1_deserializeDocumentMeasureField(&sv.Value, value); err != nil { - return err + case "ResizeOption": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResizeOption to be of type string, got %T instead", value) + } + sv.ResizeOption = types.ResizeOption(jtv) } default: @@ -42115,7 +49310,7 @@ func awsRestjson1_deserializeDocumentForecastComputation(v **types.ForecastCompu return nil } -func awsRestjson1_deserializeDocumentForecastConfiguration(v **types.ForecastConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentGroup(v **types.Group, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -42128,23 +49323,49 @@ func awsRestjson1_deserializeDocumentForecastConfiguration(v **types.ForecastCon return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ForecastConfiguration + var sv *types.Group if *v == nil { - sv = &types.ForecastConfiguration{} + sv = &types.Group{} } else { sv = *v } for key, value := range shape { switch key { - case "ForecastProperties": - if err := awsRestjson1_deserializeDocumentTimeBasedForecastProperties(&sv.ForecastProperties, value); err != nil { - return err + case "Arn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) } - case "Scenario": - if err := awsRestjson1_deserializeDocumentForecastScenario(&sv.Scenario, value); err != nil { - return err + case "Description": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected GroupDescription to be of type string, got %T instead", value) + } + sv.Description = ptr.String(jtv) + } + + case "GroupName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected GroupName to be of type string, got %T instead", value) + } + sv.GroupName = ptr.String(jtv) + } + + case "PrincipalId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.PrincipalId = ptr.String(jtv) } default: @@ -42156,7 +49377,7 @@ func awsRestjson1_deserializeDocumentForecastConfiguration(v **types.ForecastCon return nil } -func awsRestjson1_deserializeDocumentForecastConfigurationList(v *[]types.ForecastConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentGroupList(v *[]types.Group, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -42169,17 +49390,17 @@ func awsRestjson1_deserializeDocumentForecastConfigurationList(v *[]types.Foreca return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.ForecastConfiguration + var cv []types.Group if *v == nil { - cv = []types.ForecastConfiguration{} + cv = []types.Group{} } else { cv = *v } for _, value := range shape { - var col types.ForecastConfiguration + var col types.Group destAddr := &col - if err := awsRestjson1_deserializeDocumentForecastConfiguration(&destAddr, value); err != nil { + if err := awsRestjson1_deserializeDocumentGroup(&destAddr, value); err != nil { return err } col = *destAddr @@ -42190,7 +49411,7 @@ func awsRestjson1_deserializeDocumentForecastConfigurationList(v *[]types.Foreca return nil } -func awsRestjson1_deserializeDocumentForecastScenario(v **types.ForecastScenario, value interface{}) error { +func awsRestjson1_deserializeDocumentGroupMember(v **types.GroupMember, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -42203,23 +49424,31 @@ func awsRestjson1_deserializeDocumentForecastScenario(v **types.ForecastScenario return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ForecastScenario + var sv *types.GroupMember if *v == nil { - sv = &types.ForecastScenario{} + sv = &types.GroupMember{} } else { sv = *v } for key, value := range shape { switch key { - case "WhatIfPointScenario": - if err := awsRestjson1_deserializeDocumentWhatIfPointScenario(&sv.WhatIfPointScenario, value); err != nil { - return err + case "Arn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) } - case "WhatIfRangeScenario": - if err := awsRestjson1_deserializeDocumentWhatIfRangeScenario(&sv.WhatIfRangeScenario, value); err != nil { - return err + case "MemberName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected GroupMemberName to be of type string, got %T instead", value) + } + sv.MemberName = ptr.String(jtv) } default: @@ -42231,7 +49460,7 @@ func awsRestjson1_deserializeDocumentForecastScenario(v **types.ForecastScenario return nil } -func awsRestjson1_deserializeDocumentFormatConfiguration(v **types.FormatConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentGroupMemberList(v *[]types.GroupMember, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -42239,45 +49468,33 @@ func awsRestjson1_deserializeDocumentFormatConfiguration(v **types.FormatConfigu return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.FormatConfiguration + var cv []types.GroupMember if *v == nil { - sv = &types.FormatConfiguration{} + cv = []types.GroupMember{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "DateTimeFormatConfiguration": - if err := awsRestjson1_deserializeDocumentDateTimeFormatConfiguration(&sv.DateTimeFormatConfiguration, value); err != nil { - return err - } - - case "NumberFormatConfiguration": - if err := awsRestjson1_deserializeDocumentNumberFormatConfiguration(&sv.NumberFormatConfiguration, value); err != nil { - return err - } - - case "StringFormatConfiguration": - if err := awsRestjson1_deserializeDocumentStringFormatConfiguration(&sv.StringFormatConfiguration, value); err != nil { - return err - } - - default: - _, _ = key, value - + for _, value := range shape { + var col types.GroupMember + destAddr := &col + if err := awsRestjson1_deserializeDocumentGroupMember(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsRestjson1_deserializeDocumentFreeFormLayoutCanvasSizeOptions(v **types.FreeFormLayoutCanvasSizeOptions, value interface{}) error { +func awsRestjson1_deserializeDocumentGrowthRateComputation(v **types.GrowthRateComputation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -42290,17 +49507,53 @@ func awsRestjson1_deserializeDocumentFreeFormLayoutCanvasSizeOptions(v **types.F return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.FreeFormLayoutCanvasSizeOptions + var sv *types.GrowthRateComputation if *v == nil { - sv = &types.FreeFormLayoutCanvasSizeOptions{} + sv = &types.GrowthRateComputation{} } else { sv = *v } for key, value := range shape { switch key { - case "ScreenCanvasSizeOptions": - if err := awsRestjson1_deserializeDocumentFreeFormLayoutScreenCanvasSizeOptions(&sv.ScreenCanvasSizeOptions, value); err != nil { + case "ComputationId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + } + sv.ComputationId = ptr.String(jtv) + } + + case "Name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + case "PeriodSize": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected GrowthRatePeriodSize to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.PeriodSize = int32(i64) + } + + case "Time": + if err := awsRestjson1_deserializeDocumentDimensionField(&sv.Time, value); err != nil { + return err + } + + case "Value": + if err := awsRestjson1_deserializeDocumentMeasureField(&sv.Value, value); err != nil { return err } @@ -42313,7 +49566,7 @@ func awsRestjson1_deserializeDocumentFreeFormLayoutCanvasSizeOptions(v **types.F return nil } -func awsRestjson1_deserializeDocumentFreeFormLayoutConfiguration(v **types.FreeFormLayoutConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentGutterStyle(v **types.GutterStyle, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -42326,23 +49579,22 @@ func awsRestjson1_deserializeDocumentFreeFormLayoutConfiguration(v **types.FreeF return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.FreeFormLayoutConfiguration + var sv *types.GutterStyle if *v == nil { - sv = &types.FreeFormLayoutConfiguration{} + sv = &types.GutterStyle{} } else { sv = *v } for key, value := range shape { switch key { - case "CanvasSizeOptions": - if err := awsRestjson1_deserializeDocumentFreeFormLayoutCanvasSizeOptions(&sv.CanvasSizeOptions, value); err != nil { - return err - } - - case "Elements": - if err := awsRestjson1_deserializeDocumentFreeFromLayoutElementList(&sv.Elements, value); err != nil { - return err + case "Show": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + } + sv.Show = ptr.Bool(jtv) } default: @@ -42354,7 +49606,7 @@ func awsRestjson1_deserializeDocumentFreeFormLayoutConfiguration(v **types.FreeF return nil } -func awsRestjson1_deserializeDocumentFreeFormLayoutElement(v **types.FreeFormLayoutElement, value interface{}) error { +func awsRestjson1_deserializeDocumentHeaderFooterSectionConfiguration(v **types.HeaderFooterSectionConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -42367,113 +49619,78 @@ func awsRestjson1_deserializeDocumentFreeFormLayoutElement(v **types.FreeFormLay return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.FreeFormLayoutElement + var sv *types.HeaderFooterSectionConfiguration if *v == nil { - sv = &types.FreeFormLayoutElement{} + sv = &types.HeaderFooterSectionConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "BackgroundStyle": - if err := awsRestjson1_deserializeDocumentFreeFormLayoutElementBackgroundStyle(&sv.BackgroundStyle, value); err != nil { - return err - } - - case "BorderStyle": - if err := awsRestjson1_deserializeDocumentFreeFormLayoutElementBorderStyle(&sv.BorderStyle, value); err != nil { + case "Layout": + if err := awsRestjson1_deserializeDocumentSectionLayoutConfiguration(&sv.Layout, value); err != nil { return err } - case "ElementId": + case "SectionId": if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) } - sv.ElementId = ptr.String(jtv) - } - - case "ElementType": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected LayoutElementType to be of type string, got %T instead", value) - } - sv.ElementType = types.LayoutElementType(jtv) - } - - case "Height": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected PixelLength to be of type string, got %T instead", value) - } - sv.Height = ptr.String(jtv) - } - - case "LoadingAnimation": - if err := awsRestjson1_deserializeDocumentLoadingAnimation(&sv.LoadingAnimation, value); err != nil { - return err - } - - case "RenderingRules": - if err := awsRestjson1_deserializeDocumentSheetElementRenderingRuleList(&sv.RenderingRules, value); err != nil { - return err + sv.SectionId = ptr.String(jtv) } - case "SelectedBorderStyle": - if err := awsRestjson1_deserializeDocumentFreeFormLayoutElementBorderStyle(&sv.SelectedBorderStyle, value); err != nil { + case "Style": + if err := awsRestjson1_deserializeDocumentSectionStyle(&sv.Style, value); err != nil { return err } - case "Visibility": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) - } - sv.Visibility = types.Visibility(jtv) - } + default: + _, _ = key, value - case "Width": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected PixelLength to be of type string, got %T instead", value) - } - sv.Width = ptr.String(jtv) - } + } + } + *v = sv + return nil +} - case "XAxisLocation": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected PixelLength to be of type string, got %T instead", value) - } - sv.XAxisLocation = ptr.String(jtv) - } +func awsRestjson1_deserializeDocumentHeaderFooterSectionConfigurationList(v *[]types.HeaderFooterSectionConfiguration, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } - case "YAxisLocation": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected UnlimitedPixelLength to be of type string, got %T instead", value) - } - sv.YAxisLocation = ptr.String(jtv) - } + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } - default: - _, _ = key, value + var cv []types.HeaderFooterSectionConfiguration + if *v == nil { + cv = []types.HeaderFooterSectionConfiguration{} + } else { + cv = *v + } + for _, value := range shape { + var col types.HeaderFooterSectionConfiguration + destAddr := &col + if err := awsRestjson1_deserializeDocumentHeaderFooterSectionConfiguration(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsRestjson1_deserializeDocumentFreeFormLayoutElementBackgroundStyle(v **types.FreeFormLayoutElementBackgroundStyle, value interface{}) error { +func awsRestjson1_deserializeDocumentHeatMapAggregatedFieldWells(v **types.HeatMapAggregatedFieldWells, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -42486,31 +49703,28 @@ func awsRestjson1_deserializeDocumentFreeFormLayoutElementBackgroundStyle(v **ty return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.FreeFormLayoutElementBackgroundStyle + var sv *types.HeatMapAggregatedFieldWells if *v == nil { - sv = &types.FreeFormLayoutElementBackgroundStyle{} + sv = &types.HeatMapAggregatedFieldWells{} } else { sv = *v } for key, value := range shape { switch key { - case "Color": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected HexColorWithTransparency to be of type string, got %T instead", value) - } - sv.Color = ptr.String(jtv) + case "Columns": + if err := awsRestjson1_deserializeDocumentHeatMapDimensionFieldList(&sv.Columns, value); err != nil { + return err } - case "Visibility": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) - } - sv.Visibility = types.Visibility(jtv) + case "Rows": + if err := awsRestjson1_deserializeDocumentHeatMapDimensionFieldList(&sv.Rows, value); err != nil { + return err + } + + case "Values": + if err := awsRestjson1_deserializeDocumentHeatMapMeasureFieldList(&sv.Values, value); err != nil { + return err } default: @@ -42522,7 +49736,7 @@ func awsRestjson1_deserializeDocumentFreeFormLayoutElementBackgroundStyle(v **ty return nil } -func awsRestjson1_deserializeDocumentFreeFormLayoutElementBorderStyle(v **types.FreeFormLayoutElementBorderStyle, value interface{}) error { +func awsRestjson1_deserializeDocumentHeatMapConfiguration(v **types.HeatMapConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -42535,31 +49749,53 @@ func awsRestjson1_deserializeDocumentFreeFormLayoutElementBorderStyle(v **types. return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.FreeFormLayoutElementBorderStyle + var sv *types.HeatMapConfiguration if *v == nil { - sv = &types.FreeFormLayoutElementBorderStyle{} + sv = &types.HeatMapConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "Color": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected HexColorWithTransparency to be of type string, got %T instead", value) - } - sv.Color = ptr.String(jtv) + case "ColorScale": + if err := awsRestjson1_deserializeDocumentColorScale(&sv.ColorScale, value); err != nil { + return err } - case "Visibility": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) - } - sv.Visibility = types.Visibility(jtv) + case "ColumnLabelOptions": + if err := awsRestjson1_deserializeDocumentChartAxisLabelOptions(&sv.ColumnLabelOptions, value); err != nil { + return err + } + + case "DataLabels": + if err := awsRestjson1_deserializeDocumentDataLabelOptions(&sv.DataLabels, value); err != nil { + return err + } + + case "FieldWells": + if err := awsRestjson1_deserializeDocumentHeatMapFieldWells(&sv.FieldWells, value); err != nil { + return err + } + + case "Legend": + if err := awsRestjson1_deserializeDocumentLegendOptions(&sv.Legend, value); err != nil { + return err + } + + case "RowLabelOptions": + if err := awsRestjson1_deserializeDocumentChartAxisLabelOptions(&sv.RowLabelOptions, value); err != nil { + return err + } + + case "SortConfiguration": + if err := awsRestjson1_deserializeDocumentHeatMapSortConfiguration(&sv.SortConfiguration, value); err != nil { + return err + } + + case "Tooltip": + if err := awsRestjson1_deserializeDocumentTooltipOptions(&sv.Tooltip, value); err != nil { + return err } default: @@ -42571,7 +49807,7 @@ func awsRestjson1_deserializeDocumentFreeFormLayoutElementBorderStyle(v **types. return nil } -func awsRestjson1_deserializeDocumentFreeFormLayoutScreenCanvasSizeOptions(v **types.FreeFormLayoutScreenCanvasSizeOptions, value interface{}) error { +func awsRestjson1_deserializeDocumentHeatMapDimensionFieldList(v *[]types.DimensionField, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -42579,39 +49815,33 @@ func awsRestjson1_deserializeDocumentFreeFormLayoutScreenCanvasSizeOptions(v **t return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.FreeFormLayoutScreenCanvasSizeOptions + var cv []types.DimensionField if *v == nil { - sv = &types.FreeFormLayoutScreenCanvasSizeOptions{} + cv = []types.DimensionField{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "OptimizedViewPortWidth": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected PixelLength to be of type string, got %T instead", value) - } - sv.OptimizedViewPortWidth = ptr.String(jtv) - } - - default: - _, _ = key, value - + for _, value := range shape { + var col types.DimensionField + destAddr := &col + if err := awsRestjson1_deserializeDocumentDimensionField(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsRestjson1_deserializeDocumentFreeFormSectionLayoutConfiguration(v **types.FreeFormSectionLayoutConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentHeatMapFieldWells(v **types.HeatMapFieldWells, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -42624,17 +49854,17 @@ func awsRestjson1_deserializeDocumentFreeFormSectionLayoutConfiguration(v **type return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.FreeFormSectionLayoutConfiguration + var sv *types.HeatMapFieldWells if *v == nil { - sv = &types.FreeFormSectionLayoutConfiguration{} + sv = &types.HeatMapFieldWells{} } else { sv = *v } for key, value := range shape { switch key { - case "Elements": - if err := awsRestjson1_deserializeDocumentFreeFromLayoutElementList(&sv.Elements, value); err != nil { + case "HeatMapAggregatedFieldWells": + if err := awsRestjson1_deserializeDocumentHeatMapAggregatedFieldWells(&sv.HeatMapAggregatedFieldWells, value); err != nil { return err } @@ -42647,7 +49877,7 @@ func awsRestjson1_deserializeDocumentFreeFormSectionLayoutConfiguration(v **type return nil } -func awsRestjson1_deserializeDocumentFreeFromLayoutElementList(v *[]types.FreeFormLayoutElement, value interface{}) error { +func awsRestjson1_deserializeDocumentHeatMapMeasureFieldList(v *[]types.MeasureField, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -42660,17 +49890,17 @@ func awsRestjson1_deserializeDocumentFreeFromLayoutElementList(v *[]types.FreeFo return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.FreeFormLayoutElement + var cv []types.MeasureField if *v == nil { - cv = []types.FreeFormLayoutElement{} + cv = []types.MeasureField{} } else { cv = *v } for _, value := range shape { - var col types.FreeFormLayoutElement + var col types.MeasureField destAddr := &col - if err := awsRestjson1_deserializeDocumentFreeFormLayoutElement(&destAddr, value); err != nil { + if err := awsRestjson1_deserializeDocumentMeasureField(&destAddr, value); err != nil { return err } col = *destAddr @@ -42681,7 +49911,7 @@ func awsRestjson1_deserializeDocumentFreeFromLayoutElementList(v *[]types.FreeFo return nil } -func awsRestjson1_deserializeDocumentFunnelChartAggregatedFieldWells(v **types.FunnelChartAggregatedFieldWells, value interface{}) error { +func awsRestjson1_deserializeDocumentHeatMapSortConfiguration(v **types.HeatMapSortConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -42694,22 +49924,32 @@ func awsRestjson1_deserializeDocumentFunnelChartAggregatedFieldWells(v **types.F return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.FunnelChartAggregatedFieldWells + var sv *types.HeatMapSortConfiguration if *v == nil { - sv = &types.FunnelChartAggregatedFieldWells{} + sv = &types.HeatMapSortConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "Category": - if err := awsRestjson1_deserializeDocumentFunnelChartDimensionFieldList(&sv.Category, value); err != nil { + case "HeatMapColumnItemsLimitConfiguration": + if err := awsRestjson1_deserializeDocumentItemsLimitConfiguration(&sv.HeatMapColumnItemsLimitConfiguration, value); err != nil { return err } - case "Values": - if err := awsRestjson1_deserializeDocumentFunnelChartMeasureFieldList(&sv.Values, value); err != nil { + case "HeatMapColumnSort": + if err := awsRestjson1_deserializeDocumentFieldSortOptionsList(&sv.HeatMapColumnSort, value); err != nil { + return err + } + + case "HeatMapRowItemsLimitConfiguration": + if err := awsRestjson1_deserializeDocumentItemsLimitConfiguration(&sv.HeatMapRowItemsLimitConfiguration, value); err != nil { + return err + } + + case "HeatMapRowSort": + if err := awsRestjson1_deserializeDocumentFieldSortOptionsList(&sv.HeatMapRowSort, value); err != nil { return err } @@ -42722,7 +49962,7 @@ func awsRestjson1_deserializeDocumentFunnelChartAggregatedFieldWells(v **types.F return nil } -func awsRestjson1_deserializeDocumentFunnelChartConfiguration(v **types.FunnelChartConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentHeatMapVisual(v **types.HeatMapVisual, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -42735,47 +49975,82 @@ func awsRestjson1_deserializeDocumentFunnelChartConfiguration(v **types.FunnelCh return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.FunnelChartConfiguration + var sv *types.HeatMapVisual if *v == nil { - sv = &types.FunnelChartConfiguration{} + sv = &types.HeatMapVisual{} } else { sv = *v } for key, value := range shape { switch key { - case "CategoryLabelOptions": - if err := awsRestjson1_deserializeDocumentChartAxisLabelOptions(&sv.CategoryLabelOptions, value); err != nil { + case "Actions": + if err := awsRestjson1_deserializeDocumentVisualCustomActionList(&sv.Actions, value); err != nil { return err } - case "DataLabelOptions": - if err := awsRestjson1_deserializeDocumentFunnelChartDataLabelOptions(&sv.DataLabelOptions, value); err != nil { + case "ChartConfiguration": + if err := awsRestjson1_deserializeDocumentHeatMapConfiguration(&sv.ChartConfiguration, value); err != nil { return err } - case "FieldWells": - if err := awsRestjson1_deserializeDocumentFunnelChartFieldWells(&sv.FieldWells, value); err != nil { + case "ColumnHierarchies": + if err := awsRestjson1_deserializeDocumentColumnHierarchyList(&sv.ColumnHierarchies, value); err != nil { return err } - case "SortConfiguration": - if err := awsRestjson1_deserializeDocumentFunnelChartSortConfiguration(&sv.SortConfiguration, value); err != nil { + case "Subtitle": + if err := awsRestjson1_deserializeDocumentVisualSubtitleLabelOptions(&sv.Subtitle, value); err != nil { return err } - case "Tooltip": - if err := awsRestjson1_deserializeDocumentTooltipOptions(&sv.Tooltip, value); err != nil { + case "Title": + if err := awsRestjson1_deserializeDocumentVisualTitleLabelOptions(&sv.Title, value); err != nil { return err } - case "ValueLabelOptions": - if err := awsRestjson1_deserializeDocumentChartAxisLabelOptions(&sv.ValueLabelOptions, value); err != nil { - return err + case "VisualId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + } + sv.VisualId = ptr.String(jtv) } - case "VisualPalette": - if err := awsRestjson1_deserializeDocumentVisualPalette(&sv.VisualPalette, value); err != nil { + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentHistogramAggregatedFieldWells(v **types.HistogramAggregatedFieldWells, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.HistogramAggregatedFieldWells + if *v == nil { + sv = &types.HistogramAggregatedFieldWells{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Values": + if err := awsRestjson1_deserializeDocumentHistogramMeasureFieldList(&sv.Values, value); err != nil { return err } @@ -42788,7 +50063,7 @@ func awsRestjson1_deserializeDocumentFunnelChartConfiguration(v **types.FunnelCh return nil } -func awsRestjson1_deserializeDocumentFunnelChartDataLabelOptions(v **types.FunnelChartDataLabelOptions, value interface{}) error { +func awsRestjson1_deserializeDocumentHistogramBinOptions(v **types.HistogramBinOptions, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -42801,72 +50076,66 @@ func awsRestjson1_deserializeDocumentFunnelChartDataLabelOptions(v **types.Funne return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.FunnelChartDataLabelOptions + var sv *types.HistogramBinOptions if *v == nil { - sv = &types.FunnelChartDataLabelOptions{} + sv = &types.HistogramBinOptions{} } else { sv = *v } for key, value := range shape { switch key { - case "CategoryLabelVisibility": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) - } - sv.CategoryLabelVisibility = types.Visibility(jtv) - } - - case "LabelColor": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected HexColor to be of type string, got %T instead", value) - } - sv.LabelColor = ptr.String(jtv) + case "BinCount": + if err := awsRestjson1_deserializeDocumentBinCountOptions(&sv.BinCount, value); err != nil { + return err } - case "LabelFontConfiguration": - if err := awsRestjson1_deserializeDocumentFontConfiguration(&sv.LabelFontConfiguration, value); err != nil { + case "BinWidth": + if err := awsRestjson1_deserializeDocumentBinWidthOptions(&sv.BinWidth, value); err != nil { return err } - case "MeasureDataLabelStyle": + case "SelectedBinType": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected FunnelChartMeasureDataLabelStyle to be of type string, got %T instead", value) + return fmt.Errorf("expected HistogramBinType to be of type string, got %T instead", value) } - sv.MeasureDataLabelStyle = types.FunnelChartMeasureDataLabelStyle(jtv) + sv.SelectedBinType = types.HistogramBinType(jtv) } - case "MeasureLabelVisibility": + case "StartValue": if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) - } - sv.MeasureLabelVisibility = types.Visibility(jtv) - } + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.StartValue = ptr.Float64(f64) - case "Position": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected DataLabelPosition to be of type string, got %T instead", value) - } - sv.Position = types.DataLabelPosition(jtv) - } + case string: + var f64 float64 + switch { + case strings.EqualFold(jtv, "NaN"): + f64 = math.NaN() + + case strings.EqualFold(jtv, "Infinity"): + f64 = math.Inf(1) + + case strings.EqualFold(jtv, "-Infinity"): + f64 = math.Inf(-1) + + default: + return fmt.Errorf("unknown JSON number value: %s", jtv) + + } + sv.StartValue = ptr.Float64(f64) + + default: + return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value) - case "Visibility": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) } - sv.Visibility = types.Visibility(jtv) } default: @@ -42878,7 +50147,7 @@ func awsRestjson1_deserializeDocumentFunnelChartDataLabelOptions(v **types.Funne return nil } -func awsRestjson1_deserializeDocumentFunnelChartDimensionFieldList(v *[]types.DimensionField, value interface{}) error { +func awsRestjson1_deserializeDocumentHistogramConfiguration(v **types.HistogramConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -42886,33 +50155,70 @@ func awsRestjson1_deserializeDocumentFunnelChartDimensionFieldList(v *[]types.Di return nil } - shape, ok := value.([]interface{}) + shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.DimensionField + var sv *types.HistogramConfiguration if *v == nil { - cv = []types.DimensionField{} + sv = &types.HistogramConfiguration{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col types.DimensionField - destAddr := &col - if err := awsRestjson1_deserializeDocumentDimensionField(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) + for key, value := range shape { + switch key { + case "BinOptions": + if err := awsRestjson1_deserializeDocumentHistogramBinOptions(&sv.BinOptions, value); err != nil { + return err + } + + case "DataLabels": + if err := awsRestjson1_deserializeDocumentDataLabelOptions(&sv.DataLabels, value); err != nil { + return err + } + + case "FieldWells": + if err := awsRestjson1_deserializeDocumentHistogramFieldWells(&sv.FieldWells, value); err != nil { + return err + } + + case "Tooltip": + if err := awsRestjson1_deserializeDocumentTooltipOptions(&sv.Tooltip, value); err != nil { + return err + } + + case "VisualPalette": + if err := awsRestjson1_deserializeDocumentVisualPalette(&sv.VisualPalette, value); err != nil { + return err + } + + case "XAxisDisplayOptions": + if err := awsRestjson1_deserializeDocumentAxisDisplayOptions(&sv.XAxisDisplayOptions, value); err != nil { + return err + } + + case "XAxisLabelOptions": + if err := awsRestjson1_deserializeDocumentChartAxisLabelOptions(&sv.XAxisLabelOptions, value); err != nil { + return err + } + + case "YAxisDisplayOptions": + if err := awsRestjson1_deserializeDocumentAxisDisplayOptions(&sv.YAxisDisplayOptions, value); err != nil { + return err + } + + default: + _, _ = key, value + } } - *v = cv + *v = sv return nil } -func awsRestjson1_deserializeDocumentFunnelChartFieldWells(v **types.FunnelChartFieldWells, value interface{}) error { +func awsRestjson1_deserializeDocumentHistogramFieldWells(v **types.HistogramFieldWells, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -42925,17 +50231,17 @@ func awsRestjson1_deserializeDocumentFunnelChartFieldWells(v **types.FunnelChart return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.FunnelChartFieldWells + var sv *types.HistogramFieldWells if *v == nil { - sv = &types.FunnelChartFieldWells{} + sv = &types.HistogramFieldWells{} } else { sv = *v } for key, value := range shape { switch key { - case "FunnelChartAggregatedFieldWells": - if err := awsRestjson1_deserializeDocumentFunnelChartAggregatedFieldWells(&sv.FunnelChartAggregatedFieldWells, value); err != nil { + case "HistogramAggregatedFieldWells": + if err := awsRestjson1_deserializeDocumentHistogramAggregatedFieldWells(&sv.HistogramAggregatedFieldWells, value); err != nil { return err } @@ -42948,7 +50254,7 @@ func awsRestjson1_deserializeDocumentFunnelChartFieldWells(v **types.FunnelChart return nil } -func awsRestjson1_deserializeDocumentFunnelChartMeasureFieldList(v *[]types.MeasureField, value interface{}) error { +func awsRestjson1_deserializeDocumentHistogramMeasureFieldList(v *[]types.MeasureField, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -42982,48 +50288,7 @@ func awsRestjson1_deserializeDocumentFunnelChartMeasureFieldList(v *[]types.Meas return nil } -func awsRestjson1_deserializeDocumentFunnelChartSortConfiguration(v **types.FunnelChartSortConfiguration, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.FunnelChartSortConfiguration - if *v == nil { - sv = &types.FunnelChartSortConfiguration{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "CategoryItemsLimit": - if err := awsRestjson1_deserializeDocumentItemsLimitConfiguration(&sv.CategoryItemsLimit, value); err != nil { - return err - } - - case "CategorySort": - if err := awsRestjson1_deserializeDocumentFieldSortOptionsList(&sv.CategorySort, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentFunnelChartVisual(v **types.FunnelChartVisual, value interface{}) error { +func awsRestjson1_deserializeDocumentHistogramVisual(v **types.HistogramVisual, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -43036,9 +50301,9 @@ func awsRestjson1_deserializeDocumentFunnelChartVisual(v **types.FunnelChartVisu return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.FunnelChartVisual + var sv *types.HistogramVisual if *v == nil { - sv = &types.FunnelChartVisual{} + sv = &types.HistogramVisual{} } else { sv = *v } @@ -43051,12 +50316,7 @@ func awsRestjson1_deserializeDocumentFunnelChartVisual(v **types.FunnelChartVisu } case "ChartConfiguration": - if err := awsRestjson1_deserializeDocumentFunnelChartConfiguration(&sv.ChartConfiguration, value); err != nil { - return err - } - - case "ColumnHierarchies": - if err := awsRestjson1_deserializeDocumentColumnHierarchyList(&sv.ColumnHierarchies, value); err != nil { + if err := awsRestjson1_deserializeDocumentHistogramConfiguration(&sv.ChartConfiguration, value); err != nil { return err } @@ -43088,7 +50348,7 @@ func awsRestjson1_deserializeDocumentFunnelChartVisual(v **types.FunnelChartVisu return nil } -func awsRestjson1_deserializeDocumentGaugeChartArcConditionalFormatting(v **types.GaugeChartArcConditionalFormatting, value interface{}) error { +func awsRestjson1_deserializeDocumentIAMPolicyAssignment(v **types.IAMPolicyAssignment, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -43101,56 +50361,65 @@ func awsRestjson1_deserializeDocumentGaugeChartArcConditionalFormatting(v **type return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.GaugeChartArcConditionalFormatting + var sv *types.IAMPolicyAssignment if *v == nil { - sv = &types.GaugeChartArcConditionalFormatting{} + sv = &types.IAMPolicyAssignment{} } else { sv = *v } for key, value := range shape { switch key { - case "ForegroundColor": - if err := awsRestjson1_deserializeDocumentConditionalFormattingColor(&sv.ForegroundColor, value); err != nil { - return err + case "AssignmentId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.AssignmentId = ptr.String(jtv) } - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentGaugeChartConditionalFormatting(v **types.GaugeChartConditionalFormatting, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } + case "AssignmentName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected IAMPolicyAssignmentName to be of type string, got %T instead", value) + } + sv.AssignmentName = ptr.String(jtv) + } - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } + case "AssignmentStatus": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AssignmentStatus to be of type string, got %T instead", value) + } + sv.AssignmentStatus = types.AssignmentStatus(jtv) + } - var sv *types.GaugeChartConditionalFormatting - if *v == nil { - sv = &types.GaugeChartConditionalFormatting{} - } else { - sv = *v - } + case "AwsAccountId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AwsAccountId to be of type string, got %T instead", value) + } + sv.AwsAccountId = ptr.String(jtv) + } - for key, value := range shape { - switch key { - case "ConditionalFormattingOptions": - if err := awsRestjson1_deserializeDocumentGaugeChartConditionalFormattingOptionList(&sv.ConditionalFormattingOptions, value); err != nil { + case "Identities": + if err := awsRestjson1_deserializeDocumentIdentityMap(&sv.Identities, value); err != nil { return err } + case "PolicyArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.PolicyArn = ptr.String(jtv) + } + default: _, _ = key, value @@ -43160,7 +50429,7 @@ func awsRestjson1_deserializeDocumentGaugeChartConditionalFormatting(v **types.G return nil } -func awsRestjson1_deserializeDocumentGaugeChartConditionalFormattingOption(v **types.GaugeChartConditionalFormattingOption, value interface{}) error { +func awsRestjson1_deserializeDocumentIAMPolicyAssignmentSummary(v **types.IAMPolicyAssignmentSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -43173,23 +50442,31 @@ func awsRestjson1_deserializeDocumentGaugeChartConditionalFormattingOption(v **t return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.GaugeChartConditionalFormattingOption + var sv *types.IAMPolicyAssignmentSummary if *v == nil { - sv = &types.GaugeChartConditionalFormattingOption{} + sv = &types.IAMPolicyAssignmentSummary{} } else { sv = *v } for key, value := range shape { switch key { - case "Arc": - if err := awsRestjson1_deserializeDocumentGaugeChartArcConditionalFormatting(&sv.Arc, value); err != nil { - return err + case "AssignmentName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected IAMPolicyAssignmentName to be of type string, got %T instead", value) + } + sv.AssignmentName = ptr.String(jtv) } - case "PrimaryValue": - if err := awsRestjson1_deserializeDocumentGaugeChartPrimaryValueConditionalFormatting(&sv.PrimaryValue, value); err != nil { - return err + case "AssignmentStatus": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AssignmentStatus to be of type string, got %T instead", value) + } + sv.AssignmentStatus = types.AssignmentStatus(jtv) } default: @@ -43201,7 +50478,7 @@ func awsRestjson1_deserializeDocumentGaugeChartConditionalFormattingOption(v **t return nil } -func awsRestjson1_deserializeDocumentGaugeChartConditionalFormattingOptionList(v *[]types.GaugeChartConditionalFormattingOption, value interface{}) error { +func awsRestjson1_deserializeDocumentIAMPolicyAssignmentSummaryList(v *[]types.IAMPolicyAssignmentSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -43214,17 +50491,17 @@ func awsRestjson1_deserializeDocumentGaugeChartConditionalFormattingOptionList(v return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.GaugeChartConditionalFormattingOption + var cv []types.IAMPolicyAssignmentSummary if *v == nil { - cv = []types.GaugeChartConditionalFormattingOption{} + cv = []types.IAMPolicyAssignmentSummary{} } else { cv = *v } for _, value := range shape { - var col types.GaugeChartConditionalFormattingOption + var col types.IAMPolicyAssignmentSummary destAddr := &col - if err := awsRestjson1_deserializeDocumentGaugeChartConditionalFormattingOption(&destAddr, value); err != nil { + if err := awsRestjson1_deserializeDocumentIAMPolicyAssignmentSummary(&destAddr, value); err != nil { return err } col = *destAddr @@ -43235,7 +50512,7 @@ func awsRestjson1_deserializeDocumentGaugeChartConditionalFormattingOptionList(v return nil } -func awsRestjson1_deserializeDocumentGaugeChartConfiguration(v **types.GaugeChartConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentIdentityMap(v *map[string][]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -43248,50 +50525,28 @@ func awsRestjson1_deserializeDocumentGaugeChartConfiguration(v **types.GaugeChar return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.GaugeChartConfiguration + var mv map[string][]string if *v == nil { - sv = &types.GaugeChartConfiguration{} + mv = map[string][]string{} } else { - sv = *v + mv = *v } for key, value := range shape { - switch key { - case "DataLabels": - if err := awsRestjson1_deserializeDocumentDataLabelOptions(&sv.DataLabels, value); err != nil { - return err - } - - case "FieldWells": - if err := awsRestjson1_deserializeDocumentGaugeChartFieldWells(&sv.FieldWells, value); err != nil { - return err - } - - case "GaugeChartOptions": - if err := awsRestjson1_deserializeDocumentGaugeChartOptions(&sv.GaugeChartOptions, value); err != nil { - return err - } - - case "TooltipOptions": - if err := awsRestjson1_deserializeDocumentTooltipOptions(&sv.TooltipOptions, value); err != nil { - return err - } - - case "VisualPalette": - if err := awsRestjson1_deserializeDocumentVisualPalette(&sv.VisualPalette, value); err != nil { - return err - } - - default: - _, _ = key, value - + var parsedVal []string + mapVar := parsedVal + if err := awsRestjson1_deserializeDocumentIdentityNameList(&mapVar, value); err != nil { + return err } + parsedVal = mapVar + mv[key] = parsedVal + } - *v = sv + *v = mv return nil } -func awsRestjson1_deserializeDocumentGaugeChartFieldWells(v **types.GaugeChartFieldWells, value interface{}) error { +func awsRestjson1_deserializeDocumentIdentityNameList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -43299,40 +50554,35 @@ func awsRestjson1_deserializeDocumentGaugeChartFieldWells(v **types.GaugeChartFi return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.GaugeChartFieldWells + var cv []string if *v == nil { - sv = &types.GaugeChartFieldWells{} + cv = []string{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "TargetValues": - if err := awsRestjson1_deserializeDocumentMeasureFieldList(&sv.TargetValues, value); err != nil { - return err - } - - case "Values": - if err := awsRestjson1_deserializeDocumentMeasureFieldList(&sv.Values, value); err != nil { - return err + for _, value := range shape { + var col string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected IdentityName to be of type string, got %T instead", value) } - - default: - _, _ = key, value - + col = jtv } + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsRestjson1_deserializeDocumentGaugeChartOptions(v **types.GaugeChartOptions, value interface{}) error { +func awsRestjson1_deserializeDocumentIdentityTypeNotSupportedException(v **types.IdentityTypeNotSupportedException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -43345,42 +50595,31 @@ func awsRestjson1_deserializeDocumentGaugeChartOptions(v **types.GaugeChartOptio return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.GaugeChartOptions + var sv *types.IdentityTypeNotSupportedException if *v == nil { - sv = &types.GaugeChartOptions{} + sv = &types.IdentityTypeNotSupportedException{} } else { sv = *v } for key, value := range shape { switch key { - case "Arc": - if err := awsRestjson1_deserializeDocumentArcConfiguration(&sv.Arc, value); err != nil { - return err - } - - case "ArcAxis": - if err := awsRestjson1_deserializeDocumentArcAxisConfiguration(&sv.ArcAxis, value); err != nil { - return err - } - - case "Comparison": - if err := awsRestjson1_deserializeDocumentComparisonConfiguration(&sv.Comparison, value); err != nil { - return err - } - - case "PrimaryValueDisplayType": + case "Message": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected PrimaryValueDisplayType to be of type string, got %T instead", value) + return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.PrimaryValueDisplayType = types.PrimaryValueDisplayType(jtv) + sv.Message = ptr.String(jtv) } - case "PrimaryValueFontConfiguration": - if err := awsRestjson1_deserializeDocumentFontConfiguration(&sv.PrimaryValueFontConfiguration, value); err != nil { - return err + case "RequestId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.RequestId = ptr.String(jtv) } default: @@ -43392,7 +50631,7 @@ func awsRestjson1_deserializeDocumentGaugeChartOptions(v **types.GaugeChartOptio return nil } -func awsRestjson1_deserializeDocumentGaugeChartPrimaryValueConditionalFormatting(v **types.GaugeChartPrimaryValueConditionalFormatting, value interface{}) error { +func awsRestjson1_deserializeDocumentIncrementalRefresh(v **types.IncrementalRefresh, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -43405,22 +50644,17 @@ func awsRestjson1_deserializeDocumentGaugeChartPrimaryValueConditionalFormatting return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.GaugeChartPrimaryValueConditionalFormatting + var sv *types.IncrementalRefresh if *v == nil { - sv = &types.GaugeChartPrimaryValueConditionalFormatting{} + sv = &types.IncrementalRefresh{} } else { sv = *v } for key, value := range shape { switch key { - case "Icon": - if err := awsRestjson1_deserializeDocumentConditionalFormattingIcon(&sv.Icon, value); err != nil { - return err - } - - case "TextColor": - if err := awsRestjson1_deserializeDocumentConditionalFormattingColor(&sv.TextColor, value); err != nil { + case "LookbackWindow": + if err := awsRestjson1_deserializeDocumentLookbackWindow(&sv.LookbackWindow, value); err != nil { return err } @@ -43433,7 +50667,7 @@ func awsRestjson1_deserializeDocumentGaugeChartPrimaryValueConditionalFormatting return nil } -func awsRestjson1_deserializeDocumentGaugeChartVisual(v **types.GaugeChartVisual, value interface{}) error { +func awsRestjson1_deserializeDocumentIngestion(v **types.Ingestion, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -43446,47 +50680,115 @@ func awsRestjson1_deserializeDocumentGaugeChartVisual(v **types.GaugeChartVisual return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.GaugeChartVisual + var sv *types.Ingestion if *v == nil { - sv = &types.GaugeChartVisual{} + sv = &types.Ingestion{} } else { sv = *v } for key, value := range shape { switch key { - case "Actions": - if err := awsRestjson1_deserializeDocumentVisualCustomActionList(&sv.Actions, value); err != nil { - return err + case "Arn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) } - case "ChartConfiguration": - if err := awsRestjson1_deserializeDocumentGaugeChartConfiguration(&sv.ChartConfiguration, value); err != nil { - return err + case "CreatedTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreatedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } } - case "ConditionalFormatting": - if err := awsRestjson1_deserializeDocumentGaugeChartConditionalFormatting(&sv.ConditionalFormatting, value); err != nil { + case "ErrorInfo": + if err := awsRestjson1_deserializeDocumentErrorInfo(&sv.ErrorInfo, value); err != nil { return err } - case "Subtitle": - if err := awsRestjson1_deserializeDocumentVisualSubtitleLabelOptions(&sv.Subtitle, value); err != nil { - return err + case "IngestionId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected IngestionId to be of type string, got %T instead", value) + } + sv.IngestionId = ptr.String(jtv) } - case "Title": - if err := awsRestjson1_deserializeDocumentVisualTitleLabelOptions(&sv.Title, value); err != nil { + case "IngestionSizeInBytes": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected Long to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.IngestionSizeInBytes = ptr.Int64(i64) + } + + case "IngestionStatus": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected IngestionStatus to be of type string, got %T instead", value) + } + sv.IngestionStatus = types.IngestionStatus(jtv) + } + + case "IngestionTimeInSeconds": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected Long to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.IngestionTimeInSeconds = ptr.Int64(i64) + } + + case "QueueInfo": + if err := awsRestjson1_deserializeDocumentQueueInfo(&sv.QueueInfo, value); err != nil { return err } - case "VisualId": + case "RequestSource": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + return fmt.Errorf("expected IngestionRequestSource to be of type string, got %T instead", value) } - sv.VisualId = ptr.String(jtv) + sv.RequestSource = types.IngestionRequestSource(jtv) + } + + case "RequestType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected IngestionRequestType to be of type string, got %T instead", value) + } + sv.RequestType = types.IngestionRequestType(jtv) + } + + case "RowInfo": + if err := awsRestjson1_deserializeDocumentRowInfo(&sv.RowInfo, value); err != nil { + return err } default: @@ -43498,7 +50800,7 @@ func awsRestjson1_deserializeDocumentGaugeChartVisual(v **types.GaugeChartVisual return nil } -func awsRestjson1_deserializeDocumentGeoSpatialColumnGroup(v **types.GeoSpatialColumnGroup, value interface{}) error { +func awsRestjson1_deserializeDocumentIngestions(v *[]types.Ingestion, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -43506,53 +50808,33 @@ func awsRestjson1_deserializeDocumentGeoSpatialColumnGroup(v **types.GeoSpatialC return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.GeoSpatialColumnGroup + var cv []types.Ingestion if *v == nil { - sv = &types.GeoSpatialColumnGroup{} + cv = []types.Ingestion{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "Columns": - if err := awsRestjson1_deserializeDocumentColumnList(&sv.Columns, value); err != nil { - return err - } - - case "CountryCode": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected GeoSpatialCountryCode to be of type string, got %T instead", value) - } - sv.CountryCode = types.GeoSpatialCountryCode(jtv) - } - - case "Name": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ColumnGroupName to be of type string, got %T instead", value) - } - sv.Name = ptr.String(jtv) - } - - default: - _, _ = key, value - + for _, value := range shape { + var col types.Ingestion + destAddr := &col + if err := awsRestjson1_deserializeDocumentIngestion(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsRestjson1_deserializeDocumentGeospatialCoordinateBounds(v **types.GeospatialCoordinateBounds, value interface{}) error { +func awsRestjson1_deserializeDocumentInputColumn(v **types.InputColumn, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -43565,161 +50847,77 @@ func awsRestjson1_deserializeDocumentGeospatialCoordinateBounds(v **types.Geospa return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.GeospatialCoordinateBounds + var sv *types.InputColumn if *v == nil { - sv = &types.GeospatialCoordinateBounds{} + sv = &types.InputColumn{} } else { sv = *v } for key, value := range shape { switch key { - case "East": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.East = ptr.Float64(f64) - - case string: - var f64 float64 - switch { - case strings.EqualFold(jtv, "NaN"): - f64 = math.NaN() - - case strings.EqualFold(jtv, "Infinity"): - f64 = math.Inf(1) - - case strings.EqualFold(jtv, "-Infinity"): - f64 = math.Inf(-1) - - default: - return fmt.Errorf("unknown JSON number value: %s", jtv) - - } - sv.East = ptr.Float64(f64) - - default: - return fmt.Errorf("expected Longitude to be a JSON Number, got %T instead", value) - - } - } - - case "North": + case "Name": if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.North = ptr.Float64(f64) - - case string: - var f64 float64 - switch { - case strings.EqualFold(jtv, "NaN"): - f64 = math.NaN() - - case strings.EqualFold(jtv, "Infinity"): - f64 = math.Inf(1) - - case strings.EqualFold(jtv, "-Infinity"): - f64 = math.Inf(-1) - - default: - return fmt.Errorf("unknown JSON number value: %s", jtv) - - } - sv.North = ptr.Float64(f64) - - default: - return fmt.Errorf("expected Latitude to be a JSON Number, got %T instead", value) - + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ColumnName to be of type string, got %T instead", value) } + sv.Name = ptr.String(jtv) } - case "South": + case "Type": if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.South = ptr.Float64(f64) - - case string: - var f64 float64 - switch { - case strings.EqualFold(jtv, "NaN"): - f64 = math.NaN() - - case strings.EqualFold(jtv, "Infinity"): - f64 = math.Inf(1) - - case strings.EqualFold(jtv, "-Infinity"): - f64 = math.Inf(-1) - - default: - return fmt.Errorf("unknown JSON number value: %s", jtv) - - } - sv.South = ptr.Float64(f64) - - default: - return fmt.Errorf("expected Latitude to be a JSON Number, got %T instead", value) - + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected InputColumnDataType to be of type string, got %T instead", value) } + sv.Type = types.InputColumnDataType(jtv) } - case "West": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.West = ptr.Float64(f64) - - case string: - var f64 float64 - switch { - case strings.EqualFold(jtv, "NaN"): - f64 = math.NaN() - - case strings.EqualFold(jtv, "Infinity"): - f64 = math.Inf(1) - - case strings.EqualFold(jtv, "-Infinity"): - f64 = math.Inf(-1) - - default: - return fmt.Errorf("unknown JSON number value: %s", jtv) + default: + _, _ = key, value - } - sv.West = ptr.Float64(f64) + } + } + *v = sv + return nil +} - default: - return fmt.Errorf("expected Longitude to be a JSON Number, got %T instead", value) +func awsRestjson1_deserializeDocumentInputColumnList(v *[]types.InputColumn, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } - } - } + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } - default: - _, _ = key, value + var cv []types.InputColumn + if *v == nil { + cv = []types.InputColumn{} + } else { + cv = *v + } + for _, value := range shape { + var col types.InputColumn + destAddr := &col + if err := awsRestjson1_deserializeDocumentInputColumn(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsRestjson1_deserializeDocumentGeospatialMapAggregatedFieldWells(v **types.GeospatialMapAggregatedFieldWells, value interface{}) error { +func awsRestjson1_deserializeDocumentInsightConfiguration(v **types.InsightConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -43732,27 +50930,22 @@ func awsRestjson1_deserializeDocumentGeospatialMapAggregatedFieldWells(v **types return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.GeospatialMapAggregatedFieldWells + var sv *types.InsightConfiguration if *v == nil { - sv = &types.GeospatialMapAggregatedFieldWells{} + sv = &types.InsightConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "Colors": - if err := awsRestjson1_deserializeDocumentDimensionFieldList(&sv.Colors, value); err != nil { - return err - } - - case "Geospatial": - if err := awsRestjson1_deserializeDocumentDimensionFieldList(&sv.Geospatial, value); err != nil { + case "Computations": + if err := awsRestjson1_deserializeDocumentComputationList(&sv.Computations, value); err != nil { return err } - case "Values": - if err := awsRestjson1_deserializeDocumentMeasureFieldList(&sv.Values, value); err != nil { + case "CustomNarrative": + if err := awsRestjson1_deserializeDocumentCustomNarrativeOptions(&sv.CustomNarrative, value); err != nil { return err } @@ -43765,7 +50958,7 @@ func awsRestjson1_deserializeDocumentGeospatialMapAggregatedFieldWells(v **types return nil } -func awsRestjson1_deserializeDocumentGeospatialMapConfiguration(v **types.GeospatialMapConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentInsightVisual(v **types.InsightVisual, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -43778,48 +50971,51 @@ func awsRestjson1_deserializeDocumentGeospatialMapConfiguration(v **types.Geospa return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.GeospatialMapConfiguration + var sv *types.InsightVisual if *v == nil { - sv = &types.GeospatialMapConfiguration{} + sv = &types.InsightVisual{} } else { sv = *v } for key, value := range shape { switch key { - case "FieldWells": - if err := awsRestjson1_deserializeDocumentGeospatialMapFieldWells(&sv.FieldWells, value); err != nil { - return err - } - - case "Legend": - if err := awsRestjson1_deserializeDocumentLegendOptions(&sv.Legend, value); err != nil { + case "Actions": + if err := awsRestjson1_deserializeDocumentVisualCustomActionList(&sv.Actions, value); err != nil { return err } - case "MapStyleOptions": - if err := awsRestjson1_deserializeDocumentGeospatialMapStyleOptions(&sv.MapStyleOptions, value); err != nil { - return err + case "DataSetIdentifier": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DataSetIdentifier to be of type string, got %T instead", value) + } + sv.DataSetIdentifier = ptr.String(jtv) } - case "PointStyleOptions": - if err := awsRestjson1_deserializeDocumentGeospatialPointStyleOptions(&sv.PointStyleOptions, value); err != nil { + case "InsightConfiguration": + if err := awsRestjson1_deserializeDocumentInsightConfiguration(&sv.InsightConfiguration, value); err != nil { return err } - case "Tooltip": - if err := awsRestjson1_deserializeDocumentTooltipOptions(&sv.Tooltip, value); err != nil { + case "Subtitle": + if err := awsRestjson1_deserializeDocumentVisualSubtitleLabelOptions(&sv.Subtitle, value); err != nil { return err } - case "VisualPalette": - if err := awsRestjson1_deserializeDocumentVisualPalette(&sv.VisualPalette, value); err != nil { + case "Title": + if err := awsRestjson1_deserializeDocumentVisualTitleLabelOptions(&sv.Title, value); err != nil { return err } - case "WindowOptions": - if err := awsRestjson1_deserializeDocumentGeospatialWindowOptions(&sv.WindowOptions, value); err != nil { - return err + case "VisualId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + } + sv.VisualId = ptr.String(jtv) } default: @@ -43831,7 +51027,7 @@ func awsRestjson1_deserializeDocumentGeospatialMapConfiguration(v **types.Geospa return nil } -func awsRestjson1_deserializeDocumentGeospatialMapFieldWells(v **types.GeospatialMapFieldWells, value interface{}) error { +func awsRestjson1_deserializeDocumentIntegerDatasetParameter(v **types.IntegerDatasetParameter, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -43844,20 +51040,47 @@ func awsRestjson1_deserializeDocumentGeospatialMapFieldWells(v **types.Geospatia return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.GeospatialMapFieldWells + var sv *types.IntegerDatasetParameter if *v == nil { - sv = &types.GeospatialMapFieldWells{} + sv = &types.IntegerDatasetParameter{} } else { sv = *v } for key, value := range shape { switch key { - case "GeospatialMapAggregatedFieldWells": - if err := awsRestjson1_deserializeDocumentGeospatialMapAggregatedFieldWells(&sv.GeospatialMapAggregatedFieldWells, value); err != nil { + case "DefaultValues": + if err := awsRestjson1_deserializeDocumentIntegerDatasetParameterDefaultValues(&sv.DefaultValues, value); err != nil { return err } + case "Id": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DatasetParameterId to be of type string, got %T instead", value) + } + sv.Id = ptr.String(jtv) + } + + case "Name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DatasetParameterName to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + case "ValueType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DatasetParameterValueType to be of type string, got %T instead", value) + } + sv.ValueType = types.DatasetParameterValueType(jtv) + } + default: _, _ = key, value @@ -43867,7 +51090,7 @@ func awsRestjson1_deserializeDocumentGeospatialMapFieldWells(v **types.Geospatia return nil } -func awsRestjson1_deserializeDocumentGeospatialMapStyleOptions(v **types.GeospatialMapStyleOptions, value interface{}) error { +func awsRestjson1_deserializeDocumentIntegerDatasetParameterDefaultValues(v **types.IntegerDatasetParameterDefaultValues, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -43880,22 +51103,18 @@ func awsRestjson1_deserializeDocumentGeospatialMapStyleOptions(v **types.Geospat return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.GeospatialMapStyleOptions + var sv *types.IntegerDatasetParameterDefaultValues if *v == nil { - sv = &types.GeospatialMapStyleOptions{} + sv = &types.IntegerDatasetParameterDefaultValues{} } else { sv = *v } for key, value := range shape { switch key { - case "BaseMapStyle": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected BaseMapStyleType to be of type string, got %T instead", value) - } - sv.BaseMapStyle = types.BaseMapStyleType(jtv) + case "StaticValues": + if err := awsRestjson1_deserializeDocumentIntegerDatasetParameterValueList(&sv.StaticValues, value); err != nil { + return err } default: @@ -43907,7 +51126,7 @@ func awsRestjson1_deserializeDocumentGeospatialMapStyleOptions(v **types.Geospat return nil } -func awsRestjson1_deserializeDocumentGeospatialMapVisual(v **types.GeospatialMapVisual, value interface{}) error { +func awsRestjson1_deserializeDocumentIntegerDatasetParameterValueList(v *[]int64, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -43915,52 +51134,108 @@ func awsRestjson1_deserializeDocumentGeospatialMapVisual(v **types.GeospatialMap return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.GeospatialMapVisual + var cv []int64 if *v == nil { - sv = &types.GeospatialMapVisual{} + cv = []int64{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "Actions": - if err := awsRestjson1_deserializeDocumentVisualCustomActionList(&sv.Actions, value); err != nil { - return err + for _, value := range shape { + var col int64 + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected IntegerDatasetParameterDefaultValue to be json.Number, got %T instead", value) } - - case "ChartConfiguration": - if err := awsRestjson1_deserializeDocumentGeospatialMapConfiguration(&sv.ChartConfiguration, value); err != nil { + i64, err := jtv.Int64() + if err != nil { return err } + col = i64 + } + cv = append(cv, col) - case "ColumnHierarchies": - if err := awsRestjson1_deserializeDocumentColumnHierarchyList(&sv.ColumnHierarchies, value); err != nil { - return err - } + } + *v = cv + return nil +} - case "Subtitle": - if err := awsRestjson1_deserializeDocumentVisualSubtitleLabelOptions(&sv.Subtitle, value); err != nil { +func awsRestjson1_deserializeDocumentIntegerDefaultValueList(v *[]int64, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []int64 + if *v == nil { + cv = []int64{} + } else { + cv = *v + } + + for _, value := range shape { + var col int64 + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected SensitiveLongObject to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { return err } + col = i64 + } + cv = append(cv, col) - case "Title": - if err := awsRestjson1_deserializeDocumentVisualTitleLabelOptions(&sv.Title, value); err != nil { + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentIntegerDefaultValues(v **types.IntegerDefaultValues, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.IntegerDefaultValues + if *v == nil { + sv = &types.IntegerDefaultValues{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "DynamicValue": + if err := awsRestjson1_deserializeDocumentDynamicDefaultValue(&sv.DynamicValue, value); err != nil { return err } - case "VisualId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) - } - sv.VisualId = ptr.String(jtv) + case "StaticValues": + if err := awsRestjson1_deserializeDocumentIntegerDefaultValueList(&sv.StaticValues, value); err != nil { + return err } default: @@ -43972,7 +51247,7 @@ func awsRestjson1_deserializeDocumentGeospatialMapVisual(v **types.GeospatialMap return nil } -func awsRestjson1_deserializeDocumentGeospatialPointStyleOptions(v **types.GeospatialPointStyleOptions, value interface{}) error { +func awsRestjson1_deserializeDocumentIntegerParameterDeclaration(v **types.IntegerParameterDeclaration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -43985,27 +51260,46 @@ func awsRestjson1_deserializeDocumentGeospatialPointStyleOptions(v **types.Geosp return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.GeospatialPointStyleOptions + var sv *types.IntegerParameterDeclaration if *v == nil { - sv = &types.GeospatialPointStyleOptions{} + sv = &types.IntegerParameterDeclaration{} } else { sv = *v } for key, value := range shape { switch key { - case "ClusterMarkerConfiguration": - if err := awsRestjson1_deserializeDocumentClusterMarkerConfiguration(&sv.ClusterMarkerConfiguration, value); err != nil { + case "DefaultValues": + if err := awsRestjson1_deserializeDocumentIntegerDefaultValues(&sv.DefaultValues, value); err != nil { return err } - case "SelectedPointStyle": + case "MappedDataSetParameters": + if err := awsRestjson1_deserializeDocumentMappedDataSetParameters(&sv.MappedDataSetParameters, value); err != nil { + return err + } + + case "Name": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected GeospatialSelectedPointStyle to be of type string, got %T instead", value) + return fmt.Errorf("expected ParameterName to be of type string, got %T instead", value) } - sv.SelectedPointStyle = types.GeospatialSelectedPointStyle(jtv) + sv.Name = ptr.String(jtv) + } + + case "ParameterValueType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ParameterValueType to be of type string, got %T instead", value) + } + sv.ParameterValueType = types.ParameterValueType(jtv) + } + + case "ValueWhenUnset": + if err := awsRestjson1_deserializeDocumentIntegerValueWhenUnsetConfiguration(&sv.ValueWhenUnset, value); err != nil { + return err } default: @@ -44017,7 +51311,7 @@ func awsRestjson1_deserializeDocumentGeospatialPointStyleOptions(v **types.Geosp return nil } -func awsRestjson1_deserializeDocumentGeospatialWindowOptions(v **types.GeospatialWindowOptions, value interface{}) error { +func awsRestjson1_deserializeDocumentIntegerValueWhenUnsetConfiguration(v **types.IntegerValueWhenUnsetConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -44030,27 +51324,35 @@ func awsRestjson1_deserializeDocumentGeospatialWindowOptions(v **types.Geospatia return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.GeospatialWindowOptions + var sv *types.IntegerValueWhenUnsetConfiguration if *v == nil { - sv = &types.GeospatialWindowOptions{} + sv = &types.IntegerValueWhenUnsetConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "Bounds": - if err := awsRestjson1_deserializeDocumentGeospatialCoordinateBounds(&sv.Bounds, value); err != nil { - return err + case "CustomValue": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected SensitiveLong to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.CustomValue = ptr.Int64(i64) } - case "MapZoomMode": + case "ValueWhenUnsetOption": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected MapZoomMode to be of type string, got %T instead", value) + return fmt.Errorf("expected ValueWhenUnsetOption to be of type string, got %T instead", value) } - sv.MapZoomMode = types.MapZoomMode(jtv) + sv.ValueWhenUnsetOption = types.ValueWhenUnsetOption(jtv) } default: @@ -44062,7 +51364,7 @@ func awsRestjson1_deserializeDocumentGeospatialWindowOptions(v **types.Geospatia return nil } -func awsRestjson1_deserializeDocumentGlobalTableBorderOptions(v **types.GlobalTableBorderOptions, value interface{}) error { +func awsRestjson1_deserializeDocumentInternalFailureException(v **types.InternalFailureException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -44075,23 +51377,31 @@ func awsRestjson1_deserializeDocumentGlobalTableBorderOptions(v **types.GlobalTa return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.GlobalTableBorderOptions + var sv *types.InternalFailureException if *v == nil { - sv = &types.GlobalTableBorderOptions{} + sv = &types.InternalFailureException{} } else { sv = *v } for key, value := range shape { switch key { - case "SideSpecificBorder": - if err := awsRestjson1_deserializeDocumentTableSideBorderOptions(&sv.SideSpecificBorder, value); err != nil { - return err + case "Message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) } - case "UniformBorder": - if err := awsRestjson1_deserializeDocumentTableBorderOptions(&sv.UniformBorder, value); err != nil { - return err + case "RequestId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.RequestId = ptr.String(jtv) } default: @@ -44103,7 +51413,7 @@ func awsRestjson1_deserializeDocumentGlobalTableBorderOptions(v **types.GlobalTa return nil } -func awsRestjson1_deserializeDocumentGradientColor(v **types.GradientColor, value interface{}) error { +func awsRestjson1_deserializeDocumentInvalidNextTokenException(v **types.InvalidNextTokenException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -44116,18 +51426,31 @@ func awsRestjson1_deserializeDocumentGradientColor(v **types.GradientColor, valu return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.GradientColor + var sv *types.InvalidNextTokenException if *v == nil { - sv = &types.GradientColor{} + sv = &types.InvalidNextTokenException{} } else { sv = *v } for key, value := range shape { switch key { - case "Stops": - if err := awsRestjson1_deserializeDocumentGradientStopList(&sv.Stops, value); err != nil { - return err + case "Message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + case "RequestId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.RequestId = ptr.String(jtv) } default: @@ -44139,7 +51462,7 @@ func awsRestjson1_deserializeDocumentGradientColor(v **types.GradientColor, valu return nil } -func awsRestjson1_deserializeDocumentGradientStop(v **types.GradientStop, value interface{}) error { +func awsRestjson1_deserializeDocumentInvalidParameterValueException(v **types.InvalidParameterValueException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -44152,90 +51475,80 @@ func awsRestjson1_deserializeDocumentGradientStop(v **types.GradientStop, value return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.GradientStop + var sv *types.InvalidParameterValueException if *v == nil { - sv = &types.GradientStop{} + sv = &types.InvalidParameterValueException{} } else { sv = *v } for key, value := range shape { switch key { - case "Color": + case "Message": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected HexColor to be of type string, got %T instead", value) + return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Color = ptr.String(jtv) + sv.Message = ptr.String(jtv) } - case "DataValue": + case "RequestId": if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.DataValue = ptr.Float64(f64) - - case string: - var f64 float64 - switch { - case strings.EqualFold(jtv, "NaN"): - f64 = math.NaN() + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.RequestId = ptr.String(jtv) + } - case strings.EqualFold(jtv, "Infinity"): - f64 = math.Inf(1) + default: + _, _ = key, value - case strings.EqualFold(jtv, "-Infinity"): - f64 = math.Inf(-1) + } + } + *v = sv + return nil +} - default: - return fmt.Errorf("unknown JSON number value: %s", jtv) +func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRequestException, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } - } - sv.DataValue = ptr.Float64(f64) + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } - default: - return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value) + var sv *types.InvalidRequestException + if *v == nil { + sv = &types.InvalidRequestException{} + } else { + sv = *v + } + for key, value := range shape { + switch key { + case "Message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) } + sv.Message = ptr.String(jtv) } - case "GradientOffset": + case "RequestId": if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.GradientOffset = f64 - - case string: - var f64 float64 - switch { - case strings.EqualFold(jtv, "NaN"): - f64 = math.NaN() - - case strings.EqualFold(jtv, "Infinity"): - f64 = math.Inf(1) - - case strings.EqualFold(jtv, "-Infinity"): - f64 = math.Inf(-1) - - default: - return fmt.Errorf("unknown JSON number value: %s", jtv) - - } - sv.GradientOffset = f64 - - default: - return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value) - + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) } + sv.RequestId = ptr.String(jtv) } default: @@ -44247,7 +51560,7 @@ func awsRestjson1_deserializeDocumentGradientStop(v **types.GradientStop, value return nil } -func awsRestjson1_deserializeDocumentGradientStopList(v *[]types.GradientStop, value interface{}) error { +func awsRestjson1_deserializeDocumentIpRestrictionRuleMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -44255,33 +51568,35 @@ func awsRestjson1_deserializeDocumentGradientStopList(v *[]types.GradientStop, v return nil } - shape, ok := value.([]interface{}) + shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.GradientStop + var mv map[string]string if *v == nil { - cv = []types.GradientStop{} + mv = map[string]string{} } else { - cv = *v + mv = *v } - for _, value := range shape { - var col types.GradientStop - destAddr := &col - if err := awsRestjson1_deserializeDocumentGradientStop(&destAddr, value); err != nil { - return err + for key, value := range shape { + var parsedVal string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected IpRestrictionRuleDescription to be of type string, got %T instead", value) + } + parsedVal = jtv } - col = *destAddr - cv = append(cv, col) + mv[key] = parsedVal } - *v = cv + *v = mv return nil } -func awsRestjson1_deserializeDocumentGridLayoutCanvasSizeOptions(v **types.GridLayoutCanvasSizeOptions, value interface{}) error { +func awsRestjson1_deserializeDocumentItemsLimitConfiguration(v **types.ItemsLimitConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -44294,18 +51609,35 @@ func awsRestjson1_deserializeDocumentGridLayoutCanvasSizeOptions(v **types.GridL return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.GridLayoutCanvasSizeOptions + var sv *types.ItemsLimitConfiguration if *v == nil { - sv = &types.GridLayoutCanvasSizeOptions{} + sv = &types.ItemsLimitConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "ScreenCanvasSizeOptions": - if err := awsRestjson1_deserializeDocumentGridLayoutScreenCanvasSizeOptions(&sv.ScreenCanvasSizeOptions, value); err != nil { - return err + case "ItemsLimit": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected Long to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.ItemsLimit = ptr.Int64(i64) + } + + case "OtherCategories": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected OtherCategories to be of type string, got %T instead", value) + } + sv.OtherCategories = types.OtherCategories(jtv) } default: @@ -44317,7 +51649,7 @@ func awsRestjson1_deserializeDocumentGridLayoutCanvasSizeOptions(v **types.GridL return nil } -func awsRestjson1_deserializeDocumentGridLayoutConfiguration(v **types.GridLayoutConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentJiraParameters(v **types.JiraParameters, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -44330,23 +51662,22 @@ func awsRestjson1_deserializeDocumentGridLayoutConfiguration(v **types.GridLayou return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.GridLayoutConfiguration + var sv *types.JiraParameters if *v == nil { - sv = &types.GridLayoutConfiguration{} + sv = &types.JiraParameters{} } else { sv = *v } for key, value := range shape { switch key { - case "CanvasSizeOptions": - if err := awsRestjson1_deserializeDocumentGridLayoutCanvasSizeOptions(&sv.CanvasSizeOptions, value); err != nil { - return err - } - - case "Elements": - if err := awsRestjson1_deserializeDocumentGridLayoutElementList(&sv.Elements, value); err != nil { - return err + case "SiteBaseUrl": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected SiteBaseUrl to be of type string, got %T instead", value) + } + sv.SiteBaseUrl = ptr.String(jtv) } default: @@ -44358,7 +51689,7 @@ func awsRestjson1_deserializeDocumentGridLayoutConfiguration(v **types.GridLayou return nil } -func awsRestjson1_deserializeDocumentGridLayoutElement(v **types.GridLayoutElement, value interface{}) error { +func awsRestjson1_deserializeDocumentJoinInstruction(v **types.JoinInstruction, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -44371,83 +51702,59 @@ func awsRestjson1_deserializeDocumentGridLayoutElement(v **types.GridLayoutEleme return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.GridLayoutElement + var sv *types.JoinInstruction if *v == nil { - sv = &types.GridLayoutElement{} + sv = &types.JoinInstruction{} } else { sv = *v } for key, value := range shape { switch key { - case "ColumnIndex": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected GridLayoutElementColumnIndex to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.ColumnIndex = ptr.Int32(int32(i64)) + case "LeftJoinKeyProperties": + if err := awsRestjson1_deserializeDocumentJoinKeyProperties(&sv.LeftJoinKeyProperties, value); err != nil { + return err } - case "ColumnSpan": + case "LeftOperand": if value != nil { - jtv, ok := value.(json.Number) + jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected GridLayoutElementColumnSpan to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err + return fmt.Errorf("expected LogicalTableId to be of type string, got %T instead", value) } - sv.ColumnSpan = ptr.Int32(int32(i64)) + sv.LeftOperand = ptr.String(jtv) } - case "ElementId": + case "OnClause": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + return fmt.Errorf("expected OnClause to be of type string, got %T instead", value) } - sv.ElementId = ptr.String(jtv) + sv.OnClause = ptr.String(jtv) } - case "ElementType": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected LayoutElementType to be of type string, got %T instead", value) - } - sv.ElementType = types.LayoutElementType(jtv) + case "RightJoinKeyProperties": + if err := awsRestjson1_deserializeDocumentJoinKeyProperties(&sv.RightJoinKeyProperties, value); err != nil { + return err } - case "RowIndex": + case "RightOperand": if value != nil { - jtv, ok := value.(json.Number) + jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected GridLayoutElementRowIndex to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err + return fmt.Errorf("expected LogicalTableId to be of type string, got %T instead", value) } - sv.RowIndex = ptr.Int32(int32(i64)) + sv.RightOperand = ptr.String(jtv) } - case "RowSpan": + case "Type": if value != nil { - jtv, ok := value.(json.Number) + jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected GridLayoutElementRowSpan to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err + return fmt.Errorf("expected JoinType to be of type string, got %T instead", value) } - sv.RowSpan = ptr.Int32(int32(i64)) + sv.Type = types.JoinType(jtv) } default: @@ -44459,7 +51766,7 @@ func awsRestjson1_deserializeDocumentGridLayoutElement(v **types.GridLayoutEleme return nil } -func awsRestjson1_deserializeDocumentGridLayoutElementList(v *[]types.GridLayoutElement, value interface{}) error { +func awsRestjson1_deserializeDocumentJoinKeyProperties(v **types.JoinKeyProperties, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -44467,33 +51774,39 @@ func awsRestjson1_deserializeDocumentGridLayoutElementList(v *[]types.GridLayout return nil } - shape, ok := value.([]interface{}) + shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.GridLayoutElement + var sv *types.JoinKeyProperties if *v == nil { - cv = []types.GridLayoutElement{} + sv = &types.JoinKeyProperties{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col types.GridLayoutElement - destAddr := &col - if err := awsRestjson1_deserializeDocumentGridLayoutElement(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) + for key, value := range shape { + switch key { + case "UniqueKey": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + } + sv.UniqueKey = ptr.Bool(jtv) + } + + default: + _, _ = key, value + } } - *v = cv + *v = sv return nil } -func awsRestjson1_deserializeDocumentGridLayoutScreenCanvasSizeOptions(v **types.GridLayoutScreenCanvasSizeOptions, value interface{}) error { +func awsRestjson1_deserializeDocumentKPIConditionalFormatting(v **types.KPIConditionalFormatting, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -44506,31 +51819,18 @@ func awsRestjson1_deserializeDocumentGridLayoutScreenCanvasSizeOptions(v **types return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.GridLayoutScreenCanvasSizeOptions + var sv *types.KPIConditionalFormatting if *v == nil { - sv = &types.GridLayoutScreenCanvasSizeOptions{} + sv = &types.KPIConditionalFormatting{} } else { sv = *v } for key, value := range shape { switch key { - case "OptimizedViewPortWidth": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected PixelLength to be of type string, got %T instead", value) - } - sv.OptimizedViewPortWidth = ptr.String(jtv) - } - - case "ResizeOption": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ResizeOption to be of type string, got %T instead", value) - } - sv.ResizeOption = types.ResizeOption(jtv) + case "ConditionalFormattingOptions": + if err := awsRestjson1_deserializeDocumentKPIConditionalFormattingOptionList(&sv.ConditionalFormattingOptions, value); err != nil { + return err } default: @@ -44542,7 +51842,7 @@ func awsRestjson1_deserializeDocumentGridLayoutScreenCanvasSizeOptions(v **types return nil } -func awsRestjson1_deserializeDocumentGroup(v **types.Group, value interface{}) error { +func awsRestjson1_deserializeDocumentKPIConditionalFormattingOption(v **types.KPIConditionalFormattingOption, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -44555,49 +51855,23 @@ func awsRestjson1_deserializeDocumentGroup(v **types.Group, value interface{}) e return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.Group + var sv *types.KPIConditionalFormattingOption if *v == nil { - sv = &types.Group{} + sv = &types.KPIConditionalFormattingOption{} } else { sv = *v } for key, value := range shape { switch key { - case "Arn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.Arn = ptr.String(jtv) - } - - case "Description": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected GroupDescription to be of type string, got %T instead", value) - } - sv.Description = ptr.String(jtv) - } - - case "GroupName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected GroupName to be of type string, got %T instead", value) - } - sv.GroupName = ptr.String(jtv) + case "PrimaryValue": + if err := awsRestjson1_deserializeDocumentKPIPrimaryValueConditionalFormatting(&sv.PrimaryValue, value); err != nil { + return err } - case "PrincipalId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.PrincipalId = ptr.String(jtv) + case "ProgressBar": + if err := awsRestjson1_deserializeDocumentKPIProgressBarConditionalFormatting(&sv.ProgressBar, value); err != nil { + return err } default: @@ -44609,7 +51883,7 @@ func awsRestjson1_deserializeDocumentGroup(v **types.Group, value interface{}) e return nil } -func awsRestjson1_deserializeDocumentGroupList(v *[]types.Group, value interface{}) error { +func awsRestjson1_deserializeDocumentKPIConditionalFormattingOptionList(v *[]types.KPIConditionalFormattingOption, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -44622,17 +51896,17 @@ func awsRestjson1_deserializeDocumentGroupList(v *[]types.Group, value interface return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.Group + var cv []types.KPIConditionalFormattingOption if *v == nil { - cv = []types.Group{} + cv = []types.KPIConditionalFormattingOption{} } else { cv = *v } for _, value := range shape { - var col types.Group + var col types.KPIConditionalFormattingOption destAddr := &col - if err := awsRestjson1_deserializeDocumentGroup(&destAddr, value); err != nil { + if err := awsRestjson1_deserializeDocumentKPIConditionalFormattingOption(&destAddr, value); err != nil { return err } col = *destAddr @@ -44643,7 +51917,7 @@ func awsRestjson1_deserializeDocumentGroupList(v *[]types.Group, value interface return nil } -func awsRestjson1_deserializeDocumentGroupMember(v **types.GroupMember, value interface{}) error { +func awsRestjson1_deserializeDocumentKPIConfiguration(v **types.KPIConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -44656,31 +51930,28 @@ func awsRestjson1_deserializeDocumentGroupMember(v **types.GroupMember, value in return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.GroupMember + var sv *types.KPIConfiguration if *v == nil { - sv = &types.GroupMember{} + sv = &types.KPIConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "Arn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.Arn = ptr.String(jtv) + case "FieldWells": + if err := awsRestjson1_deserializeDocumentKPIFieldWells(&sv.FieldWells, value); err != nil { + return err } - case "MemberName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected GroupMemberName to be of type string, got %T instead", value) - } - sv.MemberName = ptr.String(jtv) + case "KPIOptions": + if err := awsRestjson1_deserializeDocumentKPIOptions(&sv.KPIOptions, value); err != nil { + return err + } + + case "SortConfiguration": + if err := awsRestjson1_deserializeDocumentKPISortConfiguration(&sv.SortConfiguration, value); err != nil { + return err } default: @@ -44692,7 +51963,7 @@ func awsRestjson1_deserializeDocumentGroupMember(v **types.GroupMember, value in return nil } -func awsRestjson1_deserializeDocumentGroupMemberList(v *[]types.GroupMember, value interface{}) error { +func awsRestjson1_deserializeDocumentKPIFieldWells(v **types.KPIFieldWells, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -44700,33 +51971,45 @@ func awsRestjson1_deserializeDocumentGroupMemberList(v *[]types.GroupMember, val return nil } - shape, ok := value.([]interface{}) + shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.GroupMember + var sv *types.KPIFieldWells if *v == nil { - cv = []types.GroupMember{} + sv = &types.KPIFieldWells{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col types.GroupMember - destAddr := &col - if err := awsRestjson1_deserializeDocumentGroupMember(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) + for key, value := range shape { + switch key { + case "TargetValues": + if err := awsRestjson1_deserializeDocumentMeasureFieldList(&sv.TargetValues, value); err != nil { + return err + } + + case "TrendGroups": + if err := awsRestjson1_deserializeDocumentDimensionFieldList(&sv.TrendGroups, value); err != nil { + return err + } + + case "Values": + if err := awsRestjson1_deserializeDocumentMeasureFieldList(&sv.Values, value); err != nil { + return err + } + + default: + _, _ = key, value + } } - *v = cv + *v = sv return nil } -func awsRestjson1_deserializeDocumentGrowthRateComputation(v **types.GrowthRateComputation, value interface{}) error { +func awsRestjson1_deserializeDocumentKPIOptions(v **types.KPIOptions, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -44739,53 +52022,51 @@ func awsRestjson1_deserializeDocumentGrowthRateComputation(v **types.GrowthRateC return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.GrowthRateComputation + var sv *types.KPIOptions if *v == nil { - sv = &types.GrowthRateComputation{} + sv = &types.KPIOptions{} } else { sv = *v } for key, value := range shape { switch key { - case "ComputationId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) - } - sv.ComputationId = ptr.String(jtv) + case "Comparison": + if err := awsRestjson1_deserializeDocumentComparisonConfiguration(&sv.Comparison, value); err != nil { + return err } - case "Name": + case "PrimaryValueDisplayType": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) + return fmt.Errorf("expected PrimaryValueDisplayType to be of type string, got %T instead", value) } - sv.Name = ptr.String(jtv) + sv.PrimaryValueDisplayType = types.PrimaryValueDisplayType(jtv) } - case "PeriodSize": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected GrowthRatePeriodSize to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.PeriodSize = int32(i64) + case "PrimaryValueFontConfiguration": + if err := awsRestjson1_deserializeDocumentFontConfiguration(&sv.PrimaryValueFontConfiguration, value); err != nil { + return err } - case "Time": - if err := awsRestjson1_deserializeDocumentDimensionField(&sv.Time, value); err != nil { + case "ProgressBar": + if err := awsRestjson1_deserializeDocumentProgressBarOptions(&sv.ProgressBar, value); err != nil { return err } - case "Value": - if err := awsRestjson1_deserializeDocumentMeasureField(&sv.Value, value); err != nil { + case "SecondaryValue": + if err := awsRestjson1_deserializeDocumentSecondaryValueOptions(&sv.SecondaryValue, value); err != nil { + return err + } + + case "SecondaryValueFontConfiguration": + if err := awsRestjson1_deserializeDocumentFontConfiguration(&sv.SecondaryValueFontConfiguration, value); err != nil { + return err + } + + case "TrendArrows": + if err := awsRestjson1_deserializeDocumentTrendArrowOptions(&sv.TrendArrows, value); err != nil { return err } @@ -44798,7 +52079,7 @@ func awsRestjson1_deserializeDocumentGrowthRateComputation(v **types.GrowthRateC return nil } -func awsRestjson1_deserializeDocumentGutterStyle(v **types.GutterStyle, value interface{}) error { +func awsRestjson1_deserializeDocumentKPIPrimaryValueConditionalFormatting(v **types.KPIPrimaryValueConditionalFormatting, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -44811,22 +52092,23 @@ func awsRestjson1_deserializeDocumentGutterStyle(v **types.GutterStyle, value in return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.GutterStyle + var sv *types.KPIPrimaryValueConditionalFormatting if *v == nil { - sv = &types.GutterStyle{} + sv = &types.KPIPrimaryValueConditionalFormatting{} } else { sv = *v } for key, value := range shape { switch key { - case "Show": - if value != nil { - jtv, ok := value.(bool) - if !ok { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) - } - sv.Show = ptr.Bool(jtv) + case "Icon": + if err := awsRestjson1_deserializeDocumentConditionalFormattingIcon(&sv.Icon, value); err != nil { + return err + } + + case "TextColor": + if err := awsRestjson1_deserializeDocumentConditionalFormattingColor(&sv.TextColor, value); err != nil { + return err } default: @@ -44838,7 +52120,7 @@ func awsRestjson1_deserializeDocumentGutterStyle(v **types.GutterStyle, value in return nil } -func awsRestjson1_deserializeDocumentHeaderFooterSectionConfiguration(v **types.HeaderFooterSectionConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentKPIProgressBarConditionalFormatting(v **types.KPIProgressBarConditionalFormatting, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -44851,31 +52133,17 @@ func awsRestjson1_deserializeDocumentHeaderFooterSectionConfiguration(v **types. return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.HeaderFooterSectionConfiguration + var sv *types.KPIProgressBarConditionalFormatting if *v == nil { - sv = &types.HeaderFooterSectionConfiguration{} + sv = &types.KPIProgressBarConditionalFormatting{} } else { sv = *v } for key, value := range shape { switch key { - case "Layout": - if err := awsRestjson1_deserializeDocumentSectionLayoutConfiguration(&sv.Layout, value); err != nil { - return err - } - - case "SectionId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) - } - sv.SectionId = ptr.String(jtv) - } - - case "Style": - if err := awsRestjson1_deserializeDocumentSectionStyle(&sv.Style, value); err != nil { + case "ForegroundColor": + if err := awsRestjson1_deserializeDocumentConditionalFormattingColor(&sv.ForegroundColor, value); err != nil { return err } @@ -44888,7 +52156,7 @@ func awsRestjson1_deserializeDocumentHeaderFooterSectionConfiguration(v **types. return nil } -func awsRestjson1_deserializeDocumentHeaderFooterSectionConfigurationList(v *[]types.HeaderFooterSectionConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentKPISortConfiguration(v **types.KPISortConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -44896,33 +52164,35 @@ func awsRestjson1_deserializeDocumentHeaderFooterSectionConfigurationList(v *[]t return nil } - shape, ok := value.([]interface{}) + shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.HeaderFooterSectionConfiguration + var sv *types.KPISortConfiguration if *v == nil { - cv = []types.HeaderFooterSectionConfiguration{} + sv = &types.KPISortConfiguration{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col types.HeaderFooterSectionConfiguration - destAddr := &col - if err := awsRestjson1_deserializeDocumentHeaderFooterSectionConfiguration(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) + for key, value := range shape { + switch key { + case "TrendGroupSort": + if err := awsRestjson1_deserializeDocumentFieldSortOptionsList(&sv.TrendGroupSort, value); err != nil { + return err + } + default: + _, _ = key, value + + } } - *v = cv + *v = sv return nil } -func awsRestjson1_deserializeDocumentHeatMapAggregatedFieldWells(v **types.HeatMapAggregatedFieldWells, value interface{}) error { +func awsRestjson1_deserializeDocumentKPIVisual(v **types.KPIVisual, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -44935,30 +52205,54 @@ func awsRestjson1_deserializeDocumentHeatMapAggregatedFieldWells(v **types.HeatM return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.HeatMapAggregatedFieldWells + var sv *types.KPIVisual if *v == nil { - sv = &types.HeatMapAggregatedFieldWells{} + sv = &types.KPIVisual{} } else { sv = *v } for key, value := range shape { switch key { - case "Columns": - if err := awsRestjson1_deserializeDocumentHeatMapDimensionFieldList(&sv.Columns, value); err != nil { + case "Actions": + if err := awsRestjson1_deserializeDocumentVisualCustomActionList(&sv.Actions, value); err != nil { return err } - case "Rows": - if err := awsRestjson1_deserializeDocumentHeatMapDimensionFieldList(&sv.Rows, value); err != nil { + case "ChartConfiguration": + if err := awsRestjson1_deserializeDocumentKPIConfiguration(&sv.ChartConfiguration, value); err != nil { return err } - case "Values": - if err := awsRestjson1_deserializeDocumentHeatMapMeasureFieldList(&sv.Values, value); err != nil { + case "ColumnHierarchies": + if err := awsRestjson1_deserializeDocumentColumnHierarchyList(&sv.ColumnHierarchies, value); err != nil { return err } + case "ConditionalFormatting": + if err := awsRestjson1_deserializeDocumentKPIConditionalFormatting(&sv.ConditionalFormatting, value); err != nil { + return err + } + + case "Subtitle": + if err := awsRestjson1_deserializeDocumentVisualSubtitleLabelOptions(&sv.Subtitle, value); err != nil { + return err + } + + case "Title": + if err := awsRestjson1_deserializeDocumentVisualTitleLabelOptions(&sv.Title, value); err != nil { + return err + } + + case "VisualId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + } + sv.VisualId = ptr.String(jtv) + } + default: _, _ = key, value @@ -44968,7 +52262,7 @@ func awsRestjson1_deserializeDocumentHeatMapAggregatedFieldWells(v **types.HeatM return nil } -func awsRestjson1_deserializeDocumentHeatMapConfiguration(v **types.HeatMapConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentLabelOptions(v **types.LabelOptions, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -44981,53 +52275,36 @@ func awsRestjson1_deserializeDocumentHeatMapConfiguration(v **types.HeatMapConfi return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.HeatMapConfiguration + var sv *types.LabelOptions if *v == nil { - sv = &types.HeatMapConfiguration{} + sv = &types.LabelOptions{} } else { sv = *v } for key, value := range shape { switch key { - case "ColorScale": - if err := awsRestjson1_deserializeDocumentColorScale(&sv.ColorScale, value); err != nil { - return err - } - - case "ColumnLabelOptions": - if err := awsRestjson1_deserializeDocumentChartAxisLabelOptions(&sv.ColumnLabelOptions, value); err != nil { - return err - } - - case "DataLabels": - if err := awsRestjson1_deserializeDocumentDataLabelOptions(&sv.DataLabels, value); err != nil { - return err - } - - case "FieldWells": - if err := awsRestjson1_deserializeDocumentHeatMapFieldWells(&sv.FieldWells, value); err != nil { - return err - } - - case "Legend": - if err := awsRestjson1_deserializeDocumentLegendOptions(&sv.Legend, value); err != nil { - return err - } - - case "RowLabelOptions": - if err := awsRestjson1_deserializeDocumentChartAxisLabelOptions(&sv.RowLabelOptions, value); err != nil { - return err + case "CustomLabel": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.CustomLabel = ptr.String(jtv) } - case "SortConfiguration": - if err := awsRestjson1_deserializeDocumentHeatMapSortConfiguration(&sv.SortConfiguration, value); err != nil { + case "FontConfiguration": + if err := awsRestjson1_deserializeDocumentFontConfiguration(&sv.FontConfiguration, value); err != nil { return err } - case "Tooltip": - if err := awsRestjson1_deserializeDocumentTooltipOptions(&sv.Tooltip, value); err != nil { - return err + case "Visibility": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) + } + sv.Visibility = types.Visibility(jtv) } default: @@ -45039,7 +52316,7 @@ func awsRestjson1_deserializeDocumentHeatMapConfiguration(v **types.HeatMapConfi return nil } -func awsRestjson1_deserializeDocumentHeatMapDimensionFieldList(v *[]types.DimensionField, value interface{}) error { +func awsRestjson1_deserializeDocumentLayout(v **types.Layout, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -45047,33 +52324,35 @@ func awsRestjson1_deserializeDocumentHeatMapDimensionFieldList(v *[]types.Dimens return nil } - shape, ok := value.([]interface{}) + shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.DimensionField + var sv *types.Layout if *v == nil { - cv = []types.DimensionField{} + sv = &types.Layout{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col types.DimensionField - destAddr := &col - if err := awsRestjson1_deserializeDocumentDimensionField(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) + for key, value := range shape { + switch key { + case "Configuration": + if err := awsRestjson1_deserializeDocumentLayoutConfiguration(&sv.Configuration, value); err != nil { + return err + } + + default: + _, _ = key, value + } } - *v = cv + *v = sv return nil } -func awsRestjson1_deserializeDocumentHeatMapFieldWells(v **types.HeatMapFieldWells, value interface{}) error { +func awsRestjson1_deserializeDocumentLayoutConfiguration(v **types.LayoutConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -45086,17 +52365,27 @@ func awsRestjson1_deserializeDocumentHeatMapFieldWells(v **types.HeatMapFieldWel return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.HeatMapFieldWells + var sv *types.LayoutConfiguration if *v == nil { - sv = &types.HeatMapFieldWells{} + sv = &types.LayoutConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "HeatMapAggregatedFieldWells": - if err := awsRestjson1_deserializeDocumentHeatMapAggregatedFieldWells(&sv.HeatMapAggregatedFieldWells, value); err != nil { + case "FreeFormLayout": + if err := awsRestjson1_deserializeDocumentFreeFormLayoutConfiguration(&sv.FreeFormLayout, value); err != nil { + return err + } + + case "GridLayout": + if err := awsRestjson1_deserializeDocumentGridLayoutConfiguration(&sv.GridLayout, value); err != nil { + return err + } + + case "SectionBasedLayout": + if err := awsRestjson1_deserializeDocumentSectionBasedLayoutConfiguration(&sv.SectionBasedLayout, value); err != nil { return err } @@ -45109,7 +52398,7 @@ func awsRestjson1_deserializeDocumentHeatMapFieldWells(v **types.HeatMapFieldWel return nil } -func awsRestjson1_deserializeDocumentHeatMapMeasureFieldList(v *[]types.MeasureField, value interface{}) error { +func awsRestjson1_deserializeDocumentLayoutList(v *[]types.Layout, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -45122,17 +52411,17 @@ func awsRestjson1_deserializeDocumentHeatMapMeasureFieldList(v *[]types.MeasureF return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.MeasureField + var cv []types.Layout if *v == nil { - cv = []types.MeasureField{} + cv = []types.Layout{} } else { cv = *v } for _, value := range shape { - var col types.MeasureField + var col types.Layout destAddr := &col - if err := awsRestjson1_deserializeDocumentMeasureField(&destAddr, value); err != nil { + if err := awsRestjson1_deserializeDocumentLayout(&destAddr, value); err != nil { return err } col = *destAddr @@ -45143,7 +52432,7 @@ func awsRestjson1_deserializeDocumentHeatMapMeasureFieldList(v *[]types.MeasureF return nil } -func awsRestjson1_deserializeDocumentHeatMapSortConfiguration(v **types.HeatMapSortConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentLegendOptions(v **types.LegendOptions, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -45156,33 +52445,54 @@ func awsRestjson1_deserializeDocumentHeatMapSortConfiguration(v **types.HeatMapS return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.HeatMapSortConfiguration + var sv *types.LegendOptions if *v == nil { - sv = &types.HeatMapSortConfiguration{} + sv = &types.LegendOptions{} } else { sv = *v } for key, value := range shape { switch key { - case "HeatMapColumnItemsLimitConfiguration": - if err := awsRestjson1_deserializeDocumentItemsLimitConfiguration(&sv.HeatMapColumnItemsLimitConfiguration, value); err != nil { - return err + case "Height": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected PixelLength to be of type string, got %T instead", value) + } + sv.Height = ptr.String(jtv) } - case "HeatMapColumnSort": - if err := awsRestjson1_deserializeDocumentFieldSortOptionsList(&sv.HeatMapColumnSort, value); err != nil { - return err + case "Position": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected LegendPosition to be of type string, got %T instead", value) + } + sv.Position = types.LegendPosition(jtv) } - case "HeatMapRowItemsLimitConfiguration": - if err := awsRestjson1_deserializeDocumentItemsLimitConfiguration(&sv.HeatMapRowItemsLimitConfiguration, value); err != nil { + case "Title": + if err := awsRestjson1_deserializeDocumentLabelOptions(&sv.Title, value); err != nil { return err } - case "HeatMapRowSort": - if err := awsRestjson1_deserializeDocumentFieldSortOptionsList(&sv.HeatMapRowSort, value); err != nil { - return err + case "Visibility": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) + } + sv.Visibility = types.Visibility(jtv) + } + + case "Width": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected PixelLength to be of type string, got %T instead", value) + } + sv.Width = ptr.String(jtv) } default: @@ -45194,7 +52504,7 @@ func awsRestjson1_deserializeDocumentHeatMapSortConfiguration(v **types.HeatMapS return nil } -func awsRestjson1_deserializeDocumentHeatMapVisual(v **types.HeatMapVisual, value interface{}) error { +func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExceededException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -45207,47 +52517,40 @@ func awsRestjson1_deserializeDocumentHeatMapVisual(v **types.HeatMapVisual, valu return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.HeatMapVisual + var sv *types.LimitExceededException if *v == nil { - sv = &types.HeatMapVisual{} + sv = &types.LimitExceededException{} } else { sv = *v } for key, value := range shape { switch key { - case "Actions": - if err := awsRestjson1_deserializeDocumentVisualCustomActionList(&sv.Actions, value); err != nil { - return err - } - - case "ChartConfiguration": - if err := awsRestjson1_deserializeDocumentHeatMapConfiguration(&sv.ChartConfiguration, value); err != nil { - return err - } - - case "ColumnHierarchies": - if err := awsRestjson1_deserializeDocumentColumnHierarchyList(&sv.ColumnHierarchies, value); err != nil { - return err - } - - case "Subtitle": - if err := awsRestjson1_deserializeDocumentVisualSubtitleLabelOptions(&sv.Subtitle, value); err != nil { - return err + case "Message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) } - case "Title": - if err := awsRestjson1_deserializeDocumentVisualTitleLabelOptions(&sv.Title, value); err != nil { - return err + case "RequestId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.RequestId = ptr.String(jtv) } - case "VisualId": + case "ResourceType": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + return fmt.Errorf("expected ExceptionResourceType to be of type string, got %T instead", value) } - sv.VisualId = ptr.String(jtv) + sv.ResourceType = types.ExceptionResourceType(jtv) } default: @@ -45259,7 +52562,7 @@ func awsRestjson1_deserializeDocumentHeatMapVisual(v **types.HeatMapVisual, valu return nil } -func awsRestjson1_deserializeDocumentHistogramAggregatedFieldWells(v **types.HistogramAggregatedFieldWells, value interface{}) error { +func awsRestjson1_deserializeDocumentLineChartAggregatedFieldWells(v **types.LineChartAggregatedFieldWells, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -45272,17 +52575,32 @@ func awsRestjson1_deserializeDocumentHistogramAggregatedFieldWells(v **types.His return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.HistogramAggregatedFieldWells + var sv *types.LineChartAggregatedFieldWells if *v == nil { - sv = &types.HistogramAggregatedFieldWells{} + sv = &types.LineChartAggregatedFieldWells{} } else { sv = *v } for key, value := range shape { switch key { + case "Category": + if err := awsRestjson1_deserializeDocumentDimensionFieldList(&sv.Category, value); err != nil { + return err + } + + case "Colors": + if err := awsRestjson1_deserializeDocumentDimensionFieldList(&sv.Colors, value); err != nil { + return err + } + + case "SmallMultiples": + if err := awsRestjson1_deserializeDocumentSmallMultiplesDimensionFieldList(&sv.SmallMultiples, value); err != nil { + return err + } + case "Values": - if err := awsRestjson1_deserializeDocumentHistogramMeasureFieldList(&sv.Values, value); err != nil { + if err := awsRestjson1_deserializeDocumentMeasureFieldList(&sv.Values, value); err != nil { return err } @@ -45295,7 +52613,7 @@ func awsRestjson1_deserializeDocumentHistogramAggregatedFieldWells(v **types.His return nil } -func awsRestjson1_deserializeDocumentHistogramBinOptions(v **types.HistogramBinOptions, value interface{}) error { +func awsRestjson1_deserializeDocumentLineChartConfiguration(v **types.LineChartConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -45308,111 +52626,82 @@ func awsRestjson1_deserializeDocumentHistogramBinOptions(v **types.HistogramBinO return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.HistogramBinOptions + var sv *types.LineChartConfiguration if *v == nil { - sv = &types.HistogramBinOptions{} + sv = &types.LineChartConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "BinCount": - if err := awsRestjson1_deserializeDocumentBinCountOptions(&sv.BinCount, value); err != nil { + case "ContributionAnalysisDefaults": + if err := awsRestjson1_deserializeDocumentContributionAnalysisDefaultList(&sv.ContributionAnalysisDefaults, value); err != nil { return err } - case "BinWidth": - if err := awsRestjson1_deserializeDocumentBinWidthOptions(&sv.BinWidth, value); err != nil { + case "DataLabels": + if err := awsRestjson1_deserializeDocumentDataLabelOptions(&sv.DataLabels, value); err != nil { return err } - case "SelectedBinType": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected HistogramBinType to be of type string, got %T instead", value) - } - sv.SelectedBinType = types.HistogramBinType(jtv) + case "DefaultSeriesSettings": + if err := awsRestjson1_deserializeDocumentLineChartDefaultSeriesSettings(&sv.DefaultSeriesSettings, value); err != nil { + return err } - case "StartValue": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.StartValue = ptr.Float64(f64) - - case string: - var f64 float64 - switch { - case strings.EqualFold(jtv, "NaN"): - f64 = math.NaN() - - case strings.EqualFold(jtv, "Infinity"): - f64 = math.Inf(1) - - case strings.EqualFold(jtv, "-Infinity"): - f64 = math.Inf(-1) - - default: - return fmt.Errorf("unknown JSON number value: %s", jtv) - - } - sv.StartValue = ptr.Float64(f64) + case "FieldWells": + if err := awsRestjson1_deserializeDocumentLineChartFieldWells(&sv.FieldWells, value); err != nil { + return err + } - default: - return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value) + case "ForecastConfigurations": + if err := awsRestjson1_deserializeDocumentForecastConfigurationList(&sv.ForecastConfigurations, value); err != nil { + return err + } - } + case "Legend": + if err := awsRestjson1_deserializeDocumentLegendOptions(&sv.Legend, value); err != nil { + return err } - default: - _, _ = key, value + case "PrimaryYAxisDisplayOptions": + if err := awsRestjson1_deserializeDocumentLineSeriesAxisDisplayOptions(&sv.PrimaryYAxisDisplayOptions, value); err != nil { + return err + } - } - } - *v = sv - return nil -} + case "PrimaryYAxisLabelOptions": + if err := awsRestjson1_deserializeDocumentChartAxisLabelOptions(&sv.PrimaryYAxisLabelOptions, value); err != nil { + return err + } -func awsRestjson1_deserializeDocumentHistogramConfiguration(v **types.HistogramConfiguration, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } + case "ReferenceLines": + if err := awsRestjson1_deserializeDocumentReferenceLineList(&sv.ReferenceLines, value); err != nil { + return err + } - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } + case "SecondaryYAxisDisplayOptions": + if err := awsRestjson1_deserializeDocumentLineSeriesAxisDisplayOptions(&sv.SecondaryYAxisDisplayOptions, value); err != nil { + return err + } - var sv *types.HistogramConfiguration - if *v == nil { - sv = &types.HistogramConfiguration{} - } else { - sv = *v - } + case "SecondaryYAxisLabelOptions": + if err := awsRestjson1_deserializeDocumentChartAxisLabelOptions(&sv.SecondaryYAxisLabelOptions, value); err != nil { + return err + } - for key, value := range shape { - switch key { - case "BinOptions": - if err := awsRestjson1_deserializeDocumentHistogramBinOptions(&sv.BinOptions, value); err != nil { + case "Series": + if err := awsRestjson1_deserializeDocumentSeriesItemList(&sv.Series, value); err != nil { return err } - case "DataLabels": - if err := awsRestjson1_deserializeDocumentDataLabelOptions(&sv.DataLabels, value); err != nil { + case "SmallMultiplesOptions": + if err := awsRestjson1_deserializeDocumentSmallMultiplesOptions(&sv.SmallMultiplesOptions, value); err != nil { return err } - case "FieldWells": - if err := awsRestjson1_deserializeDocumentHistogramFieldWells(&sv.FieldWells, value); err != nil { + case "SortConfiguration": + if err := awsRestjson1_deserializeDocumentLineChartSortConfiguration(&sv.SortConfiguration, value); err != nil { return err } @@ -45421,6 +52710,15 @@ func awsRestjson1_deserializeDocumentHistogramConfiguration(v **types.HistogramC return err } + case "Type": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected LineChartType to be of type string, got %T instead", value) + } + sv.Type = types.LineChartType(jtv) + } + case "VisualPalette": if err := awsRestjson1_deserializeDocumentVisualPalette(&sv.VisualPalette, value); err != nil { return err @@ -45436,11 +52734,6 @@ func awsRestjson1_deserializeDocumentHistogramConfiguration(v **types.HistogramC return err } - case "YAxisDisplayOptions": - if err := awsRestjson1_deserializeDocumentAxisDisplayOptions(&sv.YAxisDisplayOptions, value); err != nil { - return err - } - default: _, _ = key, value @@ -45450,7 +52743,7 @@ func awsRestjson1_deserializeDocumentHistogramConfiguration(v **types.HistogramC return nil } -func awsRestjson1_deserializeDocumentHistogramFieldWells(v **types.HistogramFieldWells, value interface{}) error { +func awsRestjson1_deserializeDocumentLineChartDefaultSeriesSettings(v **types.LineChartDefaultSeriesSettings, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -45463,17 +52756,31 @@ func awsRestjson1_deserializeDocumentHistogramFieldWells(v **types.HistogramFiel return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.HistogramFieldWells + var sv *types.LineChartDefaultSeriesSettings if *v == nil { - sv = &types.HistogramFieldWells{} + sv = &types.LineChartDefaultSeriesSettings{} } else { sv = *v } for key, value := range shape { switch key { - case "HistogramAggregatedFieldWells": - if err := awsRestjson1_deserializeDocumentHistogramAggregatedFieldWells(&sv.HistogramAggregatedFieldWells, value); err != nil { + case "AxisBinding": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AxisBinding to be of type string, got %T instead", value) + } + sv.AxisBinding = types.AxisBinding(jtv) + } + + case "LineStyleSettings": + if err := awsRestjson1_deserializeDocumentLineChartLineStyleSettings(&sv.LineStyleSettings, value); err != nil { + return err + } + + case "MarkerStyleSettings": + if err := awsRestjson1_deserializeDocumentLineChartMarkerStyleSettings(&sv.MarkerStyleSettings, value); err != nil { return err } @@ -45486,41 +52793,7 @@ func awsRestjson1_deserializeDocumentHistogramFieldWells(v **types.HistogramFiel return nil } -func awsRestjson1_deserializeDocumentHistogramMeasureFieldList(v *[]types.MeasureField, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []types.MeasureField - if *v == nil { - cv = []types.MeasureField{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.MeasureField - destAddr := &col - if err := awsRestjson1_deserializeDocumentMeasureField(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsRestjson1_deserializeDocumentHistogramVisual(v **types.HistogramVisual, value interface{}) error { +func awsRestjson1_deserializeDocumentLineChartFieldWells(v **types.LineChartFieldWells, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -45533,44 +52806,20 @@ func awsRestjson1_deserializeDocumentHistogramVisual(v **types.HistogramVisual, return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.HistogramVisual + var sv *types.LineChartFieldWells if *v == nil { - sv = &types.HistogramVisual{} + sv = &types.LineChartFieldWells{} } else { sv = *v } for key, value := range shape { switch key { - case "Actions": - if err := awsRestjson1_deserializeDocumentVisualCustomActionList(&sv.Actions, value); err != nil { - return err - } - - case "ChartConfiguration": - if err := awsRestjson1_deserializeDocumentHistogramConfiguration(&sv.ChartConfiguration, value); err != nil { - return err - } - - case "Subtitle": - if err := awsRestjson1_deserializeDocumentVisualSubtitleLabelOptions(&sv.Subtitle, value); err != nil { - return err - } - - case "Title": - if err := awsRestjson1_deserializeDocumentVisualTitleLabelOptions(&sv.Title, value); err != nil { + case "LineChartAggregatedFieldWells": + if err := awsRestjson1_deserializeDocumentLineChartAggregatedFieldWells(&sv.LineChartAggregatedFieldWells, value); err != nil { return err } - case "VisualId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) - } - sv.VisualId = ptr.String(jtv) - } - default: _, _ = key, value @@ -45580,7 +52829,7 @@ func awsRestjson1_deserializeDocumentHistogramVisual(v **types.HistogramVisual, return nil } -func awsRestjson1_deserializeDocumentIAMPolicyAssignment(v **types.IAMPolicyAssignment, value interface{}) error { +func awsRestjson1_deserializeDocumentLineChartLineStyleSettings(v **types.LineChartLineStyleSettings, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -45593,63 +52842,49 @@ func awsRestjson1_deserializeDocumentIAMPolicyAssignment(v **types.IAMPolicyAssi return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.IAMPolicyAssignment + var sv *types.LineChartLineStyleSettings if *v == nil { - sv = &types.IAMPolicyAssignment{} + sv = &types.LineChartLineStyleSettings{} } else { sv = *v } for key, value := range shape { switch key { - case "AssignmentId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.AssignmentId = ptr.String(jtv) - } - - case "AssignmentName": + case "LineInterpolation": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected IAMPolicyAssignmentName to be of type string, got %T instead", value) + return fmt.Errorf("expected LineInterpolation to be of type string, got %T instead", value) } - sv.AssignmentName = ptr.String(jtv) + sv.LineInterpolation = types.LineInterpolation(jtv) } - case "AssignmentStatus": + case "LineStyle": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected AssignmentStatus to be of type string, got %T instead", value) + return fmt.Errorf("expected LineChartLineStyle to be of type string, got %T instead", value) } - sv.AssignmentStatus = types.AssignmentStatus(jtv) + sv.LineStyle = types.LineChartLineStyle(jtv) } - case "AwsAccountId": + case "LineVisibility": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected AwsAccountId to be of type string, got %T instead", value) + return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) } - sv.AwsAccountId = ptr.String(jtv) - } - - case "Identities": - if err := awsRestjson1_deserializeDocumentIdentityMap(&sv.Identities, value); err != nil { - return err + sv.LineVisibility = types.Visibility(jtv) } - case "PolicyArn": + case "LineWidth": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + return fmt.Errorf("expected PixelLength to be of type string, got %T instead", value) } - sv.PolicyArn = ptr.String(jtv) + sv.LineWidth = ptr.String(jtv) } default: @@ -45661,7 +52896,7 @@ func awsRestjson1_deserializeDocumentIAMPolicyAssignment(v **types.IAMPolicyAssi return nil } -func awsRestjson1_deserializeDocumentIAMPolicyAssignmentSummary(v **types.IAMPolicyAssignmentSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentLineChartMarkerStyleSettings(v **types.LineChartMarkerStyleSettings, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -45674,77 +52909,61 @@ func awsRestjson1_deserializeDocumentIAMPolicyAssignmentSummary(v **types.IAMPol return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.IAMPolicyAssignmentSummary + var sv *types.LineChartMarkerStyleSettings if *v == nil { - sv = &types.IAMPolicyAssignmentSummary{} + sv = &types.LineChartMarkerStyleSettings{} } else { sv = *v } for key, value := range shape { switch key { - case "AssignmentName": + case "MarkerColor": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected IAMPolicyAssignmentName to be of type string, got %T instead", value) + return fmt.Errorf("expected HexColor to be of type string, got %T instead", value) } - sv.AssignmentName = ptr.String(jtv) + sv.MarkerColor = ptr.String(jtv) } - case "AssignmentStatus": + case "MarkerShape": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected AssignmentStatus to be of type string, got %T instead", value) + return fmt.Errorf("expected LineChartMarkerShape to be of type string, got %T instead", value) } - sv.AssignmentStatus = types.AssignmentStatus(jtv) + sv.MarkerShape = types.LineChartMarkerShape(jtv) } - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentIAMPolicyAssignmentSummaryList(v *[]types.IAMPolicyAssignmentSummary, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } + case "MarkerSize": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected PixelLength to be of type string, got %T instead", value) + } + sv.MarkerSize = ptr.String(jtv) + } - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } + case "MarkerVisibility": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) + } + sv.MarkerVisibility = types.Visibility(jtv) + } - var cv []types.IAMPolicyAssignmentSummary - if *v == nil { - cv = []types.IAMPolicyAssignmentSummary{} - } else { - cv = *v - } + default: + _, _ = key, value - for _, value := range shape { - var col types.IAMPolicyAssignmentSummary - destAddr := &col - if err := awsRestjson1_deserializeDocumentIAMPolicyAssignmentSummary(&destAddr, value); err != nil { - return err } - col = *destAddr - cv = append(cv, col) - } - *v = cv + *v = sv return nil } -func awsRestjson1_deserializeDocumentIdentityMap(v *map[string][]string, value interface{}) error { +func awsRestjson1_deserializeDocumentLineChartSeriesSettings(v **types.LineChartSeriesSettings, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -45757,28 +52976,35 @@ func awsRestjson1_deserializeDocumentIdentityMap(v *map[string][]string, value i return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string][]string + var sv *types.LineChartSeriesSettings if *v == nil { - mv = map[string][]string{} + sv = &types.LineChartSeriesSettings{} } else { - mv = *v + sv = *v } for key, value := range shape { - var parsedVal []string - mapVar := parsedVal - if err := awsRestjson1_deserializeDocumentIdentityNameList(&mapVar, value); err != nil { - return err - } - parsedVal = mapVar - mv[key] = parsedVal + switch key { + case "LineStyleSettings": + if err := awsRestjson1_deserializeDocumentLineChartLineStyleSettings(&sv.LineStyleSettings, value); err != nil { + return err + } + + case "MarkerStyleSettings": + if err := awsRestjson1_deserializeDocumentLineChartMarkerStyleSettings(&sv.MarkerStyleSettings, value); err != nil { + return err + } + default: + _, _ = key, value + + } } - *v = mv + *v = sv return nil } -func awsRestjson1_deserializeDocumentIdentityNameList(v *[]string, value interface{}) error { +func awsRestjson1_deserializeDocumentLineChartSortConfiguration(v **types.LineChartSortConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -45786,35 +53012,55 @@ func awsRestjson1_deserializeDocumentIdentityNameList(v *[]string, value interfa return nil } - shape, ok := value.([]interface{}) + shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var cv []string + var sv *types.LineChartSortConfiguration if *v == nil { - cv = []string{} + sv = &types.LineChartSortConfiguration{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col string - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected IdentityName to be of type string, got %T instead", value) + for key, value := range shape { + switch key { + case "CategoryItemsLimitConfiguration": + if err := awsRestjson1_deserializeDocumentItemsLimitConfiguration(&sv.CategoryItemsLimitConfiguration, value); err != nil { + return err } - col = jtv - } - cv = append(cv, col) + case "CategorySort": + if err := awsRestjson1_deserializeDocumentFieldSortOptionsList(&sv.CategorySort, value); err != nil { + return err + } + + case "ColorItemsLimitConfiguration": + if err := awsRestjson1_deserializeDocumentItemsLimitConfiguration(&sv.ColorItemsLimitConfiguration, value); err != nil { + return err + } + + case "SmallMultiplesLimitConfiguration": + if err := awsRestjson1_deserializeDocumentItemsLimitConfiguration(&sv.SmallMultiplesLimitConfiguration, value); err != nil { + return err + } + + case "SmallMultiplesSort": + if err := awsRestjson1_deserializeDocumentFieldSortOptionsList(&sv.SmallMultiplesSort, value); err != nil { + return err + } + + default: + _, _ = key, value + + } } - *v = cv + *v = sv return nil } -func awsRestjson1_deserializeDocumentIdentityTypeNotSupportedException(v **types.IdentityTypeNotSupportedException, value interface{}) error { +func awsRestjson1_deserializeDocumentLineChartVisual(v **types.LineChartVisual, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -45827,31 +53073,47 @@ func awsRestjson1_deserializeDocumentIdentityTypeNotSupportedException(v **types return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.IdentityTypeNotSupportedException + var sv *types.LineChartVisual if *v == nil { - sv = &types.IdentityTypeNotSupportedException{} + sv = &types.LineChartVisual{} } else { sv = *v } for key, value := range shape { switch key { - case "Message": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.Message = ptr.String(jtv) + case "Actions": + if err := awsRestjson1_deserializeDocumentVisualCustomActionList(&sv.Actions, value); err != nil { + return err } - case "RequestId": + case "ChartConfiguration": + if err := awsRestjson1_deserializeDocumentLineChartConfiguration(&sv.ChartConfiguration, value); err != nil { + return err + } + + case "ColumnHierarchies": + if err := awsRestjson1_deserializeDocumentColumnHierarchyList(&sv.ColumnHierarchies, value); err != nil { + return err + } + + case "Subtitle": + if err := awsRestjson1_deserializeDocumentVisualSubtitleLabelOptions(&sv.Subtitle, value); err != nil { + return err + } + + case "Title": + if err := awsRestjson1_deserializeDocumentVisualTitleLabelOptions(&sv.Title, value); err != nil { + return err + } + + case "VisualId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) } - sv.RequestId = ptr.String(jtv) + sv.VisualId = ptr.String(jtv) } default: @@ -45863,7 +53125,7 @@ func awsRestjson1_deserializeDocumentIdentityTypeNotSupportedException(v **types return nil } -func awsRestjson1_deserializeDocumentIncrementalRefresh(v **types.IncrementalRefresh, value interface{}) error { +func awsRestjson1_deserializeDocumentLineSeriesAxisDisplayOptions(v **types.LineSeriesAxisDisplayOptions, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -45876,17 +53138,22 @@ func awsRestjson1_deserializeDocumentIncrementalRefresh(v **types.IncrementalRef return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.IncrementalRefresh + var sv *types.LineSeriesAxisDisplayOptions if *v == nil { - sv = &types.IncrementalRefresh{} + sv = &types.LineSeriesAxisDisplayOptions{} } else { sv = *v } for key, value := range shape { switch key { - case "LookbackWindow": - if err := awsRestjson1_deserializeDocumentLookbackWindow(&sv.LookbackWindow, value); err != nil { + case "AxisOptions": + if err := awsRestjson1_deserializeDocumentAxisDisplayOptions(&sv.AxisOptions, value); err != nil { + return err + } + + case "MissingDataConfigurations": + if err := awsRestjson1_deserializeDocumentMissingDataConfigurationList(&sv.MissingDataConfigurations, value); err != nil { return err } @@ -45899,7 +53166,7 @@ func awsRestjson1_deserializeDocumentIncrementalRefresh(v **types.IncrementalRef return nil } -func awsRestjson1_deserializeDocumentIngestion(v **types.Ingestion, value interface{}) error { +func awsRestjson1_deserializeDocumentLinkSharingConfiguration(v **types.LinkSharingConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -45912,114 +53179,17 @@ func awsRestjson1_deserializeDocumentIngestion(v **types.Ingestion, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.Ingestion + var sv *types.LinkSharingConfiguration if *v == nil { - sv = &types.Ingestion{} + sv = &types.LinkSharingConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "Arn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.Arn = ptr.String(jtv) - } - - case "CreatedTime": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.CreatedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - - } - } - - case "ErrorInfo": - if err := awsRestjson1_deserializeDocumentErrorInfo(&sv.ErrorInfo, value); err != nil { - return err - } - - case "IngestionId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected IngestionId to be of type string, got %T instead", value) - } - sv.IngestionId = ptr.String(jtv) - } - - case "IngestionSizeInBytes": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected Long to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.IngestionSizeInBytes = ptr.Int64(i64) - } - - case "IngestionStatus": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected IngestionStatus to be of type string, got %T instead", value) - } - sv.IngestionStatus = types.IngestionStatus(jtv) - } - - case "IngestionTimeInSeconds": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected Long to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.IngestionTimeInSeconds = ptr.Int64(i64) - } - - case "QueueInfo": - if err := awsRestjson1_deserializeDocumentQueueInfo(&sv.QueueInfo, value); err != nil { - return err - } - - case "RequestSource": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected IngestionRequestSource to be of type string, got %T instead", value) - } - sv.RequestSource = types.IngestionRequestSource(jtv) - } - - case "RequestType": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected IngestionRequestType to be of type string, got %T instead", value) - } - sv.RequestType = types.IngestionRequestType(jtv) - } - - case "RowInfo": - if err := awsRestjson1_deserializeDocumentRowInfo(&sv.RowInfo, value); err != nil { + case "Permissions": + if err := awsRestjson1_deserializeDocumentResourcePermissionList(&sv.Permissions, value); err != nil { return err } @@ -46032,7 +53202,7 @@ func awsRestjson1_deserializeDocumentIngestion(v **types.Ingestion, value interf return nil } -func awsRestjson1_deserializeDocumentIngestions(v *[]types.Ingestion, value interface{}) error { +func awsRestjson1_deserializeDocumentListControlDisplayOptions(v **types.ListControlDisplayOptions, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -46040,33 +53210,45 @@ func awsRestjson1_deserializeDocumentIngestions(v *[]types.Ingestion, value inte return nil } - shape, ok := value.([]interface{}) + shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.Ingestion + var sv *types.ListControlDisplayOptions if *v == nil { - cv = []types.Ingestion{} + sv = &types.ListControlDisplayOptions{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col types.Ingestion - destAddr := &col - if err := awsRestjson1_deserializeDocumentIngestion(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) + for key, value := range shape { + switch key { + case "SearchOptions": + if err := awsRestjson1_deserializeDocumentListControlSearchOptions(&sv.SearchOptions, value); err != nil { + return err + } + + case "SelectAllOptions": + if err := awsRestjson1_deserializeDocumentListControlSelectAllOptions(&sv.SelectAllOptions, value); err != nil { + return err + } + + case "TitleOptions": + if err := awsRestjson1_deserializeDocumentLabelOptions(&sv.TitleOptions, value); err != nil { + return err + } + + default: + _, _ = key, value + } } - *v = cv + *v = sv return nil } -func awsRestjson1_deserializeDocumentInputColumn(v **types.InputColumn, value interface{}) error { +func awsRestjson1_deserializeDocumentListControlSearchOptions(v **types.ListControlSearchOptions, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -46079,31 +53261,22 @@ func awsRestjson1_deserializeDocumentInputColumn(v **types.InputColumn, value in return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.InputColumn + var sv *types.ListControlSearchOptions if *v == nil { - sv = &types.InputColumn{} + sv = &types.ListControlSearchOptions{} } else { sv = *v } for key, value := range shape { switch key { - case "Name": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ColumnName to be of type string, got %T instead", value) - } - sv.Name = ptr.String(jtv) - } - - case "Type": + case "Visibility": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected InputColumnDataType to be of type string, got %T instead", value) + return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) } - sv.Type = types.InputColumnDataType(jtv) + sv.Visibility = types.Visibility(jtv) } default: @@ -46115,7 +53288,7 @@ func awsRestjson1_deserializeDocumentInputColumn(v **types.InputColumn, value in return nil } -func awsRestjson1_deserializeDocumentInputColumnList(v *[]types.InputColumn, value interface{}) error { +func awsRestjson1_deserializeDocumentListControlSelectAllOptions(v **types.ListControlSelectAllOptions, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -46123,33 +53296,39 @@ func awsRestjson1_deserializeDocumentInputColumnList(v *[]types.InputColumn, val return nil } - shape, ok := value.([]interface{}) + shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.InputColumn + var sv *types.ListControlSelectAllOptions if *v == nil { - cv = []types.InputColumn{} + sv = &types.ListControlSelectAllOptions{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col types.InputColumn - destAddr := &col - if err := awsRestjson1_deserializeDocumentInputColumn(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) + for key, value := range shape { + switch key { + case "Visibility": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) + } + sv.Visibility = types.Visibility(jtv) + } + + default: + _, _ = key, value + } } - *v = cv + *v = sv return nil } -func awsRestjson1_deserializeDocumentInsightConfiguration(v **types.InsightConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentLoadingAnimation(v **types.LoadingAnimation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -46162,23 +53341,22 @@ func awsRestjson1_deserializeDocumentInsightConfiguration(v **types.InsightConfi return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.InsightConfiguration + var sv *types.LoadingAnimation if *v == nil { - sv = &types.InsightConfiguration{} + sv = &types.LoadingAnimation{} } else { sv = *v } for key, value := range shape { switch key { - case "Computations": - if err := awsRestjson1_deserializeDocumentComputationList(&sv.Computations, value); err != nil { - return err - } - - case "CustomNarrative": - if err := awsRestjson1_deserializeDocumentCustomNarrativeOptions(&sv.CustomNarrative, value); err != nil { - return err + case "Visibility": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) + } + sv.Visibility = types.Visibility(jtv) } default: @@ -46190,7 +53368,7 @@ func awsRestjson1_deserializeDocumentInsightConfiguration(v **types.InsightConfi return nil } -func awsRestjson1_deserializeDocumentInsightVisual(v **types.InsightVisual, value interface{}) error { +func awsRestjson1_deserializeDocumentLocalNavigationConfiguration(v **types.LocalNavigationConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -46203,51 +53381,22 @@ func awsRestjson1_deserializeDocumentInsightVisual(v **types.InsightVisual, valu return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.InsightVisual + var sv *types.LocalNavigationConfiguration if *v == nil { - sv = &types.InsightVisual{} + sv = &types.LocalNavigationConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "Actions": - if err := awsRestjson1_deserializeDocumentVisualCustomActionList(&sv.Actions, value); err != nil { - return err - } - - case "DataSetIdentifier": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected DataSetIdentifier to be of type string, got %T instead", value) - } - sv.DataSetIdentifier = ptr.String(jtv) - } - - case "InsightConfiguration": - if err := awsRestjson1_deserializeDocumentInsightConfiguration(&sv.InsightConfiguration, value); err != nil { - return err - } - - case "Subtitle": - if err := awsRestjson1_deserializeDocumentVisualSubtitleLabelOptions(&sv.Subtitle, value); err != nil { - return err - } - - case "Title": - if err := awsRestjson1_deserializeDocumentVisualTitleLabelOptions(&sv.Title, value); err != nil { - return err - } - - case "VisualId": + case "TargetSheetId": if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) } - sv.VisualId = ptr.String(jtv) + sv.TargetSheetId = ptr.String(jtv) } default: @@ -46259,7 +53408,7 @@ func awsRestjson1_deserializeDocumentInsightVisual(v **types.InsightVisual, valu return nil } -func awsRestjson1_deserializeDocumentIntegerDefaultValueList(v *[]int64, value interface{}) error { +func awsRestjson1_deserializeDocumentLogicalTable(v **types.LogicalTable, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -46267,39 +53416,49 @@ func awsRestjson1_deserializeDocumentIntegerDefaultValueList(v *[]int64, value i return nil } - shape, ok := value.([]interface{}) + shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var cv []int64 + var sv *types.LogicalTable if *v == nil { - cv = []int64{} + sv = &types.LogicalTable{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col int64 - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected SensitiveLongObject to be json.Number, got %T instead", value) + for key, value := range shape { + switch key { + case "Alias": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected LogicalTableAlias to be of type string, got %T instead", value) + } + sv.Alias = ptr.String(jtv) } - i64, err := jtv.Int64() - if err != nil { + + case "DataTransforms": + if err := awsRestjson1_deserializeDocumentTransformOperationList(&sv.DataTransforms, value); err != nil { return err } - col = i64 - } - cv = append(cv, col) + case "Source": + if err := awsRestjson1_deserializeDocumentLogicalTableSource(&sv.Source, value); err != nil { + return err + } + + default: + _, _ = key, value + + } } - *v = cv + *v = sv return nil } -func awsRestjson1_deserializeDocumentIntegerDefaultValues(v **types.IntegerDefaultValues, value interface{}) error { +func awsRestjson1_deserializeDocumentLogicalTableMap(v *map[string]types.LogicalTable, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -46312,35 +53471,29 @@ func awsRestjson1_deserializeDocumentIntegerDefaultValues(v **types.IntegerDefau return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.IntegerDefaultValues + var mv map[string]types.LogicalTable if *v == nil { - sv = &types.IntegerDefaultValues{} + mv = map[string]types.LogicalTable{} } else { - sv = *v + mv = *v } for key, value := range shape { - switch key { - case "DynamicValue": - if err := awsRestjson1_deserializeDocumentDynamicDefaultValue(&sv.DynamicValue, value); err != nil { - return err - } - - case "StaticValues": - if err := awsRestjson1_deserializeDocumentIntegerDefaultValueList(&sv.StaticValues, value); err != nil { - return err - } - - default: - _, _ = key, value - + var parsedVal types.LogicalTable + mapVar := parsedVal + destAddr := &mapVar + if err := awsRestjson1_deserializeDocumentLogicalTable(&destAddr, value); err != nil { + return err } + parsedVal = *destAddr + mv[key] = parsedVal + } - *v = sv + *v = mv return nil } -func awsRestjson1_deserializeDocumentIntegerParameterDeclaration(v **types.IntegerParameterDeclaration, value interface{}) error { +func awsRestjson1_deserializeDocumentLogicalTableSource(v **types.LogicalTableSource, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -46353,41 +53506,36 @@ func awsRestjson1_deserializeDocumentIntegerParameterDeclaration(v **types.Integ return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.IntegerParameterDeclaration + var sv *types.LogicalTableSource if *v == nil { - sv = &types.IntegerParameterDeclaration{} + sv = &types.LogicalTableSource{} } else { sv = *v } for key, value := range shape { switch key { - case "DefaultValues": - if err := awsRestjson1_deserializeDocumentIntegerDefaultValues(&sv.DefaultValues, value); err != nil { - return err - } - - case "Name": + case "DataSetArn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ParameterName to be of type string, got %T instead", value) + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Name = ptr.String(jtv) + sv.DataSetArn = ptr.String(jtv) } - case "ParameterValueType": + case "JoinInstruction": + if err := awsRestjson1_deserializeDocumentJoinInstruction(&sv.JoinInstruction, value); err != nil { + return err + } + + case "PhysicalTableId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ParameterValueType to be of type string, got %T instead", value) + return fmt.Errorf("expected PhysicalTableId to be of type string, got %T instead", value) } - sv.ParameterValueType = types.ParameterValueType(jtv) - } - - case "ValueWhenUnset": - if err := awsRestjson1_deserializeDocumentIntegerValueWhenUnsetConfiguration(&sv.ValueWhenUnset, value); err != nil { - return err + sv.PhysicalTableId = ptr.String(jtv) } default: @@ -46399,7 +53547,7 @@ func awsRestjson1_deserializeDocumentIntegerParameterDeclaration(v **types.Integ return nil } -func awsRestjson1_deserializeDocumentIntegerValueWhenUnsetConfiguration(v **types.IntegerValueWhenUnsetConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentLongFormatText(v **types.LongFormatText, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -46412,35 +53560,31 @@ func awsRestjson1_deserializeDocumentIntegerValueWhenUnsetConfiguration(v **type return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.IntegerValueWhenUnsetConfiguration + var sv *types.LongFormatText if *v == nil { - sv = &types.IntegerValueWhenUnsetConfiguration{} + sv = &types.LongFormatText{} } else { sv = *v } for key, value := range shape { switch key { - case "CustomValue": + case "PlainText": if value != nil { - jtv, ok := value.(json.Number) + jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected SensitiveLong to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err + return fmt.Errorf("expected LongPlainText to be of type string, got %T instead", value) } - sv.CustomValue = ptr.Int64(i64) + sv.PlainText = ptr.String(jtv) } - case "ValueWhenUnsetOption": + case "RichText": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ValueWhenUnsetOption to be of type string, got %T instead", value) + return fmt.Errorf("expected LongRichText to be of type string, got %T instead", value) } - sv.ValueWhenUnsetOption = types.ValueWhenUnsetOption(jtv) + sv.RichText = ptr.String(jtv) } default: @@ -46452,7 +53596,7 @@ func awsRestjson1_deserializeDocumentIntegerValueWhenUnsetConfiguration(v **type return nil } -func awsRestjson1_deserializeDocumentInternalFailureException(v **types.InternalFailureException, value interface{}) error { +func awsRestjson1_deserializeDocumentLookbackWindow(v **types.LookbackWindow, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -46465,31 +53609,44 @@ func awsRestjson1_deserializeDocumentInternalFailureException(v **types.Internal return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.InternalFailureException + var sv *types.LookbackWindow if *v == nil { - sv = &types.InternalFailureException{} + sv = &types.LookbackWindow{} } else { sv = *v } for key, value := range shape { switch key { - case "Message": + case "ColumnName": if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = ptr.String(jtv) + sv.ColumnName = ptr.String(jtv) } - case "RequestId": + case "Size": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected PositiveLong to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.Size = i64 + } + + case "SizeUnit": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) + return fmt.Errorf("expected LookbackWindowSizeUnit to be of type string, got %T instead", value) } - sv.RequestId = ptr.String(jtv) + sv.SizeUnit = types.LookbackWindowSizeUnit(jtv) } default: @@ -46501,7 +53658,7 @@ func awsRestjson1_deserializeDocumentInternalFailureException(v **types.Internal return nil } -func awsRestjson1_deserializeDocumentInvalidNextTokenException(v **types.InvalidNextTokenException, value interface{}) error { +func awsRestjson1_deserializeDocumentManifestFileLocation(v **types.ManifestFileLocation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -46514,31 +53671,31 @@ func awsRestjson1_deserializeDocumentInvalidNextTokenException(v **types.Invalid return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.InvalidNextTokenException + var sv *types.ManifestFileLocation if *v == nil { - sv = &types.InvalidNextTokenException{} + sv = &types.ManifestFileLocation{} } else { sv = *v } for key, value := range shape { switch key { - case "Message": + case "Bucket": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) + return fmt.Errorf("expected S3Bucket to be of type string, got %T instead", value) } - sv.Message = ptr.String(jtv) + sv.Bucket = ptr.String(jtv) } - case "RequestId": + case "Key": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) + return fmt.Errorf("expected S3Key to be of type string, got %T instead", value) } - sv.RequestId = ptr.String(jtv) + sv.Key = ptr.String(jtv) } default: @@ -46550,7 +53707,7 @@ func awsRestjson1_deserializeDocumentInvalidNextTokenException(v **types.Invalid return nil } -func awsRestjson1_deserializeDocumentInvalidParameterValueException(v **types.InvalidParameterValueException, value interface{}) error { +func awsRestjson1_deserializeDocumentMappedDataSetParameter(v **types.MappedDataSetParameter, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -46563,31 +53720,31 @@ func awsRestjson1_deserializeDocumentInvalidParameterValueException(v **types.In return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.InvalidParameterValueException + var sv *types.MappedDataSetParameter if *v == nil { - sv = &types.InvalidParameterValueException{} + sv = &types.MappedDataSetParameter{} } else { sv = *v } for key, value := range shape { switch key { - case "Message": + case "DataSetIdentifier": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) + return fmt.Errorf("expected DataSetIdentifier to be of type string, got %T instead", value) } - sv.Message = ptr.String(jtv) + sv.DataSetIdentifier = ptr.String(jtv) } - case "RequestId": + case "DataSetParameterName": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) + return fmt.Errorf("expected ParameterName to be of type string, got %T instead", value) } - sv.RequestId = ptr.String(jtv) + sv.DataSetParameterName = ptr.String(jtv) } default: @@ -46599,7 +53756,7 @@ func awsRestjson1_deserializeDocumentInvalidParameterValueException(v **types.In return nil } -func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRequestException, value interface{}) error { +func awsRestjson1_deserializeDocumentMappedDataSetParameters(v *[]types.MappedDataSetParameter, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -46607,48 +53764,33 @@ func awsRestjson1_deserializeDocumentInvalidRequestException(v **types.InvalidRe return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.InvalidRequestException + var cv []types.MappedDataSetParameter if *v == nil { - sv = &types.InvalidRequestException{} + cv = []types.MappedDataSetParameter{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "Message": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.Message = ptr.String(jtv) - } - - case "RequestId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.RequestId = ptr.String(jtv) - } - - default: - _, _ = key, value - + for _, value := range shape { + var col types.MappedDataSetParameter + destAddr := &col + if err := awsRestjson1_deserializeDocumentMappedDataSetParameter(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsRestjson1_deserializeDocumentIpRestrictionRuleMap(v *map[string]string, value interface{}) error { +func awsRestjson1_deserializeDocumentMarginStyle(v **types.MarginStyle, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -46661,30 +53803,34 @@ func awsRestjson1_deserializeDocumentIpRestrictionRuleMap(v *map[string]string, return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]string + var sv *types.MarginStyle if *v == nil { - mv = map[string]string{} + sv = &types.MarginStyle{} } else { - mv = *v + sv = *v } for key, value := range shape { - var parsedVal string - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected IpRestrictionRuleDescription to be of type string, got %T instead", value) + switch key { + case "Show": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + } + sv.Show = ptr.Bool(jtv) } - parsedVal = jtv - } - mv[key] = parsedVal + default: + _, _ = key, value + + } } - *v = mv + *v = sv return nil } -func awsRestjson1_deserializeDocumentItemsLimitConfiguration(v **types.ItemsLimitConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentMariaDbParameters(v **types.MariaDbParameters, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -46697,35 +53843,44 @@ func awsRestjson1_deserializeDocumentItemsLimitConfiguration(v **types.ItemsLimi return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ItemsLimitConfiguration + var sv *types.MariaDbParameters if *v == nil { - sv = &types.ItemsLimitConfiguration{} + sv = &types.MariaDbParameters{} } else { sv = *v } for key, value := range shape { switch key { - case "ItemsLimit": + case "Database": if value != nil { - jtv, ok := value.(json.Number) + jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Long to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err + return fmt.Errorf("expected Database to be of type string, got %T instead", value) } - sv.ItemsLimit = ptr.Int64(i64) + sv.Database = ptr.String(jtv) } - case "OtherCategories": + case "Host": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected OtherCategories to be of type string, got %T instead", value) + return fmt.Errorf("expected Host to be of type string, got %T instead", value) } - sv.OtherCategories = types.OtherCategories(jtv) + sv.Host = ptr.String(jtv) + } + + case "Port": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected Port to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.Port = int32(i64) } default: @@ -46737,7 +53892,7 @@ func awsRestjson1_deserializeDocumentItemsLimitConfiguration(v **types.ItemsLimi return nil } -func awsRestjson1_deserializeDocumentJiraParameters(v **types.JiraParameters, value interface{}) error { +func awsRestjson1_deserializeDocumentMaximumLabelType(v **types.MaximumLabelType, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -46750,22 +53905,22 @@ func awsRestjson1_deserializeDocumentJiraParameters(v **types.JiraParameters, va return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.JiraParameters + var sv *types.MaximumLabelType if *v == nil { - sv = &types.JiraParameters{} + sv = &types.MaximumLabelType{} } else { sv = *v } for key, value := range shape { switch key { - case "SiteBaseUrl": + case "Visibility": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected SiteBaseUrl to be of type string, got %T instead", value) + return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) } - sv.SiteBaseUrl = ptr.String(jtv) + sv.Visibility = types.Visibility(jtv) } default: @@ -46777,7 +53932,7 @@ func awsRestjson1_deserializeDocumentJiraParameters(v **types.JiraParameters, va return nil } -func awsRestjson1_deserializeDocumentJoinInstruction(v **types.JoinInstruction, value interface{}) error { +func awsRestjson1_deserializeDocumentMaximumMinimumComputation(v **types.MaximumMinimumComputation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -46790,59 +53945,50 @@ func awsRestjson1_deserializeDocumentJoinInstruction(v **types.JoinInstruction, return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.JoinInstruction + var sv *types.MaximumMinimumComputation if *v == nil { - sv = &types.JoinInstruction{} + sv = &types.MaximumMinimumComputation{} } else { sv = *v } for key, value := range shape { switch key { - case "LeftJoinKeyProperties": - if err := awsRestjson1_deserializeDocumentJoinKeyProperties(&sv.LeftJoinKeyProperties, value); err != nil { - return err - } - - case "LeftOperand": + case "ComputationId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected LogicalTableId to be of type string, got %T instead", value) + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) } - sv.LeftOperand = ptr.String(jtv) + sv.ComputationId = ptr.String(jtv) } - case "OnClause": + case "Name": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected OnClause to be of type string, got %T instead", value) + return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.OnClause = ptr.String(jtv) + sv.Name = ptr.String(jtv) } - case "RightJoinKeyProperties": - if err := awsRestjson1_deserializeDocumentJoinKeyProperties(&sv.RightJoinKeyProperties, value); err != nil { + case "Time": + if err := awsRestjson1_deserializeDocumentDimensionField(&sv.Time, value); err != nil { return err } - case "RightOperand": + case "Type": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected LogicalTableId to be of type string, got %T instead", value) + return fmt.Errorf("expected MaximumMinimumComputationType to be of type string, got %T instead", value) } - sv.RightOperand = ptr.String(jtv) + sv.Type = types.MaximumMinimumComputationType(jtv) } - case "Type": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected JoinType to be of type string, got %T instead", value) - } - sv.Type = types.JoinType(jtv) + case "Value": + if err := awsRestjson1_deserializeDocumentMeasureField(&sv.Value, value); err != nil { + return err } default: @@ -46854,7 +54000,7 @@ func awsRestjson1_deserializeDocumentJoinInstruction(v **types.JoinInstruction, return nil } -func awsRestjson1_deserializeDocumentJoinKeyProperties(v **types.JoinKeyProperties, value interface{}) error { +func awsRestjson1_deserializeDocumentMeasureField(v **types.MeasureField, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -46867,22 +54013,33 @@ func awsRestjson1_deserializeDocumentJoinKeyProperties(v **types.JoinKeyProperti return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.JoinKeyProperties + var sv *types.MeasureField if *v == nil { - sv = &types.JoinKeyProperties{} + sv = &types.MeasureField{} } else { sv = *v } for key, value := range shape { switch key { - case "UniqueKey": - if value != nil { - jtv, ok := value.(bool) - if !ok { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) - } - sv.UniqueKey = ptr.Bool(jtv) + case "CalculatedMeasureField": + if err := awsRestjson1_deserializeDocumentCalculatedMeasureField(&sv.CalculatedMeasureField, value); err != nil { + return err + } + + case "CategoricalMeasureField": + if err := awsRestjson1_deserializeDocumentCategoricalMeasureField(&sv.CategoricalMeasureField, value); err != nil { + return err + } + + case "DateMeasureField": + if err := awsRestjson1_deserializeDocumentDateMeasureField(&sv.DateMeasureField, value); err != nil { + return err + } + + case "NumericalMeasureField": + if err := awsRestjson1_deserializeDocumentNumericalMeasureField(&sv.NumericalMeasureField, value); err != nil { + return err } default: @@ -46894,7 +54051,41 @@ func awsRestjson1_deserializeDocumentJoinKeyProperties(v **types.JoinKeyProperti return nil } -func awsRestjson1_deserializeDocumentKPIConditionalFormatting(v **types.KPIConditionalFormatting, value interface{}) error { +func awsRestjson1_deserializeDocumentMeasureFieldList(v *[]types.MeasureField, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.MeasureField + if *v == nil { + cv = []types.MeasureField{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.MeasureField + destAddr := &col + if err := awsRestjson1_deserializeDocumentMeasureField(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentMemberIdArnPair(v **types.MemberIdArnPair, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -46907,18 +54098,31 @@ func awsRestjson1_deserializeDocumentKPIConditionalFormatting(v **types.KPICondi return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.KPIConditionalFormatting + var sv *types.MemberIdArnPair if *v == nil { - sv = &types.KPIConditionalFormatting{} + sv = &types.MemberIdArnPair{} } else { sv = *v } for key, value := range shape { switch key { - case "ConditionalFormattingOptions": - if err := awsRestjson1_deserializeDocumentKPIConditionalFormattingOptionList(&sv.ConditionalFormattingOptions, value); err != nil { - return err + case "MemberArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.MemberArn = ptr.String(jtv) + } + + case "MemberId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RestrictiveResourceId to be of type string, got %T instead", value) + } + sv.MemberId = ptr.String(jtv) } default: @@ -46930,7 +54134,7 @@ func awsRestjson1_deserializeDocumentKPIConditionalFormatting(v **types.KPICondi return nil } -func awsRestjson1_deserializeDocumentKPIConditionalFormattingOption(v **types.KPIConditionalFormattingOption, value interface{}) error { +func awsRestjson1_deserializeDocumentMetricComparisonComputation(v **types.MetricComparisonComputation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -46943,22 +54147,45 @@ func awsRestjson1_deserializeDocumentKPIConditionalFormattingOption(v **types.KP return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.KPIConditionalFormattingOption + var sv *types.MetricComparisonComputation if *v == nil { - sv = &types.KPIConditionalFormattingOption{} + sv = &types.MetricComparisonComputation{} } else { sv = *v } for key, value := range shape { switch key { - case "PrimaryValue": - if err := awsRestjson1_deserializeDocumentKPIPrimaryValueConditionalFormatting(&sv.PrimaryValue, value); err != nil { + case "ComputationId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + } + sv.ComputationId = ptr.String(jtv) + } + + case "FromValue": + if err := awsRestjson1_deserializeDocumentMeasureField(&sv.FromValue, value); err != nil { return err } - case "ProgressBar": - if err := awsRestjson1_deserializeDocumentKPIProgressBarConditionalFormatting(&sv.ProgressBar, value); err != nil { + case "Name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + case "TargetValue": + if err := awsRestjson1_deserializeDocumentMeasureField(&sv.TargetValue, value); err != nil { + return err + } + + case "Time": + if err := awsRestjson1_deserializeDocumentDimensionField(&sv.Time, value); err != nil { return err } @@ -46971,7 +54198,7 @@ func awsRestjson1_deserializeDocumentKPIConditionalFormattingOption(v **types.KP return nil } -func awsRestjson1_deserializeDocumentKPIConditionalFormattingOptionList(v *[]types.KPIConditionalFormattingOption, value interface{}) error { +func awsRestjson1_deserializeDocumentMinimumLabelType(v **types.MinimumLabelType, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -46979,33 +54206,39 @@ func awsRestjson1_deserializeDocumentKPIConditionalFormattingOptionList(v *[]typ return nil } - shape, ok := value.([]interface{}) + shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.KPIConditionalFormattingOption + var sv *types.MinimumLabelType if *v == nil { - cv = []types.KPIConditionalFormattingOption{} + sv = &types.MinimumLabelType{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col types.KPIConditionalFormattingOption - destAddr := &col - if err := awsRestjson1_deserializeDocumentKPIConditionalFormattingOption(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) + for key, value := range shape { + switch key { + case "Visibility": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) + } + sv.Visibility = types.Visibility(jtv) + } + + default: + _, _ = key, value + } } - *v = cv + *v = sv return nil } -func awsRestjson1_deserializeDocumentKPIConfiguration(v **types.KPIConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentMissingDataConfiguration(v **types.MissingDataConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -47018,28 +54251,22 @@ func awsRestjson1_deserializeDocumentKPIConfiguration(v **types.KPIConfiguration return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.KPIConfiguration + var sv *types.MissingDataConfiguration if *v == nil { - sv = &types.KPIConfiguration{} + sv = &types.MissingDataConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "FieldWells": - if err := awsRestjson1_deserializeDocumentKPIFieldWells(&sv.FieldWells, value); err != nil { - return err - } - - case "KPIOptions": - if err := awsRestjson1_deserializeDocumentKPIOptions(&sv.KPIOptions, value); err != nil { - return err - } - - case "SortConfiguration": - if err := awsRestjson1_deserializeDocumentKPISortConfiguration(&sv.SortConfiguration, value); err != nil { - return err + case "TreatmentOption": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected MissingDataTreatmentOption to be of type string, got %T instead", value) + } + sv.TreatmentOption = types.MissingDataTreatmentOption(jtv) } default: @@ -47051,7 +54278,7 @@ func awsRestjson1_deserializeDocumentKPIConfiguration(v **types.KPIConfiguration return nil } -func awsRestjson1_deserializeDocumentKPIFieldWells(v **types.KPIFieldWells, value interface{}) error { +func awsRestjson1_deserializeDocumentMissingDataConfigurationList(v *[]types.MissingDataConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -47059,45 +54286,33 @@ func awsRestjson1_deserializeDocumentKPIFieldWells(v **types.KPIFieldWells, valu return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.KPIFieldWells + var cv []types.MissingDataConfiguration if *v == nil { - sv = &types.KPIFieldWells{} + cv = []types.MissingDataConfiguration{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "TargetValues": - if err := awsRestjson1_deserializeDocumentMeasureFieldList(&sv.TargetValues, value); err != nil { - return err - } - - case "TrendGroups": - if err := awsRestjson1_deserializeDocumentDimensionFieldList(&sv.TrendGroups, value); err != nil { - return err - } - - case "Values": - if err := awsRestjson1_deserializeDocumentMeasureFieldList(&sv.Values, value); err != nil { - return err - } - - default: - _, _ = key, value - + for _, value := range shape { + var col types.MissingDataConfiguration + destAddr := &col + if err := awsRestjson1_deserializeDocumentMissingDataConfiguration(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsRestjson1_deserializeDocumentKPIOptions(v **types.KPIOptions, value interface{}) error { +func awsRestjson1_deserializeDocumentMySqlParameters(v **types.MySqlParameters, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -47110,52 +54325,44 @@ func awsRestjson1_deserializeDocumentKPIOptions(v **types.KPIOptions, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.KPIOptions + var sv *types.MySqlParameters if *v == nil { - sv = &types.KPIOptions{} + sv = &types.MySqlParameters{} } else { sv = *v } for key, value := range shape { switch key { - case "Comparison": - if err := awsRestjson1_deserializeDocumentComparisonConfiguration(&sv.Comparison, value); err != nil { - return err - } - - case "PrimaryValueDisplayType": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected PrimaryValueDisplayType to be of type string, got %T instead", value) - } - sv.PrimaryValueDisplayType = types.PrimaryValueDisplayType(jtv) - } - - case "PrimaryValueFontConfiguration": - if err := awsRestjson1_deserializeDocumentFontConfiguration(&sv.PrimaryValueFontConfiguration, value); err != nil { - return err - } - - case "ProgressBar": - if err := awsRestjson1_deserializeDocumentProgressBarOptions(&sv.ProgressBar, value); err != nil { - return err - } - - case "SecondaryValue": - if err := awsRestjson1_deserializeDocumentSecondaryValueOptions(&sv.SecondaryValue, value); err != nil { - return err + case "Database": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Database to be of type string, got %T instead", value) + } + sv.Database = ptr.String(jtv) } - case "SecondaryValueFontConfiguration": - if err := awsRestjson1_deserializeDocumentFontConfiguration(&sv.SecondaryValueFontConfiguration, value); err != nil { - return err + case "Host": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Host to be of type string, got %T instead", value) + } + sv.Host = ptr.String(jtv) } - case "TrendArrows": - if err := awsRestjson1_deserializeDocumentTrendArrowOptions(&sv.TrendArrows, value); err != nil { - return err + case "Port": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected Port to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.Port = int32(i64) } default: @@ -47167,7 +54374,7 @@ func awsRestjson1_deserializeDocumentKPIOptions(v **types.KPIOptions, value inte return nil } -func awsRestjson1_deserializeDocumentKPIPrimaryValueConditionalFormatting(v **types.KPIPrimaryValueConditionalFormatting, value interface{}) error { +func awsRestjson1_deserializeDocumentNamedEntityDefinition(v **types.NamedEntityDefinition, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -47180,25 +54387,56 @@ func awsRestjson1_deserializeDocumentKPIPrimaryValueConditionalFormatting(v **ty return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.KPIPrimaryValueConditionalFormatting + var sv *types.NamedEntityDefinition if *v == nil { - sv = &types.KPIPrimaryValueConditionalFormatting{} + sv = &types.NamedEntityDefinition{} } else { sv = *v } for key, value := range shape { switch key { - case "Icon": - if err := awsRestjson1_deserializeDocumentConditionalFormattingIcon(&sv.Icon, value); err != nil { - return err + case "FieldName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected LimitedString to be of type string, got %T instead", value) + } + sv.FieldName = ptr.String(jtv) } - case "TextColor": - if err := awsRestjson1_deserializeDocumentConditionalFormattingColor(&sv.TextColor, value); err != nil { + case "Metric": + if err := awsRestjson1_deserializeDocumentNamedEntityDefinitionMetric(&sv.Metric, value); err != nil { return err } + case "PropertyName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected LimitedString to be of type string, got %T instead", value) + } + sv.PropertyName = ptr.String(jtv) + } + + case "PropertyRole": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected PropertyRole to be of type string, got %T instead", value) + } + sv.PropertyRole = types.PropertyRole(jtv) + } + + case "PropertyUsage": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected PropertyUsage to be of type string, got %T instead", value) + } + sv.PropertyUsage = types.PropertyUsage(jtv) + } + default: _, _ = key, value @@ -47208,7 +54446,7 @@ func awsRestjson1_deserializeDocumentKPIPrimaryValueConditionalFormatting(v **ty return nil } -func awsRestjson1_deserializeDocumentKPIProgressBarConditionalFormatting(v **types.KPIProgressBarConditionalFormatting, value interface{}) error { +func awsRestjson1_deserializeDocumentNamedEntityDefinitionMetric(v **types.NamedEntityDefinitionMetric, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -47221,17 +54459,26 @@ func awsRestjson1_deserializeDocumentKPIProgressBarConditionalFormatting(v **typ return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.KPIProgressBarConditionalFormatting + var sv *types.NamedEntityDefinitionMetric if *v == nil { - sv = &types.KPIProgressBarConditionalFormatting{} + sv = &types.NamedEntityDefinitionMetric{} } else { sv = *v } for key, value := range shape { switch key { - case "ForegroundColor": - if err := awsRestjson1_deserializeDocumentConditionalFormattingColor(&sv.ForegroundColor, value); err != nil { + case "Aggregation": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NamedEntityAggType to be of type string, got %T instead", value) + } + sv.Aggregation = types.NamedEntityAggType(jtv) + } + + case "AggregationFunctionParameters": + if err := awsRestjson1_deserializeDocumentAggregationFunctionParameters(&sv.AggregationFunctionParameters, value); err != nil { return err } @@ -47244,7 +54491,7 @@ func awsRestjson1_deserializeDocumentKPIProgressBarConditionalFormatting(v **typ return nil } -func awsRestjson1_deserializeDocumentKPISortConfiguration(v **types.KPISortConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentNamedEntityDefinitions(v *[]types.NamedEntityDefinition, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -47252,35 +54499,33 @@ func awsRestjson1_deserializeDocumentKPISortConfiguration(v **types.KPISortConfi return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.KPISortConfiguration + var cv []types.NamedEntityDefinition if *v == nil { - sv = &types.KPISortConfiguration{} + cv = []types.NamedEntityDefinition{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "TrendGroupSort": - if err := awsRestjson1_deserializeDocumentFieldSortOptionsList(&sv.TrendGroupSort, value); err != nil { - return err - } - - default: - _, _ = key, value - + for _, value := range shape { + var col types.NamedEntityDefinition + destAddr := &col + if err := awsRestjson1_deserializeDocumentNamedEntityDefinition(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsRestjson1_deserializeDocumentKPIVisual(v **types.KPIVisual, value interface{}) error { +func awsRestjson1_deserializeDocumentNamespaceError(v **types.NamespaceError, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -47293,52 +54538,31 @@ func awsRestjson1_deserializeDocumentKPIVisual(v **types.KPIVisual, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.KPIVisual + var sv *types.NamespaceError if *v == nil { - sv = &types.KPIVisual{} + sv = &types.NamespaceError{} } else { sv = *v } for key, value := range shape { switch key { - case "Actions": - if err := awsRestjson1_deserializeDocumentVisualCustomActionList(&sv.Actions, value); err != nil { - return err - } - - case "ChartConfiguration": - if err := awsRestjson1_deserializeDocumentKPIConfiguration(&sv.ChartConfiguration, value); err != nil { - return err - } - - case "ColumnHierarchies": - if err := awsRestjson1_deserializeDocumentColumnHierarchyList(&sv.ColumnHierarchies, value); err != nil { - return err - } - - case "ConditionalFormatting": - if err := awsRestjson1_deserializeDocumentKPIConditionalFormatting(&sv.ConditionalFormatting, value); err != nil { - return err - } - - case "Subtitle": - if err := awsRestjson1_deserializeDocumentVisualSubtitleLabelOptions(&sv.Subtitle, value); err != nil { - return err - } - - case "Title": - if err := awsRestjson1_deserializeDocumentVisualTitleLabelOptions(&sv.Title, value); err != nil { - return err + case "Message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) } - case "VisualId": + case "Type": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + return fmt.Errorf("expected NamespaceErrorType to be of type string, got %T instead", value) } - sv.VisualId = ptr.String(jtv) + sv.Type = types.NamespaceErrorType(jtv) } default: @@ -47350,7 +54574,7 @@ func awsRestjson1_deserializeDocumentKPIVisual(v **types.KPIVisual, value interf return nil } -func awsRestjson1_deserializeDocumentLabelOptions(v **types.LabelOptions, value interface{}) error { +func awsRestjson1_deserializeDocumentNamespaceInfoV2(v **types.NamespaceInfoV2, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -47363,36 +54587,63 @@ func awsRestjson1_deserializeDocumentLabelOptions(v **types.LabelOptions, value return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.LabelOptions + var sv *types.NamespaceInfoV2 if *v == nil { - sv = &types.LabelOptions{} + sv = &types.NamespaceInfoV2{} } else { sv = *v } for key, value := range shape { switch key { - case "CustomLabel": + case "Arn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) + } + + case "CapacityRegion": if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.CustomLabel = ptr.String(jtv) + sv.CapacityRegion = ptr.String(jtv) } - case "FontConfiguration": - if err := awsRestjson1_deserializeDocumentFontConfiguration(&sv.FontConfiguration, value); err != nil { - return err + case "CreationStatus": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NamespaceStatus to be of type string, got %T instead", value) + } + sv.CreationStatus = types.NamespaceStatus(jtv) } - case "Visibility": + case "IdentityStore": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) + return fmt.Errorf("expected IdentityStore to be of type string, got %T instead", value) } - sv.Visibility = types.Visibility(jtv) + sv.IdentityStore = types.IdentityStore(jtv) + } + + case "Name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Namespace to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + case "NamespaceError": + if err := awsRestjson1_deserializeDocumentNamespaceError(&sv.NamespaceError, value); err != nil { + return err } default: @@ -47404,7 +54655,7 @@ func awsRestjson1_deserializeDocumentLabelOptions(v **types.LabelOptions, value return nil } -func awsRestjson1_deserializeDocumentLayout(v **types.Layout, value interface{}) error { +func awsRestjson1_deserializeDocumentNamespaces(v *[]types.NamespaceInfoV2, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -47412,35 +54663,33 @@ func awsRestjson1_deserializeDocumentLayout(v **types.Layout, value interface{}) return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.Layout + var cv []types.NamespaceInfoV2 if *v == nil { - sv = &types.Layout{} + cv = []types.NamespaceInfoV2{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "Configuration": - if err := awsRestjson1_deserializeDocumentLayoutConfiguration(&sv.Configuration, value); err != nil { - return err - } - - default: - _, _ = key, value - + for _, value := range shape { + var col types.NamespaceInfoV2 + destAddr := &col + if err := awsRestjson1_deserializeDocumentNamespaceInfoV2(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsRestjson1_deserializeDocumentLayoutConfiguration(v **types.LayoutConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentNegativeFormat(v **types.NegativeFormat, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -47453,28 +54702,31 @@ func awsRestjson1_deserializeDocumentLayoutConfiguration(v **types.LayoutConfigu return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.LayoutConfiguration + var sv *types.NegativeFormat if *v == nil { - sv = &types.LayoutConfiguration{} + sv = &types.NegativeFormat{} } else { sv = *v } for key, value := range shape { switch key { - case "FreeFormLayout": - if err := awsRestjson1_deserializeDocumentFreeFormLayoutConfiguration(&sv.FreeFormLayout, value); err != nil { - return err - } - - case "GridLayout": - if err := awsRestjson1_deserializeDocumentGridLayoutConfiguration(&sv.GridLayout, value); err != nil { - return err + case "Prefix": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected LimitedString to be of type string, got %T instead", value) + } + sv.Prefix = ptr.String(jtv) } - case "SectionBasedLayout": - if err := awsRestjson1_deserializeDocumentSectionBasedLayoutConfiguration(&sv.SectionBasedLayout, value); err != nil { - return err + case "Suffix": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected LimitedString to be of type string, got %T instead", value) + } + sv.Suffix = ptr.String(jtv) } default: @@ -47486,7 +54738,7 @@ func awsRestjson1_deserializeDocumentLayoutConfiguration(v **types.LayoutConfigu return nil } -func awsRestjson1_deserializeDocumentLayoutList(v *[]types.Layout, value interface{}) error { +func awsRestjson1_deserializeDocumentNegativeValueConfiguration(v **types.NegativeValueConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -47494,33 +54746,39 @@ func awsRestjson1_deserializeDocumentLayoutList(v *[]types.Layout, value interfa return nil } - shape, ok := value.([]interface{}) + shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.Layout + var sv *types.NegativeValueConfiguration if *v == nil { - cv = []types.Layout{} + sv = &types.NegativeValueConfiguration{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col types.Layout - destAddr := &col - if err := awsRestjson1_deserializeDocumentLayout(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) + for key, value := range shape { + switch key { + case "DisplayMode": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NegativeValueDisplayMode to be of type string, got %T instead", value) + } + sv.DisplayMode = types.NegativeValueDisplayMode(jtv) + } + + default: + _, _ = key, value + } } - *v = cv + *v = sv return nil } -func awsRestjson1_deserializeDocumentLegendOptions(v **types.LegendOptions, value interface{}) error { +func awsRestjson1_deserializeDocumentNetworkInterface(v **types.NetworkInterface, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -47533,54 +54791,58 @@ func awsRestjson1_deserializeDocumentLegendOptions(v **types.LegendOptions, valu return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.LegendOptions + var sv *types.NetworkInterface if *v == nil { - sv = &types.LegendOptions{} + sv = &types.NetworkInterface{} } else { sv = *v } for key, value := range shape { switch key { - case "Height": + case "AvailabilityZone": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected PixelLength to be of type string, got %T instead", value) + return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Height = ptr.String(jtv) + sv.AvailabilityZone = ptr.String(jtv) } - case "Position": + case "ErrorMessage": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected LegendPosition to be of type string, got %T instead", value) + return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Position = types.LegendPosition(jtv) + sv.ErrorMessage = ptr.String(jtv) } - case "Title": - if err := awsRestjson1_deserializeDocumentLabelOptions(&sv.Title, value); err != nil { - return err + case "NetworkInterfaceId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NetworkInterfaceId to be of type string, got %T instead", value) + } + sv.NetworkInterfaceId = ptr.String(jtv) } - case "Visibility": + case "Status": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) + return fmt.Errorf("expected NetworkInterfaceStatus to be of type string, got %T instead", value) } - sv.Visibility = types.Visibility(jtv) + sv.Status = types.NetworkInterfaceStatus(jtv) } - case "Width": + case "SubnetId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected PixelLength to be of type string, got %T instead", value) + return fmt.Errorf("expected SubnetId to be of type string, got %T instead", value) } - sv.Width = ptr.String(jtv) + sv.SubnetId = ptr.String(jtv) } default: @@ -47592,7 +54854,7 @@ func awsRestjson1_deserializeDocumentLegendOptions(v **types.LegendOptions, valu return nil } -func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExceededException, value interface{}) error { +func awsRestjson1_deserializeDocumentNetworkInterfaceList(v *[]types.NetworkInterface, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -47600,57 +54862,33 @@ func awsRestjson1_deserializeDocumentLimitExceededException(v **types.LimitExcee return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.LimitExceededException + var cv []types.NetworkInterface if *v == nil { - sv = &types.LimitExceededException{} + cv = []types.NetworkInterface{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "Message": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.Message = ptr.String(jtv) - } - - case "RequestId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.RequestId = ptr.String(jtv) - } - - case "ResourceType": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ExceptionResourceType to be of type string, got %T instead", value) - } - sv.ResourceType = types.ExceptionResourceType(jtv) - } - - default: - _, _ = key, value - + for _, value := range shape { + var col types.NetworkInterface + destAddr := &col + if err := awsRestjson1_deserializeDocumentNetworkInterface(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsRestjson1_deserializeDocumentLineChartAggregatedFieldWells(v **types.LineChartAggregatedFieldWells, value interface{}) error { +func awsRestjson1_deserializeDocumentNewDefaultValues(v **types.NewDefaultValues, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -47663,32 +54901,32 @@ func awsRestjson1_deserializeDocumentLineChartAggregatedFieldWells(v **types.Lin return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.LineChartAggregatedFieldWells + var sv *types.NewDefaultValues if *v == nil { - sv = &types.LineChartAggregatedFieldWells{} + sv = &types.NewDefaultValues{} } else { sv = *v } for key, value := range shape { switch key { - case "Category": - if err := awsRestjson1_deserializeDocumentDimensionFieldList(&sv.Category, value); err != nil { + case "DateTimeStaticValues": + if err := awsRestjson1_deserializeDocumentDateTimeDatasetParameterValueList(&sv.DateTimeStaticValues, value); err != nil { return err } - case "Colors": - if err := awsRestjson1_deserializeDocumentDimensionFieldList(&sv.Colors, value); err != nil { + case "DecimalStaticValues": + if err := awsRestjson1_deserializeDocumentDecimalDatasetParameterValueList(&sv.DecimalStaticValues, value); err != nil { return err } - case "SmallMultiples": - if err := awsRestjson1_deserializeDocumentSmallMultiplesDimensionFieldList(&sv.SmallMultiples, value); err != nil { + case "IntegerStaticValues": + if err := awsRestjson1_deserializeDocumentIntegerDatasetParameterValueList(&sv.IntegerStaticValues, value); err != nil { return err } - case "Values": - if err := awsRestjson1_deserializeDocumentMeasureFieldList(&sv.Values, value); err != nil { + case "StringStaticValues": + if err := awsRestjson1_deserializeDocumentStringDatasetParameterValueList(&sv.StringStaticValues, value); err != nil { return err } @@ -47701,7 +54939,7 @@ func awsRestjson1_deserializeDocumentLineChartAggregatedFieldWells(v **types.Lin return nil } -func awsRestjson1_deserializeDocumentLineChartConfiguration(v **types.LineChartConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentNullValueFormatConfiguration(v **types.NullValueFormatConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -47714,112 +54952,22 @@ func awsRestjson1_deserializeDocumentLineChartConfiguration(v **types.LineChartC return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.LineChartConfiguration + var sv *types.NullValueFormatConfiguration if *v == nil { - sv = &types.LineChartConfiguration{} + sv = &types.NullValueFormatConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "ContributionAnalysisDefaults": - if err := awsRestjson1_deserializeDocumentContributionAnalysisDefaultList(&sv.ContributionAnalysisDefaults, value); err != nil { - return err - } - - case "DataLabels": - if err := awsRestjson1_deserializeDocumentDataLabelOptions(&sv.DataLabels, value); err != nil { - return err - } - - case "DefaultSeriesSettings": - if err := awsRestjson1_deserializeDocumentLineChartDefaultSeriesSettings(&sv.DefaultSeriesSettings, value); err != nil { - return err - } - - case "FieldWells": - if err := awsRestjson1_deserializeDocumentLineChartFieldWells(&sv.FieldWells, value); err != nil { - return err - } - - case "ForecastConfigurations": - if err := awsRestjson1_deserializeDocumentForecastConfigurationList(&sv.ForecastConfigurations, value); err != nil { - return err - } - - case "Legend": - if err := awsRestjson1_deserializeDocumentLegendOptions(&sv.Legend, value); err != nil { - return err - } - - case "PrimaryYAxisDisplayOptions": - if err := awsRestjson1_deserializeDocumentLineSeriesAxisDisplayOptions(&sv.PrimaryYAxisDisplayOptions, value); err != nil { - return err - } - - case "PrimaryYAxisLabelOptions": - if err := awsRestjson1_deserializeDocumentChartAxisLabelOptions(&sv.PrimaryYAxisLabelOptions, value); err != nil { - return err - } - - case "ReferenceLines": - if err := awsRestjson1_deserializeDocumentReferenceLineList(&sv.ReferenceLines, value); err != nil { - return err - } - - case "SecondaryYAxisDisplayOptions": - if err := awsRestjson1_deserializeDocumentLineSeriesAxisDisplayOptions(&sv.SecondaryYAxisDisplayOptions, value); err != nil { - return err - } - - case "SecondaryYAxisLabelOptions": - if err := awsRestjson1_deserializeDocumentChartAxisLabelOptions(&sv.SecondaryYAxisLabelOptions, value); err != nil { - return err - } - - case "Series": - if err := awsRestjson1_deserializeDocumentSeriesItemList(&sv.Series, value); err != nil { - return err - } - - case "SmallMultiplesOptions": - if err := awsRestjson1_deserializeDocumentSmallMultiplesOptions(&sv.SmallMultiplesOptions, value); err != nil { - return err - } - - case "SortConfiguration": - if err := awsRestjson1_deserializeDocumentLineChartSortConfiguration(&sv.SortConfiguration, value); err != nil { - return err - } - - case "Tooltip": - if err := awsRestjson1_deserializeDocumentTooltipOptions(&sv.Tooltip, value); err != nil { - return err - } - - case "Type": + case "NullString": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected LineChartType to be of type string, got %T instead", value) + return fmt.Errorf("expected NullString to be of type string, got %T instead", value) } - sv.Type = types.LineChartType(jtv) - } - - case "VisualPalette": - if err := awsRestjson1_deserializeDocumentVisualPalette(&sv.VisualPalette, value); err != nil { - return err - } - - case "XAxisDisplayOptions": - if err := awsRestjson1_deserializeDocumentAxisDisplayOptions(&sv.XAxisDisplayOptions, value); err != nil { - return err - } - - case "XAxisLabelOptions": - if err := awsRestjson1_deserializeDocumentChartAxisLabelOptions(&sv.XAxisLabelOptions, value); err != nil { - return err + sv.NullString = ptr.String(jtv) } default: @@ -47831,7 +54979,7 @@ func awsRestjson1_deserializeDocumentLineChartConfiguration(v **types.LineChartC return nil } -func awsRestjson1_deserializeDocumentLineChartDefaultSeriesSettings(v **types.LineChartDefaultSeriesSettings, value interface{}) error { +func awsRestjson1_deserializeDocumentNumberDisplayFormatConfiguration(v **types.NumberDisplayFormatConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -47844,34 +54992,62 @@ func awsRestjson1_deserializeDocumentLineChartDefaultSeriesSettings(v **types.Li return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.LineChartDefaultSeriesSettings + var sv *types.NumberDisplayFormatConfiguration if *v == nil { - sv = &types.LineChartDefaultSeriesSettings{} + sv = &types.NumberDisplayFormatConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "AxisBinding": + case "DecimalPlacesConfiguration": + if err := awsRestjson1_deserializeDocumentDecimalPlacesConfiguration(&sv.DecimalPlacesConfiguration, value); err != nil { + return err + } + + case "NegativeValueConfiguration": + if err := awsRestjson1_deserializeDocumentNegativeValueConfiguration(&sv.NegativeValueConfiguration, value); err != nil { + return err + } + + case "NullValueFormatConfiguration": + if err := awsRestjson1_deserializeDocumentNullValueFormatConfiguration(&sv.NullValueFormatConfiguration, value); err != nil { + return err + } + + case "NumberScale": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected AxisBinding to be of type string, got %T instead", value) + return fmt.Errorf("expected NumberScale to be of type string, got %T instead", value) } - sv.AxisBinding = types.AxisBinding(jtv) + sv.NumberScale = types.NumberScale(jtv) } - case "LineStyleSettings": - if err := awsRestjson1_deserializeDocumentLineChartLineStyleSettings(&sv.LineStyleSettings, value); err != nil { - return err + case "Prefix": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Prefix to be of type string, got %T instead", value) + } + sv.Prefix = ptr.String(jtv) } - case "MarkerStyleSettings": - if err := awsRestjson1_deserializeDocumentLineChartMarkerStyleSettings(&sv.MarkerStyleSettings, value); err != nil { + case "SeparatorConfiguration": + if err := awsRestjson1_deserializeDocumentNumericSeparatorConfiguration(&sv.SeparatorConfiguration, value); err != nil { return err } + case "Suffix": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Suffix to be of type string, got %T instead", value) + } + sv.Suffix = ptr.String(jtv) + } + default: _, _ = key, value @@ -47881,7 +55057,7 @@ func awsRestjson1_deserializeDocumentLineChartDefaultSeriesSettings(v **types.Li return nil } -func awsRestjson1_deserializeDocumentLineChartFieldWells(v **types.LineChartFieldWells, value interface{}) error { +func awsRestjson1_deserializeDocumentNumberFormatConfiguration(v **types.NumberFormatConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -47894,17 +55070,17 @@ func awsRestjson1_deserializeDocumentLineChartFieldWells(v **types.LineChartFiel return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.LineChartFieldWells + var sv *types.NumberFormatConfiguration if *v == nil { - sv = &types.LineChartFieldWells{} + sv = &types.NumberFormatConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "LineChartAggregatedFieldWells": - if err := awsRestjson1_deserializeDocumentLineChartAggregatedFieldWells(&sv.LineChartAggregatedFieldWells, value); err != nil { + case "FormatConfiguration": + if err := awsRestjson1_deserializeDocumentNumericFormatConfiguration(&sv.FormatConfiguration, value); err != nil { return err } @@ -47917,7 +55093,7 @@ func awsRestjson1_deserializeDocumentLineChartFieldWells(v **types.LineChartFiel return nil } -func awsRestjson1_deserializeDocumentLineChartLineStyleSettings(v **types.LineChartLineStyleSettings, value interface{}) error { +func awsRestjson1_deserializeDocumentNumericalAggregationFunction(v **types.NumericalAggregationFunction, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -47930,49 +55106,27 @@ func awsRestjson1_deserializeDocumentLineChartLineStyleSettings(v **types.LineCh return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.LineChartLineStyleSettings + var sv *types.NumericalAggregationFunction if *v == nil { - sv = &types.LineChartLineStyleSettings{} + sv = &types.NumericalAggregationFunction{} } else { sv = *v } for key, value := range shape { switch key { - case "LineInterpolation": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected LineInterpolation to be of type string, got %T instead", value) - } - sv.LineInterpolation = types.LineInterpolation(jtv) - } - - case "LineStyle": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected LineChartLineStyle to be of type string, got %T instead", value) - } - sv.LineStyle = types.LineChartLineStyle(jtv) - } - - case "LineVisibility": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) - } - sv.LineVisibility = types.Visibility(jtv) + case "PercentileAggregation": + if err := awsRestjson1_deserializeDocumentPercentileAggregation(&sv.PercentileAggregation, value); err != nil { + return err } - case "LineWidth": + case "SimpleNumericalAggregation": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected PixelLength to be of type string, got %T instead", value) + return fmt.Errorf("expected SimpleNumericalAggregationFunction to be of type string, got %T instead", value) } - sv.LineWidth = ptr.String(jtv) + sv.SimpleNumericalAggregation = types.SimpleNumericalAggregationFunction(jtv) } default: @@ -47984,7 +55138,7 @@ func awsRestjson1_deserializeDocumentLineChartLineStyleSettings(v **types.LineCh return nil } -func awsRestjson1_deserializeDocumentLineChartMarkerStyleSettings(v **types.LineChartMarkerStyleSettings, value interface{}) error { +func awsRestjson1_deserializeDocumentNumericalDimensionField(v **types.NumericalDimensionField, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -47997,49 +55151,41 @@ func awsRestjson1_deserializeDocumentLineChartMarkerStyleSettings(v **types.Line return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.LineChartMarkerStyleSettings + var sv *types.NumericalDimensionField if *v == nil { - sv = &types.LineChartMarkerStyleSettings{} + sv = &types.NumericalDimensionField{} } else { sv = *v } for key, value := range shape { switch key { - case "MarkerColor": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected HexColor to be of type string, got %T instead", value) - } - sv.MarkerColor = ptr.String(jtv) + case "Column": + if err := awsRestjson1_deserializeDocumentColumnIdentifier(&sv.Column, value); err != nil { + return err } - case "MarkerShape": + case "FieldId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected LineChartMarkerShape to be of type string, got %T instead", value) + return fmt.Errorf("expected FieldId to be of type string, got %T instead", value) } - sv.MarkerShape = types.LineChartMarkerShape(jtv) + sv.FieldId = ptr.String(jtv) } - case "MarkerSize": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected PixelLength to be of type string, got %T instead", value) - } - sv.MarkerSize = ptr.String(jtv) + case "FormatConfiguration": + if err := awsRestjson1_deserializeDocumentNumberFormatConfiguration(&sv.FormatConfiguration, value); err != nil { + return err } - case "MarkerVisibility": + case "HierarchyId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) + return fmt.Errorf("expected HierarchyId to be of type string, got %T instead", value) } - sv.MarkerVisibility = types.Visibility(jtv) + sv.HierarchyId = ptr.String(jtv) } default: @@ -48051,7 +55197,7 @@ func awsRestjson1_deserializeDocumentLineChartMarkerStyleSettings(v **types.Line return nil } -func awsRestjson1_deserializeDocumentLineChartSeriesSettings(v **types.LineChartSeriesSettings, value interface{}) error { +func awsRestjson1_deserializeDocumentNumericalMeasureField(v **types.NumericalMeasureField, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -48064,22 +55210,36 @@ func awsRestjson1_deserializeDocumentLineChartSeriesSettings(v **types.LineChart return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.LineChartSeriesSettings + var sv *types.NumericalMeasureField if *v == nil { - sv = &types.LineChartSeriesSettings{} + sv = &types.NumericalMeasureField{} } else { sv = *v } for key, value := range shape { switch key { - case "LineStyleSettings": - if err := awsRestjson1_deserializeDocumentLineChartLineStyleSettings(&sv.LineStyleSettings, value); err != nil { + case "AggregationFunction": + if err := awsRestjson1_deserializeDocumentNumericalAggregationFunction(&sv.AggregationFunction, value); err != nil { return err } - case "MarkerStyleSettings": - if err := awsRestjson1_deserializeDocumentLineChartMarkerStyleSettings(&sv.MarkerStyleSettings, value); err != nil { + case "Column": + if err := awsRestjson1_deserializeDocumentColumnIdentifier(&sv.Column, value); err != nil { + return err + } + + case "FieldId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected FieldId to be of type string, got %T instead", value) + } + sv.FieldId = ptr.String(jtv) + } + + case "FormatConfiguration": + if err := awsRestjson1_deserializeDocumentNumberFormatConfiguration(&sv.FormatConfiguration, value); err != nil { return err } @@ -48092,7 +55252,7 @@ func awsRestjson1_deserializeDocumentLineChartSeriesSettings(v **types.LineChart return nil } -func awsRestjson1_deserializeDocumentLineChartSortConfiguration(v **types.LineChartSortConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentNumericAxisOptions(v **types.NumericAxisOptions, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -48105,37 +55265,22 @@ func awsRestjson1_deserializeDocumentLineChartSortConfiguration(v **types.LineCh return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.LineChartSortConfiguration + var sv *types.NumericAxisOptions if *v == nil { - sv = &types.LineChartSortConfiguration{} + sv = &types.NumericAxisOptions{} } else { sv = *v } for key, value := range shape { switch key { - case "CategoryItemsLimitConfiguration": - if err := awsRestjson1_deserializeDocumentItemsLimitConfiguration(&sv.CategoryItemsLimitConfiguration, value); err != nil { - return err - } - - case "CategorySort": - if err := awsRestjson1_deserializeDocumentFieldSortOptionsList(&sv.CategorySort, value); err != nil { - return err - } - - case "ColorItemsLimitConfiguration": - if err := awsRestjson1_deserializeDocumentItemsLimitConfiguration(&sv.ColorItemsLimitConfiguration, value); err != nil { - return err - } - - case "SmallMultiplesLimitConfiguration": - if err := awsRestjson1_deserializeDocumentItemsLimitConfiguration(&sv.SmallMultiplesLimitConfiguration, value); err != nil { + case "Range": + if err := awsRestjson1_deserializeDocumentAxisDisplayRange(&sv.Range, value); err != nil { return err } - case "SmallMultiplesSort": - if err := awsRestjson1_deserializeDocumentFieldSortOptionsList(&sv.SmallMultiplesSort, value); err != nil { + case "Scale": + if err := awsRestjson1_deserializeDocumentAxisScale(&sv.Scale, value); err != nil { return err } @@ -48148,7 +55293,7 @@ func awsRestjson1_deserializeDocumentLineChartSortConfiguration(v **types.LineCh return nil } -func awsRestjson1_deserializeDocumentLineChartVisual(v **types.LineChartVisual, value interface{}) error { +func awsRestjson1_deserializeDocumentNumericEqualityDrillDownFilter(v **types.NumericEqualityDrillDownFilter, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -48161,47 +55306,52 @@ func awsRestjson1_deserializeDocumentLineChartVisual(v **types.LineChartVisual, return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.LineChartVisual + var sv *types.NumericEqualityDrillDownFilter if *v == nil { - sv = &types.LineChartVisual{} + sv = &types.NumericEqualityDrillDownFilter{} } else { sv = *v } for key, value := range shape { switch key { - case "Actions": - if err := awsRestjson1_deserializeDocumentVisualCustomActionList(&sv.Actions, value); err != nil { + case "Column": + if err := awsRestjson1_deserializeDocumentColumnIdentifier(&sv.Column, value); err != nil { return err } - case "ChartConfiguration": - if err := awsRestjson1_deserializeDocumentLineChartConfiguration(&sv.ChartConfiguration, value); err != nil { - return err - } + case "Value": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.Value = f64 - case "ColumnHierarchies": - if err := awsRestjson1_deserializeDocumentColumnHierarchyList(&sv.ColumnHierarchies, value); err != nil { - return err - } + case string: + var f64 float64 + switch { + case strings.EqualFold(jtv, "NaN"): + f64 = math.NaN() - case "Subtitle": - if err := awsRestjson1_deserializeDocumentVisualSubtitleLabelOptions(&sv.Subtitle, value); err != nil { - return err - } + case strings.EqualFold(jtv, "Infinity"): + f64 = math.Inf(1) - case "Title": - if err := awsRestjson1_deserializeDocumentVisualTitleLabelOptions(&sv.Title, value); err != nil { - return err - } + case strings.EqualFold(jtv, "-Infinity"): + f64 = math.Inf(-1) + + default: + return fmt.Errorf("unknown JSON number value: %s", jtv) + + } + sv.Value = f64 + + default: + return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value) - case "VisualId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) } - sv.VisualId = ptr.String(jtv) } default: @@ -48213,7 +55363,7 @@ func awsRestjson1_deserializeDocumentLineChartVisual(v **types.LineChartVisual, return nil } -func awsRestjson1_deserializeDocumentLineSeriesAxisDisplayOptions(v **types.LineSeriesAxisDisplayOptions, value interface{}) error { +func awsRestjson1_deserializeDocumentNumericEqualityFilter(v **types.NumericEqualityFilter, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -48226,59 +55376,102 @@ func awsRestjson1_deserializeDocumentLineSeriesAxisDisplayOptions(v **types.Line return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.LineSeriesAxisDisplayOptions + var sv *types.NumericEqualityFilter if *v == nil { - sv = &types.LineSeriesAxisDisplayOptions{} + sv = &types.NumericEqualityFilter{} } else { sv = *v } for key, value := range shape { switch key { - case "AxisOptions": - if err := awsRestjson1_deserializeDocumentAxisDisplayOptions(&sv.AxisOptions, value); err != nil { + case "AggregationFunction": + if err := awsRestjson1_deserializeDocumentAggregationFunction(&sv.AggregationFunction, value); err != nil { return err } - case "MissingDataConfigurations": - if err := awsRestjson1_deserializeDocumentMissingDataConfigurationList(&sv.MissingDataConfigurations, value); err != nil { + case "Column": + if err := awsRestjson1_deserializeDocumentColumnIdentifier(&sv.Column, value); err != nil { return err } - default: - _, _ = key, value + case "FilterId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + } + sv.FilterId = ptr.String(jtv) + } - } - } - *v = sv - return nil -} + case "MatchOperator": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NumericEqualityMatchOperator to be of type string, got %T instead", value) + } + sv.MatchOperator = types.NumericEqualityMatchOperator(jtv) + } -func awsRestjson1_deserializeDocumentLinkSharingConfiguration(v **types.LinkSharingConfiguration, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } + case "NullOption": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected FilterNullOption to be of type string, got %T instead", value) + } + sv.NullOption = types.FilterNullOption(jtv) + } - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } + case "ParameterName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ParameterName to be of type string, got %T instead", value) + } + sv.ParameterName = ptr.String(jtv) + } - var sv *types.LinkSharingConfiguration - if *v == nil { - sv = &types.LinkSharingConfiguration{} - } else { - sv = *v - } + case "SelectAllOptions": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NumericFilterSelectAllOptions to be of type string, got %T instead", value) + } + sv.SelectAllOptions = types.NumericFilterSelectAllOptions(jtv) + } - for key, value := range shape { - switch key { - case "Permissions": - if err := awsRestjson1_deserializeDocumentResourcePermissionList(&sv.Permissions, value); err != nil { - return err + case "Value": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.Value = ptr.Float64(f64) + + case string: + var f64 float64 + switch { + case strings.EqualFold(jtv, "NaN"): + f64 = math.NaN() + + case strings.EqualFold(jtv, "Infinity"): + f64 = math.Inf(1) + + case strings.EqualFold(jtv, "-Infinity"): + f64 = math.Inf(-1) + + default: + return fmt.Errorf("unknown JSON number value: %s", jtv) + + } + sv.Value = ptr.Float64(f64) + + default: + return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value) + + } } default: @@ -48290,7 +55483,7 @@ func awsRestjson1_deserializeDocumentLinkSharingConfiguration(v **types.LinkShar return nil } -func awsRestjson1_deserializeDocumentListControlDisplayOptions(v **types.ListControlDisplayOptions, value interface{}) error { +func awsRestjson1_deserializeDocumentNumericFormatConfiguration(v **types.NumericFormatConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -48303,27 +55496,27 @@ func awsRestjson1_deserializeDocumentListControlDisplayOptions(v **types.ListCon return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ListControlDisplayOptions + var sv *types.NumericFormatConfiguration if *v == nil { - sv = &types.ListControlDisplayOptions{} + sv = &types.NumericFormatConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "SearchOptions": - if err := awsRestjson1_deserializeDocumentListControlSearchOptions(&sv.SearchOptions, value); err != nil { + case "CurrencyDisplayFormatConfiguration": + if err := awsRestjson1_deserializeDocumentCurrencyDisplayFormatConfiguration(&sv.CurrencyDisplayFormatConfiguration, value); err != nil { return err } - case "SelectAllOptions": - if err := awsRestjson1_deserializeDocumentListControlSelectAllOptions(&sv.SelectAllOptions, value); err != nil { + case "NumberDisplayFormatConfiguration": + if err := awsRestjson1_deserializeDocumentNumberDisplayFormatConfiguration(&sv.NumberDisplayFormatConfiguration, value); err != nil { return err } - case "TitleOptions": - if err := awsRestjson1_deserializeDocumentLabelOptions(&sv.TitleOptions, value); err != nil { + case "PercentageDisplayFormatConfiguration": + if err := awsRestjson1_deserializeDocumentPercentageDisplayFormatConfiguration(&sv.PercentageDisplayFormatConfiguration, value); err != nil { return err } @@ -48336,7 +55529,7 @@ func awsRestjson1_deserializeDocumentListControlDisplayOptions(v **types.ListCon return nil } -func awsRestjson1_deserializeDocumentListControlSearchOptions(v **types.ListControlSearchOptions, value interface{}) error { +func awsRestjson1_deserializeDocumentNumericRangeFilter(v **types.NumericRangeFilter, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -48349,22 +55542,78 @@ func awsRestjson1_deserializeDocumentListControlSearchOptions(v **types.ListCont return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ListControlSearchOptions + var sv *types.NumericRangeFilter if *v == nil { - sv = &types.ListControlSearchOptions{} + sv = &types.NumericRangeFilter{} } else { sv = *v } for key, value := range shape { switch key { - case "Visibility": + case "AggregationFunction": + if err := awsRestjson1_deserializeDocumentAggregationFunction(&sv.AggregationFunction, value); err != nil { + return err + } + + case "Column": + if err := awsRestjson1_deserializeDocumentColumnIdentifier(&sv.Column, value); err != nil { + return err + } + + case "FilterId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) } - sv.Visibility = types.Visibility(jtv) + sv.FilterId = ptr.String(jtv) + } + + case "IncludeMaximum": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + } + sv.IncludeMaximum = ptr.Bool(jtv) + } + + case "IncludeMinimum": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + } + sv.IncludeMinimum = ptr.Bool(jtv) + } + + case "NullOption": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected FilterNullOption to be of type string, got %T instead", value) + } + sv.NullOption = types.FilterNullOption(jtv) + } + + case "RangeMaximum": + if err := awsRestjson1_deserializeDocumentNumericRangeFilterValue(&sv.RangeMaximum, value); err != nil { + return err + } + + case "RangeMinimum": + if err := awsRestjson1_deserializeDocumentNumericRangeFilterValue(&sv.RangeMinimum, value); err != nil { + return err + } + + case "SelectAllOptions": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NumericFilterSelectAllOptions to be of type string, got %T instead", value) + } + sv.SelectAllOptions = types.NumericFilterSelectAllOptions(jtv) } default: @@ -48376,7 +55625,7 @@ func awsRestjson1_deserializeDocumentListControlSearchOptions(v **types.ListCont return nil } -func awsRestjson1_deserializeDocumentListControlSelectAllOptions(v **types.ListControlSelectAllOptions, value interface{}) error { +func awsRestjson1_deserializeDocumentNumericRangeFilterValue(v **types.NumericRangeFilterValue, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -48389,22 +55638,56 @@ func awsRestjson1_deserializeDocumentListControlSelectAllOptions(v **types.ListC return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ListControlSelectAllOptions + var sv *types.NumericRangeFilterValue if *v == nil { - sv = &types.ListControlSelectAllOptions{} + sv = &types.NumericRangeFilterValue{} } else { sv = *v } for key, value := range shape { switch key { - case "Visibility": + case "Parameter": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) + return fmt.Errorf("expected ParameterName to be of type string, got %T instead", value) + } + sv.Parameter = ptr.String(jtv) + } + + case "StaticValue": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.StaticValue = ptr.Float64(f64) + + case string: + var f64 float64 + switch { + case strings.EqualFold(jtv, "NaN"): + f64 = math.NaN() + + case strings.EqualFold(jtv, "Infinity"): + f64 = math.Inf(1) + + case strings.EqualFold(jtv, "-Infinity"): + f64 = math.Inf(-1) + + default: + return fmt.Errorf("unknown JSON number value: %s", jtv) + + } + sv.StaticValue = ptr.Float64(f64) + + default: + return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value) + } - sv.Visibility = types.Visibility(jtv) } default: @@ -48416,7 +55699,7 @@ func awsRestjson1_deserializeDocumentListControlSelectAllOptions(v **types.ListC return nil } -func awsRestjson1_deserializeDocumentLoadingAnimation(v **types.LoadingAnimation, value interface{}) error { +func awsRestjson1_deserializeDocumentNumericSeparatorConfiguration(v **types.NumericSeparatorConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -48429,22 +55712,27 @@ func awsRestjson1_deserializeDocumentLoadingAnimation(v **types.LoadingAnimation return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.LoadingAnimation + var sv *types.NumericSeparatorConfiguration if *v == nil { - sv = &types.LoadingAnimation{} + sv = &types.NumericSeparatorConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "Visibility": + case "DecimalSeparator": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) + return fmt.Errorf("expected NumericSeparatorSymbol to be of type string, got %T instead", value) } - sv.Visibility = types.Visibility(jtv) + sv.DecimalSeparator = types.NumericSeparatorSymbol(jtv) + } + + case "ThousandsSeparator": + if err := awsRestjson1_deserializeDocumentThousandSeparatorOptions(&sv.ThousandsSeparator, value); err != nil { + return err } default: @@ -48456,7 +55744,7 @@ func awsRestjson1_deserializeDocumentLoadingAnimation(v **types.LoadingAnimation return nil } -func awsRestjson1_deserializeDocumentLocalNavigationConfiguration(v **types.LocalNavigationConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentOracleParameters(v **types.OracleParameters, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -48469,22 +55757,44 @@ func awsRestjson1_deserializeDocumentLocalNavigationConfiguration(v **types.Loca return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.LocalNavigationConfiguration + var sv *types.OracleParameters if *v == nil { - sv = &types.LocalNavigationConfiguration{} + sv = &types.OracleParameters{} } else { sv = *v } for key, value := range shape { switch key { - case "TargetSheetId": + case "Database": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + return fmt.Errorf("expected Database to be of type string, got %T instead", value) } - sv.TargetSheetId = ptr.String(jtv) + sv.Database = ptr.String(jtv) + } + + case "Host": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Host to be of type string, got %T instead", value) + } + sv.Host = ptr.String(jtv) + } + + case "Port": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected Port to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.Port = int32(i64) } default: @@ -48496,7 +55806,7 @@ func awsRestjson1_deserializeDocumentLocalNavigationConfiguration(v **types.Loca return nil } -func awsRestjson1_deserializeDocumentLogicalTable(v **types.LogicalTable, value interface{}) error { +func awsRestjson1_deserializeDocumentOutputColumn(v **types.OutputColumn, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -48509,32 +55819,40 @@ func awsRestjson1_deserializeDocumentLogicalTable(v **types.LogicalTable, value return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.LogicalTable + var sv *types.OutputColumn if *v == nil { - sv = &types.LogicalTable{} + sv = &types.OutputColumn{} } else { sv = *v } for key, value := range shape { switch key { - case "Alias": + case "Description": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected LogicalTableAlias to be of type string, got %T instead", value) + return fmt.Errorf("expected ColumnDescriptiveText to be of type string, got %T instead", value) } - sv.Alias = ptr.String(jtv) + sv.Description = ptr.String(jtv) } - case "DataTransforms": - if err := awsRestjson1_deserializeDocumentTransformOperationList(&sv.DataTransforms, value); err != nil { - return err + case "Name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ColumnName to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) } - case "Source": - if err := awsRestjson1_deserializeDocumentLogicalTableSource(&sv.Source, value); err != nil { - return err + case "Type": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ColumnDataType to be of type string, got %T instead", value) + } + sv.Type = types.ColumnDataType(jtv) } default: @@ -48546,7 +55864,7 @@ func awsRestjson1_deserializeDocumentLogicalTable(v **types.LogicalTable, value return nil } -func awsRestjson1_deserializeDocumentLogicalTableMap(v *map[string]types.LogicalTable, value interface{}) error { +func awsRestjson1_deserializeDocumentOutputColumnList(v *[]types.OutputColumn, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -48554,34 +55872,33 @@ func awsRestjson1_deserializeDocumentLogicalTableMap(v *map[string]types.Logical return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]types.LogicalTable + var cv []types.OutputColumn if *v == nil { - mv = map[string]types.LogicalTable{} + cv = []types.OutputColumn{} } else { - mv = *v + cv = *v } - for key, value := range shape { - var parsedVal types.LogicalTable - mapVar := parsedVal - destAddr := &mapVar - if err := awsRestjson1_deserializeDocumentLogicalTable(&destAddr, value); err != nil { + for _, value := range shape { + var col types.OutputColumn + destAddr := &col + if err := awsRestjson1_deserializeDocumentOutputColumn(&destAddr, value); err != nil { return err } - parsedVal = *destAddr - mv[key] = parsedVal + col = *destAddr + cv = append(cv, col) } - *v = mv + *v = cv return nil } -func awsRestjson1_deserializeDocumentLogicalTableSource(v **types.LogicalTableSource, value interface{}) error { +func awsRestjson1_deserializeDocumentOverrideDatasetParameterOperation(v **types.OverrideDatasetParameterOperation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -48594,36 +55911,36 @@ func awsRestjson1_deserializeDocumentLogicalTableSource(v **types.LogicalTableSo return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.LogicalTableSource + var sv *types.OverrideDatasetParameterOperation if *v == nil { - sv = &types.LogicalTableSource{} + sv = &types.OverrideDatasetParameterOperation{} } else { sv = *v } for key, value := range shape { switch key { - case "DataSetArn": + case "NewDefaultValues": + if err := awsRestjson1_deserializeDocumentNewDefaultValues(&sv.NewDefaultValues, value); err != nil { + return err + } + + case "NewParameterName": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + return fmt.Errorf("expected DatasetParameterName to be of type string, got %T instead", value) } - sv.DataSetArn = ptr.String(jtv) - } - - case "JoinInstruction": - if err := awsRestjson1_deserializeDocumentJoinInstruction(&sv.JoinInstruction, value); err != nil { - return err + sv.NewParameterName = ptr.String(jtv) } - case "PhysicalTableId": + case "ParameterName": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected PhysicalTableId to be of type string, got %T instead", value) + return fmt.Errorf("expected DatasetParameterName to be of type string, got %T instead", value) } - sv.PhysicalTableId = ptr.String(jtv) + sv.ParameterName = ptr.String(jtv) } default: @@ -48635,7 +55952,7 @@ func awsRestjson1_deserializeDocumentLogicalTableSource(v **types.LogicalTableSo return nil } -func awsRestjson1_deserializeDocumentLongFormatText(v **types.LongFormatText, value interface{}) error { +func awsRestjson1_deserializeDocumentPaginationConfiguration(v **types.PaginationConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -48648,31 +55965,39 @@ func awsRestjson1_deserializeDocumentLongFormatText(v **types.LongFormatText, va return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.LongFormatText + var sv *types.PaginationConfiguration if *v == nil { - sv = &types.LongFormatText{} + sv = &types.PaginationConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "PlainText": + case "PageNumber": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected LongPlainText to be of type string, got %T instead", value) + return fmt.Errorf("expected PageNumber to be json.Number, got %T instead", value) } - sv.PlainText = ptr.String(jtv) + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.PageNumber = ptr.Int64(i64) } - case "RichText": + case "PageSize": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected LongRichText to be of type string, got %T instead", value) + return fmt.Errorf("expected Long to be json.Number, got %T instead", value) } - sv.RichText = ptr.String(jtv) + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.PageSize = ptr.Int64(i64) } default: @@ -48684,7 +56009,7 @@ func awsRestjson1_deserializeDocumentLongFormatText(v **types.LongFormatText, va return nil } -func awsRestjson1_deserializeDocumentLookbackWindow(v **types.LookbackWindow, value interface{}) error { +func awsRestjson1_deserializeDocumentPanelConfiguration(v **types.PanelConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -48697,93 +56022,90 @@ func awsRestjson1_deserializeDocumentLookbackWindow(v **types.LookbackWindow, va return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.LookbackWindow + var sv *types.PanelConfiguration if *v == nil { - sv = &types.LookbackWindow{} + sv = &types.PanelConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "ColumnName": + case "BackgroundColor": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) + return fmt.Errorf("expected HexColorWithTransparency to be of type string, got %T instead", value) } - sv.ColumnName = ptr.String(jtv) + sv.BackgroundColor = ptr.String(jtv) } - case "Size": + case "BackgroundVisibility": if value != nil { - jtv, ok := value.(json.Number) + jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected PositiveLong to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err + return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) } - sv.Size = i64 + sv.BackgroundVisibility = types.Visibility(jtv) } - case "SizeUnit": + case "BorderColor": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected LookbackWindowSizeUnit to be of type string, got %T instead", value) + return fmt.Errorf("expected HexColorWithTransparency to be of type string, got %T instead", value) } - sv.SizeUnit = types.LookbackWindowSizeUnit(jtv) + sv.BorderColor = ptr.String(jtv) } - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentManifestFileLocation(v **types.ManifestFileLocation, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } + case "BorderStyle": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected PanelBorderStyle to be of type string, got %T instead", value) + } + sv.BorderStyle = types.PanelBorderStyle(jtv) + } - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } + case "BorderThickness": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected PixelLength to be of type string, got %T instead", value) + } + sv.BorderThickness = ptr.String(jtv) + } - var sv *types.ManifestFileLocation - if *v == nil { - sv = &types.ManifestFileLocation{} - } else { - sv = *v - } + case "BorderVisibility": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) + } + sv.BorderVisibility = types.Visibility(jtv) + } - for key, value := range shape { - switch key { - case "Bucket": + case "GutterSpacing": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected S3Bucket to be of type string, got %T instead", value) + return fmt.Errorf("expected PixelLength to be of type string, got %T instead", value) } - sv.Bucket = ptr.String(jtv) + sv.GutterSpacing = ptr.String(jtv) } - case "Key": + case "GutterVisibility": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected S3Key to be of type string, got %T instead", value) + return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) } - sv.Key = ptr.String(jtv) + sv.GutterVisibility = types.Visibility(jtv) + } + + case "Title": + if err := awsRestjson1_deserializeDocumentPanelTitleOptions(&sv.Title, value); err != nil { + return err } default: @@ -48795,7 +56117,7 @@ func awsRestjson1_deserializeDocumentManifestFileLocation(v **types.ManifestFile return nil } -func awsRestjson1_deserializeDocumentMarginStyle(v **types.MarginStyle, value interface{}) error { +func awsRestjson1_deserializeDocumentPanelTitleOptions(v **types.PanelTitleOptions, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -48808,22 +56130,36 @@ func awsRestjson1_deserializeDocumentMarginStyle(v **types.MarginStyle, value in return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.MarginStyle + var sv *types.PanelTitleOptions if *v == nil { - sv = &types.MarginStyle{} + sv = &types.PanelTitleOptions{} } else { sv = *v } for key, value := range shape { switch key { - case "Show": + case "FontConfiguration": + if err := awsRestjson1_deserializeDocumentFontConfiguration(&sv.FontConfiguration, value); err != nil { + return err + } + + case "HorizontalTextAlignment": if value != nil { - jtv, ok := value.(bool) + jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + return fmt.Errorf("expected HorizontalTextAlignment to be of type string, got %T instead", value) } - sv.Show = ptr.Bool(jtv) + sv.HorizontalTextAlignment = types.HorizontalTextAlignment(jtv) + } + + case "Visibility": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) + } + sv.Visibility = types.Visibility(jtv) } default: @@ -48835,7 +56171,7 @@ func awsRestjson1_deserializeDocumentMarginStyle(v **types.MarginStyle, value in return nil } -func awsRestjson1_deserializeDocumentMariaDbParameters(v **types.MariaDbParameters, value interface{}) error { +func awsRestjson1_deserializeDocumentParameterControl(v **types.ParameterControl, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -48848,44 +56184,43 @@ func awsRestjson1_deserializeDocumentMariaDbParameters(v **types.MariaDbParamete return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.MariaDbParameters + var sv *types.ParameterControl if *v == nil { - sv = &types.MariaDbParameters{} + sv = &types.ParameterControl{} } else { sv = *v } for key, value := range shape { switch key { - case "Database": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Database to be of type string, got %T instead", value) - } - sv.Database = ptr.String(jtv) + case "DateTimePicker": + if err := awsRestjson1_deserializeDocumentParameterDateTimePickerControl(&sv.DateTimePicker, value); err != nil { + return err } - case "Host": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Host to be of type string, got %T instead", value) - } - sv.Host = ptr.String(jtv) + case "Dropdown": + if err := awsRestjson1_deserializeDocumentParameterDropDownControl(&sv.Dropdown, value); err != nil { + return err } - case "Port": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected Port to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.Port = int32(i64) + case "List": + if err := awsRestjson1_deserializeDocumentParameterListControl(&sv.List, value); err != nil { + return err + } + + case "Slider": + if err := awsRestjson1_deserializeDocumentParameterSliderControl(&sv.Slider, value); err != nil { + return err + } + + case "TextArea": + if err := awsRestjson1_deserializeDocumentParameterTextAreaControl(&sv.TextArea, value); err != nil { + return err + } + + case "TextField": + if err := awsRestjson1_deserializeDocumentParameterTextFieldControl(&sv.TextField, value); err != nil { + return err } default: @@ -48897,7 +56232,7 @@ func awsRestjson1_deserializeDocumentMariaDbParameters(v **types.MariaDbParamete return nil } -func awsRestjson1_deserializeDocumentMaximumLabelType(v **types.MaximumLabelType, value interface{}) error { +func awsRestjson1_deserializeDocumentParameterControlList(v *[]types.ParameterControl, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -48905,39 +56240,33 @@ func awsRestjson1_deserializeDocumentMaximumLabelType(v **types.MaximumLabelType return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.MaximumLabelType + var cv []types.ParameterControl if *v == nil { - sv = &types.MaximumLabelType{} + cv = []types.ParameterControl{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "Visibility": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) - } - sv.Visibility = types.Visibility(jtv) - } - - default: - _, _ = key, value - + for _, value := range shape { + var col types.ParameterControl + destAddr := &col + if err := awsRestjson1_deserializeDocumentParameterControl(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsRestjson1_deserializeDocumentMaximumMinimumComputation(v **types.MaximumMinimumComputation, value interface{}) error { +func awsRestjson1_deserializeDocumentParameterDateTimePickerControl(v **types.ParameterDateTimePickerControl, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -48950,50 +56279,45 @@ func awsRestjson1_deserializeDocumentMaximumMinimumComputation(v **types.Maximum return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.MaximumMinimumComputation + var sv *types.ParameterDateTimePickerControl if *v == nil { - sv = &types.MaximumMinimumComputation{} + sv = &types.ParameterDateTimePickerControl{} } else { sv = *v } for key, value := range shape { switch key { - case "ComputationId": + case "DisplayOptions": + if err := awsRestjson1_deserializeDocumentDateTimePickerControlDisplayOptions(&sv.DisplayOptions, value); err != nil { + return err + } + + case "ParameterControlId": if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) } - sv.ComputationId = ptr.String(jtv) + sv.ParameterControlId = ptr.String(jtv) } - case "Name": + case "SourceParameterName": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) + return fmt.Errorf("expected ParameterName to be of type string, got %T instead", value) } - sv.Name = ptr.String(jtv) - } - - case "Time": - if err := awsRestjson1_deserializeDocumentDimensionField(&sv.Time, value); err != nil { - return err + sv.SourceParameterName = ptr.String(jtv) } - case "Type": + case "Title": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected MaximumMinimumComputationType to be of type string, got %T instead", value) + return fmt.Errorf("expected SheetControlTitle to be of type string, got %T instead", value) } - sv.Type = types.MaximumMinimumComputationType(jtv) - } - - case "Value": - if err := awsRestjson1_deserializeDocumentMeasureField(&sv.Value, value); err != nil { - return err + sv.Title = ptr.String(jtv) } default: @@ -49005,7 +56329,7 @@ func awsRestjson1_deserializeDocumentMaximumMinimumComputation(v **types.Maximum return nil } -func awsRestjson1_deserializeDocumentMeasureField(v **types.MeasureField, value interface{}) error { +func awsRestjson1_deserializeDocumentParameterDeclaration(v **types.ParameterDeclaration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -49018,32 +56342,32 @@ func awsRestjson1_deserializeDocumentMeasureField(v **types.MeasureField, value return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.MeasureField + var sv *types.ParameterDeclaration if *v == nil { - sv = &types.MeasureField{} + sv = &types.ParameterDeclaration{} } else { sv = *v } for key, value := range shape { switch key { - case "CalculatedMeasureField": - if err := awsRestjson1_deserializeDocumentCalculatedMeasureField(&sv.CalculatedMeasureField, value); err != nil { + case "DateTimeParameterDeclaration": + if err := awsRestjson1_deserializeDocumentDateTimeParameterDeclaration(&sv.DateTimeParameterDeclaration, value); err != nil { return err } - case "CategoricalMeasureField": - if err := awsRestjson1_deserializeDocumentCategoricalMeasureField(&sv.CategoricalMeasureField, value); err != nil { + case "DecimalParameterDeclaration": + if err := awsRestjson1_deserializeDocumentDecimalParameterDeclaration(&sv.DecimalParameterDeclaration, value); err != nil { return err } - case "DateMeasureField": - if err := awsRestjson1_deserializeDocumentDateMeasureField(&sv.DateMeasureField, value); err != nil { + case "IntegerParameterDeclaration": + if err := awsRestjson1_deserializeDocumentIntegerParameterDeclaration(&sv.IntegerParameterDeclaration, value); err != nil { return err } - case "NumericalMeasureField": - if err := awsRestjson1_deserializeDocumentNumericalMeasureField(&sv.NumericalMeasureField, value); err != nil { + case "StringParameterDeclaration": + if err := awsRestjson1_deserializeDocumentStringParameterDeclaration(&sv.StringParameterDeclaration, value); err != nil { return err } @@ -49056,7 +56380,7 @@ func awsRestjson1_deserializeDocumentMeasureField(v **types.MeasureField, value return nil } -func awsRestjson1_deserializeDocumentMeasureFieldList(v *[]types.MeasureField, value interface{}) error { +func awsRestjson1_deserializeDocumentParameterDeclarationList(v *[]types.ParameterDeclaration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -49069,17 +56393,17 @@ func awsRestjson1_deserializeDocumentMeasureFieldList(v *[]types.MeasureField, v return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.MeasureField + var cv []types.ParameterDeclaration if *v == nil { - cv = []types.MeasureField{} + cv = []types.ParameterDeclaration{} } else { cv = *v } for _, value := range shape { - var col types.MeasureField + var col types.ParameterDeclaration destAddr := &col - if err := awsRestjson1_deserializeDocumentMeasureField(&destAddr, value); err != nil { + if err := awsRestjson1_deserializeDocumentParameterDeclaration(&destAddr, value); err != nil { return err } col = *destAddr @@ -49090,7 +56414,7 @@ func awsRestjson1_deserializeDocumentMeasureFieldList(v *[]types.MeasureField, v return nil } -func awsRestjson1_deserializeDocumentMemberIdArnPair(v **types.MemberIdArnPair, value interface{}) error { +func awsRestjson1_deserializeDocumentParameterDropDownControl(v **types.ParameterDropDownControl, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -49103,31 +56427,64 @@ func awsRestjson1_deserializeDocumentMemberIdArnPair(v **types.MemberIdArnPair, return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.MemberIdArnPair + var sv *types.ParameterDropDownControl if *v == nil { - sv = &types.MemberIdArnPair{} + sv = &types.ParameterDropDownControl{} } else { sv = *v } for key, value := range shape { switch key { - case "MemberArn": + case "CascadingControlConfiguration": + if err := awsRestjson1_deserializeDocumentCascadingControlConfiguration(&sv.CascadingControlConfiguration, value); err != nil { + return err + } + + case "DisplayOptions": + if err := awsRestjson1_deserializeDocumentDropDownControlDisplayOptions(&sv.DisplayOptions, value); err != nil { + return err + } + + case "ParameterControlId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) } - sv.MemberArn = ptr.String(jtv) + sv.ParameterControlId = ptr.String(jtv) } - case "MemberId": + case "SelectableValues": + if err := awsRestjson1_deserializeDocumentParameterSelectableValues(&sv.SelectableValues, value); err != nil { + return err + } + + case "SourceParameterName": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected RestrictiveResourceId to be of type string, got %T instead", value) + return fmt.Errorf("expected ParameterName to be of type string, got %T instead", value) } - sv.MemberId = ptr.String(jtv) + sv.SourceParameterName = ptr.String(jtv) + } + + case "Title": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected SheetControlTitle to be of type string, got %T instead", value) + } + sv.Title = ptr.String(jtv) + } + + case "Type": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected SheetControlListType to be of type string, got %T instead", value) + } + sv.Type = types.SheetControlListType(jtv) } default: @@ -49139,7 +56496,7 @@ func awsRestjson1_deserializeDocumentMemberIdArnPair(v **types.MemberIdArnPair, return nil } -func awsRestjson1_deserializeDocumentMetricComparisonComputation(v **types.MetricComparisonComputation, value interface{}) error { +func awsRestjson1_deserializeDocumentParameterListControl(v **types.ParameterListControl, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -49152,126 +56509,64 @@ func awsRestjson1_deserializeDocumentMetricComparisonComputation(v **types.Metri return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.MetricComparisonComputation + var sv *types.ParameterListControl if *v == nil { - sv = &types.MetricComparisonComputation{} + sv = &types.ParameterListControl{} } else { sv = *v } for key, value := range shape { switch key { - case "ComputationId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) - } - sv.ComputationId = ptr.String(jtv) + case "CascadingControlConfiguration": + if err := awsRestjson1_deserializeDocumentCascadingControlConfiguration(&sv.CascadingControlConfiguration, value); err != nil { + return err } - case "FromValue": - if err := awsRestjson1_deserializeDocumentMeasureField(&sv.FromValue, value); err != nil { + case "DisplayOptions": + if err := awsRestjson1_deserializeDocumentListControlDisplayOptions(&sv.DisplayOptions, value); err != nil { return err } - case "Name": + case "ParameterControlId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) } - sv.Name = ptr.String(jtv) + sv.ParameterControlId = ptr.String(jtv) } - case "TargetValue": - if err := awsRestjson1_deserializeDocumentMeasureField(&sv.TargetValue, value); err != nil { + case "SelectableValues": + if err := awsRestjson1_deserializeDocumentParameterSelectableValues(&sv.SelectableValues, value); err != nil { return err } - case "Time": - if err := awsRestjson1_deserializeDocumentDimensionField(&sv.Time, value); err != nil { - return err + case "SourceParameterName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ParameterName to be of type string, got %T instead", value) + } + sv.SourceParameterName = ptr.String(jtv) } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentMinimumLabelType(v **types.MinimumLabelType, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.MinimumLabelType - if *v == nil { - sv = &types.MinimumLabelType{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Visibility": + + case "Title": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) + return fmt.Errorf("expected SheetControlTitle to be of type string, got %T instead", value) } - sv.Visibility = types.Visibility(jtv) + sv.Title = ptr.String(jtv) } - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentMissingDataConfiguration(v **types.MissingDataConfiguration, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.MissingDataConfiguration - if *v == nil { - sv = &types.MissingDataConfiguration{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "TreatmentOption": + case "Type": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected MissingDataTreatmentOption to be of type string, got %T instead", value) + return fmt.Errorf("expected SheetControlListType to be of type string, got %T instead", value) } - sv.TreatmentOption = types.MissingDataTreatmentOption(jtv) + sv.Type = types.SheetControlListType(jtv) } default: @@ -49283,7 +56578,7 @@ func awsRestjson1_deserializeDocumentMissingDataConfiguration(v **types.MissingD return nil } -func awsRestjson1_deserializeDocumentMissingDataConfigurationList(v *[]types.MissingDataConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentParameterSelectableValueList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -49296,20 +56591,22 @@ func awsRestjson1_deserializeDocumentMissingDataConfigurationList(v *[]types.Mis return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.MissingDataConfiguration + var cv []string if *v == nil { - cv = []types.MissingDataConfiguration{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col types.MissingDataConfiguration - destAddr := &col - if err := awsRestjson1_deserializeDocumentMissingDataConfiguration(&destAddr, value); err != nil { - return err + var col string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + col = jtv } - col = *destAddr cv = append(cv, col) } @@ -49317,7 +56614,7 @@ func awsRestjson1_deserializeDocumentMissingDataConfigurationList(v *[]types.Mis return nil } -func awsRestjson1_deserializeDocumentMySqlParameters(v **types.MySqlParameters, value interface{}) error { +func awsRestjson1_deserializeDocumentParameterSelectableValues(v **types.ParameterSelectableValues, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -49330,44 +56627,23 @@ func awsRestjson1_deserializeDocumentMySqlParameters(v **types.MySqlParameters, return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.MySqlParameters + var sv *types.ParameterSelectableValues if *v == nil { - sv = &types.MySqlParameters{} + sv = &types.ParameterSelectableValues{} } else { sv = *v } for key, value := range shape { switch key { - case "Database": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Database to be of type string, got %T instead", value) - } - sv.Database = ptr.String(jtv) - } - - case "Host": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Host to be of type string, got %T instead", value) - } - sv.Host = ptr.String(jtv) + case "LinkToDataSetColumn": + if err := awsRestjson1_deserializeDocumentColumnIdentifier(&sv.LinkToDataSetColumn, value); err != nil { + return err } - case "Port": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected Port to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.Port = int32(i64) + case "Values": + if err := awsRestjson1_deserializeDocumentParameterSelectableValueList(&sv.Values, value); err != nil { + return err } default: @@ -49379,7 +56655,7 @@ func awsRestjson1_deserializeDocumentMySqlParameters(v **types.MySqlParameters, return nil } -func awsRestjson1_deserializeDocumentNamespaceError(v **types.NamespaceError, value interface{}) error { +func awsRestjson1_deserializeDocumentParameterSliderControl(v **types.ParameterSliderControl, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -49392,31 +56668,147 @@ func awsRestjson1_deserializeDocumentNamespaceError(v **types.NamespaceError, va return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.NamespaceError + var sv *types.ParameterSliderControl if *v == nil { - sv = &types.NamespaceError{} + sv = &types.ParameterSliderControl{} } else { sv = *v } for key, value := range shape { switch key { - case "Message": + case "DisplayOptions": + if err := awsRestjson1_deserializeDocumentSliderControlDisplayOptions(&sv.DisplayOptions, value); err != nil { + return err + } + + case "MaximumValue": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.MaximumValue = f64 + + case string: + var f64 float64 + switch { + case strings.EqualFold(jtv, "NaN"): + f64 = math.NaN() + + case strings.EqualFold(jtv, "Infinity"): + f64 = math.Inf(1) + + case strings.EqualFold(jtv, "-Infinity"): + f64 = math.Inf(-1) + + default: + return fmt.Errorf("unknown JSON number value: %s", jtv) + + } + sv.MaximumValue = f64 + + default: + return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value) + + } + } + + case "MinimumValue": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.MinimumValue = f64 + + case string: + var f64 float64 + switch { + case strings.EqualFold(jtv, "NaN"): + f64 = math.NaN() + + case strings.EqualFold(jtv, "Infinity"): + f64 = math.Inf(1) + + case strings.EqualFold(jtv, "-Infinity"): + f64 = math.Inf(-1) + + default: + return fmt.Errorf("unknown JSON number value: %s", jtv) + + } + sv.MinimumValue = f64 + + default: + return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value) + + } + } + + case "ParameterControlId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) } - sv.Message = ptr.String(jtv) + sv.ParameterControlId = ptr.String(jtv) } - case "Type": + case "SourceParameterName": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected NamespaceErrorType to be of type string, got %T instead", value) + return fmt.Errorf("expected ParameterName to be of type string, got %T instead", value) } - sv.Type = types.NamespaceErrorType(jtv) + sv.SourceParameterName = ptr.String(jtv) + } + + case "StepSize": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.StepSize = f64 + + case string: + var f64 float64 + switch { + case strings.EqualFold(jtv, "NaN"): + f64 = math.NaN() + + case strings.EqualFold(jtv, "Infinity"): + f64 = math.Inf(1) + + case strings.EqualFold(jtv, "-Infinity"): + f64 = math.Inf(-1) + + default: + return fmt.Errorf("unknown JSON number value: %s", jtv) + + } + sv.StepSize = f64 + + default: + return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value) + + } + } + + case "Title": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected SheetControlTitle to be of type string, got %T instead", value) + } + sv.Title = ptr.String(jtv) } default: @@ -49428,7 +56820,7 @@ func awsRestjson1_deserializeDocumentNamespaceError(v **types.NamespaceError, va return nil } -func awsRestjson1_deserializeDocumentNamespaceInfoV2(v **types.NamespaceInfoV2, value interface{}) error { +func awsRestjson1_deserializeDocumentParameterTextAreaControl(v **types.ParameterTextAreaControl, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -49441,63 +56833,54 @@ func awsRestjson1_deserializeDocumentNamespaceInfoV2(v **types.NamespaceInfoV2, return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.NamespaceInfoV2 + var sv *types.ParameterTextAreaControl if *v == nil { - sv = &types.NamespaceInfoV2{} + sv = &types.ParameterTextAreaControl{} } else { sv = *v } for key, value := range shape { switch key { - case "Arn": + case "Delimiter": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + return fmt.Errorf("expected TextAreaControlDelimiter to be of type string, got %T instead", value) } - sv.Arn = ptr.String(jtv) + sv.Delimiter = ptr.String(jtv) } - case "CapacityRegion": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.CapacityRegion = ptr.String(jtv) + case "DisplayOptions": + if err := awsRestjson1_deserializeDocumentTextAreaControlDisplayOptions(&sv.DisplayOptions, value); err != nil { + return err } - case "CreationStatus": + case "ParameterControlId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected NamespaceStatus to be of type string, got %T instead", value) + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) } - sv.CreationStatus = types.NamespaceStatus(jtv) + sv.ParameterControlId = ptr.String(jtv) } - case "IdentityStore": + case "SourceParameterName": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected IdentityStore to be of type string, got %T instead", value) + return fmt.Errorf("expected ParameterName to be of type string, got %T instead", value) } - sv.IdentityStore = types.IdentityStore(jtv) + sv.SourceParameterName = ptr.String(jtv) } - case "Name": + case "Title": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Namespace to be of type string, got %T instead", value) + return fmt.Errorf("expected SheetControlTitle to be of type string, got %T instead", value) } - sv.Name = ptr.String(jtv) - } - - case "NamespaceError": - if err := awsRestjson1_deserializeDocumentNamespaceError(&sv.NamespaceError, value); err != nil { - return err + sv.Title = ptr.String(jtv) } default: @@ -49509,41 +56892,7 @@ func awsRestjson1_deserializeDocumentNamespaceInfoV2(v **types.NamespaceInfoV2, return nil } -func awsRestjson1_deserializeDocumentNamespaces(v *[]types.NamespaceInfoV2, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []types.NamespaceInfoV2 - if *v == nil { - cv = []types.NamespaceInfoV2{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.NamespaceInfoV2 - destAddr := &col - if err := awsRestjson1_deserializeDocumentNamespaceInfoV2(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsRestjson1_deserializeDocumentNegativeValueConfiguration(v **types.NegativeValueConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentParameterTextFieldControl(v **types.ParameterTextFieldControl, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -49556,22 +56905,45 @@ func awsRestjson1_deserializeDocumentNegativeValueConfiguration(v **types.Negati return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.NegativeValueConfiguration + var sv *types.ParameterTextFieldControl if *v == nil { - sv = &types.NegativeValueConfiguration{} + sv = &types.ParameterTextFieldControl{} } else { sv = *v } for key, value := range shape { switch key { - case "DisplayMode": + case "DisplayOptions": + if err := awsRestjson1_deserializeDocumentTextFieldControlDisplayOptions(&sv.DisplayOptions, value); err != nil { + return err + } + + case "ParameterControlId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected NegativeValueDisplayMode to be of type string, got %T instead", value) + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) } - sv.DisplayMode = types.NegativeValueDisplayMode(jtv) + sv.ParameterControlId = ptr.String(jtv) + } + + case "SourceParameterName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ParameterName to be of type string, got %T instead", value) + } + sv.SourceParameterName = ptr.String(jtv) + } + + case "Title": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected SheetControlTitle to be of type string, got %T instead", value) + } + sv.Title = ptr.String(jtv) } default: @@ -49583,7 +56955,7 @@ func awsRestjson1_deserializeDocumentNegativeValueConfiguration(v **types.Negati return nil } -func awsRestjson1_deserializeDocumentNullValueFormatConfiguration(v **types.NullValueFormatConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentPath(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -49591,39 +56963,35 @@ func awsRestjson1_deserializeDocumentNullValueFormatConfiguration(v **types.Null return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.NullValueFormatConfiguration + var cv []string if *v == nil { - sv = &types.NullValueFormatConfiguration{} + cv = []string{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "NullString": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NullString to be of type string, got %T instead", value) - } - sv.NullString = ptr.String(jtv) + for _, value := range shape { + var col string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - - default: - _, _ = key, value - + col = jtv } + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsRestjson1_deserializeDocumentNumberDisplayFormatConfiguration(v **types.NumberDisplayFormatConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentPercentageDisplayFormatConfiguration(v **types.PercentageDisplayFormatConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -49636,9 +57004,9 @@ func awsRestjson1_deserializeDocumentNumberDisplayFormatConfiguration(v **types. return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.NumberDisplayFormatConfiguration + var sv *types.PercentageDisplayFormatConfiguration if *v == nil { - sv = &types.NumberDisplayFormatConfiguration{} + sv = &types.PercentageDisplayFormatConfiguration{} } else { sv = *v } @@ -49660,15 +57028,6 @@ func awsRestjson1_deserializeDocumentNumberDisplayFormatConfiguration(v **types. return err } - case "NumberScale": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NumberScale to be of type string, got %T instead", value) - } - sv.NumberScale = types.NumberScale(jtv) - } - case "Prefix": if value != nil { jtv, ok := value.(string) @@ -49701,7 +57060,7 @@ func awsRestjson1_deserializeDocumentNumberDisplayFormatConfiguration(v **types. return nil } -func awsRestjson1_deserializeDocumentNumberFormatConfiguration(v **types.NumberFormatConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentPercentileAggregation(v **types.PercentileAggregation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -49714,18 +57073,47 @@ func awsRestjson1_deserializeDocumentNumberFormatConfiguration(v **types.NumberF return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.NumberFormatConfiguration + var sv *types.PercentileAggregation if *v == nil { - sv = &types.NumberFormatConfiguration{} + sv = &types.PercentileAggregation{} } else { sv = *v } for key, value := range shape { switch key { - case "FormatConfiguration": - if err := awsRestjson1_deserializeDocumentNumericFormatConfiguration(&sv.FormatConfiguration, value); err != nil { - return err + case "PercentileValue": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.PercentileValue = ptr.Float64(f64) + + case string: + var f64 float64 + switch { + case strings.EqualFold(jtv, "NaN"): + f64 = math.NaN() + + case strings.EqualFold(jtv, "Infinity"): + f64 = math.Inf(1) + + case strings.EqualFold(jtv, "-Infinity"): + f64 = math.Inf(-1) + + default: + return fmt.Errorf("unknown JSON number value: %s", jtv) + + } + sv.PercentileValue = ptr.Float64(f64) + + default: + return fmt.Errorf("expected PercentileValue to be a JSON Number, got %T instead", value) + + } } default: @@ -49737,7 +57125,7 @@ func awsRestjson1_deserializeDocumentNumberFormatConfiguration(v **types.NumberF return nil } -func awsRestjson1_deserializeDocumentNumericalAggregationFunction(v **types.NumericalAggregationFunction, value interface{}) error { +func awsRestjson1_deserializeDocumentPercentVisibleRange(v **types.PercentVisibleRange, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -49750,27 +57138,81 @@ func awsRestjson1_deserializeDocumentNumericalAggregationFunction(v **types.Nume return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.NumericalAggregationFunction + var sv *types.PercentVisibleRange if *v == nil { - sv = &types.NumericalAggregationFunction{} + sv = &types.PercentVisibleRange{} } else { sv = *v } for key, value := range shape { switch key { - case "PercentileAggregation": - if err := awsRestjson1_deserializeDocumentPercentileAggregation(&sv.PercentileAggregation, value); err != nil { - return err + case "From": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.From = ptr.Float64(f64) + + case string: + var f64 float64 + switch { + case strings.EqualFold(jtv, "NaN"): + f64 = math.NaN() + + case strings.EqualFold(jtv, "Infinity"): + f64 = math.Inf(1) + + case strings.EqualFold(jtv, "-Infinity"): + f64 = math.Inf(-1) + + default: + return fmt.Errorf("unknown JSON number value: %s", jtv) + + } + sv.From = ptr.Float64(f64) + + default: + return fmt.Errorf("expected PercentNumber to be a JSON Number, got %T instead", value) + + } } - case "SimpleNumericalAggregation": + case "To": if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected SimpleNumericalAggregationFunction to be of type string, got %T instead", value) + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.To = ptr.Float64(f64) + + case string: + var f64 float64 + switch { + case strings.EqualFold(jtv, "NaN"): + f64 = math.NaN() + + case strings.EqualFold(jtv, "Infinity"): + f64 = math.Inf(1) + + case strings.EqualFold(jtv, "-Infinity"): + f64 = math.Inf(-1) + + default: + return fmt.Errorf("unknown JSON number value: %s", jtv) + + } + sv.To = ptr.Float64(f64) + + default: + return fmt.Errorf("expected PercentNumber to be a JSON Number, got %T instead", value) + } - sv.SimpleNumericalAggregation = types.SimpleNumericalAggregationFunction(jtv) } default: @@ -49782,7 +57224,7 @@ func awsRestjson1_deserializeDocumentNumericalAggregationFunction(v **types.Nume return nil } -func awsRestjson1_deserializeDocumentNumericalDimensionField(v **types.NumericalDimensionField, value interface{}) error { +func awsRestjson1_deserializeDocumentPeriodOverPeriodComputation(v **types.PeriodOverPeriodComputation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -49795,41 +57237,41 @@ func awsRestjson1_deserializeDocumentNumericalDimensionField(v **types.Numerical return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.NumericalDimensionField + var sv *types.PeriodOverPeriodComputation if *v == nil { - sv = &types.NumericalDimensionField{} + sv = &types.PeriodOverPeriodComputation{} } else { sv = *v } for key, value := range shape { switch key { - case "Column": - if err := awsRestjson1_deserializeDocumentColumnIdentifier(&sv.Column, value); err != nil { - return err + case "ComputationId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + } + sv.ComputationId = ptr.String(jtv) } - case "FieldId": + case "Name": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected FieldId to be of type string, got %T instead", value) + return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.FieldId = ptr.String(jtv) + sv.Name = ptr.String(jtv) } - case "FormatConfiguration": - if err := awsRestjson1_deserializeDocumentNumberFormatConfiguration(&sv.FormatConfiguration, value); err != nil { + case "Time": + if err := awsRestjson1_deserializeDocumentDimensionField(&sv.Time, value); err != nil { return err } - case "HierarchyId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected HierarchyId to be of type string, got %T instead", value) - } - sv.HierarchyId = ptr.String(jtv) + case "Value": + if err := awsRestjson1_deserializeDocumentMeasureField(&sv.Value, value); err != nil { + return err } default: @@ -49841,7 +57283,7 @@ func awsRestjson1_deserializeDocumentNumericalDimensionField(v **types.Numerical return nil } -func awsRestjson1_deserializeDocumentNumericalMeasureField(v **types.NumericalMeasureField, value interface{}) error { +func awsRestjson1_deserializeDocumentPeriodToDateComputation(v **types.PeriodToDateComputation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -49854,36 +57296,49 @@ func awsRestjson1_deserializeDocumentNumericalMeasureField(v **types.NumericalMe return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.NumericalMeasureField + var sv *types.PeriodToDateComputation if *v == nil { - sv = &types.NumericalMeasureField{} + sv = &types.PeriodToDateComputation{} } else { sv = *v } for key, value := range shape { switch key { - case "AggregationFunction": - if err := awsRestjson1_deserializeDocumentNumericalAggregationFunction(&sv.AggregationFunction, value); err != nil { - return err + case "ComputationId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + } + sv.ComputationId = ptr.String(jtv) } - case "Column": - if err := awsRestjson1_deserializeDocumentColumnIdentifier(&sv.Column, value); err != nil { - return err + case "Name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) } - case "FieldId": + case "PeriodTimeGranularity": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected FieldId to be of type string, got %T instead", value) + return fmt.Errorf("expected TimeGranularity to be of type string, got %T instead", value) } - sv.FieldId = ptr.String(jtv) + sv.PeriodTimeGranularity = types.TimeGranularity(jtv) } - case "FormatConfiguration": - if err := awsRestjson1_deserializeDocumentNumberFormatConfiguration(&sv.FormatConfiguration, value); err != nil { + case "Time": + if err := awsRestjson1_deserializeDocumentDimensionField(&sv.Time, value); err != nil { + return err + } + + case "Value": + if err := awsRestjson1_deserializeDocumentMeasureField(&sv.Value, value); err != nil { return err } @@ -49896,7 +57351,7 @@ func awsRestjson1_deserializeDocumentNumericalMeasureField(v **types.NumericalMe return nil } -func awsRestjson1_deserializeDocumentNumericAxisOptions(v **types.NumericAxisOptions, value interface{}) error { +func awsRestjson1_deserializeDocumentPhysicalTable(v *types.PhysicalTable, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -49909,35 +57364,54 @@ func awsRestjson1_deserializeDocumentNumericAxisOptions(v **types.NumericAxisOpt return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.NumericAxisOptions - if *v == nil { - sv = &types.NumericAxisOptions{} - } else { - sv = *v - } - + var uv types.PhysicalTable +loop: for key, value := range shape { + if value == nil { + continue + } switch key { - case "Range": - if err := awsRestjson1_deserializeDocumentAxisDisplayRange(&sv.Range, value); err != nil { + case "CustomSql": + var mv types.CustomSql + destAddr := &mv + if err := awsRestjson1_deserializeDocumentCustomSql(&destAddr, value); err != nil { return err } + mv = *destAddr + uv = &types.PhysicalTableMemberCustomSql{Value: mv} + break loop - case "Scale": - if err := awsRestjson1_deserializeDocumentAxisScale(&sv.Scale, value); err != nil { + case "RelationalTable": + var mv types.RelationalTable + destAddr := &mv + if err := awsRestjson1_deserializeDocumentRelationalTable(&destAddr, value); err != nil { + return err + } + mv = *destAddr + uv = &types.PhysicalTableMemberRelationalTable{Value: mv} + break loop + + case "S3Source": + var mv types.S3Source + destAddr := &mv + if err := awsRestjson1_deserializeDocumentS3Source(&destAddr, value); err != nil { return err } + mv = *destAddr + uv = &types.PhysicalTableMemberS3Source{Value: mv} + break loop default: - _, _ = key, value + uv = &types.UnknownUnionMember{Tag: key} + break loop } } - *v = sv + *v = uv return nil } -func awsRestjson1_deserializeDocumentNumericEqualityDrillDownFilter(v **types.NumericEqualityDrillDownFilter, value interface{}) error { +func awsRestjson1_deserializeDocumentPhysicalTableMap(v *map[string]types.PhysicalTable, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -49950,64 +57424,28 @@ func awsRestjson1_deserializeDocumentNumericEqualityDrillDownFilter(v **types.Nu return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.NumericEqualityDrillDownFilter + var mv map[string]types.PhysicalTable if *v == nil { - sv = &types.NumericEqualityDrillDownFilter{} + mv = map[string]types.PhysicalTable{} } else { - sv = *v + mv = *v } for key, value := range shape { - switch key { - case "Column": - if err := awsRestjson1_deserializeDocumentColumnIdentifier(&sv.Column, value); err != nil { - return err - } - - case "Value": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.Value = f64 - - case string: - var f64 float64 - switch { - case strings.EqualFold(jtv, "NaN"): - f64 = math.NaN() - - case strings.EqualFold(jtv, "Infinity"): - f64 = math.Inf(1) - - case strings.EqualFold(jtv, "-Infinity"): - f64 = math.Inf(-1) - - default: - return fmt.Errorf("unknown JSON number value: %s", jtv) - - } - sv.Value = f64 - - default: - return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value) - - } - } - - default: - _, _ = key, value - + var parsedVal types.PhysicalTable + mapVar := parsedVal + if err := awsRestjson1_deserializeDocumentPhysicalTable(&mapVar, value); err != nil { + return err } + parsedVal = mapVar + mv[key] = parsedVal + } - *v = sv + *v = mv return nil } -func awsRestjson1_deserializeDocumentNumericEqualityFilter(v **types.NumericEqualityFilter, value interface{}) error { +func awsRestjson1_deserializeDocumentPieChartAggregatedFieldWells(v **types.PieChartAggregatedFieldWells, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -50020,102 +57458,28 @@ func awsRestjson1_deserializeDocumentNumericEqualityFilter(v **types.NumericEqua return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.NumericEqualityFilter + var sv *types.PieChartAggregatedFieldWells if *v == nil { - sv = &types.NumericEqualityFilter{} + sv = &types.PieChartAggregatedFieldWells{} } else { sv = *v } for key, value := range shape { switch key { - case "AggregationFunction": - if err := awsRestjson1_deserializeDocumentAggregationFunction(&sv.AggregationFunction, value); err != nil { + case "Category": + if err := awsRestjson1_deserializeDocumentDimensionFieldList(&sv.Category, value); err != nil { return err } - case "Column": - if err := awsRestjson1_deserializeDocumentColumnIdentifier(&sv.Column, value); err != nil { + case "SmallMultiples": + if err := awsRestjson1_deserializeDocumentSmallMultiplesDimensionFieldList(&sv.SmallMultiples, value); err != nil { return err } - case "FilterId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) - } - sv.FilterId = ptr.String(jtv) - } - - case "MatchOperator": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NumericEqualityMatchOperator to be of type string, got %T instead", value) - } - sv.MatchOperator = types.NumericEqualityMatchOperator(jtv) - } - - case "NullOption": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected FilterNullOption to be of type string, got %T instead", value) - } - sv.NullOption = types.FilterNullOption(jtv) - } - - case "ParameterName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ParameterName to be of type string, got %T instead", value) - } - sv.ParameterName = ptr.String(jtv) - } - - case "SelectAllOptions": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NumericFilterSelectAllOptions to be of type string, got %T instead", value) - } - sv.SelectAllOptions = types.NumericFilterSelectAllOptions(jtv) - } - - case "Value": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.Value = ptr.Float64(f64) - - case string: - var f64 float64 - switch { - case strings.EqualFold(jtv, "NaN"): - f64 = math.NaN() - - case strings.EqualFold(jtv, "Infinity"): - f64 = math.Inf(1) - - case strings.EqualFold(jtv, "-Infinity"): - f64 = math.Inf(-1) - - default: - return fmt.Errorf("unknown JSON number value: %s", jtv) - - } - sv.Value = ptr.Float64(f64) - - default: - return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value) - - } + case "Values": + if err := awsRestjson1_deserializeDocumentMeasureFieldList(&sv.Values, value); err != nil { + return err } default: @@ -50127,7 +57491,7 @@ func awsRestjson1_deserializeDocumentNumericEqualityFilter(v **types.NumericEqua return nil } -func awsRestjson1_deserializeDocumentNumericFormatConfiguration(v **types.NumericFormatConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentPieChartConfiguration(v **types.PieChartConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -50140,124 +57504,68 @@ func awsRestjson1_deserializeDocumentNumericFormatConfiguration(v **types.Numeri return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.NumericFormatConfiguration + var sv *types.PieChartConfiguration if *v == nil { - sv = &types.NumericFormatConfiguration{} + sv = &types.PieChartConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "CurrencyDisplayFormatConfiguration": - if err := awsRestjson1_deserializeDocumentCurrencyDisplayFormatConfiguration(&sv.CurrencyDisplayFormatConfiguration, value); err != nil { + case "CategoryLabelOptions": + if err := awsRestjson1_deserializeDocumentChartAxisLabelOptions(&sv.CategoryLabelOptions, value); err != nil { return err } - case "NumberDisplayFormatConfiguration": - if err := awsRestjson1_deserializeDocumentNumberDisplayFormatConfiguration(&sv.NumberDisplayFormatConfiguration, value); err != nil { + case "ContributionAnalysisDefaults": + if err := awsRestjson1_deserializeDocumentContributionAnalysisDefaultList(&sv.ContributionAnalysisDefaults, value); err != nil { return err } - case "PercentageDisplayFormatConfiguration": - if err := awsRestjson1_deserializeDocumentPercentageDisplayFormatConfiguration(&sv.PercentageDisplayFormatConfiguration, value); err != nil { + case "DataLabels": + if err := awsRestjson1_deserializeDocumentDataLabelOptions(&sv.DataLabels, value); err != nil { return err } - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentNumericRangeFilter(v **types.NumericRangeFilter, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.NumericRangeFilter - if *v == nil { - sv = &types.NumericRangeFilter{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "AggregationFunction": - if err := awsRestjson1_deserializeDocumentAggregationFunction(&sv.AggregationFunction, value); err != nil { + case "DonutOptions": + if err := awsRestjson1_deserializeDocumentDonutOptions(&sv.DonutOptions, value); err != nil { return err } - case "Column": - if err := awsRestjson1_deserializeDocumentColumnIdentifier(&sv.Column, value); err != nil { + case "FieldWells": + if err := awsRestjson1_deserializeDocumentPieChartFieldWells(&sv.FieldWells, value); err != nil { return err } - case "FilterId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) - } - sv.FilterId = ptr.String(jtv) - } - - case "IncludeMaximum": - if value != nil { - jtv, ok := value.(bool) - if !ok { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) - } - sv.IncludeMaximum = ptr.Bool(jtv) + case "Legend": + if err := awsRestjson1_deserializeDocumentLegendOptions(&sv.Legend, value); err != nil { + return err } - case "IncludeMinimum": - if value != nil { - jtv, ok := value.(bool) - if !ok { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) - } - sv.IncludeMinimum = ptr.Bool(jtv) + case "SmallMultiplesOptions": + if err := awsRestjson1_deserializeDocumentSmallMultiplesOptions(&sv.SmallMultiplesOptions, value); err != nil { + return err } - case "NullOption": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected FilterNullOption to be of type string, got %T instead", value) - } - sv.NullOption = types.FilterNullOption(jtv) + case "SortConfiguration": + if err := awsRestjson1_deserializeDocumentPieChartSortConfiguration(&sv.SortConfiguration, value); err != nil { + return err } - case "RangeMaximum": - if err := awsRestjson1_deserializeDocumentNumericRangeFilterValue(&sv.RangeMaximum, value); err != nil { + case "Tooltip": + if err := awsRestjson1_deserializeDocumentTooltipOptions(&sv.Tooltip, value); err != nil { return err } - case "RangeMinimum": - if err := awsRestjson1_deserializeDocumentNumericRangeFilterValue(&sv.RangeMinimum, value); err != nil { + case "ValueLabelOptions": + if err := awsRestjson1_deserializeDocumentChartAxisLabelOptions(&sv.ValueLabelOptions, value); err != nil { return err } - case "SelectAllOptions": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NumericFilterSelectAllOptions to be of type string, got %T instead", value) - } - sv.SelectAllOptions = types.NumericFilterSelectAllOptions(jtv) + case "VisualPalette": + if err := awsRestjson1_deserializeDocumentVisualPalette(&sv.VisualPalette, value); err != nil { + return err } default: @@ -50269,7 +57577,7 @@ func awsRestjson1_deserializeDocumentNumericRangeFilter(v **types.NumericRangeFi return nil } -func awsRestjson1_deserializeDocumentNumericRangeFilterValue(v **types.NumericRangeFilterValue, value interface{}) error { +func awsRestjson1_deserializeDocumentPieChartFieldWells(v **types.PieChartFieldWells, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -50282,56 +57590,18 @@ func awsRestjson1_deserializeDocumentNumericRangeFilterValue(v **types.NumericRa return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.NumericRangeFilterValue + var sv *types.PieChartFieldWells if *v == nil { - sv = &types.NumericRangeFilterValue{} + sv = &types.PieChartFieldWells{} } else { sv = *v } for key, value := range shape { switch key { - case "Parameter": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ParameterName to be of type string, got %T instead", value) - } - sv.Parameter = ptr.String(jtv) - } - - case "StaticValue": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.StaticValue = ptr.Float64(f64) - - case string: - var f64 float64 - switch { - case strings.EqualFold(jtv, "NaN"): - f64 = math.NaN() - - case strings.EqualFold(jtv, "Infinity"): - f64 = math.Inf(1) - - case strings.EqualFold(jtv, "-Infinity"): - f64 = math.Inf(-1) - - default: - return fmt.Errorf("unknown JSON number value: %s", jtv) - - } - sv.StaticValue = ptr.Float64(f64) - - default: - return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value) - - } + case "PieChartAggregatedFieldWells": + if err := awsRestjson1_deserializeDocumentPieChartAggregatedFieldWells(&sv.PieChartAggregatedFieldWells, value); err != nil { + return err } default: @@ -50343,7 +57613,7 @@ func awsRestjson1_deserializeDocumentNumericRangeFilterValue(v **types.NumericRa return nil } -func awsRestjson1_deserializeDocumentNumericSeparatorConfiguration(v **types.NumericSeparatorConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentPieChartSortConfiguration(v **types.PieChartSortConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -50356,26 +57626,32 @@ func awsRestjson1_deserializeDocumentNumericSeparatorConfiguration(v **types.Num return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.NumericSeparatorConfiguration + var sv *types.PieChartSortConfiguration if *v == nil { - sv = &types.NumericSeparatorConfiguration{} + sv = &types.PieChartSortConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "DecimalSeparator": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NumericSeparatorSymbol to be of type string, got %T instead", value) - } - sv.DecimalSeparator = types.NumericSeparatorSymbol(jtv) + case "CategoryItemsLimit": + if err := awsRestjson1_deserializeDocumentItemsLimitConfiguration(&sv.CategoryItemsLimit, value); err != nil { + return err } - case "ThousandsSeparator": - if err := awsRestjson1_deserializeDocumentThousandSeparatorOptions(&sv.ThousandsSeparator, value); err != nil { + case "CategorySort": + if err := awsRestjson1_deserializeDocumentFieldSortOptionsList(&sv.CategorySort, value); err != nil { + return err + } + + case "SmallMultiplesLimitConfiguration": + if err := awsRestjson1_deserializeDocumentItemsLimitConfiguration(&sv.SmallMultiplesLimitConfiguration, value); err != nil { + return err + } + + case "SmallMultiplesSort": + if err := awsRestjson1_deserializeDocumentFieldSortOptionsList(&sv.SmallMultiplesSort, value); err != nil { return err } @@ -50388,7 +57664,7 @@ func awsRestjson1_deserializeDocumentNumericSeparatorConfiguration(v **types.Num return nil } -func awsRestjson1_deserializeDocumentOracleParameters(v **types.OracleParameters, value interface{}) error { +func awsRestjson1_deserializeDocumentPieChartVisual(v **types.PieChartVisual, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -50401,44 +57677,47 @@ func awsRestjson1_deserializeDocumentOracleParameters(v **types.OracleParameters return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.OracleParameters + var sv *types.PieChartVisual if *v == nil { - sv = &types.OracleParameters{} + sv = &types.PieChartVisual{} } else { sv = *v } for key, value := range shape { switch key { - case "Database": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Database to be of type string, got %T instead", value) - } - sv.Database = ptr.String(jtv) + case "Actions": + if err := awsRestjson1_deserializeDocumentVisualCustomActionList(&sv.Actions, value); err != nil { + return err } - case "Host": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Host to be of type string, got %T instead", value) - } - sv.Host = ptr.String(jtv) + case "ChartConfiguration": + if err := awsRestjson1_deserializeDocumentPieChartConfiguration(&sv.ChartConfiguration, value); err != nil { + return err + } + + case "ColumnHierarchies": + if err := awsRestjson1_deserializeDocumentColumnHierarchyList(&sv.ColumnHierarchies, value); err != nil { + return err + } + + case "Subtitle": + if err := awsRestjson1_deserializeDocumentVisualSubtitleLabelOptions(&sv.Subtitle, value); err != nil { + return err + } + + case "Title": + if err := awsRestjson1_deserializeDocumentVisualTitleLabelOptions(&sv.Title, value); err != nil { + return err } - case "Port": + case "VisualId": if value != nil { - jtv, ok := value.(json.Number) + jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Port to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) } - sv.Port = int32(i64) + sv.VisualId = ptr.String(jtv) } default: @@ -50450,7 +57729,7 @@ func awsRestjson1_deserializeDocumentOracleParameters(v **types.OracleParameters return nil } -func awsRestjson1_deserializeDocumentOutputColumn(v **types.OutputColumn, value interface{}) error { +func awsRestjson1_deserializeDocumentPivotFieldSortOptions(v **types.PivotFieldSortOptions, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -50463,40 +57742,27 @@ func awsRestjson1_deserializeDocumentOutputColumn(v **types.OutputColumn, value return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.OutputColumn + var sv *types.PivotFieldSortOptions if *v == nil { - sv = &types.OutputColumn{} + sv = &types.PivotFieldSortOptions{} } else { sv = *v } for key, value := range shape { switch key { - case "Description": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ColumnDescriptiveText to be of type string, got %T instead", value) - } - sv.Description = ptr.String(jtv) - } - - case "Name": + case "FieldId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ColumnName to be of type string, got %T instead", value) + return fmt.Errorf("expected FieldId to be of type string, got %T instead", value) } - sv.Name = ptr.String(jtv) + sv.FieldId = ptr.String(jtv) } - case "Type": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ColumnDataType to be of type string, got %T instead", value) - } - sv.Type = types.ColumnDataType(jtv) + case "SortBy": + if err := awsRestjson1_deserializeDocumentPivotTableSortBy(&sv.SortBy, value); err != nil { + return err } default: @@ -50508,7 +57774,7 @@ func awsRestjson1_deserializeDocumentOutputColumn(v **types.OutputColumn, value return nil } -func awsRestjson1_deserializeDocumentOutputColumnList(v *[]types.OutputColumn, value interface{}) error { +func awsRestjson1_deserializeDocumentPivotFieldSortOptionsList(v *[]types.PivotFieldSortOptions, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -50521,17 +57787,17 @@ func awsRestjson1_deserializeDocumentOutputColumnList(v *[]types.OutputColumn, v return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.OutputColumn + var cv []types.PivotFieldSortOptions if *v == nil { - cv = []types.OutputColumn{} + cv = []types.PivotFieldSortOptions{} } else { cv = *v } for _, value := range shape { - var col types.OutputColumn + var col types.PivotFieldSortOptions destAddr := &col - if err := awsRestjson1_deserializeDocumentOutputColumn(&destAddr, value); err != nil { + if err := awsRestjson1_deserializeDocumentPivotFieldSortOptions(&destAddr, value); err != nil { return err } col = *destAddr @@ -50542,7 +57808,41 @@ func awsRestjson1_deserializeDocumentOutputColumnList(v *[]types.OutputColumn, v return nil } -func awsRestjson1_deserializeDocumentPaginationConfiguration(v **types.PaginationConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentPivotMeasureFieldList(v *[]types.MeasureField, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.MeasureField + if *v == nil { + cv = []types.MeasureField{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.MeasureField + destAddr := &col + if err := awsRestjson1_deserializeDocumentMeasureField(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentPivotTableAggregatedFieldWells(v **types.PivotTableAggregatedFieldWells, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -50555,39 +57855,28 @@ func awsRestjson1_deserializeDocumentPaginationConfiguration(v **types.Paginatio return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.PaginationConfiguration + var sv *types.PivotTableAggregatedFieldWells if *v == nil { - sv = &types.PaginationConfiguration{} + sv = &types.PivotTableAggregatedFieldWells{} } else { sv = *v } for key, value := range shape { switch key { - case "PageNumber": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected PageNumber to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.PageNumber = ptr.Int64(i64) + case "Columns": + if err := awsRestjson1_deserializeDocumentPivotTableDimensionList(&sv.Columns, value); err != nil { + return err } - case "PageSize": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected Long to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.PageSize = ptr.Int64(i64) + case "Rows": + if err := awsRestjson1_deserializeDocumentPivotTableDimensionList(&sv.Rows, value); err != nil { + return err + } + + case "Values": + if err := awsRestjson1_deserializeDocumentPivotMeasureFieldList(&sv.Values, value); err != nil { + return err } default: @@ -50599,7 +57888,7 @@ func awsRestjson1_deserializeDocumentPaginationConfiguration(v **types.Paginatio return nil } -func awsRestjson1_deserializeDocumentPanelConfiguration(v **types.PanelConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentPivotTableCellConditionalFormatting(v **types.PivotTableCellConditionalFormatting, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -50612,89 +57901,31 @@ func awsRestjson1_deserializeDocumentPanelConfiguration(v **types.PanelConfigura return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.PanelConfiguration + var sv *types.PivotTableCellConditionalFormatting if *v == nil { - sv = &types.PanelConfiguration{} + sv = &types.PivotTableCellConditionalFormatting{} } else { sv = *v } for key, value := range shape { switch key { - case "BackgroundColor": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected HexColorWithTransparency to be of type string, got %T instead", value) - } - sv.BackgroundColor = ptr.String(jtv) - } - - case "BackgroundVisibility": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) - } - sv.BackgroundVisibility = types.Visibility(jtv) - } - - case "BorderColor": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected HexColorWithTransparency to be of type string, got %T instead", value) - } - sv.BorderColor = ptr.String(jtv) - } - - case "BorderStyle": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected PanelBorderStyle to be of type string, got %T instead", value) - } - sv.BorderStyle = types.PanelBorderStyle(jtv) - } - - case "BorderThickness": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected PixelLength to be of type string, got %T instead", value) - } - sv.BorderThickness = ptr.String(jtv) - } - - case "BorderVisibility": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) - } - sv.BorderVisibility = types.Visibility(jtv) - } - - case "GutterSpacing": + case "FieldId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected PixelLength to be of type string, got %T instead", value) + return fmt.Errorf("expected FieldId to be of type string, got %T instead", value) } - sv.GutterSpacing = ptr.String(jtv) + sv.FieldId = ptr.String(jtv) } - case "GutterVisibility": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) - } - sv.GutterVisibility = types.Visibility(jtv) + case "Scope": + if err := awsRestjson1_deserializeDocumentPivotTableConditionalFormattingScope(&sv.Scope, value); err != nil { + return err } - case "Title": - if err := awsRestjson1_deserializeDocumentPanelTitleOptions(&sv.Title, value); err != nil { + case "TextFormat": + if err := awsRestjson1_deserializeDocumentTextConditionalFormat(&sv.TextFormat, value); err != nil { return err } @@ -50707,7 +57938,7 @@ func awsRestjson1_deserializeDocumentPanelConfiguration(v **types.PanelConfigura return nil } -func awsRestjson1_deserializeDocumentPanelTitleOptions(v **types.PanelTitleOptions, value interface{}) error { +func awsRestjson1_deserializeDocumentPivotTableConditionalFormatting(v **types.PivotTableConditionalFormatting, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -50720,38 +57951,20 @@ func awsRestjson1_deserializeDocumentPanelTitleOptions(v **types.PanelTitleOptio return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.PanelTitleOptions + var sv *types.PivotTableConditionalFormatting if *v == nil { - sv = &types.PanelTitleOptions{} + sv = &types.PivotTableConditionalFormatting{} } else { sv = *v } for key, value := range shape { switch key { - case "FontConfiguration": - if err := awsRestjson1_deserializeDocumentFontConfiguration(&sv.FontConfiguration, value); err != nil { + case "ConditionalFormattingOptions": + if err := awsRestjson1_deserializeDocumentPivotTableConditionalFormattingOptionList(&sv.ConditionalFormattingOptions, value); err != nil { return err } - case "HorizontalTextAlignment": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected HorizontalTextAlignment to be of type string, got %T instead", value) - } - sv.HorizontalTextAlignment = types.HorizontalTextAlignment(jtv) - } - - case "Visibility": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) - } - sv.Visibility = types.Visibility(jtv) - } - default: _, _ = key, value @@ -50761,7 +57974,7 @@ func awsRestjson1_deserializeDocumentPanelTitleOptions(v **types.PanelTitleOptio return nil } -func awsRestjson1_deserializeDocumentParameterControl(v **types.ParameterControl, value interface{}) error { +func awsRestjson1_deserializeDocumentPivotTableConditionalFormattingOption(v **types.PivotTableConditionalFormattingOption, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -50774,42 +57987,17 @@ func awsRestjson1_deserializeDocumentParameterControl(v **types.ParameterControl return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ParameterControl + var sv *types.PivotTableConditionalFormattingOption if *v == nil { - sv = &types.ParameterControl{} + sv = &types.PivotTableConditionalFormattingOption{} } else { sv = *v } for key, value := range shape { switch key { - case "DateTimePicker": - if err := awsRestjson1_deserializeDocumentParameterDateTimePickerControl(&sv.DateTimePicker, value); err != nil { - return err - } - - case "Dropdown": - if err := awsRestjson1_deserializeDocumentParameterDropDownControl(&sv.Dropdown, value); err != nil { - return err - } - - case "List": - if err := awsRestjson1_deserializeDocumentParameterListControl(&sv.List, value); err != nil { - return err - } - - case "Slider": - if err := awsRestjson1_deserializeDocumentParameterSliderControl(&sv.Slider, value); err != nil { - return err - } - - case "TextArea": - if err := awsRestjson1_deserializeDocumentParameterTextAreaControl(&sv.TextArea, value); err != nil { - return err - } - - case "TextField": - if err := awsRestjson1_deserializeDocumentParameterTextFieldControl(&sv.TextField, value); err != nil { + case "Cell": + if err := awsRestjson1_deserializeDocumentPivotTableCellConditionalFormatting(&sv.Cell, value); err != nil { return err } @@ -50822,7 +58010,7 @@ func awsRestjson1_deserializeDocumentParameterControl(v **types.ParameterControl return nil } -func awsRestjson1_deserializeDocumentParameterControlList(v *[]types.ParameterControl, value interface{}) error { +func awsRestjson1_deserializeDocumentPivotTableConditionalFormattingOptionList(v *[]types.PivotTableConditionalFormattingOption, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -50835,17 +58023,17 @@ func awsRestjson1_deserializeDocumentParameterControlList(v *[]types.ParameterCo return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.ParameterControl + var cv []types.PivotTableConditionalFormattingOption if *v == nil { - cv = []types.ParameterControl{} + cv = []types.PivotTableConditionalFormattingOption{} } else { cv = *v } for _, value := range shape { - var col types.ParameterControl + var col types.PivotTableConditionalFormattingOption destAddr := &col - if err := awsRestjson1_deserializeDocumentParameterControl(&destAddr, value); err != nil { + if err := awsRestjson1_deserializeDocumentPivotTableConditionalFormattingOption(&destAddr, value); err != nil { return err } col = *destAddr @@ -50856,7 +58044,7 @@ func awsRestjson1_deserializeDocumentParameterControlList(v *[]types.ParameterCo return nil } -func awsRestjson1_deserializeDocumentParameterDateTimePickerControl(v **types.ParameterDateTimePickerControl, value interface{}) error { +func awsRestjson1_deserializeDocumentPivotTableConditionalFormattingScope(v **types.PivotTableConditionalFormattingScope, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -50869,45 +58057,22 @@ func awsRestjson1_deserializeDocumentParameterDateTimePickerControl(v **types.Pa return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ParameterDateTimePickerControl + var sv *types.PivotTableConditionalFormattingScope if *v == nil { - sv = &types.ParameterDateTimePickerControl{} + sv = &types.PivotTableConditionalFormattingScope{} } else { sv = *v } for key, value := range shape { switch key { - case "DisplayOptions": - if err := awsRestjson1_deserializeDocumentDateTimePickerControlDisplayOptions(&sv.DisplayOptions, value); err != nil { - return err - } - - case "ParameterControlId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) - } - sv.ParameterControlId = ptr.String(jtv) - } - - case "SourceParameterName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ParameterName to be of type string, got %T instead", value) - } - sv.SourceParameterName = ptr.String(jtv) - } - - case "Title": + case "Role": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected SheetControlTitle to be of type string, got %T instead", value) + return fmt.Errorf("expected PivotTableConditionalFormattingScopeRole to be of type string, got %T instead", value) } - sv.Title = ptr.String(jtv) + sv.Role = types.PivotTableConditionalFormattingScopeRole(jtv) } default: @@ -50919,7 +58084,7 @@ func awsRestjson1_deserializeDocumentParameterDateTimePickerControl(v **types.Pa return nil } -func awsRestjson1_deserializeDocumentParameterDeclaration(v **types.ParameterDeclaration, value interface{}) error { +func awsRestjson1_deserializeDocumentPivotTableConfiguration(v **types.PivotTableConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -50932,32 +58097,42 @@ func awsRestjson1_deserializeDocumentParameterDeclaration(v **types.ParameterDec return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ParameterDeclaration + var sv *types.PivotTableConfiguration if *v == nil { - sv = &types.ParameterDeclaration{} + sv = &types.PivotTableConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "DateTimeParameterDeclaration": - if err := awsRestjson1_deserializeDocumentDateTimeParameterDeclaration(&sv.DateTimeParameterDeclaration, value); err != nil { + case "FieldOptions": + if err := awsRestjson1_deserializeDocumentPivotTableFieldOptions(&sv.FieldOptions, value); err != nil { return err } - case "DecimalParameterDeclaration": - if err := awsRestjson1_deserializeDocumentDecimalParameterDeclaration(&sv.DecimalParameterDeclaration, value); err != nil { + case "FieldWells": + if err := awsRestjson1_deserializeDocumentPivotTableFieldWells(&sv.FieldWells, value); err != nil { return err } - case "IntegerParameterDeclaration": - if err := awsRestjson1_deserializeDocumentIntegerParameterDeclaration(&sv.IntegerParameterDeclaration, value); err != nil { + case "PaginatedReportOptions": + if err := awsRestjson1_deserializeDocumentPivotTablePaginatedReportOptions(&sv.PaginatedReportOptions, value); err != nil { return err } - case "StringParameterDeclaration": - if err := awsRestjson1_deserializeDocumentStringParameterDeclaration(&sv.StringParameterDeclaration, value); err != nil { + case "SortConfiguration": + if err := awsRestjson1_deserializeDocumentPivotTableSortConfiguration(&sv.SortConfiguration, value); err != nil { + return err + } + + case "TableOptions": + if err := awsRestjson1_deserializeDocumentPivotTableOptions(&sv.TableOptions, value); err != nil { + return err + } + + case "TotalOptions": + if err := awsRestjson1_deserializeDocumentPivotTableTotalOptions(&sv.TotalOptions, value); err != nil { return err } @@ -50970,7 +58145,52 @@ func awsRestjson1_deserializeDocumentParameterDeclaration(v **types.ParameterDec return nil } -func awsRestjson1_deserializeDocumentParameterDeclarationList(v *[]types.ParameterDeclaration, value interface{}) error { +func awsRestjson1_deserializeDocumentPivotTableDataPathOption(v **types.PivotTableDataPathOption, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.PivotTableDataPathOption + if *v == nil { + sv = &types.PivotTableDataPathOption{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "DataPathList": + if err := awsRestjson1_deserializeDocumentDataPathValueList(&sv.DataPathList, value); err != nil { + return err + } + + case "Width": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected PixelLength to be of type string, got %T instead", value) + } + sv.Width = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentPivotTableDataPathOptionList(v *[]types.PivotTableDataPathOption, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -50983,17 +58203,17 @@ func awsRestjson1_deserializeDocumentParameterDeclarationList(v *[]types.Paramet return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.ParameterDeclaration + var cv []types.PivotTableDataPathOption if *v == nil { - cv = []types.ParameterDeclaration{} + cv = []types.PivotTableDataPathOption{} } else { cv = *v } for _, value := range shape { - var col types.ParameterDeclaration + var col types.PivotTableDataPathOption destAddr := &col - if err := awsRestjson1_deserializeDocumentParameterDeclaration(&destAddr, value); err != nil { + if err := awsRestjson1_deserializeDocumentPivotTableDataPathOption(&destAddr, value); err != nil { return err } col = *destAddr @@ -51004,7 +58224,7 @@ func awsRestjson1_deserializeDocumentParameterDeclarationList(v *[]types.Paramet return nil } -func awsRestjson1_deserializeDocumentParameterDropDownControl(v **types.ParameterDropDownControl, value interface{}) error { +func awsRestjson1_deserializeDocumentPivotTableDimensionList(v *[]types.DimensionField, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -51012,81 +58232,33 @@ func awsRestjson1_deserializeDocumentParameterDropDownControl(v **types.Paramete return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ParameterDropDownControl + var cv []types.DimensionField if *v == nil { - sv = &types.ParameterDropDownControl{} + cv = []types.DimensionField{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "CascadingControlConfiguration": - if err := awsRestjson1_deserializeDocumentCascadingControlConfiguration(&sv.CascadingControlConfiguration, value); err != nil { - return err - } - - case "DisplayOptions": - if err := awsRestjson1_deserializeDocumentDropDownControlDisplayOptions(&sv.DisplayOptions, value); err != nil { - return err - } - - case "ParameterControlId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) - } - sv.ParameterControlId = ptr.String(jtv) - } - - case "SelectableValues": - if err := awsRestjson1_deserializeDocumentParameterSelectableValues(&sv.SelectableValues, value); err != nil { - return err - } - - case "SourceParameterName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ParameterName to be of type string, got %T instead", value) - } - sv.SourceParameterName = ptr.String(jtv) - } - - case "Title": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected SheetControlTitle to be of type string, got %T instead", value) - } - sv.Title = ptr.String(jtv) - } - - case "Type": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected SheetControlListType to be of type string, got %T instead", value) - } - sv.Type = types.SheetControlListType(jtv) - } - - default: - _, _ = key, value - + for _, value := range shape { + var col types.DimensionField + destAddr := &col + if err := awsRestjson1_deserializeDocumentDimensionField(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsRestjson1_deserializeDocumentParameterListControl(v **types.ParameterListControl, value interface{}) error { +func awsRestjson1_deserializeDocumentPivotTableFieldOption(v **types.PivotTableFieldOption, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -51099,64 +58271,40 @@ func awsRestjson1_deserializeDocumentParameterListControl(v **types.ParameterLis return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ParameterListControl + var sv *types.PivotTableFieldOption if *v == nil { - sv = &types.ParameterListControl{} + sv = &types.PivotTableFieldOption{} } else { sv = *v } for key, value := range shape { - switch key { - case "CascadingControlConfiguration": - if err := awsRestjson1_deserializeDocumentCascadingControlConfiguration(&sv.CascadingControlConfiguration, value); err != nil { - return err - } - - case "DisplayOptions": - if err := awsRestjson1_deserializeDocumentListControlDisplayOptions(&sv.DisplayOptions, value); err != nil { - return err - } - - case "ParameterControlId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) - } - sv.ParameterControlId = ptr.String(jtv) - } - - case "SelectableValues": - if err := awsRestjson1_deserializeDocumentParameterSelectableValues(&sv.SelectableValues, value); err != nil { - return err - } - - case "SourceParameterName": + switch key { + case "CustomLabel": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ParameterName to be of type string, got %T instead", value) + return fmt.Errorf("expected CustomLabel to be of type string, got %T instead", value) } - sv.SourceParameterName = ptr.String(jtv) + sv.CustomLabel = ptr.String(jtv) } - case "Title": + case "FieldId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected SheetControlTitle to be of type string, got %T instead", value) + return fmt.Errorf("expected FieldId to be of type string, got %T instead", value) } - sv.Title = ptr.String(jtv) + sv.FieldId = ptr.String(jtv) } - case "Type": + case "Visibility": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected SheetControlListType to be of type string, got %T instead", value) + return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) } - sv.Type = types.SheetControlListType(jtv) + sv.Visibility = types.Visibility(jtv) } default: @@ -51168,7 +58316,7 @@ func awsRestjson1_deserializeDocumentParameterListControl(v **types.ParameterLis return nil } -func awsRestjson1_deserializeDocumentParameterSelectableValueList(v *[]string, value interface{}) error { +func awsRestjson1_deserializeDocumentPivotTableFieldOptionList(v *[]types.PivotTableFieldOption, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -51181,22 +58329,20 @@ func awsRestjson1_deserializeDocumentParameterSelectableValueList(v *[]string, v return fmt.Errorf("unexpected JSON type %v", value) } - var cv []string + var cv []types.PivotTableFieldOption if *v == nil { - cv = []string{} + cv = []types.PivotTableFieldOption{} } else { cv = *v } for _, value := range shape { - var col string - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - col = jtv + var col types.PivotTableFieldOption + destAddr := &col + if err := awsRestjson1_deserializeDocumentPivotTableFieldOption(&destAddr, value); err != nil { + return err } + col = *destAddr cv = append(cv, col) } @@ -51204,7 +58350,7 @@ func awsRestjson1_deserializeDocumentParameterSelectableValueList(v *[]string, v return nil } -func awsRestjson1_deserializeDocumentParameterSelectableValues(v **types.ParameterSelectableValues, value interface{}) error { +func awsRestjson1_deserializeDocumentPivotTableFieldOptions(v **types.PivotTableFieldOptions, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -51217,22 +58363,22 @@ func awsRestjson1_deserializeDocumentParameterSelectableValues(v **types.Paramet return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ParameterSelectableValues + var sv *types.PivotTableFieldOptions if *v == nil { - sv = &types.ParameterSelectableValues{} + sv = &types.PivotTableFieldOptions{} } else { sv = *v } for key, value := range shape { switch key { - case "LinkToDataSetColumn": - if err := awsRestjson1_deserializeDocumentColumnIdentifier(&sv.LinkToDataSetColumn, value); err != nil { + case "DataPathOptions": + if err := awsRestjson1_deserializeDocumentPivotTableDataPathOptionList(&sv.DataPathOptions, value); err != nil { return err } - case "Values": - if err := awsRestjson1_deserializeDocumentParameterSelectableValueList(&sv.Values, value); err != nil { + case "SelectedFieldOptions": + if err := awsRestjson1_deserializeDocumentPivotTableFieldOptionList(&sv.SelectedFieldOptions, value); err != nil { return err } @@ -51245,7 +58391,7 @@ func awsRestjson1_deserializeDocumentParameterSelectableValues(v **types.Paramet return nil } -func awsRestjson1_deserializeDocumentParameterSliderControl(v **types.ParameterSliderControl, value interface{}) error { +func awsRestjson1_deserializeDocumentPivotTableFieldSubtotalOptions(v **types.PivotTableFieldSubtotalOptions, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -51258,147 +58404,92 @@ func awsRestjson1_deserializeDocumentParameterSliderControl(v **types.ParameterS return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ParameterSliderControl + var sv *types.PivotTableFieldSubtotalOptions if *v == nil { - sv = &types.ParameterSliderControl{} + sv = &types.PivotTableFieldSubtotalOptions{} } else { sv = *v } for key, value := range shape { switch key { - case "DisplayOptions": - if err := awsRestjson1_deserializeDocumentSliderControlDisplayOptions(&sv.DisplayOptions, value); err != nil { - return err - } - - case "MaximumValue": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.MaximumValue = f64 - - case string: - var f64 float64 - switch { - case strings.EqualFold(jtv, "NaN"): - f64 = math.NaN() - - case strings.EqualFold(jtv, "Infinity"): - f64 = math.Inf(1) - - case strings.EqualFold(jtv, "-Infinity"): - f64 = math.Inf(-1) - - default: - return fmt.Errorf("unknown JSON number value: %s", jtv) - - } - sv.MaximumValue = f64 - - default: - return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value) - - } - } - - case "MinimumValue": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.MinimumValue = f64 - - case string: - var f64 float64 - switch { - case strings.EqualFold(jtv, "NaN"): - f64 = math.NaN() - - case strings.EqualFold(jtv, "Infinity"): - f64 = math.Inf(1) - - case strings.EqualFold(jtv, "-Infinity"): - f64 = math.Inf(-1) - - default: - return fmt.Errorf("unknown JSON number value: %s", jtv) - - } - sv.MinimumValue = f64 - - default: - return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value) - - } - } - - case "ParameterControlId": + case "FieldId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + return fmt.Errorf("expected FieldId to be of type string, got %T instead", value) } - sv.ParameterControlId = ptr.String(jtv) + sv.FieldId = ptr.String(jtv) } - case "SourceParameterName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ParameterName to be of type string, got %T instead", value) - } - sv.SourceParameterName = ptr.String(jtv) - } + default: + _, _ = key, value - case "StepSize": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.StepSize = f64 + } + } + *v = sv + return nil +} - case string: - var f64 float64 - switch { - case strings.EqualFold(jtv, "NaN"): - f64 = math.NaN() +func awsRestjson1_deserializeDocumentPivotTableFieldSubtotalOptionsList(v *[]types.PivotTableFieldSubtotalOptions, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } - case strings.EqualFold(jtv, "Infinity"): - f64 = math.Inf(1) + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } - case strings.EqualFold(jtv, "-Infinity"): - f64 = math.Inf(-1) + var cv []types.PivotTableFieldSubtotalOptions + if *v == nil { + cv = []types.PivotTableFieldSubtotalOptions{} + } else { + cv = *v + } - default: - return fmt.Errorf("unknown JSON number value: %s", jtv) + for _, value := range shape { + var col types.PivotTableFieldSubtotalOptions + destAddr := &col + if err := awsRestjson1_deserializeDocumentPivotTableFieldSubtotalOptions(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) - } - sv.StepSize = f64 + } + *v = cv + return nil +} - default: - return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value) +func awsRestjson1_deserializeDocumentPivotTableFieldWells(v **types.PivotTableFieldWells, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } - } - } + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } - case "Title": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected SheetControlTitle to be of type string, got %T instead", value) - } - sv.Title = ptr.String(jtv) + var sv *types.PivotTableFieldWells + if *v == nil { + sv = &types.PivotTableFieldWells{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "PivotTableAggregatedFieldWells": + if err := awsRestjson1_deserializeDocumentPivotTableAggregatedFieldWells(&sv.PivotTableAggregatedFieldWells, value); err != nil { + return err } default: @@ -51410,7 +58501,7 @@ func awsRestjson1_deserializeDocumentParameterSliderControl(v **types.ParameterS return nil } -func awsRestjson1_deserializeDocumentParameterTextAreaControl(v **types.ParameterTextAreaControl, value interface{}) error { +func awsRestjson1_deserializeDocumentPivotTableOptions(v **types.PivotTableOptions, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -51423,54 +58514,83 @@ func awsRestjson1_deserializeDocumentParameterTextAreaControl(v **types.Paramete return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ParameterTextAreaControl + var sv *types.PivotTableOptions if *v == nil { - sv = &types.ParameterTextAreaControl{} + sv = &types.PivotTableOptions{} } else { sv = *v } for key, value := range shape { switch key { - case "Delimiter": + case "CellStyle": + if err := awsRestjson1_deserializeDocumentTableCellStyle(&sv.CellStyle, value); err != nil { + return err + } + + case "CollapsedRowDimensionsVisibility": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected TextAreaControlDelimiter to be of type string, got %T instead", value) + return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) } - sv.Delimiter = ptr.String(jtv) + sv.CollapsedRowDimensionsVisibility = types.Visibility(jtv) } - case "DisplayOptions": - if err := awsRestjson1_deserializeDocumentTextAreaControlDisplayOptions(&sv.DisplayOptions, value); err != nil { + case "ColumnHeaderStyle": + if err := awsRestjson1_deserializeDocumentTableCellStyle(&sv.ColumnHeaderStyle, value); err != nil { return err } - case "ParameterControlId": + case "ColumnNamesVisibility": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) } - sv.ParameterControlId = ptr.String(jtv) + sv.ColumnNamesVisibility = types.Visibility(jtv) } - case "SourceParameterName": + case "MetricPlacement": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ParameterName to be of type string, got %T instead", value) + return fmt.Errorf("expected PivotTableMetricPlacement to be of type string, got %T instead", value) } - sv.SourceParameterName = ptr.String(jtv) + sv.MetricPlacement = types.PivotTableMetricPlacement(jtv) } - case "Title": + case "RowAlternateColorOptions": + if err := awsRestjson1_deserializeDocumentRowAlternateColorOptions(&sv.RowAlternateColorOptions, value); err != nil { + return err + } + + case "RowFieldNamesStyle": + if err := awsRestjson1_deserializeDocumentTableCellStyle(&sv.RowFieldNamesStyle, value); err != nil { + return err + } + + case "RowHeaderStyle": + if err := awsRestjson1_deserializeDocumentTableCellStyle(&sv.RowHeaderStyle, value); err != nil { + return err + } + + case "SingleMetricVisibility": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected SheetControlTitle to be of type string, got %T instead", value) + return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) } - sv.Title = ptr.String(jtv) + sv.SingleMetricVisibility = types.Visibility(jtv) + } + + case "ToggleButtonsVisibility": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) + } + sv.ToggleButtonsVisibility = types.Visibility(jtv) } default: @@ -51482,7 +58602,7 @@ func awsRestjson1_deserializeDocumentParameterTextAreaControl(v **types.Paramete return nil } -func awsRestjson1_deserializeDocumentParameterTextFieldControl(v **types.ParameterTextFieldControl, value interface{}) error { +func awsRestjson1_deserializeDocumentPivotTablePaginatedReportOptions(v **types.PivotTablePaginatedReportOptions, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -51495,45 +58615,31 @@ func awsRestjson1_deserializeDocumentParameterTextFieldControl(v **types.Paramet return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ParameterTextFieldControl + var sv *types.PivotTablePaginatedReportOptions if *v == nil { - sv = &types.ParameterTextFieldControl{} + sv = &types.PivotTablePaginatedReportOptions{} } else { sv = *v } for key, value := range shape { switch key { - case "DisplayOptions": - if err := awsRestjson1_deserializeDocumentTextFieldControlDisplayOptions(&sv.DisplayOptions, value); err != nil { - return err - } - - case "ParameterControlId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) - } - sv.ParameterControlId = ptr.String(jtv) - } - - case "SourceParameterName": + case "OverflowColumnHeaderVisibility": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ParameterName to be of type string, got %T instead", value) + return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) } - sv.SourceParameterName = ptr.String(jtv) + sv.OverflowColumnHeaderVisibility = types.Visibility(jtv) } - case "Title": + case "VerticalOverflowVisibility": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected SheetControlTitle to be of type string, got %T instead", value) + return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) } - sv.Title = ptr.String(jtv) + sv.VerticalOverflowVisibility = types.Visibility(jtv) } default: @@ -51545,43 +58651,7 @@ func awsRestjson1_deserializeDocumentParameterTextFieldControl(v **types.Paramet return nil } -func awsRestjson1_deserializeDocumentPath(v *[]string, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []string - if *v == nil { - cv = []string{} - } else { - cv = *v - } - - for _, value := range shape { - var col string - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - col = jtv - } - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsRestjson1_deserializeDocumentPercentageDisplayFormatConfiguration(v **types.PercentageDisplayFormatConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentPivotTableSortBy(v **types.PivotTableSortBy, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -51594,53 +58664,30 @@ func awsRestjson1_deserializeDocumentPercentageDisplayFormatConfiguration(v **ty return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.PercentageDisplayFormatConfiguration + var sv *types.PivotTableSortBy if *v == nil { - sv = &types.PercentageDisplayFormatConfiguration{} + sv = &types.PivotTableSortBy{} } else { sv = *v } for key, value := range shape { switch key { - case "DecimalPlacesConfiguration": - if err := awsRestjson1_deserializeDocumentDecimalPlacesConfiguration(&sv.DecimalPlacesConfiguration, value); err != nil { - return err - } - - case "NegativeValueConfiguration": - if err := awsRestjson1_deserializeDocumentNegativeValueConfiguration(&sv.NegativeValueConfiguration, value); err != nil { + case "Column": + if err := awsRestjson1_deserializeDocumentColumnSort(&sv.Column, value); err != nil { return err } - case "NullValueFormatConfiguration": - if err := awsRestjson1_deserializeDocumentNullValueFormatConfiguration(&sv.NullValueFormatConfiguration, value); err != nil { + case "DataPath": + if err := awsRestjson1_deserializeDocumentDataPathSort(&sv.DataPath, value); err != nil { return err } - case "Prefix": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Prefix to be of type string, got %T instead", value) - } - sv.Prefix = ptr.String(jtv) - } - - case "SeparatorConfiguration": - if err := awsRestjson1_deserializeDocumentNumericSeparatorConfiguration(&sv.SeparatorConfiguration, value); err != nil { + case "Field": + if err := awsRestjson1_deserializeDocumentFieldSort(&sv.Field, value); err != nil { return err } - case "Suffix": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Suffix to be of type string, got %T instead", value) - } - sv.Suffix = ptr.String(jtv) - } - default: _, _ = key, value @@ -51650,7 +58697,7 @@ func awsRestjson1_deserializeDocumentPercentageDisplayFormatConfiguration(v **ty return nil } -func awsRestjson1_deserializeDocumentPercentileAggregation(v **types.PercentileAggregation, value interface{}) error { +func awsRestjson1_deserializeDocumentPivotTableSortConfiguration(v **types.PivotTableSortConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -51663,47 +58710,18 @@ func awsRestjson1_deserializeDocumentPercentileAggregation(v **types.PercentileA return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.PercentileAggregation + var sv *types.PivotTableSortConfiguration if *v == nil { - sv = &types.PercentileAggregation{} + sv = &types.PivotTableSortConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "PercentileValue": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.PercentileValue = ptr.Float64(f64) - - case string: - var f64 float64 - switch { - case strings.EqualFold(jtv, "NaN"): - f64 = math.NaN() - - case strings.EqualFold(jtv, "Infinity"): - f64 = math.Inf(1) - - case strings.EqualFold(jtv, "-Infinity"): - f64 = math.Inf(-1) - - default: - return fmt.Errorf("unknown JSON number value: %s", jtv) - - } - sv.PercentileValue = ptr.Float64(f64) - - default: - return fmt.Errorf("expected PercentileValue to be a JSON Number, got %T instead", value) - - } + case "FieldSortOptions": + if err := awsRestjson1_deserializeDocumentPivotFieldSortOptionsList(&sv.FieldSortOptions, value); err != nil { + return err } default: @@ -51715,7 +58733,7 @@ func awsRestjson1_deserializeDocumentPercentileAggregation(v **types.PercentileA return nil } -func awsRestjson1_deserializeDocumentPercentVisibleRange(v **types.PercentVisibleRange, value interface{}) error { +func awsRestjson1_deserializeDocumentPivotTableTotalOptions(v **types.PivotTableTotalOptions, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -51728,81 +58746,33 @@ func awsRestjson1_deserializeDocumentPercentVisibleRange(v **types.PercentVisibl return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.PercentVisibleRange + var sv *types.PivotTableTotalOptions if *v == nil { - sv = &types.PercentVisibleRange{} + sv = &types.PivotTableTotalOptions{} } else { sv = *v } - for key, value := range shape { - switch key { - case "From": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.From = ptr.Float64(f64) - - case string: - var f64 float64 - switch { - case strings.EqualFold(jtv, "NaN"): - f64 = math.NaN() - - case strings.EqualFold(jtv, "Infinity"): - f64 = math.Inf(1) - - case strings.EqualFold(jtv, "-Infinity"): - f64 = math.Inf(-1) - - default: - return fmt.Errorf("unknown JSON number value: %s", jtv) - - } - sv.From = ptr.Float64(f64) - - default: - return fmt.Errorf("expected PercentNumber to be a JSON Number, got %T instead", value) - - } - } - - case "To": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.To = ptr.Float64(f64) - - case string: - var f64 float64 - switch { - case strings.EqualFold(jtv, "NaN"): - f64 = math.NaN() - - case strings.EqualFold(jtv, "Infinity"): - f64 = math.Inf(1) - - case strings.EqualFold(jtv, "-Infinity"): - f64 = math.Inf(-1) - - default: - return fmt.Errorf("unknown JSON number value: %s", jtv) + for key, value := range shape { + switch key { + case "ColumnSubtotalOptions": + if err := awsRestjson1_deserializeDocumentSubtotalOptions(&sv.ColumnSubtotalOptions, value); err != nil { + return err + } - } - sv.To = ptr.Float64(f64) + case "ColumnTotalOptions": + if err := awsRestjson1_deserializeDocumentPivotTotalOptions(&sv.ColumnTotalOptions, value); err != nil { + return err + } - default: - return fmt.Errorf("expected PercentNumber to be a JSON Number, got %T instead", value) + case "RowSubtotalOptions": + if err := awsRestjson1_deserializeDocumentSubtotalOptions(&sv.RowSubtotalOptions, value); err != nil { + return err + } - } + case "RowTotalOptions": + if err := awsRestjson1_deserializeDocumentPivotTotalOptions(&sv.RowTotalOptions, value); err != nil { + return err } default: @@ -51814,7 +58784,7 @@ func awsRestjson1_deserializeDocumentPercentVisibleRange(v **types.PercentVisibl return nil } -func awsRestjson1_deserializeDocumentPeriodOverPeriodComputation(v **types.PeriodOverPeriodComputation, value interface{}) error { +func awsRestjson1_deserializeDocumentPivotTableVisual(v **types.PivotTableVisual, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -51827,43 +58797,49 @@ func awsRestjson1_deserializeDocumentPeriodOverPeriodComputation(v **types.Perio return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.PeriodOverPeriodComputation + var sv *types.PivotTableVisual if *v == nil { - sv = &types.PeriodOverPeriodComputation{} + sv = &types.PivotTableVisual{} } else { sv = *v } for key, value := range shape { switch key { - case "ComputationId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) - } - sv.ComputationId = ptr.String(jtv) + case "Actions": + if err := awsRestjson1_deserializeDocumentVisualCustomActionList(&sv.Actions, value); err != nil { + return err } - case "Name": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.Name = ptr.String(jtv) + case "ChartConfiguration": + if err := awsRestjson1_deserializeDocumentPivotTableConfiguration(&sv.ChartConfiguration, value); err != nil { + return err } - case "Time": - if err := awsRestjson1_deserializeDocumentDimensionField(&sv.Time, value); err != nil { + case "ConditionalFormatting": + if err := awsRestjson1_deserializeDocumentPivotTableConditionalFormatting(&sv.ConditionalFormatting, value); err != nil { return err } - case "Value": - if err := awsRestjson1_deserializeDocumentMeasureField(&sv.Value, value); err != nil { + case "Subtitle": + if err := awsRestjson1_deserializeDocumentVisualSubtitleLabelOptions(&sv.Subtitle, value); err != nil { + return err + } + + case "Title": + if err := awsRestjson1_deserializeDocumentVisualTitleLabelOptions(&sv.Title, value); err != nil { return err } + case "VisualId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + } + sv.VisualId = ptr.String(jtv) + } + default: _, _ = key, value @@ -51873,7 +58849,7 @@ func awsRestjson1_deserializeDocumentPeriodOverPeriodComputation(v **types.Perio return nil } -func awsRestjson1_deserializeDocumentPeriodToDateComputation(v **types.PeriodToDateComputation, value interface{}) error { +func awsRestjson1_deserializeDocumentPivotTotalOptions(v **types.PivotTotalOptions, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -51886,49 +58862,63 @@ func awsRestjson1_deserializeDocumentPeriodToDateComputation(v **types.PeriodToD return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.PeriodToDateComputation + var sv *types.PivotTotalOptions if *v == nil { - sv = &types.PeriodToDateComputation{} + sv = &types.PivotTotalOptions{} } else { sv = *v } for key, value := range shape { switch key { - case "ComputationId": + case "CustomLabel": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ComputationId = ptr.String(jtv) + sv.CustomLabel = ptr.String(jtv) } - case "Name": + case "MetricHeaderCellStyle": + if err := awsRestjson1_deserializeDocumentTableCellStyle(&sv.MetricHeaderCellStyle, value); err != nil { + return err + } + + case "Placement": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) + return fmt.Errorf("expected TableTotalsPlacement to be of type string, got %T instead", value) } - sv.Name = ptr.String(jtv) + sv.Placement = types.TableTotalsPlacement(jtv) } - case "PeriodTimeGranularity": + case "ScrollStatus": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected TimeGranularity to be of type string, got %T instead", value) + return fmt.Errorf("expected TableTotalsScrollStatus to be of type string, got %T instead", value) } - sv.PeriodTimeGranularity = types.TimeGranularity(jtv) + sv.ScrollStatus = types.TableTotalsScrollStatus(jtv) } - case "Time": - if err := awsRestjson1_deserializeDocumentDimensionField(&sv.Time, value); err != nil { + case "TotalCellStyle": + if err := awsRestjson1_deserializeDocumentTableCellStyle(&sv.TotalCellStyle, value); err != nil { return err } - case "Value": - if err := awsRestjson1_deserializeDocumentMeasureField(&sv.Value, value); err != nil { + case "TotalsVisibility": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) + } + sv.TotalsVisibility = types.Visibility(jtv) + } + + case "ValueCellStyle": + if err := awsRestjson1_deserializeDocumentTableCellStyle(&sv.ValueCellStyle, value); err != nil { return err } @@ -51941,7 +58931,7 @@ func awsRestjson1_deserializeDocumentPeriodToDateComputation(v **types.PeriodToD return nil } -func awsRestjson1_deserializeDocumentPhysicalTable(v *types.PhysicalTable, value interface{}) error { +func awsRestjson1_deserializeDocumentPostgreSqlParameters(v **types.PostgreSqlParameters, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -51954,88 +58944,56 @@ func awsRestjson1_deserializeDocumentPhysicalTable(v *types.PhysicalTable, value return fmt.Errorf("unexpected JSON type %v", value) } - var uv types.PhysicalTable -loop: + var sv *types.PostgreSqlParameters + if *v == nil { + sv = &types.PostgreSqlParameters{} + } else { + sv = *v + } + for key, value := range shape { - if value == nil { - continue - } switch key { - case "CustomSql": - var mv types.CustomSql - destAddr := &mv - if err := awsRestjson1_deserializeDocumentCustomSql(&destAddr, value); err != nil { - return err + case "Database": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Database to be of type string, got %T instead", value) + } + sv.Database = ptr.String(jtv) } - mv = *destAddr - uv = &types.PhysicalTableMemberCustomSql{Value: mv} - break loop - case "RelationalTable": - var mv types.RelationalTable - destAddr := &mv - if err := awsRestjson1_deserializeDocumentRelationalTable(&destAddr, value); err != nil { - return err + case "Host": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Host to be of type string, got %T instead", value) + } + sv.Host = ptr.String(jtv) } - mv = *destAddr - uv = &types.PhysicalTableMemberRelationalTable{Value: mv} - break loop - case "S3Source": - var mv types.S3Source - destAddr := &mv - if err := awsRestjson1_deserializeDocumentS3Source(&destAddr, value); err != nil { - return err + case "Port": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected Port to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.Port = int32(i64) } - mv = *destAddr - uv = &types.PhysicalTableMemberS3Source{Value: mv} - break loop default: - uv = &types.UnknownUnionMember{Tag: key} - break loop - - } - } - *v = uv - return nil -} - -func awsRestjson1_deserializeDocumentPhysicalTableMap(v *map[string]types.PhysicalTable, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var mv map[string]types.PhysicalTable - if *v == nil { - mv = map[string]types.PhysicalTable{} - } else { - mv = *v - } + _, _ = key, value - for key, value := range shape { - var parsedVal types.PhysicalTable - mapVar := parsedVal - if err := awsRestjson1_deserializeDocumentPhysicalTable(&mapVar, value); err != nil { - return err } - parsedVal = mapVar - mv[key] = parsedVal - } - *v = mv + *v = sv return nil } -func awsRestjson1_deserializeDocumentPieChartAggregatedFieldWells(v **types.PieChartAggregatedFieldWells, value interface{}) error { +func awsRestjson1_deserializeDocumentPreconditionNotMetException(v **types.PreconditionNotMetException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -52048,28 +59006,31 @@ func awsRestjson1_deserializeDocumentPieChartAggregatedFieldWells(v **types.PieC return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.PieChartAggregatedFieldWells + var sv *types.PreconditionNotMetException if *v == nil { - sv = &types.PieChartAggregatedFieldWells{} + sv = &types.PreconditionNotMetException{} } else { sv = *v } for key, value := range shape { switch key { - case "Category": - if err := awsRestjson1_deserializeDocumentDimensionFieldList(&sv.Category, value); err != nil { - return err - } - - case "SmallMultiples": - if err := awsRestjson1_deserializeDocumentSmallMultiplesDimensionFieldList(&sv.SmallMultiples, value); err != nil { - return err + case "Message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) } - case "Values": - if err := awsRestjson1_deserializeDocumentMeasureFieldList(&sv.Values, value); err != nil { - return err + case "RequestId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.RequestId = ptr.String(jtv) } default: @@ -52081,7 +59042,7 @@ func awsRestjson1_deserializeDocumentPieChartAggregatedFieldWells(v **types.PieC return nil } -func awsRestjson1_deserializeDocumentPieChartConfiguration(v **types.PieChartConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentPredefinedHierarchy(v **types.PredefinedHierarchy, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -52094,68 +59055,32 @@ func awsRestjson1_deserializeDocumentPieChartConfiguration(v **types.PieChartCon return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.PieChartConfiguration + var sv *types.PredefinedHierarchy if *v == nil { - sv = &types.PieChartConfiguration{} + sv = &types.PredefinedHierarchy{} } else { sv = *v } for key, value := range shape { switch key { - case "CategoryLabelOptions": - if err := awsRestjson1_deserializeDocumentChartAxisLabelOptions(&sv.CategoryLabelOptions, value); err != nil { - return err - } - - case "ContributionAnalysisDefaults": - if err := awsRestjson1_deserializeDocumentContributionAnalysisDefaultList(&sv.ContributionAnalysisDefaults, value); err != nil { - return err - } - - case "DataLabels": - if err := awsRestjson1_deserializeDocumentDataLabelOptions(&sv.DataLabels, value); err != nil { - return err - } - - case "DonutOptions": - if err := awsRestjson1_deserializeDocumentDonutOptions(&sv.DonutOptions, value); err != nil { - return err - } - - case "FieldWells": - if err := awsRestjson1_deserializeDocumentPieChartFieldWells(&sv.FieldWells, value); err != nil { - return err - } - - case "Legend": - if err := awsRestjson1_deserializeDocumentLegendOptions(&sv.Legend, value); err != nil { - return err - } - - case "SmallMultiplesOptions": - if err := awsRestjson1_deserializeDocumentSmallMultiplesOptions(&sv.SmallMultiplesOptions, value); err != nil { - return err - } - - case "SortConfiguration": - if err := awsRestjson1_deserializeDocumentPieChartSortConfiguration(&sv.SortConfiguration, value); err != nil { - return err - } - - case "Tooltip": - if err := awsRestjson1_deserializeDocumentTooltipOptions(&sv.Tooltip, value); err != nil { + case "Columns": + if err := awsRestjson1_deserializeDocumentPredefinedHierarchyColumnList(&sv.Columns, value); err != nil { return err } - case "ValueLabelOptions": - if err := awsRestjson1_deserializeDocumentChartAxisLabelOptions(&sv.ValueLabelOptions, value); err != nil { + case "DrillDownFilters": + if err := awsRestjson1_deserializeDocumentDrillDownFilterList(&sv.DrillDownFilters, value); err != nil { return err } - case "VisualPalette": - if err := awsRestjson1_deserializeDocumentVisualPalette(&sv.VisualPalette, value); err != nil { - return err + case "HierarchyId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected HierarchyId to be of type string, got %T instead", value) + } + sv.HierarchyId = ptr.String(jtv) } default: @@ -52167,7 +59092,7 @@ func awsRestjson1_deserializeDocumentPieChartConfiguration(v **types.PieChartCon return nil } -func awsRestjson1_deserializeDocumentPieChartFieldWells(v **types.PieChartFieldWells, value interface{}) error { +func awsRestjson1_deserializeDocumentPredefinedHierarchyColumnList(v *[]types.ColumnIdentifier, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -52175,35 +59100,33 @@ func awsRestjson1_deserializeDocumentPieChartFieldWells(v **types.PieChartFieldW return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.PieChartFieldWells + var cv []types.ColumnIdentifier if *v == nil { - sv = &types.PieChartFieldWells{} + cv = []types.ColumnIdentifier{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "PieChartAggregatedFieldWells": - if err := awsRestjson1_deserializeDocumentPieChartAggregatedFieldWells(&sv.PieChartAggregatedFieldWells, value); err != nil { - return err - } - - default: - _, _ = key, value - + for _, value := range shape { + var col types.ColumnIdentifier + destAddr := &col + if err := awsRestjson1_deserializeDocumentColumnIdentifier(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsRestjson1_deserializeDocumentPieChartSortConfiguration(v **types.PieChartSortConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentPrestoParameters(v **types.PrestoParameters, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -52216,33 +59139,44 @@ func awsRestjson1_deserializeDocumentPieChartSortConfiguration(v **types.PieChar return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.PieChartSortConfiguration + var sv *types.PrestoParameters if *v == nil { - sv = &types.PieChartSortConfiguration{} + sv = &types.PrestoParameters{} } else { sv = *v } for key, value := range shape { switch key { - case "CategoryItemsLimit": - if err := awsRestjson1_deserializeDocumentItemsLimitConfiguration(&sv.CategoryItemsLimit, value); err != nil { - return err - } - - case "CategorySort": - if err := awsRestjson1_deserializeDocumentFieldSortOptionsList(&sv.CategorySort, value); err != nil { - return err + case "Catalog": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Catalog to be of type string, got %T instead", value) + } + sv.Catalog = ptr.String(jtv) } - case "SmallMultiplesLimitConfiguration": - if err := awsRestjson1_deserializeDocumentItemsLimitConfiguration(&sv.SmallMultiplesLimitConfiguration, value); err != nil { - return err + case "Host": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Host to be of type string, got %T instead", value) + } + sv.Host = ptr.String(jtv) } - case "SmallMultiplesSort": - if err := awsRestjson1_deserializeDocumentFieldSortOptionsList(&sv.SmallMultiplesSort, value); err != nil { - return err + case "Port": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected Port to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.Port = int32(i64) } default: @@ -52254,7 +59188,7 @@ func awsRestjson1_deserializeDocumentPieChartSortConfiguration(v **types.PieChar return nil } -func awsRestjson1_deserializeDocumentPieChartVisual(v **types.PieChartVisual, value interface{}) error { +func awsRestjson1_deserializeDocumentPrincipalList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -52262,64 +59196,35 @@ func awsRestjson1_deserializeDocumentPieChartVisual(v **types.PieChartVisual, va return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.PieChartVisual + var cv []string if *v == nil { - sv = &types.PieChartVisual{} + cv = []string{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "Actions": - if err := awsRestjson1_deserializeDocumentVisualCustomActionList(&sv.Actions, value); err != nil { - return err - } - - case "ChartConfiguration": - if err := awsRestjson1_deserializeDocumentPieChartConfiguration(&sv.ChartConfiguration, value); err != nil { - return err - } - - case "ColumnHierarchies": - if err := awsRestjson1_deserializeDocumentColumnHierarchyList(&sv.ColumnHierarchies, value); err != nil { - return err - } - - case "Subtitle": - if err := awsRestjson1_deserializeDocumentVisualSubtitleLabelOptions(&sv.Subtitle, value); err != nil { - return err - } - - case "Title": - if err := awsRestjson1_deserializeDocumentVisualTitleLabelOptions(&sv.Title, value); err != nil { - return err - } - - case "VisualId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) - } - sv.VisualId = ptr.String(jtv) + for _, value := range shape { + var col string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) } - - default: - _, _ = key, value - + col = jtv } + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsRestjson1_deserializeDocumentPivotFieldSortOptions(v **types.PivotFieldSortOptions, value interface{}) error { +func awsRestjson1_deserializeDocumentProgressBarOptions(v **types.ProgressBarOptions, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -52332,27 +59237,22 @@ func awsRestjson1_deserializeDocumentPivotFieldSortOptions(v **types.PivotFieldS return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.PivotFieldSortOptions + var sv *types.ProgressBarOptions if *v == nil { - sv = &types.PivotFieldSortOptions{} + sv = &types.ProgressBarOptions{} } else { sv = *v } for key, value := range shape { switch key { - case "FieldId": + case "Visibility": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected FieldId to be of type string, got %T instead", value) + return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) } - sv.FieldId = ptr.String(jtv) - } - - case "SortBy": - if err := awsRestjson1_deserializeDocumentPivotTableSortBy(&sv.SortBy, value); err != nil { - return err + sv.Visibility = types.Visibility(jtv) } default: @@ -52364,7 +59264,7 @@ func awsRestjson1_deserializeDocumentPivotFieldSortOptions(v **types.PivotFieldS return nil } -func awsRestjson1_deserializeDocumentPivotFieldSortOptionsList(v *[]types.PivotFieldSortOptions, value interface{}) error { +func awsRestjson1_deserializeDocumentProjectedColumnList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -52377,20 +59277,22 @@ func awsRestjson1_deserializeDocumentPivotFieldSortOptionsList(v *[]types.PivotF return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.PivotFieldSortOptions + var cv []string if *v == nil { - cv = []types.PivotFieldSortOptions{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col types.PivotFieldSortOptions - destAddr := &col - if err := awsRestjson1_deserializeDocumentPivotFieldSortOptions(&destAddr, value); err != nil { - return err + var col string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + col = jtv } - col = *destAddr cv = append(cv, col) } @@ -52398,7 +59300,7 @@ func awsRestjson1_deserializeDocumentPivotFieldSortOptionsList(v *[]types.PivotF return nil } -func awsRestjson1_deserializeDocumentPivotMeasureFieldList(v *[]types.MeasureField, value interface{}) error { +func awsRestjson1_deserializeDocumentProjectOperation(v **types.ProjectOperation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -52406,33 +59308,35 @@ func awsRestjson1_deserializeDocumentPivotMeasureFieldList(v *[]types.MeasureFie return nil } - shape, ok := value.([]interface{}) + shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.MeasureField + var sv *types.ProjectOperation if *v == nil { - cv = []types.MeasureField{} + sv = &types.ProjectOperation{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col types.MeasureField - destAddr := &col - if err := awsRestjson1_deserializeDocumentMeasureField(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) + for key, value := range shape { + switch key { + case "ProjectedColumns": + if err := awsRestjson1_deserializeDocumentProjectedColumnList(&sv.ProjectedColumns, value); err != nil { + return err + } + default: + _, _ = key, value + + } } - *v = cv + *v = sv return nil } -func awsRestjson1_deserializeDocumentPivotTableAggregatedFieldWells(v **types.PivotTableAggregatedFieldWells, value interface{}) error { +func awsRestjson1_deserializeDocumentQueueInfo(v **types.QueueInfo, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -52445,28 +59349,31 @@ func awsRestjson1_deserializeDocumentPivotTableAggregatedFieldWells(v **types.Pi return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.PivotTableAggregatedFieldWells + var sv *types.QueueInfo if *v == nil { - sv = &types.PivotTableAggregatedFieldWells{} + sv = &types.QueueInfo{} } else { sv = *v } for key, value := range shape { switch key { - case "Columns": - if err := awsRestjson1_deserializeDocumentPivotTableDimensionList(&sv.Columns, value); err != nil { - return err - } - - case "Rows": - if err := awsRestjson1_deserializeDocumentPivotTableDimensionList(&sv.Rows, value); err != nil { - return err + case "QueuedIngestion": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.QueuedIngestion = ptr.String(jtv) } - case "Values": - if err := awsRestjson1_deserializeDocumentPivotMeasureFieldList(&sv.Values, value); err != nil { - return err + case "WaitingOnIngestion": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.WaitingOnIngestion = ptr.String(jtv) } default: @@ -52478,7 +59385,7 @@ func awsRestjson1_deserializeDocumentPivotTableAggregatedFieldWells(v **types.Pi return nil } -func awsRestjson1_deserializeDocumentPivotTableCellConditionalFormatting(v **types.PivotTableCellConditionalFormatting, value interface{}) error { +func awsRestjson1_deserializeDocumentQuickSightUserNotFoundException(v **types.QuickSightUserNotFoundException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -52491,32 +59398,31 @@ func awsRestjson1_deserializeDocumentPivotTableCellConditionalFormatting(v **typ return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.PivotTableCellConditionalFormatting + var sv *types.QuickSightUserNotFoundException if *v == nil { - sv = &types.PivotTableCellConditionalFormatting{} + sv = &types.QuickSightUserNotFoundException{} } else { sv = *v } for key, value := range shape { switch key { - case "FieldId": + case "Message": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected FieldId to be of type string, got %T instead", value) + return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.FieldId = ptr.String(jtv) - } - - case "Scope": - if err := awsRestjson1_deserializeDocumentPivotTableConditionalFormattingScope(&sv.Scope, value); err != nil { - return err + sv.Message = ptr.String(jtv) } - case "TextFormat": - if err := awsRestjson1_deserializeDocumentTextConditionalFormat(&sv.TextFormat, value); err != nil { - return err + case "RequestId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.RequestId = ptr.String(jtv) } default: @@ -52528,7 +59434,7 @@ func awsRestjson1_deserializeDocumentPivotTableCellConditionalFormatting(v **typ return nil } -func awsRestjson1_deserializeDocumentPivotTableConditionalFormatting(v **types.PivotTableConditionalFormatting, value interface{}) error { +func awsRestjson1_deserializeDocumentRadarChartAggregatedFieldWells(v **types.RadarChartAggregatedFieldWells, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -52541,17 +59447,27 @@ func awsRestjson1_deserializeDocumentPivotTableConditionalFormatting(v **types.P return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.PivotTableConditionalFormatting + var sv *types.RadarChartAggregatedFieldWells if *v == nil { - sv = &types.PivotTableConditionalFormatting{} + sv = &types.RadarChartAggregatedFieldWells{} } else { sv = *v } for key, value := range shape { switch key { - case "ConditionalFormattingOptions": - if err := awsRestjson1_deserializeDocumentPivotTableConditionalFormattingOptionList(&sv.ConditionalFormattingOptions, value); err != nil { + case "Category": + if err := awsRestjson1_deserializeDocumentRadarChartCategoryFieldList(&sv.Category, value); err != nil { + return err + } + + case "Color": + if err := awsRestjson1_deserializeDocumentRadarChartColorFieldList(&sv.Color, value); err != nil { + return err + } + + case "Values": + if err := awsRestjson1_deserializeDocumentRadarChartValuesFieldList(&sv.Values, value); err != nil { return err } @@ -52564,7 +59480,7 @@ func awsRestjson1_deserializeDocumentPivotTableConditionalFormatting(v **types.P return nil } -func awsRestjson1_deserializeDocumentPivotTableConditionalFormattingOption(v **types.PivotTableConditionalFormattingOption, value interface{}) error { +func awsRestjson1_deserializeDocumentRadarChartAreaStyleSettings(v **types.RadarChartAreaStyleSettings, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -52577,18 +59493,22 @@ func awsRestjson1_deserializeDocumentPivotTableConditionalFormattingOption(v **t return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.PivotTableConditionalFormattingOption + var sv *types.RadarChartAreaStyleSettings if *v == nil { - sv = &types.PivotTableConditionalFormattingOption{} + sv = &types.RadarChartAreaStyleSettings{} } else { sv = *v } for key, value := range shape { switch key { - case "Cell": - if err := awsRestjson1_deserializeDocumentPivotTableCellConditionalFormatting(&sv.Cell, value); err != nil { - return err + case "Visibility": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) + } + sv.Visibility = types.Visibility(jtv) } default: @@ -52600,7 +59520,7 @@ func awsRestjson1_deserializeDocumentPivotTableConditionalFormattingOption(v **t return nil } -func awsRestjson1_deserializeDocumentPivotTableConditionalFormattingOptionList(v *[]types.PivotTableConditionalFormattingOption, value interface{}) error { +func awsRestjson1_deserializeDocumentRadarChartCategoryFieldList(v *[]types.DimensionField, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -52613,17 +59533,17 @@ func awsRestjson1_deserializeDocumentPivotTableConditionalFormattingOptionList(v return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.PivotTableConditionalFormattingOption + var cv []types.DimensionField if *v == nil { - cv = []types.PivotTableConditionalFormattingOption{} + cv = []types.DimensionField{} } else { cv = *v } for _, value := range shape { - var col types.PivotTableConditionalFormattingOption + var col types.DimensionField destAddr := &col - if err := awsRestjson1_deserializeDocumentPivotTableConditionalFormattingOption(&destAddr, value); err != nil { + if err := awsRestjson1_deserializeDocumentDimensionField(&destAddr, value); err != nil { return err } col = *destAddr @@ -52634,7 +59554,7 @@ func awsRestjson1_deserializeDocumentPivotTableConditionalFormattingOptionList(v return nil } -func awsRestjson1_deserializeDocumentPivotTableConditionalFormattingScope(v **types.PivotTableConditionalFormattingScope, value interface{}) error { +func awsRestjson1_deserializeDocumentRadarChartColorFieldList(v *[]types.DimensionField, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -52642,39 +59562,33 @@ func awsRestjson1_deserializeDocumentPivotTableConditionalFormattingScope(v **ty return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.PivotTableConditionalFormattingScope + var cv []types.DimensionField if *v == nil { - sv = &types.PivotTableConditionalFormattingScope{} + cv = []types.DimensionField{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "Role": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected PivotTableConditionalFormattingScopeRole to be of type string, got %T instead", value) - } - sv.Role = types.PivotTableConditionalFormattingScopeRole(jtv) - } - - default: - _, _ = key, value - + for _, value := range shape { + var col types.DimensionField + destAddr := &col + if err := awsRestjson1_deserializeDocumentDimensionField(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsRestjson1_deserializeDocumentPivotTableConfiguration(v **types.PivotTableConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentRadarChartConfiguration(v **types.RadarChartConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -52687,42 +59601,127 @@ func awsRestjson1_deserializeDocumentPivotTableConfiguration(v **types.PivotTabl return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.PivotTableConfiguration + var sv *types.RadarChartConfiguration if *v == nil { - sv = &types.PivotTableConfiguration{} + sv = &types.RadarChartConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "FieldOptions": - if err := awsRestjson1_deserializeDocumentPivotTableFieldOptions(&sv.FieldOptions, value); err != nil { + case "AlternateBandColorsVisibility": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) + } + sv.AlternateBandColorsVisibility = types.Visibility(jtv) + } + + case "AlternateBandEvenColor": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected HexColor to be of type string, got %T instead", value) + } + sv.AlternateBandEvenColor = ptr.String(jtv) + } + + case "AlternateBandOddColor": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected HexColor to be of type string, got %T instead", value) + } + sv.AlternateBandOddColor = ptr.String(jtv) + } + + case "BaseSeriesSettings": + if err := awsRestjson1_deserializeDocumentRadarChartSeriesSettings(&sv.BaseSeriesSettings, value); err != nil { + return err + } + + case "CategoryAxis": + if err := awsRestjson1_deserializeDocumentAxisDisplayOptions(&sv.CategoryAxis, value); err != nil { + return err + } + + case "CategoryLabelOptions": + if err := awsRestjson1_deserializeDocumentChartAxisLabelOptions(&sv.CategoryLabelOptions, value); err != nil { + return err + } + + case "ColorAxis": + if err := awsRestjson1_deserializeDocumentAxisDisplayOptions(&sv.ColorAxis, value); err != nil { + return err + } + + case "ColorLabelOptions": + if err := awsRestjson1_deserializeDocumentChartAxisLabelOptions(&sv.ColorLabelOptions, value); err != nil { return err } case "FieldWells": - if err := awsRestjson1_deserializeDocumentPivotTableFieldWells(&sv.FieldWells, value); err != nil { + if err := awsRestjson1_deserializeDocumentRadarChartFieldWells(&sv.FieldWells, value); err != nil { return err } - case "PaginatedReportOptions": - if err := awsRestjson1_deserializeDocumentPivotTablePaginatedReportOptions(&sv.PaginatedReportOptions, value); err != nil { + case "Legend": + if err := awsRestjson1_deserializeDocumentLegendOptions(&sv.Legend, value); err != nil { return err } + case "Shape": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RadarChartShape to be of type string, got %T instead", value) + } + sv.Shape = types.RadarChartShape(jtv) + } + case "SortConfiguration": - if err := awsRestjson1_deserializeDocumentPivotTableSortConfiguration(&sv.SortConfiguration, value); err != nil { + if err := awsRestjson1_deserializeDocumentRadarChartSortConfiguration(&sv.SortConfiguration, value); err != nil { return err } - case "TableOptions": - if err := awsRestjson1_deserializeDocumentPivotTableOptions(&sv.TableOptions, value); err != nil { - return err + case "StartAngle": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.StartAngle = ptr.Float64(f64) + + case string: + var f64 float64 + switch { + case strings.EqualFold(jtv, "NaN"): + f64 = math.NaN() + + case strings.EqualFold(jtv, "Infinity"): + f64 = math.Inf(1) + + case strings.EqualFold(jtv, "-Infinity"): + f64 = math.Inf(-1) + + default: + return fmt.Errorf("unknown JSON number value: %s", jtv) + + } + sv.StartAngle = ptr.Float64(f64) + + default: + return fmt.Errorf("expected RadarChartStartAngle to be a JSON Number, got %T instead", value) + + } } - case "TotalOptions": - if err := awsRestjson1_deserializeDocumentPivotTableTotalOptions(&sv.TotalOptions, value); err != nil { + case "VisualPalette": + if err := awsRestjson1_deserializeDocumentVisualPalette(&sv.VisualPalette, value); err != nil { return err } @@ -52735,7 +59734,7 @@ func awsRestjson1_deserializeDocumentPivotTableConfiguration(v **types.PivotTabl return nil } -func awsRestjson1_deserializeDocumentPivotTableDataPathOption(v **types.PivotTableDataPathOption, value interface{}) error { +func awsRestjson1_deserializeDocumentRadarChartFieldWells(v **types.RadarChartFieldWells, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -52748,27 +59747,54 @@ func awsRestjson1_deserializeDocumentPivotTableDataPathOption(v **types.PivotTab return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.PivotTableDataPathOption + var sv *types.RadarChartFieldWells if *v == nil { - sv = &types.PivotTableDataPathOption{} + sv = &types.RadarChartFieldWells{} } else { sv = *v } for key, value := range shape { switch key { - case "DataPathList": - if err := awsRestjson1_deserializeDocumentDataPathValueList(&sv.DataPathList, value); err != nil { + case "RadarChartAggregatedFieldWells": + if err := awsRestjson1_deserializeDocumentRadarChartAggregatedFieldWells(&sv.RadarChartAggregatedFieldWells, value); err != nil { return err } - case "Width": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected PixelLength to be of type string, got %T instead", value) - } - sv.Width = ptr.String(jtv) + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentRadarChartSeriesSettings(v **types.RadarChartSeriesSettings, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.RadarChartSeriesSettings + if *v == nil { + sv = &types.RadarChartSeriesSettings{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "AreaStyleSettings": + if err := awsRestjson1_deserializeDocumentRadarChartAreaStyleSettings(&sv.AreaStyleSettings, value); err != nil { + return err } default: @@ -52780,7 +59806,7 @@ func awsRestjson1_deserializeDocumentPivotTableDataPathOption(v **types.PivotTab return nil } -func awsRestjson1_deserializeDocumentPivotTableDataPathOptionList(v *[]types.PivotTableDataPathOption, value interface{}) error { +func awsRestjson1_deserializeDocumentRadarChartSortConfiguration(v **types.RadarChartSortConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -52788,33 +59814,50 @@ func awsRestjson1_deserializeDocumentPivotTableDataPathOptionList(v *[]types.Piv return nil } - shape, ok := value.([]interface{}) + shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.PivotTableDataPathOption + var sv *types.RadarChartSortConfiguration if *v == nil { - cv = []types.PivotTableDataPathOption{} + sv = &types.RadarChartSortConfiguration{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col types.PivotTableDataPathOption - destAddr := &col - if err := awsRestjson1_deserializeDocumentPivotTableDataPathOption(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) + for key, value := range shape { + switch key { + case "CategoryItemsLimit": + if err := awsRestjson1_deserializeDocumentItemsLimitConfiguration(&sv.CategoryItemsLimit, value); err != nil { + return err + } + + case "CategorySort": + if err := awsRestjson1_deserializeDocumentFieldSortOptionsList(&sv.CategorySort, value); err != nil { + return err + } + + case "ColorItemsLimit": + if err := awsRestjson1_deserializeDocumentItemsLimitConfiguration(&sv.ColorItemsLimit, value); err != nil { + return err + } + + case "ColorSort": + if err := awsRestjson1_deserializeDocumentFieldSortOptionsList(&sv.ColorSort, value); err != nil { + return err + } + + default: + _, _ = key, value + } } - *v = cv + *v = sv return nil } -func awsRestjson1_deserializeDocumentPivotTableDimensionList(v *[]types.DimensionField, value interface{}) error { +func awsRestjson1_deserializeDocumentRadarChartValuesFieldList(v *[]types.MeasureField, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -52827,17 +59870,17 @@ func awsRestjson1_deserializeDocumentPivotTableDimensionList(v *[]types.Dimensio return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.DimensionField + var cv []types.MeasureField if *v == nil { - cv = []types.DimensionField{} + cv = []types.MeasureField{} } else { cv = *v } for _, value := range shape { - var col types.DimensionField + var col types.MeasureField destAddr := &col - if err := awsRestjson1_deserializeDocumentDimensionField(&destAddr, value); err != nil { + if err := awsRestjson1_deserializeDocumentMeasureField(&destAddr, value); err != nil { return err } col = *destAddr @@ -52848,7 +59891,7 @@ func awsRestjson1_deserializeDocumentPivotTableDimensionList(v *[]types.Dimensio return nil } -func awsRestjson1_deserializeDocumentPivotTableFieldOption(v **types.PivotTableFieldOption, value interface{}) error { +func awsRestjson1_deserializeDocumentRadarChartVisual(v **types.RadarChartVisual, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -52861,40 +59904,47 @@ func awsRestjson1_deserializeDocumentPivotTableFieldOption(v **types.PivotTableF return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.PivotTableFieldOption + var sv *types.RadarChartVisual if *v == nil { - sv = &types.PivotTableFieldOption{} + sv = &types.RadarChartVisual{} } else { sv = *v } for key, value := range shape { switch key { - case "CustomLabel": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected CustomLabel to be of type string, got %T instead", value) - } - sv.CustomLabel = ptr.String(jtv) + case "Actions": + if err := awsRestjson1_deserializeDocumentVisualCustomActionList(&sv.Actions, value); err != nil { + return err } - case "FieldId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected FieldId to be of type string, got %T instead", value) - } - sv.FieldId = ptr.String(jtv) + case "ChartConfiguration": + if err := awsRestjson1_deserializeDocumentRadarChartConfiguration(&sv.ChartConfiguration, value); err != nil { + return err } - case "Visibility": + case "ColumnHierarchies": + if err := awsRestjson1_deserializeDocumentColumnHierarchyList(&sv.ColumnHierarchies, value); err != nil { + return err + } + + case "Subtitle": + if err := awsRestjson1_deserializeDocumentVisualSubtitleLabelOptions(&sv.Subtitle, value); err != nil { + return err + } + + case "Title": + if err := awsRestjson1_deserializeDocumentVisualTitleLabelOptions(&sv.Title, value); err != nil { + return err + } + + case "VisualId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) } - sv.Visibility = types.Visibility(jtv) + sv.VisualId = ptr.String(jtv) } default: @@ -52906,41 +59956,7 @@ func awsRestjson1_deserializeDocumentPivotTableFieldOption(v **types.PivotTableF return nil } -func awsRestjson1_deserializeDocumentPivotTableFieldOptionList(v *[]types.PivotTableFieldOption, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []types.PivotTableFieldOption - if *v == nil { - cv = []types.PivotTableFieldOption{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.PivotTableFieldOption - destAddr := &col - if err := awsRestjson1_deserializeDocumentPivotTableFieldOption(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsRestjson1_deserializeDocumentPivotTableFieldOptions(v **types.PivotTableFieldOptions, value interface{}) error { +func awsRestjson1_deserializeDocumentRangeConstant(v **types.RangeConstant, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -52953,23 +59969,31 @@ func awsRestjson1_deserializeDocumentPivotTableFieldOptions(v **types.PivotTable return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.PivotTableFieldOptions + var sv *types.RangeConstant if *v == nil { - sv = &types.PivotTableFieldOptions{} + sv = &types.RangeConstant{} } else { sv = *v } for key, value := range shape { switch key { - case "DataPathOptions": - if err := awsRestjson1_deserializeDocumentPivotTableDataPathOptionList(&sv.DataPathOptions, value); err != nil { - return err + case "Maximum": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected LimitedString to be of type string, got %T instead", value) + } + sv.Maximum = ptr.String(jtv) } - case "SelectedFieldOptions": - if err := awsRestjson1_deserializeDocumentPivotTableFieldOptionList(&sv.SelectedFieldOptions, value); err != nil { - return err + case "Minimum": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected LimitedString to be of type string, got %T instead", value) + } + sv.Minimum = ptr.String(jtv) } default: @@ -52981,7 +60005,7 @@ func awsRestjson1_deserializeDocumentPivotTableFieldOptions(v **types.PivotTable return nil } -func awsRestjson1_deserializeDocumentPivotTableFieldSubtotalOptions(v **types.PivotTableFieldSubtotalOptions, value interface{}) error { +func awsRestjson1_deserializeDocumentRangeEndsLabelType(v **types.RangeEndsLabelType, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -52994,22 +60018,22 @@ func awsRestjson1_deserializeDocumentPivotTableFieldSubtotalOptions(v **types.Pi return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.PivotTableFieldSubtotalOptions + var sv *types.RangeEndsLabelType if *v == nil { - sv = &types.PivotTableFieldSubtotalOptions{} + sv = &types.RangeEndsLabelType{} } else { sv = *v } for key, value := range shape { switch key { - case "FieldId": + case "Visibility": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected FieldId to be of type string, got %T instead", value) + return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) } - sv.FieldId = ptr.String(jtv) + sv.Visibility = types.Visibility(jtv) } default: @@ -53021,7 +60045,7 @@ func awsRestjson1_deserializeDocumentPivotTableFieldSubtotalOptions(v **types.Pi return nil } -func awsRestjson1_deserializeDocumentPivotTableFieldSubtotalOptionsList(v *[]types.PivotTableFieldSubtotalOptions, value interface{}) error { +func awsRestjson1_deserializeDocumentRdsParameters(v **types.RdsParameters, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -53029,33 +60053,48 @@ func awsRestjson1_deserializeDocumentPivotTableFieldSubtotalOptionsList(v *[]typ return nil } - shape, ok := value.([]interface{}) + shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.PivotTableFieldSubtotalOptions + var sv *types.RdsParameters if *v == nil { - cv = []types.PivotTableFieldSubtotalOptions{} + sv = &types.RdsParameters{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col types.PivotTableFieldSubtotalOptions - destAddr := &col - if err := awsRestjson1_deserializeDocumentPivotTableFieldSubtotalOptions(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) + for key, value := range shape { + switch key { + case "Database": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Database to be of type string, got %T instead", value) + } + sv.Database = ptr.String(jtv) + } + + case "InstanceId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected InstanceId to be of type string, got %T instead", value) + } + sv.InstanceId = ptr.String(jtv) + } + default: + _, _ = key, value + + } } - *v = cv + *v = sv return nil } -func awsRestjson1_deserializeDocumentPivotTableFieldWells(v **types.PivotTableFieldWells, value interface{}) error { +func awsRestjson1_deserializeDocumentRedshiftParameters(v **types.RedshiftParameters, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -53068,18 +60107,53 @@ func awsRestjson1_deserializeDocumentPivotTableFieldWells(v **types.PivotTableFi return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.PivotTableFieldWells + var sv *types.RedshiftParameters if *v == nil { - sv = &types.PivotTableFieldWells{} + sv = &types.RedshiftParameters{} } else { sv = *v } for key, value := range shape { switch key { - case "PivotTableAggregatedFieldWells": - if err := awsRestjson1_deserializeDocumentPivotTableAggregatedFieldWells(&sv.PivotTableAggregatedFieldWells, value); err != nil { - return err + case "ClusterId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ClusterId to be of type string, got %T instead", value) + } + sv.ClusterId = ptr.String(jtv) + } + + case "Database": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Database to be of type string, got %T instead", value) + } + sv.Database = ptr.String(jtv) + } + + case "Host": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Host to be of type string, got %T instead", value) + } + sv.Host = ptr.String(jtv) + } + + case "Port": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected OptionalPort to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.Port = int32(i64) } default: @@ -53091,7 +60165,7 @@ func awsRestjson1_deserializeDocumentPivotTableFieldWells(v **types.PivotTableFi return nil } -func awsRestjson1_deserializeDocumentPivotTableOptions(v **types.PivotTableOptions, value interface{}) error { +func awsRestjson1_deserializeDocumentReferenceLine(v **types.ReferenceLine, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -53104,85 +60178,39 @@ func awsRestjson1_deserializeDocumentPivotTableOptions(v **types.PivotTableOptio return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.PivotTableOptions + var sv *types.ReferenceLine if *v == nil { - sv = &types.PivotTableOptions{} + sv = &types.ReferenceLine{} } else { sv = *v } for key, value := range shape { switch key { - case "CellStyle": - if err := awsRestjson1_deserializeDocumentTableCellStyle(&sv.CellStyle, value); err != nil { + case "DataConfiguration": + if err := awsRestjson1_deserializeDocumentReferenceLineDataConfiguration(&sv.DataConfiguration, value); err != nil { return err } - case "CollapsedRowDimensionsVisibility": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) - } - sv.CollapsedRowDimensionsVisibility = types.Visibility(jtv) - } - - case "ColumnHeaderStyle": - if err := awsRestjson1_deserializeDocumentTableCellStyle(&sv.ColumnHeaderStyle, value); err != nil { + case "LabelConfiguration": + if err := awsRestjson1_deserializeDocumentReferenceLineLabelConfiguration(&sv.LabelConfiguration, value); err != nil { return err } - case "ColumnNamesVisibility": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) - } - sv.ColumnNamesVisibility = types.Visibility(jtv) - } - - case "MetricPlacement": + case "Status": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected PivotTableMetricPlacement to be of type string, got %T instead", value) + return fmt.Errorf("expected WidgetStatus to be of type string, got %T instead", value) } - sv.MetricPlacement = types.PivotTableMetricPlacement(jtv) - } - - case "RowAlternateColorOptions": - if err := awsRestjson1_deserializeDocumentRowAlternateColorOptions(&sv.RowAlternateColorOptions, value); err != nil { - return err - } - - case "RowFieldNamesStyle": - if err := awsRestjson1_deserializeDocumentTableCellStyle(&sv.RowFieldNamesStyle, value); err != nil { - return err + sv.Status = types.WidgetStatus(jtv) } - case "RowHeaderStyle": - if err := awsRestjson1_deserializeDocumentTableCellStyle(&sv.RowHeaderStyle, value); err != nil { + case "StyleConfiguration": + if err := awsRestjson1_deserializeDocumentReferenceLineStyleConfiguration(&sv.StyleConfiguration, value); err != nil { return err } - case "SingleMetricVisibility": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) - } - sv.SingleMetricVisibility = types.Visibility(jtv) - } - - case "ToggleButtonsVisibility": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) - } - sv.ToggleButtonsVisibility = types.Visibility(jtv) - } - default: _, _ = key, value @@ -53192,7 +60220,7 @@ func awsRestjson1_deserializeDocumentPivotTableOptions(v **types.PivotTableOptio return nil } -func awsRestjson1_deserializeDocumentPivotTablePaginatedReportOptions(v **types.PivotTablePaginatedReportOptions, value interface{}) error { +func awsRestjson1_deserializeDocumentReferenceLineCustomLabelConfiguration(v **types.ReferenceLineCustomLabelConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -53205,31 +60233,22 @@ func awsRestjson1_deserializeDocumentPivotTablePaginatedReportOptions(v **types. return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.PivotTablePaginatedReportOptions + var sv *types.ReferenceLineCustomLabelConfiguration if *v == nil { - sv = &types.PivotTablePaginatedReportOptions{} + sv = &types.ReferenceLineCustomLabelConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "OverflowColumnHeaderVisibility": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) - } - sv.OverflowColumnHeaderVisibility = types.Visibility(jtv) - } - - case "VerticalOverflowVisibility": + case "CustomLabel": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.VerticalOverflowVisibility = types.Visibility(jtv) + sv.CustomLabel = ptr.String(jtv) } default: @@ -53241,7 +60260,7 @@ func awsRestjson1_deserializeDocumentPivotTablePaginatedReportOptions(v **types. return nil } -func awsRestjson1_deserializeDocumentPivotTableSortBy(v **types.PivotTableSortBy, value interface{}) error { +func awsRestjson1_deserializeDocumentReferenceLineDataConfiguration(v **types.ReferenceLineDataConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -53254,27 +60273,31 @@ func awsRestjson1_deserializeDocumentPivotTableSortBy(v **types.PivotTableSortBy return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.PivotTableSortBy + var sv *types.ReferenceLineDataConfiguration if *v == nil { - sv = &types.PivotTableSortBy{} + sv = &types.ReferenceLineDataConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "Column": - if err := awsRestjson1_deserializeDocumentColumnSort(&sv.Column, value); err != nil { - return err + case "AxisBinding": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AxisBinding to be of type string, got %T instead", value) + } + sv.AxisBinding = types.AxisBinding(jtv) } - case "DataPath": - if err := awsRestjson1_deserializeDocumentDataPathSort(&sv.DataPath, value); err != nil { + case "DynamicConfiguration": + if err := awsRestjson1_deserializeDocumentReferenceLineDynamicDataConfiguration(&sv.DynamicConfiguration, value); err != nil { return err } - case "Field": - if err := awsRestjson1_deserializeDocumentFieldSort(&sv.Field, value); err != nil { + case "StaticConfiguration": + if err := awsRestjson1_deserializeDocumentReferenceLineStaticDataConfiguration(&sv.StaticConfiguration, value); err != nil { return err } @@ -53287,7 +60310,7 @@ func awsRestjson1_deserializeDocumentPivotTableSortBy(v **types.PivotTableSortBy return nil } -func awsRestjson1_deserializeDocumentPivotTableSortConfiguration(v **types.PivotTableSortConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentReferenceLineDynamicDataConfiguration(v **types.ReferenceLineDynamicDataConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -53300,17 +60323,27 @@ func awsRestjson1_deserializeDocumentPivotTableSortConfiguration(v **types.Pivot return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.PivotTableSortConfiguration + var sv *types.ReferenceLineDynamicDataConfiguration if *v == nil { - sv = &types.PivotTableSortConfiguration{} + sv = &types.ReferenceLineDynamicDataConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "FieldSortOptions": - if err := awsRestjson1_deserializeDocumentPivotFieldSortOptionsList(&sv.FieldSortOptions, value); err != nil { + case "Calculation": + if err := awsRestjson1_deserializeDocumentNumericalAggregationFunction(&sv.Calculation, value); err != nil { + return err + } + + case "Column": + if err := awsRestjson1_deserializeDocumentColumnIdentifier(&sv.Column, value); err != nil { + return err + } + + case "MeasureAggregationFunction": + if err := awsRestjson1_deserializeDocumentAggregationFunction(&sv.MeasureAggregationFunction, value); err != nil { return err } @@ -53323,7 +60356,7 @@ func awsRestjson1_deserializeDocumentPivotTableSortConfiguration(v **types.Pivot return nil } -func awsRestjson1_deserializeDocumentPivotTableTotalOptions(v **types.PivotTableTotalOptions, value interface{}) error { +func awsRestjson1_deserializeDocumentReferenceLineLabelConfiguration(v **types.ReferenceLineLabelConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -53336,35 +60369,57 @@ func awsRestjson1_deserializeDocumentPivotTableTotalOptions(v **types.PivotTable return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.PivotTableTotalOptions + var sv *types.ReferenceLineLabelConfiguration if *v == nil { - sv = &types.PivotTableTotalOptions{} + sv = &types.ReferenceLineLabelConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "ColumnSubtotalOptions": - if err := awsRestjson1_deserializeDocumentSubtotalOptions(&sv.ColumnSubtotalOptions, value); err != nil { + case "CustomLabelConfiguration": + if err := awsRestjson1_deserializeDocumentReferenceLineCustomLabelConfiguration(&sv.CustomLabelConfiguration, value); err != nil { return err } - case "ColumnTotalOptions": - if err := awsRestjson1_deserializeDocumentPivotTotalOptions(&sv.ColumnTotalOptions, value); err != nil { - return err + case "FontColor": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected HexColor to be of type string, got %T instead", value) + } + sv.FontColor = ptr.String(jtv) } - case "RowSubtotalOptions": - if err := awsRestjson1_deserializeDocumentSubtotalOptions(&sv.RowSubtotalOptions, value); err != nil { + case "FontConfiguration": + if err := awsRestjson1_deserializeDocumentFontConfiguration(&sv.FontConfiguration, value); err != nil { return err } - case "RowTotalOptions": - if err := awsRestjson1_deserializeDocumentPivotTotalOptions(&sv.RowTotalOptions, value); err != nil { + case "HorizontalPosition": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ReferenceLineLabelHorizontalPosition to be of type string, got %T instead", value) + } + sv.HorizontalPosition = types.ReferenceLineLabelHorizontalPosition(jtv) + } + + case "ValueLabelConfiguration": + if err := awsRestjson1_deserializeDocumentReferenceLineValueLabelConfiguration(&sv.ValueLabelConfiguration, value); err != nil { return err } + case "VerticalPosition": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ReferenceLineLabelVerticalPosition to be of type string, got %T instead", value) + } + sv.VerticalPosition = types.ReferenceLineLabelVerticalPosition(jtv) + } + default: _, _ = key, value @@ -53374,7 +60429,41 @@ func awsRestjson1_deserializeDocumentPivotTableTotalOptions(v **types.PivotTable return nil } -func awsRestjson1_deserializeDocumentPivotTableVisual(v **types.PivotTableVisual, value interface{}) error { +func awsRestjson1_deserializeDocumentReferenceLineList(v *[]types.ReferenceLine, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.ReferenceLine + if *v == nil { + cv = []types.ReferenceLine{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.ReferenceLine + destAddr := &col + if err := awsRestjson1_deserializeDocumentReferenceLine(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentReferenceLineStaticDataConfiguration(v **types.ReferenceLineStaticDataConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -53387,47 +60476,47 @@ func awsRestjson1_deserializeDocumentPivotTableVisual(v **types.PivotTableVisual return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.PivotTableVisual + var sv *types.ReferenceLineStaticDataConfiguration if *v == nil { - sv = &types.PivotTableVisual{} + sv = &types.ReferenceLineStaticDataConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "Actions": - if err := awsRestjson1_deserializeDocumentVisualCustomActionList(&sv.Actions, value); err != nil { - return err - } + case "Value": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.Value = f64 - case "ChartConfiguration": - if err := awsRestjson1_deserializeDocumentPivotTableConfiguration(&sv.ChartConfiguration, value); err != nil { - return err - } + case string: + var f64 float64 + switch { + case strings.EqualFold(jtv, "NaN"): + f64 = math.NaN() - case "ConditionalFormatting": - if err := awsRestjson1_deserializeDocumentPivotTableConditionalFormatting(&sv.ConditionalFormatting, value); err != nil { - return err - } + case strings.EqualFold(jtv, "Infinity"): + f64 = math.Inf(1) - case "Subtitle": - if err := awsRestjson1_deserializeDocumentVisualSubtitleLabelOptions(&sv.Subtitle, value); err != nil { - return err - } + case strings.EqualFold(jtv, "-Infinity"): + f64 = math.Inf(-1) - case "Title": - if err := awsRestjson1_deserializeDocumentVisualTitleLabelOptions(&sv.Title, value); err != nil { - return err - } + default: + return fmt.Errorf("unknown JSON number value: %s", jtv) + + } + sv.Value = f64 + + default: + return fmt.Errorf("expected SensitiveDouble to be a JSON Number, got %T instead", value) - case "VisualId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) } - sv.VisualId = ptr.String(jtv) } default: @@ -53439,7 +60528,7 @@ func awsRestjson1_deserializeDocumentPivotTableVisual(v **types.PivotTableVisual return nil } -func awsRestjson1_deserializeDocumentPivotTotalOptions(v **types.PivotTotalOptions, value interface{}) error { +func awsRestjson1_deserializeDocumentReferenceLineStyleConfiguration(v **types.ReferenceLineStyleConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -53452,64 +60541,76 @@ func awsRestjson1_deserializeDocumentPivotTotalOptions(v **types.PivotTotalOptio return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.PivotTotalOptions + var sv *types.ReferenceLineStyleConfiguration if *v == nil { - sv = &types.PivotTotalOptions{} + sv = &types.ReferenceLineStyleConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "CustomLabel": + case "Color": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) + return fmt.Errorf("expected HexColor to be of type string, got %T instead", value) } - sv.CustomLabel = ptr.String(jtv) - } - - case "MetricHeaderCellStyle": - if err := awsRestjson1_deserializeDocumentTableCellStyle(&sv.MetricHeaderCellStyle, value); err != nil { - return err + sv.Color = ptr.String(jtv) } - case "Placement": + case "Pattern": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected TableTotalsPlacement to be of type string, got %T instead", value) + return fmt.Errorf("expected ReferenceLinePatternType to be of type string, got %T instead", value) } - sv.Placement = types.TableTotalsPlacement(jtv) + sv.Pattern = types.ReferenceLinePatternType(jtv) } - case "ScrollStatus": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected TableTotalsScrollStatus to be of type string, got %T instead", value) - } - sv.ScrollStatus = types.TableTotalsScrollStatus(jtv) - } + default: + _, _ = key, value - case "TotalCellStyle": - if err := awsRestjson1_deserializeDocumentTableCellStyle(&sv.TotalCellStyle, value); err != nil { + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentReferenceLineValueLabelConfiguration(v **types.ReferenceLineValueLabelConfiguration, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ReferenceLineValueLabelConfiguration + if *v == nil { + sv = &types.ReferenceLineValueLabelConfiguration{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "FormatConfiguration": + if err := awsRestjson1_deserializeDocumentNumericFormatConfiguration(&sv.FormatConfiguration, value); err != nil { return err } - case "TotalsVisibility": + case "RelativePosition": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) + return fmt.Errorf("expected ReferenceLineValueLabelRelativePosition to be of type string, got %T instead", value) } - sv.TotalsVisibility = types.Visibility(jtv) - } - - case "ValueCellStyle": - if err := awsRestjson1_deserializeDocumentTableCellStyle(&sv.ValueCellStyle, value); err != nil { - return err + sv.RelativePosition = types.ReferenceLineValueLabelRelativePosition(jtv) } default: @@ -53521,7 +60622,7 @@ func awsRestjson1_deserializeDocumentPivotTotalOptions(v **types.PivotTotalOptio return nil } -func awsRestjson1_deserializeDocumentPostgreSqlParameters(v **types.PostgreSqlParameters, value interface{}) error { +func awsRestjson1_deserializeDocumentRefreshConfiguration(v **types.RefreshConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -53534,44 +60635,18 @@ func awsRestjson1_deserializeDocumentPostgreSqlParameters(v **types.PostgreSqlPa return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.PostgreSqlParameters + var sv *types.RefreshConfiguration if *v == nil { - sv = &types.PostgreSqlParameters{} + sv = &types.RefreshConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "Database": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Database to be of type string, got %T instead", value) - } - sv.Database = ptr.String(jtv) - } - - case "Host": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Host to be of type string, got %T instead", value) - } - sv.Host = ptr.String(jtv) - } - - case "Port": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected Port to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.Port = int32(i64) + case "IncrementalRefresh": + if err := awsRestjson1_deserializeDocumentIncrementalRefresh(&sv.IncrementalRefresh, value); err != nil { + return err } default: @@ -53583,7 +60658,7 @@ func awsRestjson1_deserializeDocumentPostgreSqlParameters(v **types.PostgreSqlPa return nil } -func awsRestjson1_deserializeDocumentPreconditionNotMetException(v **types.PreconditionNotMetException, value interface{}) error { +func awsRestjson1_deserializeDocumentRefreshFrequency(v **types.RefreshFrequency, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -53596,31 +60671,45 @@ func awsRestjson1_deserializeDocumentPreconditionNotMetException(v **types.Preco return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.PreconditionNotMetException + var sv *types.RefreshFrequency if *v == nil { - sv = &types.PreconditionNotMetException{} + sv = &types.RefreshFrequency{} } else { sv = *v } for key, value := range shape { switch key { - case "Message": + case "Interval": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RefreshInterval to be of type string, got %T instead", value) + } + sv.Interval = types.RefreshInterval(jtv) + } + + case "RefreshOnDay": + if err := awsRestjson1_deserializeDocumentScheduleRefreshOnEntity(&sv.RefreshOnDay, value); err != nil { + return err + } + + case "TimeOfTheDay": if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Message = ptr.String(jtv) + sv.TimeOfTheDay = ptr.String(jtv) } - case "RequestId": + case "Timezone": if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.RequestId = ptr.String(jtv) + sv.Timezone = ptr.String(jtv) } default: @@ -53632,7 +60721,7 @@ func awsRestjson1_deserializeDocumentPreconditionNotMetException(v **types.Preco return nil } -func awsRestjson1_deserializeDocumentPredefinedHierarchy(v **types.PredefinedHierarchy, value interface{}) error { +func awsRestjson1_deserializeDocumentRefreshSchedule(v **types.RefreshSchedule, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -53645,32 +60734,61 @@ func awsRestjson1_deserializeDocumentPredefinedHierarchy(v **types.PredefinedHie return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.PredefinedHierarchy + var sv *types.RefreshSchedule if *v == nil { - sv = &types.PredefinedHierarchy{} + sv = &types.RefreshSchedule{} } else { sv = *v } for key, value := range shape { switch key { - case "Columns": - if err := awsRestjson1_deserializeDocumentPredefinedHierarchyColumnList(&sv.Columns, value); err != nil { - return err + case "Arn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) } - case "DrillDownFilters": - if err := awsRestjson1_deserializeDocumentDrillDownFilterList(&sv.DrillDownFilters, value); err != nil { + case "RefreshType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected IngestionType to be of type string, got %T instead", value) + } + sv.RefreshType = types.IngestionType(jtv) + } + + case "ScheduleFrequency": + if err := awsRestjson1_deserializeDocumentRefreshFrequency(&sv.ScheduleFrequency, value); err != nil { return err } - case "HierarchyId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected HierarchyId to be of type string, got %T instead", value) + case "ScheduleId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.ScheduleId = ptr.String(jtv) + } + + case "StartAfterDateTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.StartAfterDateTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + } - sv.HierarchyId = ptr.String(jtv) } default: @@ -53682,7 +60800,7 @@ func awsRestjson1_deserializeDocumentPredefinedHierarchy(v **types.PredefinedHie return nil } -func awsRestjson1_deserializeDocumentPredefinedHierarchyColumnList(v *[]types.ColumnIdentifier, value interface{}) error { +func awsRestjson1_deserializeDocumentRefreshSchedules(v *[]types.RefreshSchedule, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -53695,17 +60813,17 @@ func awsRestjson1_deserializeDocumentPredefinedHierarchyColumnList(v *[]types.Co return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.ColumnIdentifier + var cv []types.RefreshSchedule if *v == nil { - cv = []types.ColumnIdentifier{} + cv = []types.RefreshSchedule{} } else { cv = *v } for _, value := range shape { - var col types.ColumnIdentifier + var col types.RefreshSchedule destAddr := &col - if err := awsRestjson1_deserializeDocumentColumnIdentifier(&destAddr, value); err != nil { + if err := awsRestjson1_deserializeDocumentRefreshSchedule(&destAddr, value); err != nil { return err } col = *destAddr @@ -53716,7 +60834,7 @@ func awsRestjson1_deserializeDocumentPredefinedHierarchyColumnList(v *[]types.Co return nil } -func awsRestjson1_deserializeDocumentPrestoParameters(v **types.PrestoParameters, value interface{}) error { +func awsRestjson1_deserializeDocumentRelationalTable(v **types.RelationalTable, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -53729,9 +60847,9 @@ func awsRestjson1_deserializeDocumentPrestoParameters(v **types.PrestoParameters return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.PrestoParameters + var sv *types.RelationalTable if *v == nil { - sv = &types.PrestoParameters{} + sv = &types.RelationalTable{} } else { sv = *v } @@ -53742,31 +60860,41 @@ func awsRestjson1_deserializeDocumentPrestoParameters(v **types.PrestoParameters if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Catalog to be of type string, got %T instead", value) + return fmt.Errorf("expected RelationalTableCatalog to be of type string, got %T instead", value) } sv.Catalog = ptr.String(jtv) } - case "Host": + case "DataSourceArn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Host to be of type string, got %T instead", value) + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Host = ptr.String(jtv) + sv.DataSourceArn = ptr.String(jtv) } - case "Port": + case "InputColumns": + if err := awsRestjson1_deserializeDocumentInputColumnList(&sv.InputColumns, value); err != nil { + return err + } + + case "Name": if value != nil { - jtv, ok := value.(json.Number) + jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Port to be json.Number, got %T instead", value) + return fmt.Errorf("expected RelationalTableName to be of type string, got %T instead", value) } - i64, err := jtv.Int64() - if err != nil { - return err + sv.Name = ptr.String(jtv) + } + + case "Schema": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RelationalTableSchema to be of type string, got %T instead", value) } - sv.Port = int32(i64) + sv.Schema = ptr.String(jtv) } default: @@ -53778,7 +60906,7 @@ func awsRestjson1_deserializeDocumentPrestoParameters(v **types.PrestoParameters return nil } -func awsRestjson1_deserializeDocumentPrincipalList(v *[]string, value interface{}) error { +func awsRestjson1_deserializeDocumentRelativeDatesFilter(v **types.RelativeDatesFilter, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -53786,111 +60914,112 @@ func awsRestjson1_deserializeDocumentPrincipalList(v *[]string, value interface{ return nil } - shape, ok := value.([]interface{}) + shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var cv []string + var sv *types.RelativeDatesFilter if *v == nil { - cv = []string{} + sv = &types.RelativeDatesFilter{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col string - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) + for key, value := range shape { + switch key { + case "AnchorDateConfiguration": + if err := awsRestjson1_deserializeDocumentAnchorDateConfiguration(&sv.AnchorDateConfiguration, value); err != nil { + return err } - col = jtv - } - cv = append(cv, col) - } - *v = cv - return nil -} + case "Column": + if err := awsRestjson1_deserializeDocumentColumnIdentifier(&sv.Column, value); err != nil { + return err + } -func awsRestjson1_deserializeDocumentProgressBarOptions(v **types.ProgressBarOptions, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } + case "ExcludePeriodConfiguration": + if err := awsRestjson1_deserializeDocumentExcludePeriodConfiguration(&sv.ExcludePeriodConfiguration, value); err != nil { + return err + } - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } + case "FilterId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + } + sv.FilterId = ptr.String(jtv) + } - var sv *types.ProgressBarOptions - if *v == nil { - sv = &types.ProgressBarOptions{} - } else { - sv = *v - } + case "MinimumGranularity": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TimeGranularity to be of type string, got %T instead", value) + } + sv.MinimumGranularity = types.TimeGranularity(jtv) + } - for key, value := range shape { - switch key { - case "Visibility": + case "NullOption": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) + return fmt.Errorf("expected FilterNullOption to be of type string, got %T instead", value) } - sv.Visibility = types.Visibility(jtv) + sv.NullOption = types.FilterNullOption(jtv) } - default: - _, _ = key, value + case "ParameterName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ParameterName to be of type string, got %T instead", value) + } + sv.ParameterName = ptr.String(jtv) + } - } - } - *v = sv - return nil -} + case "RelativeDateType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RelativeDateType to be of type string, got %T instead", value) + } + sv.RelativeDateType = types.RelativeDateType(jtv) + } -func awsRestjson1_deserializeDocumentProjectedColumnList(v *[]string, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } + case "RelativeDateValue": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.RelativeDateValue = ptr.Int32(int32(i64)) + } - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } + case "TimeGranularity": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TimeGranularity to be of type string, got %T instead", value) + } + sv.TimeGranularity = types.TimeGranularity(jtv) + } - var cv []string - if *v == nil { - cv = []string{} - } else { - cv = *v - } + default: + _, _ = key, value - for _, value := range shape { - var col string - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - col = jtv } - cv = append(cv, col) - } - *v = cv + *v = sv return nil } -func awsRestjson1_deserializeDocumentProjectOperation(v **types.ProjectOperation, value interface{}) error { +func awsRestjson1_deserializeDocumentRelativeDateTimeControlDisplayOptions(v **types.RelativeDateTimeControlDisplayOptions, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -53903,17 +61032,26 @@ func awsRestjson1_deserializeDocumentProjectOperation(v **types.ProjectOperation return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ProjectOperation + var sv *types.RelativeDateTimeControlDisplayOptions if *v == nil { - sv = &types.ProjectOperation{} + sv = &types.RelativeDateTimeControlDisplayOptions{} } else { sv = *v } for key, value := range shape { switch key { - case "ProjectedColumns": - if err := awsRestjson1_deserializeDocumentProjectedColumnList(&sv.ProjectedColumns, value); err != nil { + case "DateTimeFormat": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DateTimeFormat to be of type string, got %T instead", value) + } + sv.DateTimeFormat = ptr.String(jtv) + } + + case "TitleOptions": + if err := awsRestjson1_deserializeDocumentLabelOptions(&sv.TitleOptions, value); err != nil { return err } @@ -53926,7 +61064,7 @@ func awsRestjson1_deserializeDocumentProjectOperation(v **types.ProjectOperation return nil } -func awsRestjson1_deserializeDocumentQueueInfo(v **types.QueueInfo, value interface{}) error { +func awsRestjson1_deserializeDocumentRenameColumnOperation(v **types.RenameColumnOperation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -53939,31 +61077,31 @@ func awsRestjson1_deserializeDocumentQueueInfo(v **types.QueueInfo, value interf return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.QueueInfo + var sv *types.RenameColumnOperation if *v == nil { - sv = &types.QueueInfo{} + sv = &types.RenameColumnOperation{} } else { sv = *v } for key, value := range shape { switch key { - case "QueuedIngestion": + case "ColumnName": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) + return fmt.Errorf("expected ColumnName to be of type string, got %T instead", value) } - sv.QueuedIngestion = ptr.String(jtv) + sv.ColumnName = ptr.String(jtv) } - case "WaitingOnIngestion": + case "NewColumnName": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) + return fmt.Errorf("expected ColumnName to be of type string, got %T instead", value) } - sv.WaitingOnIngestion = ptr.String(jtv) + sv.NewColumnName = ptr.String(jtv) } default: @@ -53975,7 +61113,7 @@ func awsRestjson1_deserializeDocumentQueueInfo(v **types.QueueInfo, value interf return nil } -func awsRestjson1_deserializeDocumentQuickSightUserNotFoundException(v **types.QuickSightUserNotFoundException, value interface{}) error { +func awsRestjson1_deserializeDocumentResourceExistsException(v **types.ResourceExistsException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -53988,9 +61126,9 @@ func awsRestjson1_deserializeDocumentQuickSightUserNotFoundException(v **types.Q return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.QuickSightUserNotFoundException + var sv *types.ResourceExistsException if *v == nil { - sv = &types.QuickSightUserNotFoundException{} + sv = &types.ResourceExistsException{} } else { sv = *v } @@ -54015,6 +61153,15 @@ func awsRestjson1_deserializeDocumentQuickSightUserNotFoundException(v **types.Q sv.RequestId = ptr.String(jtv) } + case "ResourceType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ExceptionResourceType to be of type string, got %T instead", value) + } + sv.ResourceType = types.ExceptionResourceType(jtv) + } + default: _, _ = key, value @@ -54024,7 +61171,7 @@ func awsRestjson1_deserializeDocumentQuickSightUserNotFoundException(v **types.Q return nil } -func awsRestjson1_deserializeDocumentRadarChartAggregatedFieldWells(v **types.RadarChartAggregatedFieldWells, value interface{}) error { +func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.ResourceNotFoundException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -54037,68 +61184,40 @@ func awsRestjson1_deserializeDocumentRadarChartAggregatedFieldWells(v **types.Ra return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.RadarChartAggregatedFieldWells + var sv *types.ResourceNotFoundException if *v == nil { - sv = &types.RadarChartAggregatedFieldWells{} + sv = &types.ResourceNotFoundException{} } else { sv = *v } for key, value := range shape { switch key { - case "Category": - if err := awsRestjson1_deserializeDocumentRadarChartCategoryFieldList(&sv.Category, value); err != nil { - return err - } - - case "Color": - if err := awsRestjson1_deserializeDocumentRadarChartColorFieldList(&sv.Color, value); err != nil { - return err + case "Message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) } - case "Values": - if err := awsRestjson1_deserializeDocumentRadarChartValuesFieldList(&sv.Values, value); err != nil { - return err + case "RequestId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.RequestId = ptr.String(jtv) } - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentRadarChartAreaStyleSettings(v **types.RadarChartAreaStyleSettings, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.RadarChartAreaStyleSettings - if *v == nil { - sv = &types.RadarChartAreaStyleSettings{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Visibility": + case "ResourceType": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) + return fmt.Errorf("expected ExceptionResourceType to be of type string, got %T instead", value) } - sv.Visibility = types.Visibility(jtv) + sv.ResourceType = types.ExceptionResourceType(jtv) } default: @@ -54110,75 +61229,7 @@ func awsRestjson1_deserializeDocumentRadarChartAreaStyleSettings(v **types.Radar return nil } -func awsRestjson1_deserializeDocumentRadarChartCategoryFieldList(v *[]types.DimensionField, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []types.DimensionField - if *v == nil { - cv = []types.DimensionField{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.DimensionField - destAddr := &col - if err := awsRestjson1_deserializeDocumentDimensionField(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsRestjson1_deserializeDocumentRadarChartColorFieldList(v *[]types.DimensionField, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []types.DimensionField - if *v == nil { - cv = []types.DimensionField{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.DimensionField - destAddr := &col - if err := awsRestjson1_deserializeDocumentDimensionField(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsRestjson1_deserializeDocumentRadarChartConfiguration(v **types.RadarChartConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentResourcePermission(v **types.ResourcePermission, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -54191,128 +61242,27 @@ func awsRestjson1_deserializeDocumentRadarChartConfiguration(v **types.RadarChar return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.RadarChartConfiguration + var sv *types.ResourcePermission if *v == nil { - sv = &types.RadarChartConfiguration{} + sv = &types.ResourcePermission{} } else { sv = *v } for key, value := range shape { switch key { - case "AlternateBandColorsVisibility": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) - } - sv.AlternateBandColorsVisibility = types.Visibility(jtv) - } - - case "AlternateBandEvenColor": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected HexColor to be of type string, got %T instead", value) - } - sv.AlternateBandEvenColor = ptr.String(jtv) - } - - case "AlternateBandOddColor": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected HexColor to be of type string, got %T instead", value) - } - sv.AlternateBandOddColor = ptr.String(jtv) - } - - case "BaseSeriesSettings": - if err := awsRestjson1_deserializeDocumentRadarChartSeriesSettings(&sv.BaseSeriesSettings, value); err != nil { - return err - } - - case "CategoryAxis": - if err := awsRestjson1_deserializeDocumentAxisDisplayOptions(&sv.CategoryAxis, value); err != nil { - return err - } - - case "CategoryLabelOptions": - if err := awsRestjson1_deserializeDocumentChartAxisLabelOptions(&sv.CategoryLabelOptions, value); err != nil { - return err - } - - case "ColorAxis": - if err := awsRestjson1_deserializeDocumentAxisDisplayOptions(&sv.ColorAxis, value); err != nil { - return err - } - - case "ColorLabelOptions": - if err := awsRestjson1_deserializeDocumentChartAxisLabelOptions(&sv.ColorLabelOptions, value); err != nil { - return err - } - - case "FieldWells": - if err := awsRestjson1_deserializeDocumentRadarChartFieldWells(&sv.FieldWells, value); err != nil { - return err - } - - case "Legend": - if err := awsRestjson1_deserializeDocumentLegendOptions(&sv.Legend, value); err != nil { + case "Actions": + if err := awsRestjson1_deserializeDocumentActionList(&sv.Actions, value); err != nil { return err } - case "Shape": + case "Principal": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected RadarChartShape to be of type string, got %T instead", value) - } - sv.Shape = types.RadarChartShape(jtv) - } - - case "SortConfiguration": - if err := awsRestjson1_deserializeDocumentRadarChartSortConfiguration(&sv.SortConfiguration, value); err != nil { - return err - } - - case "StartAngle": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.StartAngle = ptr.Float64(f64) - - case string: - var f64 float64 - switch { - case strings.EqualFold(jtv, "NaN"): - f64 = math.NaN() - - case strings.EqualFold(jtv, "Infinity"): - f64 = math.Inf(1) - - case strings.EqualFold(jtv, "-Infinity"): - f64 = math.Inf(-1) - - default: - return fmt.Errorf("unknown JSON number value: %s", jtv) - - } - sv.StartAngle = ptr.Float64(f64) - - default: - return fmt.Errorf("expected RadarChartStartAngle to be a JSON Number, got %T instead", value) - + return fmt.Errorf("expected Principal to be of type string, got %T instead", value) } - } - - case "VisualPalette": - if err := awsRestjson1_deserializeDocumentVisualPalette(&sv.VisualPalette, value); err != nil { - return err + sv.Principal = ptr.String(jtv) } default: @@ -54324,7 +61274,7 @@ func awsRestjson1_deserializeDocumentRadarChartConfiguration(v **types.RadarChar return nil } -func awsRestjson1_deserializeDocumentRadarChartFieldWells(v **types.RadarChartFieldWells, value interface{}) error { +func awsRestjson1_deserializeDocumentResourcePermissionList(v *[]types.ResourcePermission, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -54332,35 +61282,33 @@ func awsRestjson1_deserializeDocumentRadarChartFieldWells(v **types.RadarChartFi return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.RadarChartFieldWells + var cv []types.ResourcePermission if *v == nil { - sv = &types.RadarChartFieldWells{} + cv = []types.ResourcePermission{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "RadarChartAggregatedFieldWells": - if err := awsRestjson1_deserializeDocumentRadarChartAggregatedFieldWells(&sv.RadarChartAggregatedFieldWells, value); err != nil { - return err - } - - default: - _, _ = key, value - + for _, value := range shape { + var col types.ResourcePermission + destAddr := &col + if err := awsRestjson1_deserializeDocumentResourcePermission(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsRestjson1_deserializeDocumentRadarChartSeriesSettings(v **types.RadarChartSeriesSettings, value interface{}) error { +func awsRestjson1_deserializeDocumentResourceUnavailableException(v **types.ResourceUnavailableException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -54373,18 +61321,40 @@ func awsRestjson1_deserializeDocumentRadarChartSeriesSettings(v **types.RadarCha return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.RadarChartSeriesSettings + var sv *types.ResourceUnavailableException if *v == nil { - sv = &types.RadarChartSeriesSettings{} + sv = &types.ResourceUnavailableException{} } else { sv = *v } for key, value := range shape { switch key { - case "AreaStyleSettings": - if err := awsRestjson1_deserializeDocumentRadarChartAreaStyleSettings(&sv.AreaStyleSettings, value); err != nil { - return err + case "Message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + case "RequestId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.RequestId = ptr.String(jtv) + } + + case "ResourceType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ExceptionResourceType to be of type string, got %T instead", value) + } + sv.ResourceType = types.ExceptionResourceType(jtv) } default: @@ -54396,7 +61366,7 @@ func awsRestjson1_deserializeDocumentRadarChartSeriesSettings(v **types.RadarCha return nil } -func awsRestjson1_deserializeDocumentRadarChartSortConfiguration(v **types.RadarChartSortConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentRollingDateConfiguration(v **types.RollingDateConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -54409,33 +61379,31 @@ func awsRestjson1_deserializeDocumentRadarChartSortConfiguration(v **types.Radar return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.RadarChartSortConfiguration + var sv *types.RollingDateConfiguration if *v == nil { - sv = &types.RadarChartSortConfiguration{} + sv = &types.RollingDateConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "CategoryItemsLimit": - if err := awsRestjson1_deserializeDocumentItemsLimitConfiguration(&sv.CategoryItemsLimit, value); err != nil { - return err - } - - case "CategorySort": - if err := awsRestjson1_deserializeDocumentFieldSortOptionsList(&sv.CategorySort, value); err != nil { - return err - } - - case "ColorItemsLimit": - if err := awsRestjson1_deserializeDocumentItemsLimitConfiguration(&sv.ColorItemsLimit, value); err != nil { - return err + case "DataSetIdentifier": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DataSetIdentifier to be of type string, got %T instead", value) + } + sv.DataSetIdentifier = ptr.String(jtv) } - case "ColorSort": - if err := awsRestjson1_deserializeDocumentFieldSortOptionsList(&sv.ColorSort, value); err != nil { - return err + case "Expression": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Expression to be of type string, got %T instead", value) + } + sv.Expression = ptr.String(jtv) } default: @@ -54447,7 +61415,7 @@ func awsRestjson1_deserializeDocumentRadarChartSortConfiguration(v **types.Radar return nil } -func awsRestjson1_deserializeDocumentRadarChartValuesFieldList(v *[]types.MeasureField, value interface{}) error { +func awsRestjson1_deserializeDocumentRowAlternateColorList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -54460,20 +61428,22 @@ func awsRestjson1_deserializeDocumentRadarChartValuesFieldList(v *[]types.Measur return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.MeasureField + var cv []string if *v == nil { - cv = []types.MeasureField{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col types.MeasureField - destAddr := &col - if err := awsRestjson1_deserializeDocumentMeasureField(&destAddr, value); err != nil { - return err + var col string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected HexColor to be of type string, got %T instead", value) + } + col = jtv } - col = *destAddr cv = append(cv, col) } @@ -54481,7 +61451,7 @@ func awsRestjson1_deserializeDocumentRadarChartValuesFieldList(v *[]types.Measur return nil } -func awsRestjson1_deserializeDocumentRadarChartVisual(v **types.RadarChartVisual, value interface{}) error { +func awsRestjson1_deserializeDocumentRowAlternateColorOptions(v **types.RowAlternateColorOptions, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -54494,47 +61464,97 @@ func awsRestjson1_deserializeDocumentRadarChartVisual(v **types.RadarChartVisual return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.RadarChartVisual + var sv *types.RowAlternateColorOptions if *v == nil { - sv = &types.RadarChartVisual{} + sv = &types.RowAlternateColorOptions{} } else { sv = *v } for key, value := range shape { switch key { - case "Actions": - if err := awsRestjson1_deserializeDocumentVisualCustomActionList(&sv.Actions, value); err != nil { + case "RowAlternateColors": + if err := awsRestjson1_deserializeDocumentRowAlternateColorList(&sv.RowAlternateColors, value); err != nil { return err } - case "ChartConfiguration": - if err := awsRestjson1_deserializeDocumentRadarChartConfiguration(&sv.ChartConfiguration, value); err != nil { - return err + case "Status": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected WidgetStatus to be of type string, got %T instead", value) + } + sv.Status = types.WidgetStatus(jtv) } - case "ColumnHierarchies": - if err := awsRestjson1_deserializeDocumentColumnHierarchyList(&sv.ColumnHierarchies, value); err != nil { - return err - } + default: + _, _ = key, value - case "Subtitle": - if err := awsRestjson1_deserializeDocumentVisualSubtitleLabelOptions(&sv.Subtitle, value); err != nil { - return err + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentRowInfo(v **types.RowInfo, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.RowInfo + if *v == nil { + sv = &types.RowInfo{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "RowsDropped": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected Long to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.RowsDropped = ptr.Int64(i64) } - case "Title": - if err := awsRestjson1_deserializeDocumentVisualTitleLabelOptions(&sv.Title, value); err != nil { - return err + case "RowsIngested": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected Long to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.RowsIngested = ptr.Int64(i64) } - case "VisualId": + case "TotalRowsInDataset": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + return fmt.Errorf("expected Long to be json.Number, got %T instead", value) } - sv.VisualId = ptr.String(jtv) + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.TotalRowsInDataset = ptr.Int64(i64) } default: @@ -54546,7 +61566,7 @@ func awsRestjson1_deserializeDocumentRadarChartVisual(v **types.RadarChartVisual return nil } -func awsRestjson1_deserializeDocumentRangeEndsLabelType(v **types.RangeEndsLabelType, value interface{}) error { +func awsRestjson1_deserializeDocumentRowLevelPermissionDataSet(v **types.RowLevelPermissionDataSet, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -54559,22 +61579,58 @@ func awsRestjson1_deserializeDocumentRangeEndsLabelType(v **types.RangeEndsLabel return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.RangeEndsLabelType + var sv *types.RowLevelPermissionDataSet if *v == nil { - sv = &types.RangeEndsLabelType{} + sv = &types.RowLevelPermissionDataSet{} } else { sv = *v } for key, value := range shape { switch key { - case "Visibility": + case "Arn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Visibility = types.Visibility(jtv) + sv.Arn = ptr.String(jtv) + } + + case "FormatVersion": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RowLevelPermissionFormatVersion to be of type string, got %T instead", value) + } + sv.FormatVersion = types.RowLevelPermissionFormatVersion(jtv) + } + + case "Namespace": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Namespace to be of type string, got %T instead", value) + } + sv.Namespace = ptr.String(jtv) + } + + case "PermissionPolicy": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RowLevelPermissionPolicy to be of type string, got %T instead", value) + } + sv.PermissionPolicy = types.RowLevelPermissionPolicy(jtv) + } + + case "Status": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Status to be of type string, got %T instead", value) + } + sv.Status = types.Status(jtv) } default: @@ -54586,7 +61642,7 @@ func awsRestjson1_deserializeDocumentRangeEndsLabelType(v **types.RangeEndsLabel return nil } -func awsRestjson1_deserializeDocumentRdsParameters(v **types.RdsParameters, value interface{}) error { +func awsRestjson1_deserializeDocumentRowLevelPermissionTagConfiguration(v **types.RowLevelPermissionTagConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -54599,31 +61655,32 @@ func awsRestjson1_deserializeDocumentRdsParameters(v **types.RdsParameters, valu return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.RdsParameters + var sv *types.RowLevelPermissionTagConfiguration if *v == nil { - sv = &types.RdsParameters{} + sv = &types.RowLevelPermissionTagConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "Database": + case "Status": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Database to be of type string, got %T instead", value) + return fmt.Errorf("expected Status to be of type string, got %T instead", value) } - sv.Database = ptr.String(jtv) + sv.Status = types.Status(jtv) } - case "InstanceId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected InstanceId to be of type string, got %T instead", value) - } - sv.InstanceId = ptr.String(jtv) + case "TagRuleConfigurations": + if err := awsRestjson1_deserializeDocumentRowLevelPermissionTagRuleConfigurationList(&sv.TagRuleConfigurations, value); err != nil { + return err + } + + case "TagRules": + if err := awsRestjson1_deserializeDocumentRowLevelPermissionTagRuleList(&sv.TagRules, value); err != nil { + return err } default: @@ -54635,7 +61692,7 @@ func awsRestjson1_deserializeDocumentRdsParameters(v **types.RdsParameters, valu return nil } -func awsRestjson1_deserializeDocumentRedshiftParameters(v **types.RedshiftParameters, value interface{}) error { +func awsRestjson1_deserializeDocumentRowLevelPermissionTagRule(v **types.RowLevelPermissionTagRule, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -54648,53 +61705,49 @@ func awsRestjson1_deserializeDocumentRedshiftParameters(v **types.RedshiftParame return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.RedshiftParameters + var sv *types.RowLevelPermissionTagRule if *v == nil { - sv = &types.RedshiftParameters{} + sv = &types.RowLevelPermissionTagRule{} } else { sv = *v } for key, value := range shape { switch key { - case "ClusterId": + case "ColumnName": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ClusterId to be of type string, got %T instead", value) + return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ClusterId = ptr.String(jtv) + sv.ColumnName = ptr.String(jtv) } - case "Database": + case "MatchAllValue": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Database to be of type string, got %T instead", value) + return fmt.Errorf("expected SessionTagValue to be of type string, got %T instead", value) } - sv.Database = ptr.String(jtv) + sv.MatchAllValue = ptr.String(jtv) } - case "Host": + case "TagKey": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Host to be of type string, got %T instead", value) + return fmt.Errorf("expected SessionTagKey to be of type string, got %T instead", value) } - sv.Host = ptr.String(jtv) + sv.TagKey = ptr.String(jtv) } - case "Port": + case "TagMultiValueDelimiter": if value != nil { - jtv, ok := value.(json.Number) + jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected OptionalPort to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err + return fmt.Errorf("expected RowLevelPermissionTagDelimiter to be of type string, got %T instead", value) } - sv.Port = int32(i64) + sv.TagMultiValueDelimiter = ptr.String(jtv) } default: @@ -54706,7 +61759,7 @@ func awsRestjson1_deserializeDocumentRedshiftParameters(v **types.RedshiftParame return nil } -func awsRestjson1_deserializeDocumentReferenceLine(v **types.ReferenceLine, value interface{}) error { +func awsRestjson1_deserializeDocumentRowLevelPermissionTagRuleConfiguration(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -54714,54 +61767,67 @@ func awsRestjson1_deserializeDocumentReferenceLine(v **types.ReferenceLine, valu return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ReferenceLine + var cv []string if *v == nil { - sv = &types.ReferenceLine{} + cv = []string{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "DataConfiguration": - if err := awsRestjson1_deserializeDocumentReferenceLineDataConfiguration(&sv.DataConfiguration, value); err != nil { - return err + for _, value := range shape { + var col string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected SessionTagKey to be of type string, got %T instead", value) } + col = jtv + } + cv = append(cv, col) - case "LabelConfiguration": - if err := awsRestjson1_deserializeDocumentReferenceLineLabelConfiguration(&sv.LabelConfiguration, value); err != nil { - return err - } + } + *v = cv + return nil +} - case "Status": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected WidgetStatus to be of type string, got %T instead", value) - } - sv.Status = types.WidgetStatus(jtv) - } +func awsRestjson1_deserializeDocumentRowLevelPermissionTagRuleConfigurationList(v *[][]string, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } - case "StyleConfiguration": - if err := awsRestjson1_deserializeDocumentReferenceLineStyleConfiguration(&sv.StyleConfiguration, value); err != nil { - return err - } + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } - default: - _, _ = key, value + var cv [][]string + if *v == nil { + cv = [][]string{} + } else { + cv = *v + } + for _, value := range shape { + var col []string + if err := awsRestjson1_deserializeDocumentRowLevelPermissionTagRuleConfiguration(&col, value); err != nil { + return err } + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsRestjson1_deserializeDocumentReferenceLineCustomLabelConfiguration(v **types.ReferenceLineCustomLabelConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentRowLevelPermissionTagRuleList(v *[]types.RowLevelPermissionTagRule, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -54769,39 +61835,67 @@ func awsRestjson1_deserializeDocumentReferenceLineCustomLabelConfiguration(v **t return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ReferenceLineCustomLabelConfiguration + var cv []types.RowLevelPermissionTagRule if *v == nil { - sv = &types.ReferenceLineCustomLabelConfiguration{} + cv = []types.RowLevelPermissionTagRule{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "CustomLabel": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) - } - sv.CustomLabel = ptr.String(jtv) - } + for _, value := range shape { + var col types.RowLevelPermissionTagRule + destAddr := &col + if err := awsRestjson1_deserializeDocumentRowLevelPermissionTagRule(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) - default: - _, _ = key, value + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentRowSortList(v *[]types.FieldSortOptions, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.FieldSortOptions + if *v == nil { + cv = []types.FieldSortOptions{} + } else { + cv = *v + } + for _, value := range shape { + var col types.FieldSortOptions + destAddr := &col + if err := awsRestjson1_deserializeDocumentFieldSortOptions(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsRestjson1_deserializeDocumentReferenceLineDataConfiguration(v **types.ReferenceLineDataConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentS3Parameters(v **types.S3Parameters, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -54814,32 +61908,27 @@ func awsRestjson1_deserializeDocumentReferenceLineDataConfiguration(v **types.Re return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ReferenceLineDataConfiguration + var sv *types.S3Parameters if *v == nil { - sv = &types.ReferenceLineDataConfiguration{} + sv = &types.S3Parameters{} } else { sv = *v } for key, value := range shape { switch key { - case "AxisBinding": + case "ManifestFileLocation": + if err := awsRestjson1_deserializeDocumentManifestFileLocation(&sv.ManifestFileLocation, value); err != nil { + return err + } + + case "RoleArn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected AxisBinding to be of type string, got %T instead", value) + return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) } - sv.AxisBinding = types.AxisBinding(jtv) - } - - case "DynamicConfiguration": - if err := awsRestjson1_deserializeDocumentReferenceLineDynamicDataConfiguration(&sv.DynamicConfiguration, value); err != nil { - return err - } - - case "StaticConfiguration": - if err := awsRestjson1_deserializeDocumentReferenceLineStaticDataConfiguration(&sv.StaticConfiguration, value); err != nil { - return err + sv.RoleArn = ptr.String(jtv) } default: @@ -54851,7 +61940,7 @@ func awsRestjson1_deserializeDocumentReferenceLineDataConfiguration(v **types.Re return nil } -func awsRestjson1_deserializeDocumentReferenceLineDynamicDataConfiguration(v **types.ReferenceLineDynamicDataConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentS3Source(v **types.S3Source, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -54864,27 +61953,31 @@ func awsRestjson1_deserializeDocumentReferenceLineDynamicDataConfiguration(v **t return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ReferenceLineDynamicDataConfiguration + var sv *types.S3Source if *v == nil { - sv = &types.ReferenceLineDynamicDataConfiguration{} + sv = &types.S3Source{} } else { sv = *v } for key, value := range shape { switch key { - case "Calculation": - if err := awsRestjson1_deserializeDocumentNumericalAggregationFunction(&sv.Calculation, value); err != nil { - return err + case "DataSourceArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.DataSourceArn = ptr.String(jtv) } - case "Column": - if err := awsRestjson1_deserializeDocumentColumnIdentifier(&sv.Column, value); err != nil { + case "InputColumns": + if err := awsRestjson1_deserializeDocumentInputColumnList(&sv.InputColumns, value); err != nil { return err } - case "MeasureAggregationFunction": - if err := awsRestjson1_deserializeDocumentAggregationFunction(&sv.MeasureAggregationFunction, value); err != nil { + case "UploadSettings": + if err := awsRestjson1_deserializeDocumentUploadSettings(&sv.UploadSettings, value); err != nil { return err } @@ -54897,7 +61990,7 @@ func awsRestjson1_deserializeDocumentReferenceLineDynamicDataConfiguration(v **t return nil } -func awsRestjson1_deserializeDocumentReferenceLineLabelConfiguration(v **types.ReferenceLineLabelConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentSameSheetTargetVisualConfiguration(v **types.SameSheetTargetVisualConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -54910,57 +62003,29 @@ func awsRestjson1_deserializeDocumentReferenceLineLabelConfiguration(v **types.R return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ReferenceLineLabelConfiguration + var sv *types.SameSheetTargetVisualConfiguration if *v == nil { - sv = &types.ReferenceLineLabelConfiguration{} + sv = &types.SameSheetTargetVisualConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "CustomLabelConfiguration": - if err := awsRestjson1_deserializeDocumentReferenceLineCustomLabelConfiguration(&sv.CustomLabelConfiguration, value); err != nil { - return err - } - - case "FontColor": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected HexColor to be of type string, got %T instead", value) - } - sv.FontColor = ptr.String(jtv) - } - - case "FontConfiguration": - if err := awsRestjson1_deserializeDocumentFontConfiguration(&sv.FontConfiguration, value); err != nil { - return err - } - - case "HorizontalPosition": + case "TargetVisualOptions": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ReferenceLineLabelHorizontalPosition to be of type string, got %T instead", value) + return fmt.Errorf("expected TargetVisualOptions to be of type string, got %T instead", value) } - sv.HorizontalPosition = types.ReferenceLineLabelHorizontalPosition(jtv) + sv.TargetVisualOptions = types.TargetVisualOptions(jtv) } - case "ValueLabelConfiguration": - if err := awsRestjson1_deserializeDocumentReferenceLineValueLabelConfiguration(&sv.ValueLabelConfiguration, value); err != nil { + case "TargetVisuals": + if err := awsRestjson1_deserializeDocumentTargetVisualList(&sv.TargetVisuals, value); err != nil { return err } - case "VerticalPosition": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ReferenceLineLabelVerticalPosition to be of type string, got %T instead", value) - } - sv.VerticalPosition = types.ReferenceLineLabelVerticalPosition(jtv) - } - default: _, _ = key, value @@ -54970,7 +62035,7 @@ func awsRestjson1_deserializeDocumentReferenceLineLabelConfiguration(v **types.R return nil } -func awsRestjson1_deserializeDocumentReferenceLineList(v *[]types.ReferenceLine, value interface{}) error { +func awsRestjson1_deserializeDocumentSankeyDiagramAggregatedFieldWells(v **types.SankeyDiagramAggregatedFieldWells, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -54978,33 +62043,45 @@ func awsRestjson1_deserializeDocumentReferenceLineList(v *[]types.ReferenceLine, return nil } - shape, ok := value.([]interface{}) + shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.ReferenceLine + var sv *types.SankeyDiagramAggregatedFieldWells if *v == nil { - cv = []types.ReferenceLine{} + sv = &types.SankeyDiagramAggregatedFieldWells{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col types.ReferenceLine - destAddr := &col - if err := awsRestjson1_deserializeDocumentReferenceLine(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) + for key, value := range shape { + switch key { + case "Destination": + if err := awsRestjson1_deserializeDocumentDimensionFieldList(&sv.Destination, value); err != nil { + return err + } + + case "Source": + if err := awsRestjson1_deserializeDocumentDimensionFieldList(&sv.Source, value); err != nil { + return err + } + + case "Weight": + if err := awsRestjson1_deserializeDocumentMeasureFieldList(&sv.Weight, value); err != nil { + return err + } + default: + _, _ = key, value + + } } - *v = cv + *v = sv return nil } -func awsRestjson1_deserializeDocumentReferenceLineStaticDataConfiguration(v **types.ReferenceLineStaticDataConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentSankeyDiagramChartConfiguration(v **types.SankeyDiagramChartConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -55017,47 +62094,28 @@ func awsRestjson1_deserializeDocumentReferenceLineStaticDataConfiguration(v **ty return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ReferenceLineStaticDataConfiguration + var sv *types.SankeyDiagramChartConfiguration if *v == nil { - sv = &types.ReferenceLineStaticDataConfiguration{} + sv = &types.SankeyDiagramChartConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "Value": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.Value = f64 - - case string: - var f64 float64 - switch { - case strings.EqualFold(jtv, "NaN"): - f64 = math.NaN() - - case strings.EqualFold(jtv, "Infinity"): - f64 = math.Inf(1) - - case strings.EqualFold(jtv, "-Infinity"): - f64 = math.Inf(-1) - - default: - return fmt.Errorf("unknown JSON number value: %s", jtv) - - } - sv.Value = f64 + case "DataLabels": + if err := awsRestjson1_deserializeDocumentDataLabelOptions(&sv.DataLabels, value); err != nil { + return err + } - default: - return fmt.Errorf("expected SensitiveDouble to be a JSON Number, got %T instead", value) + case "FieldWells": + if err := awsRestjson1_deserializeDocumentSankeyDiagramFieldWells(&sv.FieldWells, value); err != nil { + return err + } - } + case "SortConfiguration": + if err := awsRestjson1_deserializeDocumentSankeyDiagramSortConfiguration(&sv.SortConfiguration, value); err != nil { + return err } default: @@ -55069,7 +62127,7 @@ func awsRestjson1_deserializeDocumentReferenceLineStaticDataConfiguration(v **ty return nil } -func awsRestjson1_deserializeDocumentReferenceLineStyleConfiguration(v **types.ReferenceLineStyleConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentSankeyDiagramFieldWells(v **types.SankeyDiagramFieldWells, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -55082,31 +62140,18 @@ func awsRestjson1_deserializeDocumentReferenceLineStyleConfiguration(v **types.R return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ReferenceLineStyleConfiguration + var sv *types.SankeyDiagramFieldWells if *v == nil { - sv = &types.ReferenceLineStyleConfiguration{} + sv = &types.SankeyDiagramFieldWells{} } else { sv = *v } for key, value := range shape { switch key { - case "Color": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected HexColor to be of type string, got %T instead", value) - } - sv.Color = ptr.String(jtv) - } - - case "Pattern": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ReferenceLinePatternType to be of type string, got %T instead", value) - } - sv.Pattern = types.ReferenceLinePatternType(jtv) + case "SankeyDiagramAggregatedFieldWells": + if err := awsRestjson1_deserializeDocumentSankeyDiagramAggregatedFieldWells(&sv.SankeyDiagramAggregatedFieldWells, value); err != nil { + return err } default: @@ -55118,7 +62163,7 @@ func awsRestjson1_deserializeDocumentReferenceLineStyleConfiguration(v **types.R return nil } -func awsRestjson1_deserializeDocumentReferenceLineValueLabelConfiguration(v **types.ReferenceLineValueLabelConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentSankeyDiagramSortConfiguration(v **types.SankeyDiagramSortConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -55131,27 +62176,28 @@ func awsRestjson1_deserializeDocumentReferenceLineValueLabelConfiguration(v **ty return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ReferenceLineValueLabelConfiguration + var sv *types.SankeyDiagramSortConfiguration if *v == nil { - sv = &types.ReferenceLineValueLabelConfiguration{} + sv = &types.SankeyDiagramSortConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "FormatConfiguration": - if err := awsRestjson1_deserializeDocumentNumericFormatConfiguration(&sv.FormatConfiguration, value); err != nil { + case "DestinationItemsLimit": + if err := awsRestjson1_deserializeDocumentItemsLimitConfiguration(&sv.DestinationItemsLimit, value); err != nil { return err } - case "RelativePosition": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ReferenceLineValueLabelRelativePosition to be of type string, got %T instead", value) - } - sv.RelativePosition = types.ReferenceLineValueLabelRelativePosition(jtv) + case "SourceItemsLimit": + if err := awsRestjson1_deserializeDocumentItemsLimitConfiguration(&sv.SourceItemsLimit, value); err != nil { + return err + } + + case "WeightSort": + if err := awsRestjson1_deserializeDocumentFieldSortOptionsList(&sv.WeightSort, value); err != nil { + return err } default: @@ -55163,7 +62209,7 @@ func awsRestjson1_deserializeDocumentReferenceLineValueLabelConfiguration(v **ty return nil } -func awsRestjson1_deserializeDocumentRefreshConfiguration(v **types.RefreshConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentSankeyDiagramVisual(v **types.SankeyDiagramVisual, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -55176,20 +62222,44 @@ func awsRestjson1_deserializeDocumentRefreshConfiguration(v **types.RefreshConfi return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.RefreshConfiguration + var sv *types.SankeyDiagramVisual if *v == nil { - sv = &types.RefreshConfiguration{} + sv = &types.SankeyDiagramVisual{} } else { sv = *v } for key, value := range shape { switch key { - case "IncrementalRefresh": - if err := awsRestjson1_deserializeDocumentIncrementalRefresh(&sv.IncrementalRefresh, value); err != nil { + case "Actions": + if err := awsRestjson1_deserializeDocumentVisualCustomActionList(&sv.Actions, value); err != nil { + return err + } + + case "ChartConfiguration": + if err := awsRestjson1_deserializeDocumentSankeyDiagramChartConfiguration(&sv.ChartConfiguration, value); err != nil { + return err + } + + case "Subtitle": + if err := awsRestjson1_deserializeDocumentVisualSubtitleLabelOptions(&sv.Subtitle, value); err != nil { + return err + } + + case "Title": + if err := awsRestjson1_deserializeDocumentVisualTitleLabelOptions(&sv.Title, value); err != nil { return err } + case "VisualId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + } + sv.VisualId = ptr.String(jtv) + } + default: _, _ = key, value @@ -55199,7 +62269,7 @@ func awsRestjson1_deserializeDocumentRefreshConfiguration(v **types.RefreshConfi return nil } -func awsRestjson1_deserializeDocumentRefreshFrequency(v **types.RefreshFrequency, value interface{}) error { +func awsRestjson1_deserializeDocumentScatterPlotCategoricallyAggregatedFieldWells(v **types.ScatterPlotCategoricallyAggregatedFieldWells, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -55212,45 +62282,38 @@ func awsRestjson1_deserializeDocumentRefreshFrequency(v **types.RefreshFrequency return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.RefreshFrequency + var sv *types.ScatterPlotCategoricallyAggregatedFieldWells if *v == nil { - sv = &types.RefreshFrequency{} + sv = &types.ScatterPlotCategoricallyAggregatedFieldWells{} } else { sv = *v } for key, value := range shape { switch key { - case "Interval": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected RefreshInterval to be of type string, got %T instead", value) - } - sv.Interval = types.RefreshInterval(jtv) + case "Category": + if err := awsRestjson1_deserializeDocumentDimensionFieldList(&sv.Category, value); err != nil { + return err } - case "RefreshOnDay": - if err := awsRestjson1_deserializeDocumentScheduleRefreshOnEntity(&sv.RefreshOnDay, value); err != nil { + case "Label": + if err := awsRestjson1_deserializeDocumentDimensionFieldList(&sv.Label, value); err != nil { return err } - case "TimeOfTheDay": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.TimeOfTheDay = ptr.String(jtv) + case "Size": + if err := awsRestjson1_deserializeDocumentMeasureFieldList(&sv.Size, value); err != nil { + return err } - case "Timezone": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.Timezone = ptr.String(jtv) + case "XAxis": + if err := awsRestjson1_deserializeDocumentMeasureFieldList(&sv.XAxis, value); err != nil { + return err + } + + case "YAxis": + if err := awsRestjson1_deserializeDocumentMeasureFieldList(&sv.YAxis, value); err != nil { + return err } default: @@ -55262,7 +62325,7 @@ func awsRestjson1_deserializeDocumentRefreshFrequency(v **types.RefreshFrequency return nil } -func awsRestjson1_deserializeDocumentRefreshSchedule(v **types.RefreshSchedule, value interface{}) error { +func awsRestjson1_deserializeDocumentScatterPlotConfiguration(v **types.ScatterPlotConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -55275,61 +62338,58 @@ func awsRestjson1_deserializeDocumentRefreshSchedule(v **types.RefreshSchedule, return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.RefreshSchedule + var sv *types.ScatterPlotConfiguration if *v == nil { - sv = &types.RefreshSchedule{} + sv = &types.ScatterPlotConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "Arn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.Arn = ptr.String(jtv) + case "DataLabels": + if err := awsRestjson1_deserializeDocumentDataLabelOptions(&sv.DataLabels, value); err != nil { + return err } - case "RefreshType": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected IngestionType to be of type string, got %T instead", value) - } - sv.RefreshType = types.IngestionType(jtv) + case "FieldWells": + if err := awsRestjson1_deserializeDocumentScatterPlotFieldWells(&sv.FieldWells, value); err != nil { + return err } - case "ScheduleFrequency": - if err := awsRestjson1_deserializeDocumentRefreshFrequency(&sv.ScheduleFrequency, value); err != nil { + case "Legend": + if err := awsRestjson1_deserializeDocumentLegendOptions(&sv.Legend, value); err != nil { return err } - case "ScheduleId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.ScheduleId = ptr.String(jtv) + case "Tooltip": + if err := awsRestjson1_deserializeDocumentTooltipOptions(&sv.Tooltip, value); err != nil { + return err } - case "StartAfterDateTime": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.StartAfterDateTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + case "VisualPalette": + if err := awsRestjson1_deserializeDocumentVisualPalette(&sv.VisualPalette, value); err != nil { + return err + } - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + case "XAxisDisplayOptions": + if err := awsRestjson1_deserializeDocumentAxisDisplayOptions(&sv.XAxisDisplayOptions, value); err != nil { + return err + } - } + case "XAxisLabelOptions": + if err := awsRestjson1_deserializeDocumentChartAxisLabelOptions(&sv.XAxisLabelOptions, value); err != nil { + return err + } + + case "YAxisDisplayOptions": + if err := awsRestjson1_deserializeDocumentAxisDisplayOptions(&sv.YAxisDisplayOptions, value); err != nil { + return err + } + + case "YAxisLabelOptions": + if err := awsRestjson1_deserializeDocumentChartAxisLabelOptions(&sv.YAxisLabelOptions, value); err != nil { + return err } default: @@ -55341,7 +62401,7 @@ func awsRestjson1_deserializeDocumentRefreshSchedule(v **types.RefreshSchedule, return nil } -func awsRestjson1_deserializeDocumentRefreshSchedules(v *[]types.RefreshSchedule, value interface{}) error { +func awsRestjson1_deserializeDocumentScatterPlotFieldWells(v **types.ScatterPlotFieldWells, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -55349,33 +62409,40 @@ func awsRestjson1_deserializeDocumentRefreshSchedules(v *[]types.RefreshSchedule return nil } - shape, ok := value.([]interface{}) + shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.RefreshSchedule + var sv *types.ScatterPlotFieldWells if *v == nil { - cv = []types.RefreshSchedule{} + sv = &types.ScatterPlotFieldWells{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col types.RefreshSchedule - destAddr := &col - if err := awsRestjson1_deserializeDocumentRefreshSchedule(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) + for key, value := range shape { + switch key { + case "ScatterPlotCategoricallyAggregatedFieldWells": + if err := awsRestjson1_deserializeDocumentScatterPlotCategoricallyAggregatedFieldWells(&sv.ScatterPlotCategoricallyAggregatedFieldWells, value); err != nil { + return err + } + + case "ScatterPlotUnaggregatedFieldWells": + if err := awsRestjson1_deserializeDocumentScatterPlotUnaggregatedFieldWells(&sv.ScatterPlotUnaggregatedFieldWells, value); err != nil { + return err + } + + default: + _, _ = key, value + } } - *v = cv + *v = sv return nil } -func awsRestjson1_deserializeDocumentRelationalTable(v **types.RelationalTable, value interface{}) error { +func awsRestjson1_deserializeDocumentScatterPlotUnaggregatedFieldWells(v **types.ScatterPlotUnaggregatedFieldWells, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -55388,54 +62455,38 @@ func awsRestjson1_deserializeDocumentRelationalTable(v **types.RelationalTable, return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.RelationalTable + var sv *types.ScatterPlotUnaggregatedFieldWells if *v == nil { - sv = &types.RelationalTable{} + sv = &types.ScatterPlotUnaggregatedFieldWells{} } else { sv = *v } for key, value := range shape { switch key { - case "Catalog": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected RelationalTableCatalog to be of type string, got %T instead", value) - } - sv.Catalog = ptr.String(jtv) + case "Category": + if err := awsRestjson1_deserializeDocumentDimensionFieldList(&sv.Category, value); err != nil { + return err } - case "DataSourceArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.DataSourceArn = ptr.String(jtv) + case "Label": + if err := awsRestjson1_deserializeDocumentDimensionFieldList(&sv.Label, value); err != nil { + return err } - case "InputColumns": - if err := awsRestjson1_deserializeDocumentInputColumnList(&sv.InputColumns, value); err != nil { + case "Size": + if err := awsRestjson1_deserializeDocumentMeasureFieldList(&sv.Size, value); err != nil { return err } - case "Name": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected RelationalTableName to be of type string, got %T instead", value) - } - sv.Name = ptr.String(jtv) + case "XAxis": + if err := awsRestjson1_deserializeDocumentDimensionFieldList(&sv.XAxis, value); err != nil { + return err } - case "Schema": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected RelationalTableSchema to be of type string, got %T instead", value) - } - sv.Schema = ptr.String(jtv) + case "YAxis": + if err := awsRestjson1_deserializeDocumentDimensionFieldList(&sv.YAxis, value); err != nil { + return err } default: @@ -55447,7 +62498,7 @@ func awsRestjson1_deserializeDocumentRelationalTable(v **types.RelationalTable, return nil } -func awsRestjson1_deserializeDocumentRelativeDatesFilter(v **types.RelativeDatesFilter, value interface{}) error { +func awsRestjson1_deserializeDocumentScatterPlotVisual(v **types.ScatterPlotVisual, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -55460,95 +62511,96 @@ func awsRestjson1_deserializeDocumentRelativeDatesFilter(v **types.RelativeDates return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.RelativeDatesFilter + var sv *types.ScatterPlotVisual if *v == nil { - sv = &types.RelativeDatesFilter{} + sv = &types.ScatterPlotVisual{} } else { sv = *v } for key, value := range shape { switch key { - case "AnchorDateConfiguration": - if err := awsRestjson1_deserializeDocumentAnchorDateConfiguration(&sv.AnchorDateConfiguration, value); err != nil { + case "Actions": + if err := awsRestjson1_deserializeDocumentVisualCustomActionList(&sv.Actions, value); err != nil { return err } - case "Column": - if err := awsRestjson1_deserializeDocumentColumnIdentifier(&sv.Column, value); err != nil { + case "ChartConfiguration": + if err := awsRestjson1_deserializeDocumentScatterPlotConfiguration(&sv.ChartConfiguration, value); err != nil { return err } - case "ExcludePeriodConfiguration": - if err := awsRestjson1_deserializeDocumentExcludePeriodConfiguration(&sv.ExcludePeriodConfiguration, value); err != nil { + case "ColumnHierarchies": + if err := awsRestjson1_deserializeDocumentColumnHierarchyList(&sv.ColumnHierarchies, value); err != nil { return err } - case "FilterId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) - } - sv.FilterId = ptr.String(jtv) + case "Subtitle": + if err := awsRestjson1_deserializeDocumentVisualSubtitleLabelOptions(&sv.Subtitle, value); err != nil { + return err } - case "MinimumGranularity": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected TimeGranularity to be of type string, got %T instead", value) - } - sv.MinimumGranularity = types.TimeGranularity(jtv) + case "Title": + if err := awsRestjson1_deserializeDocumentVisualTitleLabelOptions(&sv.Title, value); err != nil { + return err } - case "NullOption": + case "VisualId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected FilterNullOption to be of type string, got %T instead", value) + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) } - sv.NullOption = types.FilterNullOption(jtv) + sv.VisualId = ptr.String(jtv) } - case "ParameterName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ParameterName to be of type string, got %T instead", value) - } - sv.ParameterName = ptr.String(jtv) - } + default: + _, _ = key, value - case "RelativeDateType": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected RelativeDateType to be of type string, got %T instead", value) - } - sv.RelativeDateType = types.RelativeDateType(jtv) - } + } + } + *v = sv + return nil +} - case "RelativeDateValue": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err +func awsRestjson1_deserializeDocumentScheduleRefreshOnEntity(v **types.ScheduleRefreshOnEntity, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ScheduleRefreshOnEntity + if *v == nil { + sv = &types.ScheduleRefreshOnEntity{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "DayOfMonth": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DayOfMonth to be of type string, got %T instead", value) } - sv.RelativeDateValue = ptr.Int32(int32(i64)) + sv.DayOfMonth = ptr.String(jtv) } - case "TimeGranularity": + case "DayOfWeek": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected TimeGranularity to be of type string, got %T instead", value) + return fmt.Errorf("expected DayOfWeek to be of type string, got %T instead", value) } - sv.TimeGranularity = types.TimeGranularity(jtv) + sv.DayOfWeek = types.DayOfWeek(jtv) } default: @@ -55560,7 +62612,7 @@ func awsRestjson1_deserializeDocumentRelativeDatesFilter(v **types.RelativeDates return nil } -func awsRestjson1_deserializeDocumentRelativeDateTimeControlDisplayOptions(v **types.RelativeDateTimeControlDisplayOptions, value interface{}) error { +func awsRestjson1_deserializeDocumentScrollBarOptions(v **types.ScrollBarOptions, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -55573,26 +62625,26 @@ func awsRestjson1_deserializeDocumentRelativeDateTimeControlDisplayOptions(v **t return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.RelativeDateTimeControlDisplayOptions + var sv *types.ScrollBarOptions if *v == nil { - sv = &types.RelativeDateTimeControlDisplayOptions{} + sv = &types.ScrollBarOptions{} } else { sv = *v } for key, value := range shape { switch key { - case "DateTimeFormat": + case "Visibility": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected DateTimeFormat to be of type string, got %T instead", value) + return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) } - sv.DateTimeFormat = ptr.String(jtv) + sv.Visibility = types.Visibility(jtv) } - case "TitleOptions": - if err := awsRestjson1_deserializeDocumentLabelOptions(&sv.TitleOptions, value); err != nil { + case "VisibleRange": + if err := awsRestjson1_deserializeDocumentVisibleRangeOptions(&sv.VisibleRange, value); err != nil { return err } @@ -55605,7 +62657,7 @@ func awsRestjson1_deserializeDocumentRelativeDateTimeControlDisplayOptions(v **t return nil } -func awsRestjson1_deserializeDocumentRenameColumnOperation(v **types.RenameColumnOperation, value interface{}) error { +func awsRestjson1_deserializeDocumentSecondaryValueOptions(v **types.SecondaryValueOptions, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -55618,31 +62670,22 @@ func awsRestjson1_deserializeDocumentRenameColumnOperation(v **types.RenameColum return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.RenameColumnOperation + var sv *types.SecondaryValueOptions if *v == nil { - sv = &types.RenameColumnOperation{} + sv = &types.SecondaryValueOptions{} } else { sv = *v } for key, value := range shape { switch key { - case "ColumnName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ColumnName to be of type string, got %T instead", value) - } - sv.ColumnName = ptr.String(jtv) - } - - case "NewColumnName": + case "Visibility": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ColumnName to be of type string, got %T instead", value) + return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) } - sv.NewColumnName = ptr.String(jtv) + sv.Visibility = types.Visibility(jtv) } default: @@ -55654,7 +62697,7 @@ func awsRestjson1_deserializeDocumentRenameColumnOperation(v **types.RenameColum return nil } -func awsRestjson1_deserializeDocumentResourceExistsException(v **types.ResourceExistsException, value interface{}) error { +func awsRestjson1_deserializeDocumentSectionAfterPageBreak(v **types.SectionAfterPageBreak, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -55667,40 +62710,58 @@ func awsRestjson1_deserializeDocumentResourceExistsException(v **types.ResourceE return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ResourceExistsException + var sv *types.SectionAfterPageBreak if *v == nil { - sv = &types.ResourceExistsException{} + sv = &types.SectionAfterPageBreak{} } else { sv = *v } for key, value := range shape { switch key { - case "Message": + case "Status": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) + return fmt.Errorf("expected SectionPageBreakStatus to be of type string, got %T instead", value) } - sv.Message = ptr.String(jtv) + sv.Status = types.SectionPageBreakStatus(jtv) } - case "RequestId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.RequestId = ptr.String(jtv) - } + default: + _, _ = key, value - case "ResourceType": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ExceptionResourceType to be of type string, got %T instead", value) - } - sv.ResourceType = types.ExceptionResourceType(jtv) + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentSectionBasedLayoutCanvasSizeOptions(v **types.SectionBasedLayoutCanvasSizeOptions, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.SectionBasedLayoutCanvasSizeOptions + if *v == nil { + sv = &types.SectionBasedLayoutCanvasSizeOptions{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "PaperCanvasSizeOptions": + if err := awsRestjson1_deserializeDocumentSectionBasedLayoutPaperCanvasSizeOptions(&sv.PaperCanvasSizeOptions, value); err != nil { + return err } default: @@ -55712,7 +62773,7 @@ func awsRestjson1_deserializeDocumentResourceExistsException(v **types.ResourceE return nil } -func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.ResourceNotFoundException, value interface{}) error { +func awsRestjson1_deserializeDocumentSectionBasedLayoutConfiguration(v **types.SectionBasedLayoutConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -55725,40 +62786,33 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ResourceNotFoundException + var sv *types.SectionBasedLayoutConfiguration if *v == nil { - sv = &types.ResourceNotFoundException{} + sv = &types.SectionBasedLayoutConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "Message": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.Message = ptr.String(jtv) + case "BodySections": + if err := awsRestjson1_deserializeDocumentBodySectionConfigurationList(&sv.BodySections, value); err != nil { + return err } - case "RequestId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.RequestId = ptr.String(jtv) + case "CanvasSizeOptions": + if err := awsRestjson1_deserializeDocumentSectionBasedLayoutCanvasSizeOptions(&sv.CanvasSizeOptions, value); err != nil { + return err } - case "ResourceType": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ExceptionResourceType to be of type string, got %T instead", value) - } - sv.ResourceType = types.ExceptionResourceType(jtv) + case "FooterSections": + if err := awsRestjson1_deserializeDocumentHeaderFooterSectionConfigurationList(&sv.FooterSections, value); err != nil { + return err + } + + case "HeaderSections": + if err := awsRestjson1_deserializeDocumentHeaderFooterSectionConfigurationList(&sv.HeaderSections, value); err != nil { + return err } default: @@ -55770,7 +62824,7 @@ func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.Resourc return nil } -func awsRestjson1_deserializeDocumentResourcePermission(v **types.ResourcePermission, value interface{}) error { +func awsRestjson1_deserializeDocumentSectionBasedLayoutPaperCanvasSizeOptions(v **types.SectionBasedLayoutPaperCanvasSizeOptions, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -55783,27 +62837,36 @@ func awsRestjson1_deserializeDocumentResourcePermission(v **types.ResourcePermis return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ResourcePermission + var sv *types.SectionBasedLayoutPaperCanvasSizeOptions if *v == nil { - sv = &types.ResourcePermission{} + sv = &types.SectionBasedLayoutPaperCanvasSizeOptions{} } else { sv = *v } for key, value := range shape { switch key { - case "Actions": - if err := awsRestjson1_deserializeDocumentActionList(&sv.Actions, value); err != nil { + case "PaperMargin": + if err := awsRestjson1_deserializeDocumentSpacing(&sv.PaperMargin, value); err != nil { return err } - case "Principal": + case "PaperOrientation": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Principal to be of type string, got %T instead", value) + return fmt.Errorf("expected PaperOrientation to be of type string, got %T instead", value) } - sv.Principal = ptr.String(jtv) + sv.PaperOrientation = types.PaperOrientation(jtv) + } + + case "PaperSize": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected PaperSize to be of type string, got %T instead", value) + } + sv.PaperSize = types.PaperSize(jtv) } default: @@ -55815,7 +62878,7 @@ func awsRestjson1_deserializeDocumentResourcePermission(v **types.ResourcePermis return nil } -func awsRestjson1_deserializeDocumentResourcePermissionList(v *[]types.ResourcePermission, value interface{}) error { +func awsRestjson1_deserializeDocumentSectionLayoutConfiguration(v **types.SectionLayoutConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -55823,33 +62886,35 @@ func awsRestjson1_deserializeDocumentResourcePermissionList(v *[]types.ResourceP return nil } - shape, ok := value.([]interface{}) + shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.ResourcePermission + var sv *types.SectionLayoutConfiguration if *v == nil { - cv = []types.ResourcePermission{} + sv = &types.SectionLayoutConfiguration{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col types.ResourcePermission - destAddr := &col - if err := awsRestjson1_deserializeDocumentResourcePermission(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) + for key, value := range shape { + switch key { + case "FreeFormLayout": + if err := awsRestjson1_deserializeDocumentFreeFormSectionLayoutConfiguration(&sv.FreeFormLayout, value); err != nil { + return err + } + default: + _, _ = key, value + + } } - *v = cv + *v = sv return nil } -func awsRestjson1_deserializeDocumentResourceUnavailableException(v **types.ResourceUnavailableException, value interface{}) error { +func awsRestjson1_deserializeDocumentSectionPageBreakConfiguration(v **types.SectionPageBreakConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -55862,40 +62927,18 @@ func awsRestjson1_deserializeDocumentResourceUnavailableException(v **types.Reso return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ResourceUnavailableException + var sv *types.SectionPageBreakConfiguration if *v == nil { - sv = &types.ResourceUnavailableException{} + sv = &types.SectionPageBreakConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "Message": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.Message = ptr.String(jtv) - } - - case "RequestId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.RequestId = ptr.String(jtv) - } - - case "ResourceType": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ExceptionResourceType to be of type string, got %T instead", value) - } - sv.ResourceType = types.ExceptionResourceType(jtv) + case "After": + if err := awsRestjson1_deserializeDocumentSectionAfterPageBreak(&sv.After, value); err != nil { + return err } default: @@ -55907,7 +62950,7 @@ func awsRestjson1_deserializeDocumentResourceUnavailableException(v **types.Reso return nil } -func awsRestjson1_deserializeDocumentRollingDateConfiguration(v **types.RollingDateConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentSectionStyle(v **types.SectionStyle, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -55920,31 +62963,27 @@ func awsRestjson1_deserializeDocumentRollingDateConfiguration(v **types.RollingD return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.RollingDateConfiguration + var sv *types.SectionStyle if *v == nil { - sv = &types.RollingDateConfiguration{} + sv = &types.SectionStyle{} } else { sv = *v } for key, value := range shape { switch key { - case "DataSetIdentifier": + case "Height": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected DataSetIdentifier to be of type string, got %T instead", value) + return fmt.Errorf("expected PixelLength to be of type string, got %T instead", value) } - sv.DataSetIdentifier = ptr.String(jtv) + sv.Height = ptr.String(jtv) } - case "Expression": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Expression to be of type string, got %T instead", value) - } - sv.Expression = ptr.String(jtv) + case "Padding": + if err := awsRestjson1_deserializeDocumentSpacing(&sv.Padding, value); err != nil { + return err } default: @@ -55956,7 +62995,7 @@ func awsRestjson1_deserializeDocumentRollingDateConfiguration(v **types.RollingD return nil } -func awsRestjson1_deserializeDocumentRowAlternateColorList(v *[]string, value interface{}) error { +func awsRestjson1_deserializeDocumentSecurityGroupIdList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -55981,7 +63020,7 @@ func awsRestjson1_deserializeDocumentRowAlternateColorList(v *[]string, value in if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected HexColor to be of type string, got %T instead", value) + return fmt.Errorf("expected SecurityGroupId to be of type string, got %T instead", value) } col = jtv } @@ -55992,7 +63031,7 @@ func awsRestjson1_deserializeDocumentRowAlternateColorList(v *[]string, value in return nil } -func awsRestjson1_deserializeDocumentRowAlternateColorOptions(v **types.RowAlternateColorOptions, value interface{}) error { +func awsRestjson1_deserializeDocumentSelectedFieldList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -56000,44 +63039,35 @@ func awsRestjson1_deserializeDocumentRowAlternateColorOptions(v **types.RowAlter return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.RowAlternateColorOptions + var cv []string if *v == nil { - sv = &types.RowAlternateColorOptions{} + cv = []string{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "RowAlternateColors": - if err := awsRestjson1_deserializeDocumentRowAlternateColorList(&sv.RowAlternateColors, value); err != nil { - return err - } - - case "Status": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected WidgetStatus to be of type string, got %T instead", value) - } - sv.Status = types.WidgetStatus(jtv) + for _, value := range shape { + var col string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected FieldId to be of type string, got %T instead", value) } - - default: - _, _ = key, value - + col = jtv } + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsRestjson1_deserializeDocumentRowInfo(v **types.RowInfo, value interface{}) error { +func awsRestjson1_deserializeDocumentSelectedSheetsFilterScopeConfiguration(v **types.SelectedSheetsFilterScopeConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -56050,52 +63080,18 @@ func awsRestjson1_deserializeDocumentRowInfo(v **types.RowInfo, value interface{ return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.RowInfo + var sv *types.SelectedSheetsFilterScopeConfiguration if *v == nil { - sv = &types.RowInfo{} + sv = &types.SelectedSheetsFilterScopeConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "RowsDropped": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected Long to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.RowsDropped = ptr.Int64(i64) - } - - case "RowsIngested": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected Long to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.RowsIngested = ptr.Int64(i64) - } - - case "TotalRowsInDataset": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected Long to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.TotalRowsInDataset = ptr.Int64(i64) + case "SheetVisualScopingConfigurations": + if err := awsRestjson1_deserializeDocumentSheetVisualScopingConfigurations(&sv.SheetVisualScopingConfigurations, value); err != nil { + return err } default: @@ -56107,7 +63103,7 @@ func awsRestjson1_deserializeDocumentRowInfo(v **types.RowInfo, value interface{ return nil } -func awsRestjson1_deserializeDocumentRowLevelPermissionDataSet(v **types.RowLevelPermissionDataSet, value interface{}) error { +func awsRestjson1_deserializeDocumentSemanticEntityType(v **types.SemanticEntityType, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -56120,58 +63116,36 @@ func awsRestjson1_deserializeDocumentRowLevelPermissionDataSet(v **types.RowLeve return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.RowLevelPermissionDataSet + var sv *types.SemanticEntityType if *v == nil { - sv = &types.RowLevelPermissionDataSet{} + sv = &types.SemanticEntityType{} } else { sv = *v } for key, value := range shape { switch key { - case "Arn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.Arn = ptr.String(jtv) - } - - case "FormatVersion": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected RowLevelPermissionFormatVersion to be of type string, got %T instead", value) - } - sv.FormatVersion = types.RowLevelPermissionFormatVersion(jtv) - } - - case "Namespace": + case "SubTypeName": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Namespace to be of type string, got %T instead", value) + return fmt.Errorf("expected LimitedString to be of type string, got %T instead", value) } - sv.Namespace = ptr.String(jtv) + sv.SubTypeName = ptr.String(jtv) } - case "PermissionPolicy": + case "TypeName": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected RowLevelPermissionPolicy to be of type string, got %T instead", value) + return fmt.Errorf("expected LimitedString to be of type string, got %T instead", value) } - sv.PermissionPolicy = types.RowLevelPermissionPolicy(jtv) + sv.TypeName = ptr.String(jtv) } - case "Status": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Status to be of type string, got %T instead", value) - } - sv.Status = types.Status(jtv) + case "TypeParameters": + if err := awsRestjson1_deserializeDocumentTypeParameters(&sv.TypeParameters, value); err != nil { + return err } default: @@ -56183,7 +63157,7 @@ func awsRestjson1_deserializeDocumentRowLevelPermissionDataSet(v **types.RowLeve return nil } -func awsRestjson1_deserializeDocumentRowLevelPermissionTagConfiguration(v **types.RowLevelPermissionTagConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentSemanticType(v **types.SemanticType, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -56196,99 +63170,64 @@ func awsRestjson1_deserializeDocumentRowLevelPermissionTagConfiguration(v **type return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.RowLevelPermissionTagConfiguration + var sv *types.SemanticType if *v == nil { - sv = &types.RowLevelPermissionTagConfiguration{} + sv = &types.SemanticType{} } else { sv = *v } for key, value := range shape { switch key { - case "Status": + case "FalseyCellValue": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Status to be of type string, got %T instead", value) + return fmt.Errorf("expected SensitiveString to be of type string, got %T instead", value) } - sv.Status = types.Status(jtv) - } - - case "TagRuleConfigurations": - if err := awsRestjson1_deserializeDocumentRowLevelPermissionTagRuleConfigurationList(&sv.TagRuleConfigurations, value); err != nil { - return err + sv.FalseyCellValue = ptr.String(jtv) } - case "TagRules": - if err := awsRestjson1_deserializeDocumentRowLevelPermissionTagRuleList(&sv.TagRules, value); err != nil { + case "FalseyCellValueSynonyms": + if err := awsRestjson1_deserializeDocumentSensitiveStringList(&sv.FalseyCellValueSynonyms, value); err != nil { return err } - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentRowLevelPermissionTagRule(v **types.RowLevelPermissionTagRule, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.RowLevelPermissionTagRule - if *v == nil { - sv = &types.RowLevelPermissionTagRule{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "ColumnName": + case "SubTypeName": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) + return fmt.Errorf("expected LimitedString to be of type string, got %T instead", value) } - sv.ColumnName = ptr.String(jtv) + sv.SubTypeName = ptr.String(jtv) } - case "MatchAllValue": + case "TruthyCellValue": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected SessionTagValue to be of type string, got %T instead", value) + return fmt.Errorf("expected SensitiveString to be of type string, got %T instead", value) } - sv.MatchAllValue = ptr.String(jtv) + sv.TruthyCellValue = ptr.String(jtv) } - case "TagKey": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected SessionTagKey to be of type string, got %T instead", value) - } - sv.TagKey = ptr.String(jtv) + case "TruthyCellValueSynonyms": + if err := awsRestjson1_deserializeDocumentSensitiveStringList(&sv.TruthyCellValueSynonyms, value); err != nil { + return err } - case "TagMultiValueDelimiter": + case "TypeName": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected RowLevelPermissionTagDelimiter to be of type string, got %T instead", value) + return fmt.Errorf("expected LimitedString to be of type string, got %T instead", value) } - sv.TagMultiValueDelimiter = ptr.String(jtv) + sv.TypeName = ptr.String(jtv) + } + + case "TypeParameters": + if err := awsRestjson1_deserializeDocumentTypeParameters(&sv.TypeParameters, value); err != nil { + return err } default: @@ -56300,7 +63239,7 @@ func awsRestjson1_deserializeDocumentRowLevelPermissionTagRule(v **types.RowLeve return nil } -func awsRestjson1_deserializeDocumentRowLevelPermissionTagRuleConfiguration(v *[]string, value interface{}) error { +func awsRestjson1_deserializeDocumentSensitiveStringList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -56325,7 +63264,7 @@ func awsRestjson1_deserializeDocumentRowLevelPermissionTagRuleConfiguration(v *[ if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected SessionTagKey to be of type string, got %T instead", value) + return fmt.Errorf("expected SensitiveString to be of type string, got %T instead", value) } col = jtv } @@ -56336,7 +63275,7 @@ func awsRestjson1_deserializeDocumentRowLevelPermissionTagRuleConfiguration(v *[ return nil } -func awsRestjson1_deserializeDocumentRowLevelPermissionTagRuleConfigurationList(v *[][]string, value interface{}) error { +func awsRestjson1_deserializeDocumentSeriesItem(v **types.SeriesItem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -56344,65 +63283,40 @@ func awsRestjson1_deserializeDocumentRowLevelPermissionTagRuleConfigurationList( return nil } - shape, ok := value.([]interface{}) + shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var cv [][]string + var sv *types.SeriesItem if *v == nil { - cv = [][]string{} + sv = &types.SeriesItem{} } else { - cv = *v - } - - for _, value := range shape { - var col []string - if err := awsRestjson1_deserializeDocumentRowLevelPermissionTagRuleConfiguration(&col, value); err != nil { - return err - } - cv = append(cv, col) - + sv = *v } - *v = cv - return nil -} -func awsRestjson1_deserializeDocumentRowLevelPermissionTagRuleList(v *[]types.RowLevelPermissionTagRule, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } + for key, value := range shape { + switch key { + case "DataFieldSeriesItem": + if err := awsRestjson1_deserializeDocumentDataFieldSeriesItem(&sv.DataFieldSeriesItem, value); err != nil { + return err + } - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } + case "FieldSeriesItem": + if err := awsRestjson1_deserializeDocumentFieldSeriesItem(&sv.FieldSeriesItem, value); err != nil { + return err + } - var cv []types.RowLevelPermissionTagRule - if *v == nil { - cv = []types.RowLevelPermissionTagRule{} - } else { - cv = *v - } + default: + _, _ = key, value - for _, value := range shape { - var col types.RowLevelPermissionTagRule - destAddr := &col - if err := awsRestjson1_deserializeDocumentRowLevelPermissionTagRule(&destAddr, value); err != nil { - return err } - col = *destAddr - cv = append(cv, col) - } - *v = cv + *v = sv return nil } -func awsRestjson1_deserializeDocumentRowSortList(v *[]types.FieldSortOptions, value interface{}) error { +func awsRestjson1_deserializeDocumentSeriesItemList(v *[]types.SeriesItem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -56415,17 +63329,17 @@ func awsRestjson1_deserializeDocumentRowSortList(v *[]types.FieldSortOptions, va return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.FieldSortOptions + var cv []types.SeriesItem if *v == nil { - cv = []types.FieldSortOptions{} + cv = []types.SeriesItem{} } else { cv = *v } for _, value := range shape { - var col types.FieldSortOptions + var col types.SeriesItem destAddr := &col - if err := awsRestjson1_deserializeDocumentFieldSortOptions(&destAddr, value); err != nil { + if err := awsRestjson1_deserializeDocumentSeriesItem(&destAddr, value); err != nil { return err } col = *destAddr @@ -56436,7 +63350,7 @@ func awsRestjson1_deserializeDocumentRowSortList(v *[]types.FieldSortOptions, va return nil } -func awsRestjson1_deserializeDocumentS3Parameters(v **types.S3Parameters, value interface{}) error { +func awsRestjson1_deserializeDocumentServiceNowParameters(v **types.ServiceNowParameters, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -56449,27 +63363,22 @@ func awsRestjson1_deserializeDocumentS3Parameters(v **types.S3Parameters, value return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.S3Parameters + var sv *types.ServiceNowParameters if *v == nil { - sv = &types.S3Parameters{} + sv = &types.ServiceNowParameters{} } else { sv = *v } for key, value := range shape { switch key { - case "ManifestFileLocation": - if err := awsRestjson1_deserializeDocumentManifestFileLocation(&sv.ManifestFileLocation, value); err != nil { - return err - } - - case "RoleArn": + case "SiteBaseUrl": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected RoleArn to be of type string, got %T instead", value) + return fmt.Errorf("expected SiteBaseUrl to be of type string, got %T instead", value) } - sv.RoleArn = ptr.String(jtv) + sv.SiteBaseUrl = ptr.String(jtv) } default: @@ -56481,7 +63390,7 @@ func awsRestjson1_deserializeDocumentS3Parameters(v **types.S3Parameters, value return nil } -func awsRestjson1_deserializeDocumentS3Source(v **types.S3Source, value interface{}) error { +func awsRestjson1_deserializeDocumentSessionLifetimeInMinutesInvalidException(v **types.SessionLifetimeInMinutesInvalidException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -56494,32 +63403,31 @@ func awsRestjson1_deserializeDocumentS3Source(v **types.S3Source, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.S3Source + var sv *types.SessionLifetimeInMinutesInvalidException if *v == nil { - sv = &types.S3Source{} + sv = &types.SessionLifetimeInMinutesInvalidException{} } else { sv = *v } for key, value := range shape { switch key { - case "DataSourceArn": + case "Message": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.DataSourceArn = ptr.String(jtv) - } - - case "InputColumns": - if err := awsRestjson1_deserializeDocumentInputColumnList(&sv.InputColumns, value); err != nil { - return err + sv.Message = ptr.String(jtv) } - case "UploadSettings": - if err := awsRestjson1_deserializeDocumentUploadSettings(&sv.UploadSettings, value); err != nil { - return err + case "RequestId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.RequestId = ptr.String(jtv) } default: @@ -56531,7 +63439,7 @@ func awsRestjson1_deserializeDocumentS3Source(v **types.S3Source, value interfac return nil } -func awsRestjson1_deserializeDocumentSameSheetTargetVisualConfiguration(v **types.SameSheetTargetVisualConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentSetParameterValueConfiguration(v **types.SetParameterValueConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -56544,26 +63452,26 @@ func awsRestjson1_deserializeDocumentSameSheetTargetVisualConfiguration(v **type return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.SameSheetTargetVisualConfiguration + var sv *types.SetParameterValueConfiguration if *v == nil { - sv = &types.SameSheetTargetVisualConfiguration{} + sv = &types.SetParameterValueConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "TargetVisualOptions": + case "DestinationParameterName": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected TargetVisualOptions to be of type string, got %T instead", value) + return fmt.Errorf("expected ParameterName to be of type string, got %T instead", value) } - sv.TargetVisualOptions = types.TargetVisualOptions(jtv) + sv.DestinationParameterName = ptr.String(jtv) } - case "TargetVisuals": - if err := awsRestjson1_deserializeDocumentTargetVisualList(&sv.TargetVisuals, value); err != nil { + case "Value": + if err := awsRestjson1_deserializeDocumentDestinationParameterValueConfiguration(&sv.Value, value); err != nil { return err } @@ -56576,7 +63484,41 @@ func awsRestjson1_deserializeDocumentSameSheetTargetVisualConfiguration(v **type return nil } -func awsRestjson1_deserializeDocumentSankeyDiagramAggregatedFieldWells(v **types.SankeyDiagramAggregatedFieldWells, value interface{}) error { +func awsRestjson1_deserializeDocumentSetParameterValueConfigurationList(v *[]types.SetParameterValueConfiguration, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.SetParameterValueConfiguration + if *v == nil { + cv = []types.SetParameterValueConfiguration{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.SetParameterValueConfiguration + destAddr := &col + if err := awsRestjson1_deserializeDocumentSetParameterValueConfiguration(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentShapeConditionalFormat(v **types.ShapeConditionalFormat, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -56589,27 +63531,17 @@ func awsRestjson1_deserializeDocumentSankeyDiagramAggregatedFieldWells(v **types return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.SankeyDiagramAggregatedFieldWells + var sv *types.ShapeConditionalFormat if *v == nil { - sv = &types.SankeyDiagramAggregatedFieldWells{} + sv = &types.ShapeConditionalFormat{} } else { sv = *v } for key, value := range shape { switch key { - case "Destination": - if err := awsRestjson1_deserializeDocumentDimensionFieldList(&sv.Destination, value); err != nil { - return err - } - - case "Source": - if err := awsRestjson1_deserializeDocumentDimensionFieldList(&sv.Source, value); err != nil { - return err - } - - case "Weight": - if err := awsRestjson1_deserializeDocumentMeasureFieldList(&sv.Weight, value); err != nil { + case "BackgroundColor": + if err := awsRestjson1_deserializeDocumentConditionalFormattingColor(&sv.BackgroundColor, value); err != nil { return err } @@ -56622,7 +63554,7 @@ func awsRestjson1_deserializeDocumentSankeyDiagramAggregatedFieldWells(v **types return nil } -func awsRestjson1_deserializeDocumentSankeyDiagramChartConfiguration(v **types.SankeyDiagramChartConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentSheet(v **types.Sheet, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -56635,28 +63567,31 @@ func awsRestjson1_deserializeDocumentSankeyDiagramChartConfiguration(v **types.S return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.SankeyDiagramChartConfiguration + var sv *types.Sheet if *v == nil { - sv = &types.SankeyDiagramChartConfiguration{} + sv = &types.Sheet{} } else { sv = *v } for key, value := range shape { switch key { - case "DataLabels": - if err := awsRestjson1_deserializeDocumentDataLabelOptions(&sv.DataLabels, value); err != nil { - return err - } - - case "FieldWells": - if err := awsRestjson1_deserializeDocumentSankeyDiagramFieldWells(&sv.FieldWells, value); err != nil { - return err + case "Name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected SheetName to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) } - case "SortConfiguration": - if err := awsRestjson1_deserializeDocumentSankeyDiagramSortConfiguration(&sv.SortConfiguration, value); err != nil { - return err + case "SheetId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + } + sv.SheetId = ptr.String(jtv) } default: @@ -56668,7 +63603,7 @@ func awsRestjson1_deserializeDocumentSankeyDiagramChartConfiguration(v **types.S return nil } -func awsRestjson1_deserializeDocumentSankeyDiagramFieldWells(v **types.SankeyDiagramFieldWells, value interface{}) error { +func awsRestjson1_deserializeDocumentSheetControlLayout(v **types.SheetControlLayout, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -56681,17 +63616,17 @@ func awsRestjson1_deserializeDocumentSankeyDiagramFieldWells(v **types.SankeyDia return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.SankeyDiagramFieldWells + var sv *types.SheetControlLayout if *v == nil { - sv = &types.SankeyDiagramFieldWells{} + sv = &types.SheetControlLayout{} } else { sv = *v } for key, value := range shape { switch key { - case "SankeyDiagramAggregatedFieldWells": - if err := awsRestjson1_deserializeDocumentSankeyDiagramAggregatedFieldWells(&sv.SankeyDiagramAggregatedFieldWells, value); err != nil { + case "Configuration": + if err := awsRestjson1_deserializeDocumentSheetControlLayoutConfiguration(&sv.Configuration, value); err != nil { return err } @@ -56704,7 +63639,7 @@ func awsRestjson1_deserializeDocumentSankeyDiagramFieldWells(v **types.SankeyDia return nil } -func awsRestjson1_deserializeDocumentSankeyDiagramSortConfiguration(v **types.SankeyDiagramSortConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentSheetControlLayoutConfiguration(v **types.SheetControlLayoutConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -56717,27 +63652,17 @@ func awsRestjson1_deserializeDocumentSankeyDiagramSortConfiguration(v **types.Sa return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.SankeyDiagramSortConfiguration + var sv *types.SheetControlLayoutConfiguration if *v == nil { - sv = &types.SankeyDiagramSortConfiguration{} + sv = &types.SheetControlLayoutConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "DestinationItemsLimit": - if err := awsRestjson1_deserializeDocumentItemsLimitConfiguration(&sv.DestinationItemsLimit, value); err != nil { - return err - } - - case "SourceItemsLimit": - if err := awsRestjson1_deserializeDocumentItemsLimitConfiguration(&sv.SourceItemsLimit, value); err != nil { - return err - } - - case "WeightSort": - if err := awsRestjson1_deserializeDocumentFieldSortOptionsList(&sv.WeightSort, value); err != nil { + case "GridLayout": + if err := awsRestjson1_deserializeDocumentGridLayoutConfiguration(&sv.GridLayout, value); err != nil { return err } @@ -56750,7 +63675,7 @@ func awsRestjson1_deserializeDocumentSankeyDiagramSortConfiguration(v **types.Sa return nil } -func awsRestjson1_deserializeDocumentSankeyDiagramVisual(v **types.SankeyDiagramVisual, value interface{}) error { +func awsRestjson1_deserializeDocumentSheetControlLayoutList(v *[]types.SheetControlLayout, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -56758,47 +63683,61 @@ func awsRestjson1_deserializeDocumentSankeyDiagramVisual(v **types.SankeyDiagram return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.SankeyDiagramVisual + var cv []types.SheetControlLayout if *v == nil { - sv = &types.SankeyDiagramVisual{} + cv = []types.SheetControlLayout{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "Actions": - if err := awsRestjson1_deserializeDocumentVisualCustomActionList(&sv.Actions, value); err != nil { - return err - } + for _, value := range shape { + var col types.SheetControlLayout + destAddr := &col + if err := awsRestjson1_deserializeDocumentSheetControlLayout(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) - case "ChartConfiguration": - if err := awsRestjson1_deserializeDocumentSankeyDiagramChartConfiguration(&sv.ChartConfiguration, value); err != nil { - return err - } + } + *v = cv + return nil +} - case "Subtitle": - if err := awsRestjson1_deserializeDocumentVisualSubtitleLabelOptions(&sv.Subtitle, value); err != nil { - return err - } +func awsRestjson1_deserializeDocumentSheetControlsOption(v **types.SheetControlsOption, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } - case "Title": - if err := awsRestjson1_deserializeDocumentVisualTitleLabelOptions(&sv.Title, value); err != nil { - return err - } + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } - case "VisualId": + var sv *types.SheetControlsOption + if *v == nil { + sv = &types.SheetControlsOption{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "VisibilityState": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + return fmt.Errorf("expected DashboardUIState to be of type string, got %T instead", value) } - sv.VisualId = ptr.String(jtv) + sv.VisibilityState = types.DashboardUIState(jtv) } default: @@ -56810,7 +63749,7 @@ func awsRestjson1_deserializeDocumentSankeyDiagramVisual(v **types.SankeyDiagram return nil } -func awsRestjson1_deserializeDocumentScatterPlotCategoricallyAggregatedFieldWells(v **types.ScatterPlotCategoricallyAggregatedFieldWells, value interface{}) error { +func awsRestjson1_deserializeDocumentSheetDefinition(v **types.SheetDefinition, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -56823,32 +63762,87 @@ func awsRestjson1_deserializeDocumentScatterPlotCategoricallyAggregatedFieldWell return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ScatterPlotCategoricallyAggregatedFieldWells + var sv *types.SheetDefinition if *v == nil { - sv = &types.ScatterPlotCategoricallyAggregatedFieldWells{} + sv = &types.SheetDefinition{} } else { sv = *v } for key, value := range shape { switch key { - case "Category": - if err := awsRestjson1_deserializeDocumentDimensionFieldList(&sv.Category, value); err != nil { + case "ContentType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected SheetContentType to be of type string, got %T instead", value) + } + sv.ContentType = types.SheetContentType(jtv) + } + + case "Description": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected SheetDescription to be of type string, got %T instead", value) + } + sv.Description = ptr.String(jtv) + } + + case "FilterControls": + if err := awsRestjson1_deserializeDocumentFilterControlList(&sv.FilterControls, value); err != nil { return err } - case "Size": - if err := awsRestjson1_deserializeDocumentMeasureFieldList(&sv.Size, value); err != nil { + case "Layouts": + if err := awsRestjson1_deserializeDocumentLayoutList(&sv.Layouts, value); err != nil { return err } - case "XAxis": - if err := awsRestjson1_deserializeDocumentMeasureFieldList(&sv.XAxis, value); err != nil { + case "Name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected SheetName to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + case "ParameterControls": + if err := awsRestjson1_deserializeDocumentParameterControlList(&sv.ParameterControls, value); err != nil { return err } - case "YAxis": - if err := awsRestjson1_deserializeDocumentMeasureFieldList(&sv.YAxis, value); err != nil { + case "SheetControlLayouts": + if err := awsRestjson1_deserializeDocumentSheetControlLayoutList(&sv.SheetControlLayouts, value); err != nil { + return err + } + + case "SheetId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + } + sv.SheetId = ptr.String(jtv) + } + + case "TextBoxes": + if err := awsRestjson1_deserializeDocumentSheetTextBoxList(&sv.TextBoxes, value); err != nil { + return err + } + + case "Title": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected SheetTitle to be of type string, got %T instead", value) + } + sv.Title = ptr.String(jtv) + } + + case "Visuals": + if err := awsRestjson1_deserializeDocumentVisualList(&sv.Visuals, value); err != nil { return err } @@ -56861,7 +63855,7 @@ func awsRestjson1_deserializeDocumentScatterPlotCategoricallyAggregatedFieldWell return nil } -func awsRestjson1_deserializeDocumentScatterPlotConfiguration(v **types.ScatterPlotConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentSheetDefinitionList(v *[]types.SheetDefinition, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -56869,63 +63863,61 @@ func awsRestjson1_deserializeDocumentScatterPlotConfiguration(v **types.ScatterP return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ScatterPlotConfiguration + var cv []types.SheetDefinition if *v == nil { - sv = &types.ScatterPlotConfiguration{} + cv = []types.SheetDefinition{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "DataLabels": - if err := awsRestjson1_deserializeDocumentDataLabelOptions(&sv.DataLabels, value); err != nil { - return err - } - - case "FieldWells": - if err := awsRestjson1_deserializeDocumentScatterPlotFieldWells(&sv.FieldWells, value); err != nil { - return err - } - - case "Legend": - if err := awsRestjson1_deserializeDocumentLegendOptions(&sv.Legend, value); err != nil { - return err - } - - case "Tooltip": - if err := awsRestjson1_deserializeDocumentTooltipOptions(&sv.Tooltip, value); err != nil { - return err - } + for _, value := range shape { + var col types.SheetDefinition + destAddr := &col + if err := awsRestjson1_deserializeDocumentSheetDefinition(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) - case "VisualPalette": - if err := awsRestjson1_deserializeDocumentVisualPalette(&sv.VisualPalette, value); err != nil { - return err - } + } + *v = cv + return nil +} - case "XAxisDisplayOptions": - if err := awsRestjson1_deserializeDocumentAxisDisplayOptions(&sv.XAxisDisplayOptions, value); err != nil { - return err - } +func awsRestjson1_deserializeDocumentSheetElementConfigurationOverrides(v **types.SheetElementConfigurationOverrides, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } - case "XAxisLabelOptions": - if err := awsRestjson1_deserializeDocumentChartAxisLabelOptions(&sv.XAxisLabelOptions, value); err != nil { - return err - } + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } - case "YAxisDisplayOptions": - if err := awsRestjson1_deserializeDocumentAxisDisplayOptions(&sv.YAxisDisplayOptions, value); err != nil { - return err - } + var sv *types.SheetElementConfigurationOverrides + if *v == nil { + sv = &types.SheetElementConfigurationOverrides{} + } else { + sv = *v + } - case "YAxisLabelOptions": - if err := awsRestjson1_deserializeDocumentChartAxisLabelOptions(&sv.YAxisLabelOptions, value); err != nil { - return err + for key, value := range shape { + switch key { + case "Visibility": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) + } + sv.Visibility = types.Visibility(jtv) } default: @@ -56937,7 +63929,7 @@ func awsRestjson1_deserializeDocumentScatterPlotConfiguration(v **types.ScatterP return nil } -func awsRestjson1_deserializeDocumentScatterPlotFieldWells(v **types.ScatterPlotFieldWells, value interface{}) error { +func awsRestjson1_deserializeDocumentSheetElementRenderingRule(v **types.SheetElementRenderingRule, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -56950,23 +63942,27 @@ func awsRestjson1_deserializeDocumentScatterPlotFieldWells(v **types.ScatterPlot return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ScatterPlotFieldWells + var sv *types.SheetElementRenderingRule if *v == nil { - sv = &types.ScatterPlotFieldWells{} + sv = &types.SheetElementRenderingRule{} } else { sv = *v } for key, value := range shape { switch key { - case "ScatterPlotCategoricallyAggregatedFieldWells": - if err := awsRestjson1_deserializeDocumentScatterPlotCategoricallyAggregatedFieldWells(&sv.ScatterPlotCategoricallyAggregatedFieldWells, value); err != nil { + case "ConfigurationOverrides": + if err := awsRestjson1_deserializeDocumentSheetElementConfigurationOverrides(&sv.ConfigurationOverrides, value); err != nil { return err } - case "ScatterPlotUnaggregatedFieldWells": - if err := awsRestjson1_deserializeDocumentScatterPlotUnaggregatedFieldWells(&sv.ScatterPlotUnaggregatedFieldWells, value); err != nil { - return err + case "Expression": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Expression to be of type string, got %T instead", value) + } + sv.Expression = ptr.String(jtv) } default: @@ -56978,7 +63974,41 @@ func awsRestjson1_deserializeDocumentScatterPlotFieldWells(v **types.ScatterPlot return nil } -func awsRestjson1_deserializeDocumentScatterPlotUnaggregatedFieldWells(v **types.ScatterPlotUnaggregatedFieldWells, value interface{}) error { +func awsRestjson1_deserializeDocumentSheetElementRenderingRuleList(v *[]types.SheetElementRenderingRule, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.SheetElementRenderingRule + if *v == nil { + cv = []types.SheetElementRenderingRule{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.SheetElementRenderingRule + destAddr := &col + if err := awsRestjson1_deserializeDocumentSheetElementRenderingRule(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentSheetLayoutElementMaximizationOption(v **types.SheetLayoutElementMaximizationOption, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -56991,40 +64021,68 @@ func awsRestjson1_deserializeDocumentScatterPlotUnaggregatedFieldWells(v **types return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ScatterPlotUnaggregatedFieldWells + var sv *types.SheetLayoutElementMaximizationOption if *v == nil { - sv = &types.ScatterPlotUnaggregatedFieldWells{} + sv = &types.SheetLayoutElementMaximizationOption{} } else { sv = *v } for key, value := range shape { switch key { - case "Size": - if err := awsRestjson1_deserializeDocumentMeasureFieldList(&sv.Size, value); err != nil { - return err + case "AvailabilityStatus": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DashboardBehavior to be of type string, got %T instead", value) + } + sv.AvailabilityStatus = types.DashboardBehavior(jtv) } - case "XAxis": - if err := awsRestjson1_deserializeDocumentDimensionFieldList(&sv.XAxis, value); err != nil { - return err - } + default: + _, _ = key, value - case "YAxis": - if err := awsRestjson1_deserializeDocumentDimensionFieldList(&sv.YAxis, value); err != nil { - return err - } + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentSheetList(v *[]types.Sheet, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } - default: - _, _ = key, value + var cv []types.Sheet + if *v == nil { + cv = []types.Sheet{} + } else { + cv = *v + } + for _, value := range shape { + var col types.Sheet + destAddr := &col + if err := awsRestjson1_deserializeDocumentSheet(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsRestjson1_deserializeDocumentScatterPlotVisual(v **types.ScatterPlotVisual, value interface{}) error { +func awsRestjson1_deserializeDocumentSheetStyle(v **types.SheetStyle, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -57037,49 +64095,25 @@ func awsRestjson1_deserializeDocumentScatterPlotVisual(v **types.ScatterPlotVisu return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ScatterPlotVisual + var sv *types.SheetStyle if *v == nil { - sv = &types.ScatterPlotVisual{} + sv = &types.SheetStyle{} } else { sv = *v } for key, value := range shape { switch key { - case "Actions": - if err := awsRestjson1_deserializeDocumentVisualCustomActionList(&sv.Actions, value); err != nil { - return err - } - - case "ChartConfiguration": - if err := awsRestjson1_deserializeDocumentScatterPlotConfiguration(&sv.ChartConfiguration, value); err != nil { - return err - } - - case "ColumnHierarchies": - if err := awsRestjson1_deserializeDocumentColumnHierarchyList(&sv.ColumnHierarchies, value); err != nil { - return err - } - - case "Subtitle": - if err := awsRestjson1_deserializeDocumentVisualSubtitleLabelOptions(&sv.Subtitle, value); err != nil { + case "Tile": + if err := awsRestjson1_deserializeDocumentTileStyle(&sv.Tile, value); err != nil { return err } - case "Title": - if err := awsRestjson1_deserializeDocumentVisualTitleLabelOptions(&sv.Title, value); err != nil { + case "TileLayout": + if err := awsRestjson1_deserializeDocumentTileLayoutStyle(&sv.TileLayout, value); err != nil { return err } - case "VisualId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) - } - sv.VisualId = ptr.String(jtv) - } - default: _, _ = key, value @@ -57089,7 +64123,7 @@ func awsRestjson1_deserializeDocumentScatterPlotVisual(v **types.ScatterPlotVisu return nil } -func awsRestjson1_deserializeDocumentScheduleRefreshOnEntity(v **types.ScheduleRefreshOnEntity, value interface{}) error { +func awsRestjson1_deserializeDocumentSheetTextBox(v **types.SheetTextBox, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -57102,31 +64136,31 @@ func awsRestjson1_deserializeDocumentScheduleRefreshOnEntity(v **types.ScheduleR return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ScheduleRefreshOnEntity + var sv *types.SheetTextBox if *v == nil { - sv = &types.ScheduleRefreshOnEntity{} + sv = &types.SheetTextBox{} } else { sv = *v } for key, value := range shape { switch key { - case "DayOfMonth": + case "Content": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected DayOfMonth to be of type string, got %T instead", value) + return fmt.Errorf("expected SheetTextBoxContent to be of type string, got %T instead", value) } - sv.DayOfMonth = ptr.String(jtv) + sv.Content = ptr.String(jtv) } - case "DayOfWeek": + case "SheetTextBoxId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected DayOfWeek to be of type string, got %T instead", value) + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) } - sv.DayOfWeek = types.DayOfWeek(jtv) + sv.SheetTextBoxId = ptr.String(jtv) } default: @@ -57138,7 +64172,7 @@ func awsRestjson1_deserializeDocumentScheduleRefreshOnEntity(v **types.ScheduleR return nil } -func awsRestjson1_deserializeDocumentScrollBarOptions(v **types.ScrollBarOptions, value interface{}) error { +func awsRestjson1_deserializeDocumentSheetTextBoxList(v *[]types.SheetTextBox, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -57146,44 +64180,33 @@ func awsRestjson1_deserializeDocumentScrollBarOptions(v **types.ScrollBarOptions return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ScrollBarOptions + var cv []types.SheetTextBox if *v == nil { - sv = &types.ScrollBarOptions{} + cv = []types.SheetTextBox{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "Visibility": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) - } - sv.Visibility = types.Visibility(jtv) - } - - case "VisibleRange": - if err := awsRestjson1_deserializeDocumentVisibleRangeOptions(&sv.VisibleRange, value); err != nil { - return err - } - - default: - _, _ = key, value - + for _, value := range shape { + var col types.SheetTextBox + destAddr := &col + if err := awsRestjson1_deserializeDocumentSheetTextBox(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsRestjson1_deserializeDocumentSecondaryValueOptions(v **types.SecondaryValueOptions, value interface{}) error { +func awsRestjson1_deserializeDocumentSheetVisualScopingConfiguration(v **types.SheetVisualScopingConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -57196,22 +64219,36 @@ func awsRestjson1_deserializeDocumentSecondaryValueOptions(v **types.SecondaryVa return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.SecondaryValueOptions + var sv *types.SheetVisualScopingConfiguration if *v == nil { - sv = &types.SecondaryValueOptions{} + sv = &types.SheetVisualScopingConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "Visibility": + case "Scope": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) + return fmt.Errorf("expected FilterVisualScope to be of type string, got %T instead", value) } - sv.Visibility = types.Visibility(jtv) + sv.Scope = types.FilterVisualScope(jtv) + } + + case "SheetId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + } + sv.SheetId = ptr.String(jtv) + } + + case "VisualIds": + if err := awsRestjson1_deserializeDocumentFilteredVisualsList(&sv.VisualIds, value); err != nil { + return err } default: @@ -57223,7 +64260,7 @@ func awsRestjson1_deserializeDocumentSecondaryValueOptions(v **types.SecondaryVa return nil } -func awsRestjson1_deserializeDocumentSectionAfterPageBreak(v **types.SectionAfterPageBreak, value interface{}) error { +func awsRestjson1_deserializeDocumentSheetVisualScopingConfigurations(v *[]types.SheetVisualScopingConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -57231,39 +64268,33 @@ func awsRestjson1_deserializeDocumentSectionAfterPageBreak(v **types.SectionAfte return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.SectionAfterPageBreak + var cv []types.SheetVisualScopingConfiguration if *v == nil { - sv = &types.SectionAfterPageBreak{} + cv = []types.SheetVisualScopingConfiguration{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "Status": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected SectionPageBreakStatus to be of type string, got %T instead", value) - } - sv.Status = types.SectionPageBreakStatus(jtv) - } - - default: - _, _ = key, value - + for _, value := range shape { + var col types.SheetVisualScopingConfiguration + destAddr := &col + if err := awsRestjson1_deserializeDocumentSheetVisualScopingConfiguration(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsRestjson1_deserializeDocumentSectionBasedLayoutCanvasSizeOptions(v **types.SectionBasedLayoutCanvasSizeOptions, value interface{}) error { +func awsRestjson1_deserializeDocumentShortFormatText(v **types.ShortFormatText, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -57276,18 +64307,31 @@ func awsRestjson1_deserializeDocumentSectionBasedLayoutCanvasSizeOptions(v **typ return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.SectionBasedLayoutCanvasSizeOptions + var sv *types.ShortFormatText if *v == nil { - sv = &types.SectionBasedLayoutCanvasSizeOptions{} + sv = &types.ShortFormatText{} } else { sv = *v } for key, value := range shape { switch key { - case "PaperCanvasSizeOptions": - if err := awsRestjson1_deserializeDocumentSectionBasedLayoutPaperCanvasSizeOptions(&sv.PaperCanvasSizeOptions, value); err != nil { - return err + case "PlainText": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ShortPlainText to be of type string, got %T instead", value) + } + sv.PlainText = ptr.String(jtv) + } + + case "RichText": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ShortRichText to be of type string, got %T instead", value) + } + sv.RichText = ptr.String(jtv) } default: @@ -57299,7 +64343,7 @@ func awsRestjson1_deserializeDocumentSectionBasedLayoutCanvasSizeOptions(v **typ return nil } -func awsRestjson1_deserializeDocumentSectionBasedLayoutConfiguration(v **types.SectionBasedLayoutConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentSignupResponse(v **types.SignupResponse, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -57312,33 +64356,49 @@ func awsRestjson1_deserializeDocumentSectionBasedLayoutConfiguration(v **types.S return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.SectionBasedLayoutConfiguration + var sv *types.SignupResponse if *v == nil { - sv = &types.SectionBasedLayoutConfiguration{} + sv = &types.SignupResponse{} } else { sv = *v } for key, value := range shape { switch key { - case "BodySections": - if err := awsRestjson1_deserializeDocumentBodySectionConfigurationList(&sv.BodySections, value); err != nil { - return err + case "accountName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.AccountName = ptr.String(jtv) } - case "CanvasSizeOptions": - if err := awsRestjson1_deserializeDocumentSectionBasedLayoutCanvasSizeOptions(&sv.CanvasSizeOptions, value); err != nil { - return err + case "directoryType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.DirectoryType = ptr.String(jtv) } - case "FooterSections": - if err := awsRestjson1_deserializeDocumentHeaderFooterSectionConfigurationList(&sv.FooterSections, value); err != nil { - return err + case "IAMUser": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + } + sv.IAMUser = jtv } - case "HeaderSections": - if err := awsRestjson1_deserializeDocumentHeaderFooterSectionConfigurationList(&sv.HeaderSections, value); err != nil { - return err + case "userLoginName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.UserLoginName = ptr.String(jtv) } default: @@ -57350,7 +64410,7 @@ func awsRestjson1_deserializeDocumentSectionBasedLayoutConfiguration(v **types.S return nil } -func awsRestjson1_deserializeDocumentSectionBasedLayoutPaperCanvasSizeOptions(v **types.SectionBasedLayoutPaperCanvasSizeOptions, value interface{}) error { +func awsRestjson1_deserializeDocumentSimpleClusterMarker(v **types.SimpleClusterMarker, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -57363,36 +64423,22 @@ func awsRestjson1_deserializeDocumentSectionBasedLayoutPaperCanvasSizeOptions(v return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.SectionBasedLayoutPaperCanvasSizeOptions + var sv *types.SimpleClusterMarker if *v == nil { - sv = &types.SectionBasedLayoutPaperCanvasSizeOptions{} + sv = &types.SimpleClusterMarker{} } else { sv = *v } for key, value := range shape { switch key { - case "PaperMargin": - if err := awsRestjson1_deserializeDocumentSpacing(&sv.PaperMargin, value); err != nil { - return err - } - - case "PaperOrientation": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected PaperOrientation to be of type string, got %T instead", value) - } - sv.PaperOrientation = types.PaperOrientation(jtv) - } - - case "PaperSize": + case "Color": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected PaperSize to be of type string, got %T instead", value) + return fmt.Errorf("expected HexColor to be of type string, got %T instead", value) } - sv.PaperSize = types.PaperSize(jtv) + sv.Color = ptr.String(jtv) } default: @@ -57404,7 +64450,7 @@ func awsRestjson1_deserializeDocumentSectionBasedLayoutPaperCanvasSizeOptions(v return nil } -func awsRestjson1_deserializeDocumentSectionLayoutConfiguration(v **types.SectionLayoutConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentSliderControlDisplayOptions(v **types.SliderControlDisplayOptions, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -57417,17 +64463,17 @@ func awsRestjson1_deserializeDocumentSectionLayoutConfiguration(v **types.Sectio return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.SectionLayoutConfiguration + var sv *types.SliderControlDisplayOptions if *v == nil { - sv = &types.SectionLayoutConfiguration{} + sv = &types.SliderControlDisplayOptions{} } else { sv = *v } for key, value := range shape { switch key { - case "FreeFormLayout": - if err := awsRestjson1_deserializeDocumentFreeFormSectionLayoutConfiguration(&sv.FreeFormLayout, value); err != nil { + case "TitleOptions": + if err := awsRestjson1_deserializeDocumentLabelOptions(&sv.TitleOptions, value); err != nil { return err } @@ -57440,7 +64486,7 @@ func awsRestjson1_deserializeDocumentSectionLayoutConfiguration(v **types.Sectio return nil } -func awsRestjson1_deserializeDocumentSectionPageBreakConfiguration(v **types.SectionPageBreakConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentSmallMultiplesDimensionFieldList(v *[]types.DimensionField, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -57448,35 +64494,33 @@ func awsRestjson1_deserializeDocumentSectionPageBreakConfiguration(v **types.Sec return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.SectionPageBreakConfiguration + var cv []types.DimensionField if *v == nil { - sv = &types.SectionPageBreakConfiguration{} + cv = []types.DimensionField{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "After": - if err := awsRestjson1_deserializeDocumentSectionAfterPageBreak(&sv.After, value); err != nil { - return err - } - - default: - _, _ = key, value - + for _, value := range shape { + var col types.DimensionField + destAddr := &col + if err := awsRestjson1_deserializeDocumentDimensionField(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsRestjson1_deserializeDocumentSectionStyle(v **types.SectionStyle, value interface{}) error { +func awsRestjson1_deserializeDocumentSmallMultiplesOptions(v **types.SmallMultiplesOptions, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -57489,26 +64533,43 @@ func awsRestjson1_deserializeDocumentSectionStyle(v **types.SectionStyle, value return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.SectionStyle + var sv *types.SmallMultiplesOptions if *v == nil { - sv = &types.SectionStyle{} + sv = &types.SmallMultiplesOptions{} } else { sv = *v } for key, value := range shape { switch key { - case "Height": + case "MaxVisibleColumns": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected PixelLength to be of type string, got %T instead", value) + return fmt.Errorf("expected VisiblePanelColumns to be json.Number, got %T instead", value) } - sv.Height = ptr.String(jtv) + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.MaxVisibleColumns = ptr.Int64(i64) } - case "Padding": - if err := awsRestjson1_deserializeDocumentSpacing(&sv.Padding, value); err != nil { + case "MaxVisibleRows": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected VisiblePanelRows to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.MaxVisibleRows = ptr.Int64(i64) + } + + case "PanelConfiguration": + if err := awsRestjson1_deserializeDocumentPanelConfiguration(&sv.PanelConfiguration, value); err != nil { return err } @@ -57521,7 +64582,7 @@ func awsRestjson1_deserializeDocumentSectionStyle(v **types.SectionStyle, value return nil } -func awsRestjson1_deserializeDocumentSelectedFieldList(v *[]string, value interface{}) error { +func awsRestjson1_deserializeDocumentSnowflakeParameters(v **types.SnowflakeParameters, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -57529,35 +64590,57 @@ func awsRestjson1_deserializeDocumentSelectedFieldList(v *[]string, value interf return nil } - shape, ok := value.([]interface{}) + shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var cv []string + var sv *types.SnowflakeParameters if *v == nil { - cv = []string{} + sv = &types.SnowflakeParameters{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col string - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected FieldId to be of type string, got %T instead", value) + for key, value := range shape { + switch key { + case "Database": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Database to be of type string, got %T instead", value) + } + sv.Database = ptr.String(jtv) } - col = jtv - } - cv = append(cv, col) + case "Host": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Host to be of type string, got %T instead", value) + } + sv.Host = ptr.String(jtv) + } + + case "Warehouse": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Warehouse to be of type string, got %T instead", value) + } + sv.Warehouse = ptr.String(jtv) + } + + default: + _, _ = key, value + + } } - *v = cv + *v = sv return nil } -func awsRestjson1_deserializeDocumentSelectedSheetsFilterScopeConfiguration(v **types.SelectedSheetsFilterScopeConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentSpacing(v **types.Spacing, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -57570,18 +64653,49 @@ func awsRestjson1_deserializeDocumentSelectedSheetsFilterScopeConfiguration(v ** return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.SelectedSheetsFilterScopeConfiguration + var sv *types.Spacing if *v == nil { - sv = &types.SelectedSheetsFilterScopeConfiguration{} + sv = &types.Spacing{} } else { sv = *v } for key, value := range shape { switch key { - case "SheetVisualScopingConfigurations": - if err := awsRestjson1_deserializeDocumentSheetVisualScopingConfigurations(&sv.SheetVisualScopingConfigurations, value); err != nil { - return err + case "Bottom": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Length to be of type string, got %T instead", value) + } + sv.Bottom = ptr.String(jtv) + } + + case "Left": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Length to be of type string, got %T instead", value) + } + sv.Left = ptr.String(jtv) + } + + case "Right": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Length to be of type string, got %T instead", value) + } + sv.Right = ptr.String(jtv) + } + + case "Top": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Length to be of type string, got %T instead", value) + } + sv.Top = ptr.String(jtv) } default: @@ -57593,7 +64707,7 @@ func awsRestjson1_deserializeDocumentSelectedSheetsFilterScopeConfiguration(v ** return nil } -func awsRestjson1_deserializeDocumentSeriesItem(v **types.SeriesItem, value interface{}) error { +func awsRestjson1_deserializeDocumentSparkParameters(v **types.SparkParameters, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -57606,23 +64720,35 @@ func awsRestjson1_deserializeDocumentSeriesItem(v **types.SeriesItem, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.SeriesItem + var sv *types.SparkParameters if *v == nil { - sv = &types.SeriesItem{} + sv = &types.SparkParameters{} } else { sv = *v } for key, value := range shape { switch key { - case "DataFieldSeriesItem": - if err := awsRestjson1_deserializeDocumentDataFieldSeriesItem(&sv.DataFieldSeriesItem, value); err != nil { - return err + case "Host": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Host to be of type string, got %T instead", value) + } + sv.Host = ptr.String(jtv) } - case "FieldSeriesItem": - if err := awsRestjson1_deserializeDocumentFieldSeriesItem(&sv.FieldSeriesItem, value); err != nil { - return err + case "Port": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected Port to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.Port = int32(i64) } default: @@ -57634,7 +64760,7 @@ func awsRestjson1_deserializeDocumentSeriesItem(v **types.SeriesItem, value inte return nil } -func awsRestjson1_deserializeDocumentSeriesItemList(v *[]types.SeriesItem, value interface{}) error { +func awsRestjson1_deserializeDocumentSqlServerParameters(v **types.SqlServerParameters, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -57642,33 +64768,61 @@ func awsRestjson1_deserializeDocumentSeriesItemList(v *[]types.SeriesItem, value return nil } - shape, ok := value.([]interface{}) + shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.SeriesItem - if *v == nil { - cv = []types.SeriesItem{} - } else { - cv = *v - } + var sv *types.SqlServerParameters + if *v == nil { + sv = &types.SqlServerParameters{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Database": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Database to be of type string, got %T instead", value) + } + sv.Database = ptr.String(jtv) + } + + case "Host": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Host to be of type string, got %T instead", value) + } + sv.Host = ptr.String(jtv) + } + + case "Port": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected Port to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.Port = int32(i64) + } + + default: + _, _ = key, value - for _, value := range shape { - var col types.SeriesItem - destAddr := &col - if err := awsRestjson1_deserializeDocumentSeriesItem(&destAddr, value); err != nil { - return err } - col = *destAddr - cv = append(cv, col) - } - *v = cv + *v = sv return nil } -func awsRestjson1_deserializeDocumentServiceNowParameters(v **types.ServiceNowParameters, value interface{}) error { +func awsRestjson1_deserializeDocumentSslProperties(v **types.SslProperties, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -57681,22 +64835,22 @@ func awsRestjson1_deserializeDocumentServiceNowParameters(v **types.ServiceNowPa return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ServiceNowParameters + var sv *types.SslProperties if *v == nil { - sv = &types.ServiceNowParameters{} + sv = &types.SslProperties{} } else { sv = *v } for key, value := range shape { switch key { - case "SiteBaseUrl": + case "DisableSsl": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(bool) if !ok { - return fmt.Errorf("expected SiteBaseUrl to be of type string, got %T instead", value) + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.SiteBaseUrl = ptr.String(jtv) + sv.DisableSsl = jtv } default: @@ -57708,7 +64862,7 @@ func awsRestjson1_deserializeDocumentServiceNowParameters(v **types.ServiceNowPa return nil } -func awsRestjson1_deserializeDocumentSessionLifetimeInMinutesInvalidException(v **types.SessionLifetimeInMinutesInvalidException, value interface{}) error { +func awsRestjson1_deserializeDocumentStringDatasetParameter(v **types.StringDatasetParameter, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -57721,31 +64875,45 @@ func awsRestjson1_deserializeDocumentSessionLifetimeInMinutesInvalidException(v return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.SessionLifetimeInMinutesInvalidException + var sv *types.StringDatasetParameter if *v == nil { - sv = &types.SessionLifetimeInMinutesInvalidException{} + sv = &types.StringDatasetParameter{} } else { sv = *v } for key, value := range shape { switch key { - case "Message": + case "DefaultValues": + if err := awsRestjson1_deserializeDocumentStringDatasetParameterDefaultValues(&sv.DefaultValues, value); err != nil { + return err + } + + case "Id": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) + return fmt.Errorf("expected DatasetParameterId to be of type string, got %T instead", value) } - sv.Message = ptr.String(jtv) + sv.Id = ptr.String(jtv) } - case "RequestId": + case "Name": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) + return fmt.Errorf("expected DatasetParameterName to be of type string, got %T instead", value) } - sv.RequestId = ptr.String(jtv) + sv.Name = ptr.String(jtv) + } + + case "ValueType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DatasetParameterValueType to be of type string, got %T instead", value) + } + sv.ValueType = types.DatasetParameterValueType(jtv) } default: @@ -57757,7 +64925,7 @@ func awsRestjson1_deserializeDocumentSessionLifetimeInMinutesInvalidException(v return nil } -func awsRestjson1_deserializeDocumentSetParameterValueConfiguration(v **types.SetParameterValueConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentStringDatasetParameterDefaultValues(v **types.StringDatasetParameterDefaultValues, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -57770,26 +64938,17 @@ func awsRestjson1_deserializeDocumentSetParameterValueConfiguration(v **types.Se return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.SetParameterValueConfiguration + var sv *types.StringDatasetParameterDefaultValues if *v == nil { - sv = &types.SetParameterValueConfiguration{} + sv = &types.StringDatasetParameterDefaultValues{} } else { sv = *v } for key, value := range shape { switch key { - case "DestinationParameterName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ParameterName to be of type string, got %T instead", value) - } - sv.DestinationParameterName = ptr.String(jtv) - } - - case "Value": - if err := awsRestjson1_deserializeDocumentDestinationParameterValueConfiguration(&sv.Value, value); err != nil { + case "StaticValues": + if err := awsRestjson1_deserializeDocumentStringDatasetParameterValueList(&sv.StaticValues, value); err != nil { return err } @@ -57802,7 +64961,7 @@ func awsRestjson1_deserializeDocumentSetParameterValueConfiguration(v **types.Se return nil } -func awsRestjson1_deserializeDocumentSetParameterValueConfigurationList(v *[]types.SetParameterValueConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentStringDatasetParameterValueList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -57815,20 +64974,22 @@ func awsRestjson1_deserializeDocumentSetParameterValueConfigurationList(v *[]typ return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.SetParameterValueConfiguration + var cv []string if *v == nil { - cv = []types.SetParameterValueConfiguration{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col types.SetParameterValueConfiguration - destAddr := &col - if err := awsRestjson1_deserializeDocumentSetParameterValueConfiguration(&destAddr, value); err != nil { - return err + var col string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected StringDatasetParameterDefaultValue to be of type string, got %T instead", value) + } + col = jtv } - col = *destAddr cv = append(cv, col) } @@ -57836,7 +64997,7 @@ func awsRestjson1_deserializeDocumentSetParameterValueConfigurationList(v *[]typ return nil } -func awsRestjson1_deserializeDocumentShapeConditionalFormat(v **types.ShapeConditionalFormat, value interface{}) error { +func awsRestjson1_deserializeDocumentStringDefaultValueList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -57844,35 +65005,35 @@ func awsRestjson1_deserializeDocumentShapeConditionalFormat(v **types.ShapeCondi return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ShapeConditionalFormat + var cv []string if *v == nil { - sv = &types.ShapeConditionalFormat{} + cv = []string{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "BackgroundColor": - if err := awsRestjson1_deserializeDocumentConditionalFormattingColor(&sv.BackgroundColor, value); err != nil { - return err + for _, value := range shape { + var col string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected SensitiveStringObject to be of type string, got %T instead", value) } - - default: - _, _ = key, value - + col = jtv } + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsRestjson1_deserializeDocumentSheet(v **types.Sheet, value interface{}) error { +func awsRestjson1_deserializeDocumentStringDefaultValues(v **types.StringDefaultValues, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -57885,31 +65046,23 @@ func awsRestjson1_deserializeDocumentSheet(v **types.Sheet, value interface{}) e return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.Sheet + var sv *types.StringDefaultValues if *v == nil { - sv = &types.Sheet{} + sv = &types.StringDefaultValues{} } else { sv = *v } for key, value := range shape { switch key { - case "Name": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected SheetName to be of type string, got %T instead", value) - } - sv.Name = ptr.String(jtv) + case "DynamicValue": + if err := awsRestjson1_deserializeDocumentDynamicDefaultValue(&sv.DynamicValue, value); err != nil { + return err } - case "SheetId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) - } - sv.SheetId = ptr.String(jtv) + case "StaticValues": + if err := awsRestjson1_deserializeDocumentStringDefaultValueList(&sv.StaticValues, value); err != nil { + return err } default: @@ -57921,7 +65074,7 @@ func awsRestjson1_deserializeDocumentSheet(v **types.Sheet, value interface{}) e return nil } -func awsRestjson1_deserializeDocumentSheetControlLayout(v **types.SheetControlLayout, value interface{}) error { +func awsRestjson1_deserializeDocumentStringFormatConfiguration(v **types.StringFormatConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -57934,17 +65087,22 @@ func awsRestjson1_deserializeDocumentSheetControlLayout(v **types.SheetControlLa return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.SheetControlLayout + var sv *types.StringFormatConfiguration if *v == nil { - sv = &types.SheetControlLayout{} + sv = &types.StringFormatConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "Configuration": - if err := awsRestjson1_deserializeDocumentSheetControlLayoutConfiguration(&sv.Configuration, value); err != nil { + case "NullValueFormatConfiguration": + if err := awsRestjson1_deserializeDocumentNullValueFormatConfiguration(&sv.NullValueFormatConfiguration, value); err != nil { + return err + } + + case "NumericFormatConfiguration": + if err := awsRestjson1_deserializeDocumentNumericFormatConfiguration(&sv.NumericFormatConfiguration, value); err != nil { return err } @@ -57957,7 +65115,7 @@ func awsRestjson1_deserializeDocumentSheetControlLayout(v **types.SheetControlLa return nil } -func awsRestjson1_deserializeDocumentSheetControlLayoutConfiguration(v **types.SheetControlLayoutConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentStringList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -57965,35 +65123,35 @@ func awsRestjson1_deserializeDocumentSheetControlLayoutConfiguration(v **types.S return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.SheetControlLayoutConfiguration + var cv []string if *v == nil { - sv = &types.SheetControlLayoutConfiguration{} + cv = []string{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "GridLayout": - if err := awsRestjson1_deserializeDocumentGridLayoutConfiguration(&sv.GridLayout, value); err != nil { - return err + for _, value := range shape { + var col string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) } - - default: - _, _ = key, value - + col = jtv } + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsRestjson1_deserializeDocumentSheetControlLayoutList(v *[]types.SheetControlLayout, value interface{}) error { +func awsRestjson1_deserializeDocumentStringParameterDeclaration(v **types.StringParameterDeclaration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -58001,33 +65159,63 @@ func awsRestjson1_deserializeDocumentSheetControlLayoutList(v *[]types.SheetCont return nil } - shape, ok := value.([]interface{}) + shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.SheetControlLayout + var sv *types.StringParameterDeclaration if *v == nil { - cv = []types.SheetControlLayout{} + sv = &types.StringParameterDeclaration{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col types.SheetControlLayout - destAddr := &col - if err := awsRestjson1_deserializeDocumentSheetControlLayout(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) + for key, value := range shape { + switch key { + case "DefaultValues": + if err := awsRestjson1_deserializeDocumentStringDefaultValues(&sv.DefaultValues, value); err != nil { + return err + } + + case "MappedDataSetParameters": + if err := awsRestjson1_deserializeDocumentMappedDataSetParameters(&sv.MappedDataSetParameters, value); err != nil { + return err + } + + case "Name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ParameterName to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + case "ParameterValueType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ParameterValueType to be of type string, got %T instead", value) + } + sv.ParameterValueType = types.ParameterValueType(jtv) + } + + case "ValueWhenUnset": + if err := awsRestjson1_deserializeDocumentStringValueWhenUnsetConfiguration(&sv.ValueWhenUnset, value); err != nil { + return err + } + + default: + _, _ = key, value + } } - *v = cv + *v = sv return nil } -func awsRestjson1_deserializeDocumentSheetControlsOption(v **types.SheetControlsOption, value interface{}) error { +func awsRestjson1_deserializeDocumentStringValueWhenUnsetConfiguration(v **types.StringValueWhenUnsetConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -58040,22 +65228,31 @@ func awsRestjson1_deserializeDocumentSheetControlsOption(v **types.SheetControls return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.SheetControlsOption + var sv *types.StringValueWhenUnsetConfiguration if *v == nil { - sv = &types.SheetControlsOption{} + sv = &types.StringValueWhenUnsetConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "VisibilityState": + case "CustomValue": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected DashboardUIState to be of type string, got %T instead", value) + return fmt.Errorf("expected SensitiveString to be of type string, got %T instead", value) } - sv.VisibilityState = types.DashboardUIState(jtv) + sv.CustomValue = ptr.String(jtv) + } + + case "ValueWhenUnsetOption": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ValueWhenUnsetOption to be of type string, got %T instead", value) + } + sv.ValueWhenUnsetOption = types.ValueWhenUnsetOption(jtv) } default: @@ -58067,7 +65264,7 @@ func awsRestjson1_deserializeDocumentSheetControlsOption(v **types.SheetControls return nil } -func awsRestjson1_deserializeDocumentSheetDefinition(v **types.SheetDefinition, value interface{}) error { +func awsRestjson1_deserializeDocumentSubtotalOptions(v **types.SubtotalOptions, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -58080,87 +65277,59 @@ func awsRestjson1_deserializeDocumentSheetDefinition(v **types.SheetDefinition, return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.SheetDefinition + var sv *types.SubtotalOptions if *v == nil { - sv = &types.SheetDefinition{} + sv = &types.SubtotalOptions{} } else { sv = *v } for key, value := range shape { switch key { - case "ContentType": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected SheetContentType to be of type string, got %T instead", value) - } - sv.ContentType = types.SheetContentType(jtv) - } - - case "Description": + case "CustomLabel": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected SheetDescription to be of type string, got %T instead", value) + return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Description = ptr.String(jtv) - } - - case "FilterControls": - if err := awsRestjson1_deserializeDocumentFilterControlList(&sv.FilterControls, value); err != nil { - return err - } - - case "Layouts": - if err := awsRestjson1_deserializeDocumentLayoutList(&sv.Layouts, value); err != nil { - return err + sv.CustomLabel = ptr.String(jtv) } - case "Name": + case "FieldLevel": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected SheetName to be of type string, got %T instead", value) + return fmt.Errorf("expected PivotTableSubtotalLevel to be of type string, got %T instead", value) } - sv.Name = ptr.String(jtv) + sv.FieldLevel = types.PivotTableSubtotalLevel(jtv) } - case "ParameterControls": - if err := awsRestjson1_deserializeDocumentParameterControlList(&sv.ParameterControls, value); err != nil { + case "FieldLevelOptions": + if err := awsRestjson1_deserializeDocumentPivotTableFieldSubtotalOptionsList(&sv.FieldLevelOptions, value); err != nil { return err } - case "SheetControlLayouts": - if err := awsRestjson1_deserializeDocumentSheetControlLayoutList(&sv.SheetControlLayouts, value); err != nil { + case "MetricHeaderCellStyle": + if err := awsRestjson1_deserializeDocumentTableCellStyle(&sv.MetricHeaderCellStyle, value); err != nil { return err } - case "SheetId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) - } - sv.SheetId = ptr.String(jtv) - } - - case "TextBoxes": - if err := awsRestjson1_deserializeDocumentSheetTextBoxList(&sv.TextBoxes, value); err != nil { + case "TotalCellStyle": + if err := awsRestjson1_deserializeDocumentTableCellStyle(&sv.TotalCellStyle, value); err != nil { return err } - case "Title": + case "TotalsVisibility": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected SheetTitle to be of type string, got %T instead", value) + return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) } - sv.Title = ptr.String(jtv) + sv.TotalsVisibility = types.Visibility(jtv) } - case "Visuals": - if err := awsRestjson1_deserializeDocumentVisualList(&sv.Visuals, value); err != nil { + case "ValueCellStyle": + if err := awsRestjson1_deserializeDocumentTableCellStyle(&sv.ValueCellStyle, value); err != nil { return err } @@ -58173,7 +65342,7 @@ func awsRestjson1_deserializeDocumentSheetDefinition(v **types.SheetDefinition, return nil } -func awsRestjson1_deserializeDocumentSheetDefinitionList(v *[]types.SheetDefinition, value interface{}) error { +func awsRestjson1_deserializeDocumentSynonyms(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -58186,20 +65355,22 @@ func awsRestjson1_deserializeDocumentSheetDefinitionList(v *[]types.SheetDefinit return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.SheetDefinition + var cv []string if *v == nil { - cv = []types.SheetDefinition{} + cv = []string{} } else { cv = *v } for _, value := range shape { - var col types.SheetDefinition - destAddr := &col - if err := awsRestjson1_deserializeDocumentSheetDefinition(&destAddr, value); err != nil { - return err + var col string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected LimitedString to be of type string, got %T instead", value) + } + col = jtv } - col = *destAddr cv = append(cv, col) } @@ -58207,7 +65378,7 @@ func awsRestjson1_deserializeDocumentSheetDefinitionList(v *[]types.SheetDefinit return nil } -func awsRestjson1_deserializeDocumentSheetElementConfigurationOverrides(v **types.SheetElementConfigurationOverrides, value interface{}) error { +func awsRestjson1_deserializeDocumentTableAggregatedFieldWells(v **types.TableAggregatedFieldWells, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -58220,22 +65391,23 @@ func awsRestjson1_deserializeDocumentSheetElementConfigurationOverrides(v **type return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.SheetElementConfigurationOverrides + var sv *types.TableAggregatedFieldWells if *v == nil { - sv = &types.SheetElementConfigurationOverrides{} + sv = &types.TableAggregatedFieldWells{} } else { sv = *v } for key, value := range shape { switch key { - case "Visibility": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) - } - sv.Visibility = types.Visibility(jtv) + case "GroupBy": + if err := awsRestjson1_deserializeDocumentDimensionFieldList(&sv.GroupBy, value); err != nil { + return err + } + + case "Values": + if err := awsRestjson1_deserializeDocumentMeasureFieldList(&sv.Values, value); err != nil { + return err } default: @@ -58247,7 +65419,7 @@ func awsRestjson1_deserializeDocumentSheetElementConfigurationOverrides(v **type return nil } -func awsRestjson1_deserializeDocumentSheetElementRenderingRule(v **types.SheetElementRenderingRule, value interface{}) error { +func awsRestjson1_deserializeDocumentTableBorderOptions(v **types.TableBorderOptions, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -58260,27 +65432,44 @@ func awsRestjson1_deserializeDocumentSheetElementRenderingRule(v **types.SheetEl return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.SheetElementRenderingRule + var sv *types.TableBorderOptions if *v == nil { - sv = &types.SheetElementRenderingRule{} + sv = &types.TableBorderOptions{} } else { sv = *v } for key, value := range shape { switch key { - case "ConfigurationOverrides": - if err := awsRestjson1_deserializeDocumentSheetElementConfigurationOverrides(&sv.ConfigurationOverrides, value); err != nil { - return err + case "Color": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected HexColor to be of type string, got %T instead", value) + } + sv.Color = ptr.String(jtv) } - case "Expression": + case "Style": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Expression to be of type string, got %T instead", value) + return fmt.Errorf("expected TableBorderStyle to be of type string, got %T instead", value) } - sv.Expression = ptr.String(jtv) + sv.Style = types.TableBorderStyle(jtv) + } + + case "Thickness": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected TableBorderThickness to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.Thickness = ptr.Int32(int32(i64)) } default: @@ -58292,41 +65481,7 @@ func awsRestjson1_deserializeDocumentSheetElementRenderingRule(v **types.SheetEl return nil } -func awsRestjson1_deserializeDocumentSheetElementRenderingRuleList(v *[]types.SheetElementRenderingRule, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []types.SheetElementRenderingRule - if *v == nil { - cv = []types.SheetElementRenderingRule{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.SheetElementRenderingRule - destAddr := &col - if err := awsRestjson1_deserializeDocumentSheetElementRenderingRule(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsRestjson1_deserializeDocumentSheetLayoutElementMaximizationOption(v **types.SheetLayoutElementMaximizationOption, value interface{}) error { +func awsRestjson1_deserializeDocumentTableCellConditionalFormatting(v **types.TableCellConditionalFormatting, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -58339,22 +65494,27 @@ func awsRestjson1_deserializeDocumentSheetLayoutElementMaximizationOption(v **ty return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.SheetLayoutElementMaximizationOption + var sv *types.TableCellConditionalFormatting if *v == nil { - sv = &types.SheetLayoutElementMaximizationOption{} + sv = &types.TableCellConditionalFormatting{} } else { sv = *v } for key, value := range shape { switch key { - case "AvailabilityStatus": + case "FieldId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected DashboardBehavior to be of type string, got %T instead", value) + return fmt.Errorf("expected FieldId to be of type string, got %T instead", value) } - sv.AvailabilityStatus = types.DashboardBehavior(jtv) + sv.FieldId = ptr.String(jtv) + } + + case "TextFormat": + if err := awsRestjson1_deserializeDocumentTextConditionalFormat(&sv.TextFormat, value); err != nil { + return err } default: @@ -58366,41 +65526,7 @@ func awsRestjson1_deserializeDocumentSheetLayoutElementMaximizationOption(v **ty return nil } -func awsRestjson1_deserializeDocumentSheetList(v *[]types.Sheet, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []types.Sheet - if *v == nil { - cv = []types.Sheet{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.Sheet - destAddr := &col - if err := awsRestjson1_deserializeDocumentSheet(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsRestjson1_deserializeDocumentSheetStyle(v **types.SheetStyle, value interface{}) error { +func awsRestjson1_deserializeDocumentTableCellImageSizingConfiguration(v **types.TableCellImageSizingConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -58413,23 +65539,22 @@ func awsRestjson1_deserializeDocumentSheetStyle(v **types.SheetStyle, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.SheetStyle + var sv *types.TableCellImageSizingConfiguration if *v == nil { - sv = &types.SheetStyle{} + sv = &types.TableCellImageSizingConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "Tile": - if err := awsRestjson1_deserializeDocumentTileStyle(&sv.Tile, value); err != nil { - return err - } - - case "TileLayout": - if err := awsRestjson1_deserializeDocumentTileLayoutStyle(&sv.TileLayout, value); err != nil { - return err + case "TableCellImageScalingConfiguration": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TableCellImageScalingConfiguration to be of type string, got %T instead", value) + } + sv.TableCellImageScalingConfiguration = types.TableCellImageScalingConfiguration(jtv) } default: @@ -58441,7 +65566,7 @@ func awsRestjson1_deserializeDocumentSheetStyle(v **types.SheetStyle, value inte return nil } -func awsRestjson1_deserializeDocumentSheetTextBox(v **types.SheetTextBox, value interface{}) error { +func awsRestjson1_deserializeDocumentTableCellStyle(v **types.TableCellStyle, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -58454,31 +65579,81 @@ func awsRestjson1_deserializeDocumentSheetTextBox(v **types.SheetTextBox, value return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.SheetTextBox + var sv *types.TableCellStyle if *v == nil { - sv = &types.SheetTextBox{} + sv = &types.TableCellStyle{} } else { sv = *v } for key, value := range shape { switch key { - case "Content": + case "BackgroundColor": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected SheetTextBoxContent to be of type string, got %T instead", value) + return fmt.Errorf("expected HexColor to be of type string, got %T instead", value) } - sv.Content = ptr.String(jtv) + sv.BackgroundColor = ptr.String(jtv) } - case "SheetTextBoxId": + case "Border": + if err := awsRestjson1_deserializeDocumentGlobalTableBorderOptions(&sv.Border, value); err != nil { + return err + } + + case "FontConfiguration": + if err := awsRestjson1_deserializeDocumentFontConfiguration(&sv.FontConfiguration, value); err != nil { + return err + } + + case "Height": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected TableFieldHeight to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.Height = ptr.Int32(int32(i64)) + } + + case "HorizontalTextAlignment": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + return fmt.Errorf("expected HorizontalTextAlignment to be of type string, got %T instead", value) } - sv.SheetTextBoxId = ptr.String(jtv) + sv.HorizontalTextAlignment = types.HorizontalTextAlignment(jtv) + } + + case "TextWrap": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TextWrap to be of type string, got %T instead", value) + } + sv.TextWrap = types.TextWrap(jtv) + } + + case "VerticalTextAlignment": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected VerticalTextAlignment to be of type string, got %T instead", value) + } + sv.VerticalTextAlignment = types.VerticalTextAlignment(jtv) + } + + case "Visibility": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) + } + sv.Visibility = types.Visibility(jtv) } default: @@ -58490,7 +65665,7 @@ func awsRestjson1_deserializeDocumentSheetTextBox(v **types.SheetTextBox, value return nil } -func awsRestjson1_deserializeDocumentSheetTextBoxList(v *[]types.SheetTextBox, value interface{}) error { +func awsRestjson1_deserializeDocumentTableConditionalFormatting(v **types.TableConditionalFormatting, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -58498,33 +65673,35 @@ func awsRestjson1_deserializeDocumentSheetTextBoxList(v *[]types.SheetTextBox, v return nil } - shape, ok := value.([]interface{}) + shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.SheetTextBox + var sv *types.TableConditionalFormatting if *v == nil { - cv = []types.SheetTextBox{} + sv = &types.TableConditionalFormatting{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col types.SheetTextBox - destAddr := &col - if err := awsRestjson1_deserializeDocumentSheetTextBox(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) + for key, value := range shape { + switch key { + case "ConditionalFormattingOptions": + if err := awsRestjson1_deserializeDocumentTableConditionalFormattingOptionList(&sv.ConditionalFormattingOptions, value); err != nil { + return err + } + default: + _, _ = key, value + + } } - *v = cv + *v = sv return nil } -func awsRestjson1_deserializeDocumentSheetVisualScopingConfiguration(v **types.SheetVisualScopingConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentTableConditionalFormattingOption(v **types.TableConditionalFormattingOption, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -58537,35 +65714,22 @@ func awsRestjson1_deserializeDocumentSheetVisualScopingConfiguration(v **types.S return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.SheetVisualScopingConfiguration + var sv *types.TableConditionalFormattingOption if *v == nil { - sv = &types.SheetVisualScopingConfiguration{} + sv = &types.TableConditionalFormattingOption{} } else { sv = *v } for key, value := range shape { switch key { - case "Scope": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected FilterVisualScope to be of type string, got %T instead", value) - } - sv.Scope = types.FilterVisualScope(jtv) - } - - case "SheetId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) - } - sv.SheetId = ptr.String(jtv) + case "Cell": + if err := awsRestjson1_deserializeDocumentTableCellConditionalFormatting(&sv.Cell, value); err != nil { + return err } - case "VisualIds": - if err := awsRestjson1_deserializeDocumentFilteredVisualsList(&sv.VisualIds, value); err != nil { + case "Row": + if err := awsRestjson1_deserializeDocumentTableRowConditionalFormatting(&sv.Row, value); err != nil { return err } @@ -58578,7 +65742,7 @@ func awsRestjson1_deserializeDocumentSheetVisualScopingConfiguration(v **types.S return nil } -func awsRestjson1_deserializeDocumentSheetVisualScopingConfigurations(v *[]types.SheetVisualScopingConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentTableConditionalFormattingOptionList(v *[]types.TableConditionalFormattingOption, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -58591,17 +65755,17 @@ func awsRestjson1_deserializeDocumentSheetVisualScopingConfigurations(v *[]types return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.SheetVisualScopingConfiguration + var cv []types.TableConditionalFormattingOption if *v == nil { - cv = []types.SheetVisualScopingConfiguration{} + cv = []types.TableConditionalFormattingOption{} } else { cv = *v } for _, value := range shape { - var col types.SheetVisualScopingConfiguration + var col types.TableConditionalFormattingOption destAddr := &col - if err := awsRestjson1_deserializeDocumentSheetVisualScopingConfiguration(&destAddr, value); err != nil { + if err := awsRestjson1_deserializeDocumentTableConditionalFormattingOption(&destAddr, value); err != nil { return err } col = *destAddr @@ -58612,7 +65776,7 @@ func awsRestjson1_deserializeDocumentSheetVisualScopingConfigurations(v *[]types return nil } -func awsRestjson1_deserializeDocumentShortFormatText(v **types.ShortFormatText, value interface{}) error { +func awsRestjson1_deserializeDocumentTableConfiguration(v **types.TableConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -58625,31 +65789,48 @@ func awsRestjson1_deserializeDocumentShortFormatText(v **types.ShortFormatText, return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ShortFormatText + var sv *types.TableConfiguration if *v == nil { - sv = &types.ShortFormatText{} + sv = &types.TableConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "PlainText": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ShortPlainText to be of type string, got %T instead", value) - } - sv.PlainText = ptr.String(jtv) + case "FieldOptions": + if err := awsRestjson1_deserializeDocumentTableFieldOptions(&sv.FieldOptions, value); err != nil { + return err } - case "RichText": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ShortRichText to be of type string, got %T instead", value) - } - sv.RichText = ptr.String(jtv) + case "FieldWells": + if err := awsRestjson1_deserializeDocumentTableFieldWells(&sv.FieldWells, value); err != nil { + return err + } + + case "PaginatedReportOptions": + if err := awsRestjson1_deserializeDocumentTablePaginatedReportOptions(&sv.PaginatedReportOptions, value); err != nil { + return err + } + + case "SortConfiguration": + if err := awsRestjson1_deserializeDocumentTableSortConfiguration(&sv.SortConfiguration, value); err != nil { + return err + } + + case "TableInlineVisualizations": + if err := awsRestjson1_deserializeDocumentTableInlineVisualizationList(&sv.TableInlineVisualizations, value); err != nil { + return err + } + + case "TableOptions": + if err := awsRestjson1_deserializeDocumentTableOptions(&sv.TableOptions, value); err != nil { + return err + } + + case "TotalOptions": + if err := awsRestjson1_deserializeDocumentTotalOptions(&sv.TotalOptions, value); err != nil { + return err } default: @@ -58661,7 +65842,7 @@ func awsRestjson1_deserializeDocumentShortFormatText(v **types.ShortFormatText, return nil } -func awsRestjson1_deserializeDocumentSignupResponse(v **types.SignupResponse, value interface{}) error { +func awsRestjson1_deserializeDocumentTableFieldCustomIconContent(v **types.TableFieldCustomIconContent, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -58674,49 +65855,22 @@ func awsRestjson1_deserializeDocumentSignupResponse(v **types.SignupResponse, va return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.SignupResponse + var sv *types.TableFieldCustomIconContent if *v == nil { - sv = &types.SignupResponse{} + sv = &types.TableFieldCustomIconContent{} } else { sv = *v } for key, value := range shape { switch key { - case "accountName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.AccountName = ptr.String(jtv) - } - - case "directoryType": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.DirectoryType = ptr.String(jtv) - } - - case "IAMUser": - if value != nil { - jtv, ok := value.(bool) - if !ok { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) - } - sv.IAMUser = jtv - } - - case "userLoginName": + case "Icon": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) + return fmt.Errorf("expected TableFieldIconSetType to be of type string, got %T instead", value) } - sv.UserLoginName = ptr.String(jtv) + sv.Icon = types.TableFieldIconSetType(jtv) } default: @@ -58728,7 +65882,7 @@ func awsRestjson1_deserializeDocumentSignupResponse(v **types.SignupResponse, va return nil } -func awsRestjson1_deserializeDocumentSimpleClusterMarker(v **types.SimpleClusterMarker, value interface{}) error { +func awsRestjson1_deserializeDocumentTableFieldCustomTextContent(v **types.TableFieldCustomTextContent, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -58741,22 +65895,27 @@ func awsRestjson1_deserializeDocumentSimpleClusterMarker(v **types.SimpleCluster return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.SimpleClusterMarker + var sv *types.TableFieldCustomTextContent if *v == nil { - sv = &types.SimpleClusterMarker{} + sv = &types.TableFieldCustomTextContent{} } else { sv = *v } for key, value := range shape { switch key { - case "Color": + case "FontConfiguration": + if err := awsRestjson1_deserializeDocumentFontConfiguration(&sv.FontConfiguration, value); err != nil { + return err + } + + case "Value": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected HexColor to be of type string, got %T instead", value) + return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Color = ptr.String(jtv) + sv.Value = ptr.String(jtv) } default: @@ -58768,7 +65927,7 @@ func awsRestjson1_deserializeDocumentSimpleClusterMarker(v **types.SimpleCluster return nil } -func awsRestjson1_deserializeDocumentSliderControlDisplayOptions(v **types.SliderControlDisplayOptions, value interface{}) error { +func awsRestjson1_deserializeDocumentTableFieldImageConfiguration(v **types.TableFieldImageConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -58781,17 +65940,17 @@ func awsRestjson1_deserializeDocumentSliderControlDisplayOptions(v **types.Slide return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.SliderControlDisplayOptions + var sv *types.TableFieldImageConfiguration if *v == nil { - sv = &types.SliderControlDisplayOptions{} + sv = &types.TableFieldImageConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "TitleOptions": - if err := awsRestjson1_deserializeDocumentLabelOptions(&sv.TitleOptions, value); err != nil { + case "SizingOptions": + if err := awsRestjson1_deserializeDocumentTableCellImageSizingConfiguration(&sv.SizingOptions, value); err != nil { return err } @@ -58804,7 +65963,7 @@ func awsRestjson1_deserializeDocumentSliderControlDisplayOptions(v **types.Slide return nil } -func awsRestjson1_deserializeDocumentSmallMultiplesDimensionFieldList(v *[]types.DimensionField, value interface{}) error { +func awsRestjson1_deserializeDocumentTableFieldLinkConfiguration(v **types.TableFieldLinkConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -58812,33 +65971,44 @@ func awsRestjson1_deserializeDocumentSmallMultiplesDimensionFieldList(v *[]types return nil } - shape, ok := value.([]interface{}) + shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.DimensionField + var sv *types.TableFieldLinkConfiguration if *v == nil { - cv = []types.DimensionField{} + sv = &types.TableFieldLinkConfiguration{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col types.DimensionField - destAddr := &col - if err := awsRestjson1_deserializeDocumentDimensionField(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) + for key, value := range shape { + switch key { + case "Content": + if err := awsRestjson1_deserializeDocumentTableFieldLinkContentConfiguration(&sv.Content, value); err != nil { + return err + } + + case "Target": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected URLTargetConfiguration to be of type string, got %T instead", value) + } + sv.Target = types.URLTargetConfiguration(jtv) + } + + default: + _, _ = key, value + } } - *v = cv + *v = sv return nil } -func awsRestjson1_deserializeDocumentSmallMultiplesOptions(v **types.SmallMultiplesOptions, value interface{}) error { +func awsRestjson1_deserializeDocumentTableFieldLinkContentConfiguration(v **types.TableFieldLinkContentConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -58851,43 +66021,22 @@ func awsRestjson1_deserializeDocumentSmallMultiplesOptions(v **types.SmallMultip return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.SmallMultiplesOptions + var sv *types.TableFieldLinkContentConfiguration if *v == nil { - sv = &types.SmallMultiplesOptions{} + sv = &types.TableFieldLinkContentConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "MaxVisibleColumns": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected VisiblePanelColumns to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.MaxVisibleColumns = ptr.Int64(i64) - } - - case "MaxVisibleRows": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected VisiblePanelRows to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.MaxVisibleRows = ptr.Int64(i64) + case "CustomIconContent": + if err := awsRestjson1_deserializeDocumentTableFieldCustomIconContent(&sv.CustomIconContent, value); err != nil { + return err } - case "PanelConfiguration": - if err := awsRestjson1_deserializeDocumentPanelConfiguration(&sv.PanelConfiguration, value); err != nil { + case "CustomTextContent": + if err := awsRestjson1_deserializeDocumentTableFieldCustomTextContent(&sv.CustomTextContent, value); err != nil { return err } @@ -58900,7 +66049,7 @@ func awsRestjson1_deserializeDocumentSmallMultiplesOptions(v **types.SmallMultip return nil } -func awsRestjson1_deserializeDocumentSnowflakeParameters(v **types.SnowflakeParameters, value interface{}) error { +func awsRestjson1_deserializeDocumentTableFieldOption(v **types.TableFieldOption, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -58913,40 +66062,54 @@ func awsRestjson1_deserializeDocumentSnowflakeParameters(v **types.SnowflakePara return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.SnowflakeParameters + var sv *types.TableFieldOption if *v == nil { - sv = &types.SnowflakeParameters{} + sv = &types.TableFieldOption{} } else { sv = *v } for key, value := range shape { switch key { - case "Database": + case "CustomLabel": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Database to be of type string, got %T instead", value) + return fmt.Errorf("expected CustomLabel to be of type string, got %T instead", value) } - sv.Database = ptr.String(jtv) + sv.CustomLabel = ptr.String(jtv) } - case "Host": + case "FieldId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Host to be of type string, got %T instead", value) + return fmt.Errorf("expected FieldId to be of type string, got %T instead", value) } - sv.Host = ptr.String(jtv) + sv.FieldId = ptr.String(jtv) } - case "Warehouse": + case "URLStyling": + if err := awsRestjson1_deserializeDocumentTableFieldURLConfiguration(&sv.URLStyling, value); err != nil { + return err + } + + case "Visibility": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Warehouse to be of type string, got %T instead", value) + return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) } - sv.Warehouse = ptr.String(jtv) + sv.Visibility = types.Visibility(jtv) + } + + case "Width": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected PixelLength to be of type string, got %T instead", value) + } + sv.Width = ptr.String(jtv) } default: @@ -58958,7 +66121,41 @@ func awsRestjson1_deserializeDocumentSnowflakeParameters(v **types.SnowflakePara return nil } -func awsRestjson1_deserializeDocumentSpacing(v **types.Spacing, value interface{}) error { +func awsRestjson1_deserializeDocumentTableFieldOptionList(v *[]types.TableFieldOption, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.TableFieldOption + if *v == nil { + cv = []types.TableFieldOption{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.TableFieldOption + destAddr := &col + if err := awsRestjson1_deserializeDocumentTableFieldOption(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentTableFieldOptions(v **types.TableFieldOptions, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -58971,49 +66168,23 @@ func awsRestjson1_deserializeDocumentSpacing(v **types.Spacing, value interface{ return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.Spacing + var sv *types.TableFieldOptions if *v == nil { - sv = &types.Spacing{} + sv = &types.TableFieldOptions{} } else { sv = *v } for key, value := range shape { switch key { - case "Bottom": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Length to be of type string, got %T instead", value) - } - sv.Bottom = ptr.String(jtv) - } - - case "Left": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Length to be of type string, got %T instead", value) - } - sv.Left = ptr.String(jtv) - } - - case "Right": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Length to be of type string, got %T instead", value) - } - sv.Right = ptr.String(jtv) + case "Order": + if err := awsRestjson1_deserializeDocumentFieldOrderList(&sv.Order, value); err != nil { + return err } - case "Top": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Length to be of type string, got %T instead", value) - } - sv.Top = ptr.String(jtv) + case "SelectedFieldOptions": + if err := awsRestjson1_deserializeDocumentTableFieldOptionList(&sv.SelectedFieldOptions, value); err != nil { + return err } default: @@ -59025,7 +66196,7 @@ func awsRestjson1_deserializeDocumentSpacing(v **types.Spacing, value interface{ return nil } -func awsRestjson1_deserializeDocumentSparkParameters(v **types.SparkParameters, value interface{}) error { +func awsRestjson1_deserializeDocumentTableFieldURLConfiguration(v **types.TableFieldURLConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -59038,35 +66209,23 @@ func awsRestjson1_deserializeDocumentSparkParameters(v **types.SparkParameters, return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.SparkParameters + var sv *types.TableFieldURLConfiguration if *v == nil { - sv = &types.SparkParameters{} + sv = &types.TableFieldURLConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "Host": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Host to be of type string, got %T instead", value) - } - sv.Host = ptr.String(jtv) + case "ImageConfiguration": + if err := awsRestjson1_deserializeDocumentTableFieldImageConfiguration(&sv.ImageConfiguration, value); err != nil { + return err } - case "Port": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected Port to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.Port = int32(i64) + case "LinkConfiguration": + if err := awsRestjson1_deserializeDocumentTableFieldLinkConfiguration(&sv.LinkConfiguration, value); err != nil { + return err } default: @@ -59078,7 +66237,7 @@ func awsRestjson1_deserializeDocumentSparkParameters(v **types.SparkParameters, return nil } -func awsRestjson1_deserializeDocumentSqlServerParameters(v **types.SqlServerParameters, value interface{}) error { +func awsRestjson1_deserializeDocumentTableFieldWells(v **types.TableFieldWells, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -59091,44 +66250,23 @@ func awsRestjson1_deserializeDocumentSqlServerParameters(v **types.SqlServerPara return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.SqlServerParameters + var sv *types.TableFieldWells if *v == nil { - sv = &types.SqlServerParameters{} + sv = &types.TableFieldWells{} } else { sv = *v } for key, value := range shape { - switch key { - case "Database": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Database to be of type string, got %T instead", value) - } - sv.Database = ptr.String(jtv) - } - - case "Host": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Host to be of type string, got %T instead", value) - } - sv.Host = ptr.String(jtv) - } - - case "Port": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected Port to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.Port = int32(i64) + switch key { + case "TableAggregatedFieldWells": + if err := awsRestjson1_deserializeDocumentTableAggregatedFieldWells(&sv.TableAggregatedFieldWells, value); err != nil { + return err + } + + case "TableUnaggregatedFieldWells": + if err := awsRestjson1_deserializeDocumentTableUnaggregatedFieldWells(&sv.TableUnaggregatedFieldWells, value); err != nil { + return err } default: @@ -59140,7 +66278,7 @@ func awsRestjson1_deserializeDocumentSqlServerParameters(v **types.SqlServerPara return nil } -func awsRestjson1_deserializeDocumentSslProperties(v **types.SslProperties, value interface{}) error { +func awsRestjson1_deserializeDocumentTableInlineVisualization(v **types.TableInlineVisualization, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -59153,22 +66291,18 @@ func awsRestjson1_deserializeDocumentSslProperties(v **types.SslProperties, valu return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.SslProperties + var sv *types.TableInlineVisualization if *v == nil { - sv = &types.SslProperties{} + sv = &types.TableInlineVisualization{} } else { sv = *v } for key, value := range shape { switch key { - case "DisableSsl": - if value != nil { - jtv, ok := value.(bool) - if !ok { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) - } - sv.DisableSsl = jtv + case "DataBars": + if err := awsRestjson1_deserializeDocumentDataBarsOptions(&sv.DataBars, value); err != nil { + return err } default: @@ -59180,7 +66314,7 @@ func awsRestjson1_deserializeDocumentSslProperties(v **types.SslProperties, valu return nil } -func awsRestjson1_deserializeDocumentStringDefaultValueList(v *[]string, value interface{}) error { +func awsRestjson1_deserializeDocumentTableInlineVisualizationList(v *[]types.TableInlineVisualization, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -59193,22 +66327,20 @@ func awsRestjson1_deserializeDocumentStringDefaultValueList(v *[]string, value i return fmt.Errorf("unexpected JSON type %v", value) } - var cv []string + var cv []types.TableInlineVisualization if *v == nil { - cv = []string{} + cv = []types.TableInlineVisualization{} } else { cv = *v } for _, value := range shape { - var col string - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected SensitiveStringObject to be of type string, got %T instead", value) - } - col = jtv + var col types.TableInlineVisualization + destAddr := &col + if err := awsRestjson1_deserializeDocumentTableInlineVisualization(&destAddr, value); err != nil { + return err } + col = *destAddr cv = append(cv, col) } @@ -59216,7 +66348,7 @@ func awsRestjson1_deserializeDocumentStringDefaultValueList(v *[]string, value i return nil } -func awsRestjson1_deserializeDocumentStringDefaultValues(v **types.StringDefaultValues, value interface{}) error { +func awsRestjson1_deserializeDocumentTableOptions(v **types.TableOptions, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -59229,22 +66361,36 @@ func awsRestjson1_deserializeDocumentStringDefaultValues(v **types.StringDefault return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.StringDefaultValues + var sv *types.TableOptions if *v == nil { - sv = &types.StringDefaultValues{} + sv = &types.TableOptions{} } else { sv = *v } for key, value := range shape { switch key { - case "DynamicValue": - if err := awsRestjson1_deserializeDocumentDynamicDefaultValue(&sv.DynamicValue, value); err != nil { + case "CellStyle": + if err := awsRestjson1_deserializeDocumentTableCellStyle(&sv.CellStyle, value); err != nil { return err } - case "StaticValues": - if err := awsRestjson1_deserializeDocumentStringDefaultValueList(&sv.StaticValues, value); err != nil { + case "HeaderStyle": + if err := awsRestjson1_deserializeDocumentTableCellStyle(&sv.HeaderStyle, value); err != nil { + return err + } + + case "Orientation": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TableOrientation to be of type string, got %T instead", value) + } + sv.Orientation = types.TableOrientation(jtv) + } + + case "RowAlternateColorOptions": + if err := awsRestjson1_deserializeDocumentRowAlternateColorOptions(&sv.RowAlternateColorOptions, value); err != nil { return err } @@ -59257,7 +66403,7 @@ func awsRestjson1_deserializeDocumentStringDefaultValues(v **types.StringDefault return nil } -func awsRestjson1_deserializeDocumentStringFormatConfiguration(v **types.StringFormatConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentTablePaginatedReportOptions(v **types.TablePaginatedReportOptions, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -59270,23 +66416,31 @@ func awsRestjson1_deserializeDocumentStringFormatConfiguration(v **types.StringF return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.StringFormatConfiguration + var sv *types.TablePaginatedReportOptions if *v == nil { - sv = &types.StringFormatConfiguration{} + sv = &types.TablePaginatedReportOptions{} } else { sv = *v } for key, value := range shape { switch key { - case "NullValueFormatConfiguration": - if err := awsRestjson1_deserializeDocumentNullValueFormatConfiguration(&sv.NullValueFormatConfiguration, value); err != nil { - return err + case "OverflowColumnHeaderVisibility": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) + } + sv.OverflowColumnHeaderVisibility = types.Visibility(jtv) } - case "NumericFormatConfiguration": - if err := awsRestjson1_deserializeDocumentNumericFormatConfiguration(&sv.NumericFormatConfiguration, value); err != nil { - return err + case "VerticalOverflowVisibility": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) + } + sv.VerticalOverflowVisibility = types.Visibility(jtv) } default: @@ -59298,7 +66452,7 @@ func awsRestjson1_deserializeDocumentStringFormatConfiguration(v **types.StringF return nil } -func awsRestjson1_deserializeDocumentStringParameterDeclaration(v **types.StringParameterDeclaration, value interface{}) error { +func awsRestjson1_deserializeDocumentTableRowConditionalFormatting(v **types.TableRowConditionalFormatting, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -59311,40 +66465,22 @@ func awsRestjson1_deserializeDocumentStringParameterDeclaration(v **types.String return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.StringParameterDeclaration + var sv *types.TableRowConditionalFormatting if *v == nil { - sv = &types.StringParameterDeclaration{} + sv = &types.TableRowConditionalFormatting{} } else { sv = *v } for key, value := range shape { switch key { - case "DefaultValues": - if err := awsRestjson1_deserializeDocumentStringDefaultValues(&sv.DefaultValues, value); err != nil { + case "BackgroundColor": + if err := awsRestjson1_deserializeDocumentConditionalFormattingColor(&sv.BackgroundColor, value); err != nil { return err } - case "Name": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ParameterName to be of type string, got %T instead", value) - } - sv.Name = ptr.String(jtv) - } - - case "ParameterValueType": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ParameterValueType to be of type string, got %T instead", value) - } - sv.ParameterValueType = types.ParameterValueType(jtv) - } - - case "ValueWhenUnset": - if err := awsRestjson1_deserializeDocumentStringValueWhenUnsetConfiguration(&sv.ValueWhenUnset, value); err != nil { + case "TextColor": + if err := awsRestjson1_deserializeDocumentConditionalFormattingColor(&sv.TextColor, value); err != nil { return err } @@ -59357,7 +66493,7 @@ func awsRestjson1_deserializeDocumentStringParameterDeclaration(v **types.String return nil } -func awsRestjson1_deserializeDocumentStringValueWhenUnsetConfiguration(v **types.StringValueWhenUnsetConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentTableSideBorderOptions(v **types.TableSideBorderOptions, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -59370,31 +66506,43 @@ func awsRestjson1_deserializeDocumentStringValueWhenUnsetConfiguration(v **types return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.StringValueWhenUnsetConfiguration + var sv *types.TableSideBorderOptions if *v == nil { - sv = &types.StringValueWhenUnsetConfiguration{} + sv = &types.TableSideBorderOptions{} } else { sv = *v } for key, value := range shape { switch key { - case "CustomValue": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected SensitiveString to be of type string, got %T instead", value) - } - sv.CustomValue = ptr.String(jtv) + case "Bottom": + if err := awsRestjson1_deserializeDocumentTableBorderOptions(&sv.Bottom, value); err != nil { + return err } - case "ValueWhenUnsetOption": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ValueWhenUnsetOption to be of type string, got %T instead", value) - } - sv.ValueWhenUnsetOption = types.ValueWhenUnsetOption(jtv) + case "InnerHorizontal": + if err := awsRestjson1_deserializeDocumentTableBorderOptions(&sv.InnerHorizontal, value); err != nil { + return err + } + + case "InnerVertical": + if err := awsRestjson1_deserializeDocumentTableBorderOptions(&sv.InnerVertical, value); err != nil { + return err + } + + case "Left": + if err := awsRestjson1_deserializeDocumentTableBorderOptions(&sv.Left, value); err != nil { + return err + } + + case "Right": + if err := awsRestjson1_deserializeDocumentTableBorderOptions(&sv.Right, value); err != nil { + return err + } + + case "Top": + if err := awsRestjson1_deserializeDocumentTableBorderOptions(&sv.Top, value); err != nil { + return err } default: @@ -59406,7 +66554,7 @@ func awsRestjson1_deserializeDocumentStringValueWhenUnsetConfiguration(v **types return nil } -func awsRestjson1_deserializeDocumentSubtotalOptions(v **types.SubtotalOptions, value interface{}) error { +func awsRestjson1_deserializeDocumentTableSortConfiguration(v **types.TableSortConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -59419,59 +66567,22 @@ func awsRestjson1_deserializeDocumentSubtotalOptions(v **types.SubtotalOptions, return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.SubtotalOptions + var sv *types.TableSortConfiguration if *v == nil { - sv = &types.SubtotalOptions{} + sv = &types.TableSortConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "CustomLabel": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.CustomLabel = ptr.String(jtv) - } - - case "FieldLevel": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected PivotTableSubtotalLevel to be of type string, got %T instead", value) - } - sv.FieldLevel = types.PivotTableSubtotalLevel(jtv) - } - - case "FieldLevelOptions": - if err := awsRestjson1_deserializeDocumentPivotTableFieldSubtotalOptionsList(&sv.FieldLevelOptions, value); err != nil { - return err - } - - case "MetricHeaderCellStyle": - if err := awsRestjson1_deserializeDocumentTableCellStyle(&sv.MetricHeaderCellStyle, value); err != nil { - return err - } - - case "TotalCellStyle": - if err := awsRestjson1_deserializeDocumentTableCellStyle(&sv.TotalCellStyle, value); err != nil { + case "PaginationConfiguration": + if err := awsRestjson1_deserializeDocumentPaginationConfiguration(&sv.PaginationConfiguration, value); err != nil { return err } - case "TotalsVisibility": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) - } - sv.TotalsVisibility = types.Visibility(jtv) - } - - case "ValueCellStyle": - if err := awsRestjson1_deserializeDocumentTableCellStyle(&sv.ValueCellStyle, value); err != nil { + case "RowSort": + if err := awsRestjson1_deserializeDocumentRowSortList(&sv.RowSort, value); err != nil { return err } @@ -59484,7 +66595,7 @@ func awsRestjson1_deserializeDocumentSubtotalOptions(v **types.SubtotalOptions, return nil } -func awsRestjson1_deserializeDocumentTableAggregatedFieldWells(v **types.TableAggregatedFieldWells, value interface{}) error { +func awsRestjson1_deserializeDocumentTableUnaggregatedFieldWells(v **types.TableUnaggregatedFieldWells, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -59497,22 +66608,17 @@ func awsRestjson1_deserializeDocumentTableAggregatedFieldWells(v **types.TableAg return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.TableAggregatedFieldWells + var sv *types.TableUnaggregatedFieldWells if *v == nil { - sv = &types.TableAggregatedFieldWells{} + sv = &types.TableUnaggregatedFieldWells{} } else { sv = *v } for key, value := range shape { switch key { - case "GroupBy": - if err := awsRestjson1_deserializeDocumentDimensionFieldList(&sv.GroupBy, value); err != nil { - return err - } - case "Values": - if err := awsRestjson1_deserializeDocumentMeasureFieldList(&sv.Values, value); err != nil { + if err := awsRestjson1_deserializeDocumentUnaggregatedFieldList(&sv.Values, value); err != nil { return err } @@ -59525,7 +66631,7 @@ func awsRestjson1_deserializeDocumentTableAggregatedFieldWells(v **types.TableAg return nil } -func awsRestjson1_deserializeDocumentTableBorderOptions(v **types.TableBorderOptions, value interface{}) error { +func awsRestjson1_deserializeDocumentTableVisual(v **types.TableVisual, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -59538,44 +66644,47 @@ func awsRestjson1_deserializeDocumentTableBorderOptions(v **types.TableBorderOpt return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.TableBorderOptions + var sv *types.TableVisual if *v == nil { - sv = &types.TableBorderOptions{} + sv = &types.TableVisual{} } else { sv = *v } for key, value := range shape { switch key { - case "Color": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected HexColor to be of type string, got %T instead", value) - } - sv.Color = ptr.String(jtv) + case "Actions": + if err := awsRestjson1_deserializeDocumentVisualCustomActionList(&sv.Actions, value); err != nil { + return err } - case "Style": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected TableBorderStyle to be of type string, got %T instead", value) - } - sv.Style = types.TableBorderStyle(jtv) + case "ChartConfiguration": + if err := awsRestjson1_deserializeDocumentTableConfiguration(&sv.ChartConfiguration, value); err != nil { + return err } - case "Thickness": + case "ConditionalFormatting": + if err := awsRestjson1_deserializeDocumentTableConditionalFormatting(&sv.ConditionalFormatting, value); err != nil { + return err + } + + case "Subtitle": + if err := awsRestjson1_deserializeDocumentVisualSubtitleLabelOptions(&sv.Subtitle, value); err != nil { + return err + } + + case "Title": + if err := awsRestjson1_deserializeDocumentVisualTitleLabelOptions(&sv.Title, value); err != nil { + return err + } + + case "VisualId": if value != nil { - jtv, ok := value.(json.Number) + jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected TableBorderThickness to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) } - sv.Thickness = ptr.Int32(int32(i64)) + sv.VisualId = ptr.String(jtv) } default: @@ -59587,7 +66696,7 @@ func awsRestjson1_deserializeDocumentTableBorderOptions(v **types.TableBorderOpt return nil } -func awsRestjson1_deserializeDocumentTableCellConditionalFormatting(v **types.TableCellConditionalFormatting, value interface{}) error { +func awsRestjson1_deserializeDocumentTag(v **types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -59600,27 +66709,31 @@ func awsRestjson1_deserializeDocumentTableCellConditionalFormatting(v **types.Ta return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.TableCellConditionalFormatting + var sv *types.Tag if *v == nil { - sv = &types.TableCellConditionalFormatting{} + sv = &types.Tag{} } else { sv = *v } for key, value := range shape { switch key { - case "FieldId": + case "Key": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected FieldId to be of type string, got %T instead", value) + return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - sv.FieldId = ptr.String(jtv) + sv.Key = ptr.String(jtv) } - case "TextFormat": - if err := awsRestjson1_deserializeDocumentTextConditionalFormat(&sv.TextFormat, value); err != nil { - return err + case "Value": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) + } + sv.Value = ptr.String(jtv) } default: @@ -59632,7 +66745,7 @@ func awsRestjson1_deserializeDocumentTableCellConditionalFormatting(v **types.Ta return nil } -func awsRestjson1_deserializeDocumentTableCellImageSizingConfiguration(v **types.TableCellImageSizingConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentTagColumnOperation(v **types.TagColumnOperation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -59645,22 +66758,27 @@ func awsRestjson1_deserializeDocumentTableCellImageSizingConfiguration(v **types return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.TableCellImageSizingConfiguration + var sv *types.TagColumnOperation if *v == nil { - sv = &types.TableCellImageSizingConfiguration{} + sv = &types.TagColumnOperation{} } else { sv = *v } for key, value := range shape { switch key { - case "TableCellImageScalingConfiguration": + case "ColumnName": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected TableCellImageScalingConfiguration to be of type string, got %T instead", value) + return fmt.Errorf("expected ColumnName to be of type string, got %T instead", value) } - sv.TableCellImageScalingConfiguration = types.TableCellImageScalingConfiguration(jtv) + sv.ColumnName = ptr.String(jtv) + } + + case "Tags": + if err := awsRestjson1_deserializeDocumentColumnTagList(&sv.Tags, value); err != nil { + return err } default: @@ -59672,7 +66790,77 @@ func awsRestjson1_deserializeDocumentTableCellImageSizingConfiguration(v **types return nil } -func awsRestjson1_deserializeDocumentTableCellStyle(v **types.TableCellStyle, value interface{}) error { +func awsRestjson1_deserializeDocumentTagList(v *[]types.Tag, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.Tag + if *v == nil { + cv = []types.Tag{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.Tag + destAddr := &col + if err := awsRestjson1_deserializeDocumentTag(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentTargetVisualList(v *[]string, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []string + if *v == nil { + cv = []string{} + } else { + cv = *v + } + + for _, value := range shape { + var col string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + } + col = jtv + } + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentTemplate(v **types.Template, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -59685,116 +66873,76 @@ func awsRestjson1_deserializeDocumentTableCellStyle(v **types.TableCellStyle, va return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.TableCellStyle + var sv *types.Template if *v == nil { - sv = &types.TableCellStyle{} + sv = &types.Template{} } else { sv = *v } for key, value := range shape { switch key { - case "BackgroundColor": + case "Arn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected HexColor to be of type string, got %T instead", value) + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.BackgroundColor = ptr.String(jtv) + sv.Arn = ptr.String(jtv) } - case "Border": - if err := awsRestjson1_deserializeDocumentGlobalTableBorderOptions(&sv.Border, value); err != nil { - return err - } + case "CreatedTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreatedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) - case "FontConfiguration": - if err := awsRestjson1_deserializeDocumentFontConfiguration(&sv.FontConfiguration, value); err != nil { - return err - } + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - case "Height": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected TableFieldHeight to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err } - sv.Height = ptr.Int32(int32(i64)) } - case "HorizontalTextAlignment": + case "LastUpdatedTime": if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected HorizontalTextAlignment to be of type string, got %T instead", value) - } - sv.HorizontalTextAlignment = types.HorizontalTextAlignment(jtv) - } + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.LastUpdatedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - case "TextWrap": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected TextWrap to be of type string, got %T instead", value) } - sv.TextWrap = types.TextWrap(jtv) } - case "VerticalTextAlignment": + case "Name": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected VerticalTextAlignment to be of type string, got %T instead", value) + return fmt.Errorf("expected TemplateName to be of type string, got %T instead", value) } - sv.VerticalTextAlignment = types.VerticalTextAlignment(jtv) + sv.Name = ptr.String(jtv) } - case "Visibility": + case "TemplateId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) } - sv.Visibility = types.Visibility(jtv) + sv.TemplateId = ptr.String(jtv) } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentTableConditionalFormatting(v **types.TableConditionalFormatting, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.TableConditionalFormatting - if *v == nil { - sv = &types.TableConditionalFormatting{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "ConditionalFormattingOptions": - if err := awsRestjson1_deserializeDocumentTableConditionalFormattingOptionList(&sv.ConditionalFormattingOptions, value); err != nil { + + case "Version": + if err := awsRestjson1_deserializeDocumentTemplateVersion(&sv.Version, value); err != nil { return err } @@ -59807,7 +66955,7 @@ func awsRestjson1_deserializeDocumentTableConditionalFormatting(v **types.TableC return nil } -func awsRestjson1_deserializeDocumentTableConditionalFormattingOption(v **types.TableConditionalFormattingOption, value interface{}) error { +func awsRestjson1_deserializeDocumentTemplateAlias(v **types.TemplateAlias, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -59820,23 +66968,44 @@ func awsRestjson1_deserializeDocumentTableConditionalFormattingOption(v **types. return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.TableConditionalFormattingOption + var sv *types.TemplateAlias if *v == nil { - sv = &types.TableConditionalFormattingOption{} + sv = &types.TemplateAlias{} } else { sv = *v } for key, value := range shape { switch key { - case "Cell": - if err := awsRestjson1_deserializeDocumentTableCellConditionalFormatting(&sv.Cell, value); err != nil { - return err + case "AliasName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AliasName to be of type string, got %T instead", value) + } + sv.AliasName = ptr.String(jtv) } - case "Row": - if err := awsRestjson1_deserializeDocumentTableRowConditionalFormatting(&sv.Row, value); err != nil { - return err + case "Arn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) + } + + case "TemplateVersionNumber": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected VersionNumber to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.TemplateVersionNumber = ptr.Int64(i64) } default: @@ -59848,7 +67017,7 @@ func awsRestjson1_deserializeDocumentTableConditionalFormattingOption(v **types. return nil } -func awsRestjson1_deserializeDocumentTableConditionalFormattingOptionList(v *[]types.TableConditionalFormattingOption, value interface{}) error { +func awsRestjson1_deserializeDocumentTemplateAliasList(v *[]types.TemplateAlias, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -59861,17 +67030,17 @@ func awsRestjson1_deserializeDocumentTableConditionalFormattingOptionList(v *[]t return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.TableConditionalFormattingOption + var cv []types.TemplateAlias if *v == nil { - cv = []types.TableConditionalFormattingOption{} + cv = []types.TemplateAlias{} } else { cv = *v } for _, value := range shape { - var col types.TableConditionalFormattingOption + var col types.TemplateAlias destAddr := &col - if err := awsRestjson1_deserializeDocumentTableConditionalFormattingOption(&destAddr, value); err != nil { + if err := awsRestjson1_deserializeDocumentTemplateAlias(&destAddr, value); err != nil { return err } col = *destAddr @@ -59882,7 +67051,7 @@ func awsRestjson1_deserializeDocumentTableConditionalFormattingOptionList(v *[]t return nil } -func awsRestjson1_deserializeDocumentTableConfiguration(v **types.TableConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentTemplateError(v **types.TemplateError, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -59895,47 +67064,35 @@ func awsRestjson1_deserializeDocumentTableConfiguration(v **types.TableConfigura return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.TableConfiguration + var sv *types.TemplateError if *v == nil { - sv = &types.TableConfiguration{} + sv = &types.TemplateError{} } else { sv = *v } for key, value := range shape { switch key { - case "FieldOptions": - if err := awsRestjson1_deserializeDocumentTableFieldOptions(&sv.FieldOptions, value); err != nil { - return err - } - - case "FieldWells": - if err := awsRestjson1_deserializeDocumentTableFieldWells(&sv.FieldWells, value); err != nil { - return err - } - - case "PaginatedReportOptions": - if err := awsRestjson1_deserializeDocumentTablePaginatedReportOptions(&sv.PaginatedReportOptions, value); err != nil { - return err - } - - case "SortConfiguration": - if err := awsRestjson1_deserializeDocumentTableSortConfiguration(&sv.SortConfiguration, value); err != nil { - return err - } - - case "TableInlineVisualizations": - if err := awsRestjson1_deserializeDocumentTableInlineVisualizationList(&sv.TableInlineVisualizations, value); err != nil { - return err + case "Message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) } - case "TableOptions": - if err := awsRestjson1_deserializeDocumentTableOptions(&sv.TableOptions, value); err != nil { - return err + case "Type": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TemplateErrorType to be of type string, got %T instead", value) + } + sv.Type = types.TemplateErrorType(jtv) } - case "TotalOptions": - if err := awsRestjson1_deserializeDocumentTotalOptions(&sv.TotalOptions, value); err != nil { + case "ViolatedEntities": + if err := awsRestjson1_deserializeDocumentEntityList(&sv.ViolatedEntities, value); err != nil { return err } @@ -59948,7 +67105,7 @@ func awsRestjson1_deserializeDocumentTableConfiguration(v **types.TableConfigura return nil } -func awsRestjson1_deserializeDocumentTableFieldCustomIconContent(v **types.TableFieldCustomIconContent, value interface{}) error { +func awsRestjson1_deserializeDocumentTemplateErrorList(v *[]types.TemplateError, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -59956,39 +67113,33 @@ func awsRestjson1_deserializeDocumentTableFieldCustomIconContent(v **types.Table return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.TableFieldCustomIconContent + var cv []types.TemplateError if *v == nil { - sv = &types.TableFieldCustomIconContent{} + cv = []types.TemplateError{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "Icon": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected TableFieldIconSetType to be of type string, got %T instead", value) - } - sv.Icon = types.TableFieldIconSetType(jtv) - } - - default: - _, _ = key, value - + for _, value := range shape { + var col types.TemplateError + destAddr := &col + if err := awsRestjson1_deserializeDocumentTemplateError(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsRestjson1_deserializeDocumentTableFieldCustomTextContent(v **types.TableFieldCustomTextContent, value interface{}) error { +func awsRestjson1_deserializeDocumentTemplateSummary(v **types.TemplateSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -60001,27 +67152,85 @@ func awsRestjson1_deserializeDocumentTableFieldCustomTextContent(v **types.Table return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.TableFieldCustomTextContent + var sv *types.TemplateSummary if *v == nil { - sv = &types.TableFieldCustomTextContent{} + sv = &types.TemplateSummary{} } else { sv = *v } for key, value := range shape { switch key { - case "FontConfiguration": - if err := awsRestjson1_deserializeDocumentFontConfiguration(&sv.FontConfiguration, value); err != nil { - return err + case "Arn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) } - case "Value": + case "CreatedTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreatedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "LastUpdatedTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.LastUpdatedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "LatestVersionNumber": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected VersionNumber to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.LatestVersionNumber = ptr.Int64(i64) + } + + case "Name": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) + return fmt.Errorf("expected TemplateName to be of type string, got %T instead", value) } - sv.Value = ptr.String(jtv) + sv.Name = ptr.String(jtv) + } + + case "TemplateId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + } + sv.TemplateId = ptr.String(jtv) } default: @@ -60033,7 +67242,7 @@ func awsRestjson1_deserializeDocumentTableFieldCustomTextContent(v **types.Table return nil } -func awsRestjson1_deserializeDocumentTableFieldImageConfiguration(v **types.TableFieldImageConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentTemplateSummaryList(v *[]types.TemplateSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -60041,35 +67250,33 @@ func awsRestjson1_deserializeDocumentTableFieldImageConfiguration(v **types.Tabl return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.TableFieldImageConfiguration + var cv []types.TemplateSummary if *v == nil { - sv = &types.TableFieldImageConfiguration{} + cv = []types.TemplateSummary{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "SizingOptions": - if err := awsRestjson1_deserializeDocumentTableCellImageSizingConfiguration(&sv.SizingOptions, value); err != nil { - return err - } - - default: - _, _ = key, value - + for _, value := range shape { + var col types.TemplateSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentTemplateSummary(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsRestjson1_deserializeDocumentTableFieldLinkConfiguration(v **types.TableFieldLinkConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentTemplateVersion(v **types.TemplateVersion, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -60082,27 +67289,93 @@ func awsRestjson1_deserializeDocumentTableFieldLinkConfiguration(v **types.Table return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.TableFieldLinkConfiguration + var sv *types.TemplateVersion if *v == nil { - sv = &types.TableFieldLinkConfiguration{} + sv = &types.TemplateVersion{} } else { sv = *v } for key, value := range shape { switch key { - case "Content": - if err := awsRestjson1_deserializeDocumentTableFieldLinkContentConfiguration(&sv.Content, value); err != nil { + case "CreatedTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreatedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "DataSetConfigurations": + if err := awsRestjson1_deserializeDocumentDataSetConfigurationList(&sv.DataSetConfigurations, value); err != nil { return err } - case "Target": + case "Description": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected URLTargetConfiguration to be of type string, got %T instead", value) + return fmt.Errorf("expected VersionDescription to be of type string, got %T instead", value) } - sv.Target = types.URLTargetConfiguration(jtv) + sv.Description = ptr.String(jtv) + } + + case "Errors": + if err := awsRestjson1_deserializeDocumentTemplateErrorList(&sv.Errors, value); err != nil { + return err + } + + case "Sheets": + if err := awsRestjson1_deserializeDocumentSheetList(&sv.Sheets, value); err != nil { + return err + } + + case "SourceEntityArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.SourceEntityArn = ptr.String(jtv) + } + + case "Status": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourceStatus to be of type string, got %T instead", value) + } + sv.Status = types.ResourceStatus(jtv) + } + + case "ThemeArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.ThemeArn = ptr.String(jtv) + } + + case "VersionNumber": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected VersionNumber to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.VersionNumber = ptr.Int64(i64) } default: @@ -60114,7 +67387,7 @@ func awsRestjson1_deserializeDocumentTableFieldLinkConfiguration(v **types.Table return nil } -func awsRestjson1_deserializeDocumentTableFieldLinkContentConfiguration(v **types.TableFieldLinkContentConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentTemplateVersionDefinition(v **types.TemplateVersionDefinition, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -60127,22 +67400,47 @@ func awsRestjson1_deserializeDocumentTableFieldLinkContentConfiguration(v **type return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.TableFieldLinkContentConfiguration + var sv *types.TemplateVersionDefinition if *v == nil { - sv = &types.TableFieldLinkContentConfiguration{} + sv = &types.TemplateVersionDefinition{} } else { sv = *v } for key, value := range shape { switch key { - case "CustomIconContent": - if err := awsRestjson1_deserializeDocumentTableFieldCustomIconContent(&sv.CustomIconContent, value); err != nil { + case "AnalysisDefaults": + if err := awsRestjson1_deserializeDocumentAnalysisDefaults(&sv.AnalysisDefaults, value); err != nil { return err } - case "CustomTextContent": - if err := awsRestjson1_deserializeDocumentTableFieldCustomTextContent(&sv.CustomTextContent, value); err != nil { + case "CalculatedFields": + if err := awsRestjson1_deserializeDocumentCalculatedFields(&sv.CalculatedFields, value); err != nil { + return err + } + + case "ColumnConfigurations": + if err := awsRestjson1_deserializeDocumentColumnConfigurationList(&sv.ColumnConfigurations, value); err != nil { + return err + } + + case "DataSetConfigurations": + if err := awsRestjson1_deserializeDocumentDataSetConfigurationList(&sv.DataSetConfigurations, value); err != nil { + return err + } + + case "FilterGroups": + if err := awsRestjson1_deserializeDocumentFilterGroupList(&sv.FilterGroups, value); err != nil { + return err + } + + case "ParameterDeclarations": + if err := awsRestjson1_deserializeDocumentParameterDeclarationList(&sv.ParameterDeclarations, value); err != nil { + return err + } + + case "Sheets": + if err := awsRestjson1_deserializeDocumentSheetDefinitionList(&sv.Sheets, value); err != nil { return err } @@ -60155,7 +67453,7 @@ func awsRestjson1_deserializeDocumentTableFieldLinkContentConfiguration(v **type return nil } -func awsRestjson1_deserializeDocumentTableFieldOption(v **types.TableFieldOption, value interface{}) error { +func awsRestjson1_deserializeDocumentTemplateVersionSummary(v **types.TemplateVersionSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -60168,54 +67466,69 @@ func awsRestjson1_deserializeDocumentTableFieldOption(v **types.TableFieldOption return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.TableFieldOption + var sv *types.TemplateVersionSummary if *v == nil { - sv = &types.TableFieldOption{} + sv = &types.TemplateVersionSummary{} } else { sv = *v } for key, value := range shape { switch key { - case "CustomLabel": + case "Arn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected CustomLabel to be of type string, got %T instead", value) + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.CustomLabel = ptr.String(jtv) + sv.Arn = ptr.String(jtv) } - case "FieldId": + case "CreatedTime": if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected FieldId to be of type string, got %T instead", value) + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreatedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + } - sv.FieldId = ptr.String(jtv) } - case "URLStyling": - if err := awsRestjson1_deserializeDocumentTableFieldURLConfiguration(&sv.URLStyling, value); err != nil { - return err + case "Description": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected VersionDescription to be of type string, got %T instead", value) + } + sv.Description = ptr.String(jtv) } - case "Visibility": + case "Status": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) + return fmt.Errorf("expected ResourceStatus to be of type string, got %T instead", value) } - sv.Visibility = types.Visibility(jtv) + sv.Status = types.ResourceStatus(jtv) } - case "Width": + case "VersionNumber": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected PixelLength to be of type string, got %T instead", value) + return fmt.Errorf("expected VersionNumber to be json.Number, got %T instead", value) } - sv.Width = ptr.String(jtv) + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.VersionNumber = ptr.Int64(i64) } default: @@ -60227,7 +67540,7 @@ func awsRestjson1_deserializeDocumentTableFieldOption(v **types.TableFieldOption return nil } -func awsRestjson1_deserializeDocumentTableFieldOptionList(v *[]types.TableFieldOption, value interface{}) error { +func awsRestjson1_deserializeDocumentTemplateVersionSummaryList(v *[]types.TemplateVersionSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -60240,110 +67553,28 @@ func awsRestjson1_deserializeDocumentTableFieldOptionList(v *[]types.TableFieldO return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.TableFieldOption + var cv []types.TemplateVersionSummary if *v == nil { - cv = []types.TableFieldOption{} + cv = []types.TemplateVersionSummary{} } else { cv = *v } for _, value := range shape { - var col types.TableFieldOption + var col types.TemplateVersionSummary destAddr := &col - if err := awsRestjson1_deserializeDocumentTableFieldOption(&destAddr, value); err != nil { + if err := awsRestjson1_deserializeDocumentTemplateVersionSummary(&destAddr, value); err != nil { return err } col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsRestjson1_deserializeDocumentTableFieldOptions(v **types.TableFieldOptions, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.TableFieldOptions - if *v == nil { - sv = &types.TableFieldOptions{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Order": - if err := awsRestjson1_deserializeDocumentFieldOrderList(&sv.Order, value); err != nil { - return err - } - - case "SelectedFieldOptions": - if err := awsRestjson1_deserializeDocumentTableFieldOptionList(&sv.SelectedFieldOptions, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentTableFieldURLConfiguration(v **types.TableFieldURLConfiguration, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.TableFieldURLConfiguration - if *v == nil { - sv = &types.TableFieldURLConfiguration{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "ImageConfiguration": - if err := awsRestjson1_deserializeDocumentTableFieldImageConfiguration(&sv.ImageConfiguration, value); err != nil { - return err - } - - case "LinkConfiguration": - if err := awsRestjson1_deserializeDocumentTableFieldLinkConfiguration(&sv.LinkConfiguration, value); err != nil { - return err - } - - default: - _, _ = key, value + cv = append(cv, col) - } } - *v = sv + *v = cv return nil } -func awsRestjson1_deserializeDocumentTableFieldWells(v **types.TableFieldWells, value interface{}) error { +func awsRestjson1_deserializeDocumentTeradataParameters(v **types.TeradataParameters, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -60356,23 +67587,44 @@ func awsRestjson1_deserializeDocumentTableFieldWells(v **types.TableFieldWells, return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.TableFieldWells + var sv *types.TeradataParameters if *v == nil { - sv = &types.TableFieldWells{} + sv = &types.TeradataParameters{} } else { sv = *v } for key, value := range shape { switch key { - case "TableAggregatedFieldWells": - if err := awsRestjson1_deserializeDocumentTableAggregatedFieldWells(&sv.TableAggregatedFieldWells, value); err != nil { - return err + case "Database": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Database to be of type string, got %T instead", value) + } + sv.Database = ptr.String(jtv) } - case "TableUnaggregatedFieldWells": - if err := awsRestjson1_deserializeDocumentTableUnaggregatedFieldWells(&sv.TableUnaggregatedFieldWells, value); err != nil { - return err + case "Host": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Host to be of type string, got %T instead", value) + } + sv.Host = ptr.String(jtv) + } + + case "Port": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected Port to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.Port = int32(i64) } default: @@ -60384,7 +67636,7 @@ func awsRestjson1_deserializeDocumentTableFieldWells(v **types.TableFieldWells, return nil } -func awsRestjson1_deserializeDocumentTableInlineVisualization(v **types.TableInlineVisualization, value interface{}) error { +func awsRestjson1_deserializeDocumentTextAreaControlDisplayOptions(v **types.TextAreaControlDisplayOptions, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -60397,17 +67649,22 @@ func awsRestjson1_deserializeDocumentTableInlineVisualization(v **types.TableInl return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.TableInlineVisualization + var sv *types.TextAreaControlDisplayOptions if *v == nil { - sv = &types.TableInlineVisualization{} + sv = &types.TextAreaControlDisplayOptions{} } else { sv = *v } for key, value := range shape { switch key { - case "DataBars": - if err := awsRestjson1_deserializeDocumentDataBarsOptions(&sv.DataBars, value); err != nil { + case "PlaceholderOptions": + if err := awsRestjson1_deserializeDocumentTextControlPlaceholderOptions(&sv.PlaceholderOptions, value); err != nil { + return err + } + + case "TitleOptions": + if err := awsRestjson1_deserializeDocumentLabelOptions(&sv.TitleOptions, value); err != nil { return err } @@ -60420,41 +67677,7 @@ func awsRestjson1_deserializeDocumentTableInlineVisualization(v **types.TableInl return nil } -func awsRestjson1_deserializeDocumentTableInlineVisualizationList(v *[]types.TableInlineVisualization, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []types.TableInlineVisualization - if *v == nil { - cv = []types.TableInlineVisualization{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.TableInlineVisualization - destAddr := &col - if err := awsRestjson1_deserializeDocumentTableInlineVisualization(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsRestjson1_deserializeDocumentTableOptions(v **types.TableOptions, value interface{}) error { +func awsRestjson1_deserializeDocumentTextConditionalFormat(v **types.TextConditionalFormat, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -60467,36 +67690,27 @@ func awsRestjson1_deserializeDocumentTableOptions(v **types.TableOptions, value return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.TableOptions + var sv *types.TextConditionalFormat if *v == nil { - sv = &types.TableOptions{} + sv = &types.TextConditionalFormat{} } else { sv = *v } for key, value := range shape { switch key { - case "CellStyle": - if err := awsRestjson1_deserializeDocumentTableCellStyle(&sv.CellStyle, value); err != nil { + case "BackgroundColor": + if err := awsRestjson1_deserializeDocumentConditionalFormattingColor(&sv.BackgroundColor, value); err != nil { return err } - case "HeaderStyle": - if err := awsRestjson1_deserializeDocumentTableCellStyle(&sv.HeaderStyle, value); err != nil { + case "Icon": + if err := awsRestjson1_deserializeDocumentConditionalFormattingIcon(&sv.Icon, value); err != nil { return err } - case "Orientation": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected TableOrientation to be of type string, got %T instead", value) - } - sv.Orientation = types.TableOrientation(jtv) - } - - case "RowAlternateColorOptions": - if err := awsRestjson1_deserializeDocumentRowAlternateColorOptions(&sv.RowAlternateColorOptions, value); err != nil { + case "TextColor": + if err := awsRestjson1_deserializeDocumentConditionalFormattingColor(&sv.TextColor, value); err != nil { return err } @@ -60509,7 +67723,7 @@ func awsRestjson1_deserializeDocumentTableOptions(v **types.TableOptions, value return nil } -func awsRestjson1_deserializeDocumentTablePaginatedReportOptions(v **types.TablePaginatedReportOptions, value interface{}) error { +func awsRestjson1_deserializeDocumentTextControlPlaceholderOptions(v **types.TextControlPlaceholderOptions, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -60522,31 +67736,22 @@ func awsRestjson1_deserializeDocumentTablePaginatedReportOptions(v **types.Table return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.TablePaginatedReportOptions + var sv *types.TextControlPlaceholderOptions if *v == nil { - sv = &types.TablePaginatedReportOptions{} + sv = &types.TextControlPlaceholderOptions{} } else { sv = *v } for key, value := range shape { switch key { - case "OverflowColumnHeaderVisibility": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) - } - sv.OverflowColumnHeaderVisibility = types.Visibility(jtv) - } - - case "VerticalOverflowVisibility": + case "Visibility": if value != nil { jtv, ok := value.(string) if !ok { return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) } - sv.VerticalOverflowVisibility = types.Visibility(jtv) + sv.Visibility = types.Visibility(jtv) } default: @@ -60558,7 +67763,7 @@ func awsRestjson1_deserializeDocumentTablePaginatedReportOptions(v **types.Table return nil } -func awsRestjson1_deserializeDocumentTableRowConditionalFormatting(v **types.TableRowConditionalFormatting, value interface{}) error { +func awsRestjson1_deserializeDocumentTextFieldControlDisplayOptions(v **types.TextFieldControlDisplayOptions, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -60571,22 +67776,22 @@ func awsRestjson1_deserializeDocumentTableRowConditionalFormatting(v **types.Tab return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.TableRowConditionalFormatting + var sv *types.TextFieldControlDisplayOptions if *v == nil { - sv = &types.TableRowConditionalFormatting{} + sv = &types.TextFieldControlDisplayOptions{} } else { sv = *v } for key, value := range shape { switch key { - case "BackgroundColor": - if err := awsRestjson1_deserializeDocumentConditionalFormattingColor(&sv.BackgroundColor, value); err != nil { + case "PlaceholderOptions": + if err := awsRestjson1_deserializeDocumentTextControlPlaceholderOptions(&sv.PlaceholderOptions, value); err != nil { return err } - case "TextColor": - if err := awsRestjson1_deserializeDocumentConditionalFormattingColor(&sv.TextColor, value); err != nil { + case "TitleOptions": + if err := awsRestjson1_deserializeDocumentLabelOptions(&sv.TitleOptions, value); err != nil { return err } @@ -60599,7 +67804,7 @@ func awsRestjson1_deserializeDocumentTableRowConditionalFormatting(v **types.Tab return nil } -func awsRestjson1_deserializeDocumentTableSideBorderOptions(v **types.TableSideBorderOptions, value interface{}) error { +func awsRestjson1_deserializeDocumentTheme(v **types.Theme, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -60612,42 +67817,85 @@ func awsRestjson1_deserializeDocumentTableSideBorderOptions(v **types.TableSideB return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.TableSideBorderOptions + var sv *types.Theme if *v == nil { - sv = &types.TableSideBorderOptions{} + sv = &types.Theme{} } else { sv = *v } for key, value := range shape { switch key { - case "Bottom": - if err := awsRestjson1_deserializeDocumentTableBorderOptions(&sv.Bottom, value); err != nil { - return err + case "Arn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) } - case "InnerHorizontal": - if err := awsRestjson1_deserializeDocumentTableBorderOptions(&sv.InnerHorizontal, value); err != nil { - return err + case "CreatedTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreatedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } } - case "InnerVertical": - if err := awsRestjson1_deserializeDocumentTableBorderOptions(&sv.InnerVertical, value); err != nil { - return err + case "LastUpdatedTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.LastUpdatedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } } - case "Left": - if err := awsRestjson1_deserializeDocumentTableBorderOptions(&sv.Left, value); err != nil { - return err + case "Name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ThemeName to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) } - case "Right": - if err := awsRestjson1_deserializeDocumentTableBorderOptions(&sv.Right, value); err != nil { - return err + case "ThemeId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + } + sv.ThemeId = ptr.String(jtv) } - case "Top": - if err := awsRestjson1_deserializeDocumentTableBorderOptions(&sv.Top, value); err != nil { + case "Type": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ThemeType to be of type string, got %T instead", value) + } + sv.Type = types.ThemeType(jtv) + } + + case "Version": + if err := awsRestjson1_deserializeDocumentThemeVersion(&sv.Version, value); err != nil { return err } @@ -60660,7 +67908,7 @@ func awsRestjson1_deserializeDocumentTableSideBorderOptions(v **types.TableSideB return nil } -func awsRestjson1_deserializeDocumentTableSortConfiguration(v **types.TableSortConfiguration, value interface{}) error { +func awsRestjson1_deserializeDocumentThemeAlias(v **types.ThemeAlias, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -60673,23 +67921,44 @@ func awsRestjson1_deserializeDocumentTableSortConfiguration(v **types.TableSortC return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.TableSortConfiguration + var sv *types.ThemeAlias if *v == nil { - sv = &types.TableSortConfiguration{} + sv = &types.ThemeAlias{} } else { sv = *v } for key, value := range shape { switch key { - case "PaginationConfiguration": - if err := awsRestjson1_deserializeDocumentPaginationConfiguration(&sv.PaginationConfiguration, value); err != nil { - return err + case "AliasName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AliasName to be of type string, got %T instead", value) + } + sv.AliasName = ptr.String(jtv) } - case "RowSort": - if err := awsRestjson1_deserializeDocumentRowSortList(&sv.RowSort, value); err != nil { - return err + case "Arn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) + } + + case "ThemeVersionNumber": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected VersionNumber to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.ThemeVersionNumber = ptr.Int64(i64) } default: @@ -60701,7 +67970,7 @@ func awsRestjson1_deserializeDocumentTableSortConfiguration(v **types.TableSortC return nil } -func awsRestjson1_deserializeDocumentTableUnaggregatedFieldWells(v **types.TableUnaggregatedFieldWells, value interface{}) error { +func awsRestjson1_deserializeDocumentThemeAliasList(v *[]types.ThemeAlias, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -60709,35 +67978,33 @@ func awsRestjson1_deserializeDocumentTableUnaggregatedFieldWells(v **types.Table return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.TableUnaggregatedFieldWells + var cv []types.ThemeAlias if *v == nil { - sv = &types.TableUnaggregatedFieldWells{} + cv = []types.ThemeAlias{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "Values": - if err := awsRestjson1_deserializeDocumentUnaggregatedFieldList(&sv.Values, value); err != nil { - return err - } - - default: - _, _ = key, value - + for _, value := range shape { + var col types.ThemeAlias + destAddr := &col + if err := awsRestjson1_deserializeDocumentThemeAlias(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsRestjson1_deserializeDocumentTableVisual(v **types.TableVisual, value interface{}) error { +func awsRestjson1_deserializeDocumentThemeConfiguration(v **types.ThemeConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -60750,49 +68017,35 @@ func awsRestjson1_deserializeDocumentTableVisual(v **types.TableVisual, value in return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.TableVisual + var sv *types.ThemeConfiguration if *v == nil { - sv = &types.TableVisual{} + sv = &types.ThemeConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "Actions": - if err := awsRestjson1_deserializeDocumentVisualCustomActionList(&sv.Actions, value); err != nil { - return err - } - - case "ChartConfiguration": - if err := awsRestjson1_deserializeDocumentTableConfiguration(&sv.ChartConfiguration, value); err != nil { + case "DataColorPalette": + if err := awsRestjson1_deserializeDocumentDataColorPalette(&sv.DataColorPalette, value); err != nil { return err } - case "ConditionalFormatting": - if err := awsRestjson1_deserializeDocumentTableConditionalFormatting(&sv.ConditionalFormatting, value); err != nil { + case "Sheet": + if err := awsRestjson1_deserializeDocumentSheetStyle(&sv.Sheet, value); err != nil { return err } - case "Subtitle": - if err := awsRestjson1_deserializeDocumentVisualSubtitleLabelOptions(&sv.Subtitle, value); err != nil { + case "Typography": + if err := awsRestjson1_deserializeDocumentTypography(&sv.Typography, value); err != nil { return err } - case "Title": - if err := awsRestjson1_deserializeDocumentVisualTitleLabelOptions(&sv.Title, value); err != nil { + case "UIColorPalette": + if err := awsRestjson1_deserializeDocumentUIColorPalette(&sv.UIColorPalette, value); err != nil { return err } - case "VisualId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) - } - sv.VisualId = ptr.String(jtv) - } - default: _, _ = key, value @@ -60802,7 +68055,7 @@ func awsRestjson1_deserializeDocumentTableVisual(v **types.TableVisual, value in return nil } -func awsRestjson1_deserializeDocumentTag(v **types.Tag, value interface{}) error { +func awsRestjson1_deserializeDocumentThemeError(v **types.ThemeError, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -60815,31 +68068,31 @@ func awsRestjson1_deserializeDocumentTag(v **types.Tag, value interface{}) error return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.Tag + var sv *types.ThemeError if *v == nil { - sv = &types.Tag{} + sv = &types.ThemeError{} } else { sv = *v } for key, value := range shape { switch key { - case "Key": + case "Message": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) } - sv.Key = ptr.String(jtv) + sv.Message = ptr.String(jtv) } - case "Value": + case "Type": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) + return fmt.Errorf("expected ThemeErrorType to be of type string, got %T instead", value) } - sv.Value = ptr.String(jtv) + sv.Type = types.ThemeErrorType(jtv) } default: @@ -60851,7 +68104,7 @@ func awsRestjson1_deserializeDocumentTag(v **types.Tag, value interface{}) error return nil } -func awsRestjson1_deserializeDocumentTagColumnOperation(v **types.TagColumnOperation, value interface{}) error { +func awsRestjson1_deserializeDocumentThemeErrorList(v *[]types.ThemeError, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -60859,44 +68112,33 @@ func awsRestjson1_deserializeDocumentTagColumnOperation(v **types.TagColumnOpera return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.TagColumnOperation + var cv []types.ThemeError if *v == nil { - sv = &types.TagColumnOperation{} + cv = []types.ThemeError{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "ColumnName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ColumnName to be of type string, got %T instead", value) - } - sv.ColumnName = ptr.String(jtv) - } - - case "Tags": - if err := awsRestjson1_deserializeDocumentColumnTagList(&sv.Tags, value); err != nil { - return err - } - - default: - _, _ = key, value - + for _, value := range shape { + var col types.ThemeError + destAddr := &col + if err := awsRestjson1_deserializeDocumentThemeError(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsRestjson1_deserializeDocumentTagList(v *[]types.Tag, value interface{}) error { +func awsRestjson1_deserializeDocumentThemeSummary(v **types.ThemeSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -60904,33 +68146,102 @@ func awsRestjson1_deserializeDocumentTagList(v *[]types.Tag, value interface{}) return nil } - shape, ok := value.([]interface{}) + shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.Tag + var sv *types.ThemeSummary if *v == nil { - cv = []types.Tag{} + sv = &types.ThemeSummary{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col types.Tag - destAddr := &col - if err := awsRestjson1_deserializeDocumentTag(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) + for key, value := range shape { + switch key { + case "Arn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) + } + + case "CreatedTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreatedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "LastUpdatedTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.LastUpdatedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "LatestVersionNumber": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected VersionNumber to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.LatestVersionNumber = ptr.Int64(i64) + } + + case "Name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ThemeName to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + case "ThemeId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + } + sv.ThemeId = ptr.String(jtv) + } + default: + _, _ = key, value + + } } - *v = cv + *v = sv return nil } -func awsRestjson1_deserializeDocumentTargetVisualList(v *[]string, value interface{}) error { +func awsRestjson1_deserializeDocumentThemeSummaryList(v *[]types.ThemeSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -60943,22 +68254,20 @@ func awsRestjson1_deserializeDocumentTargetVisualList(v *[]string, value interfa return fmt.Errorf("unexpected JSON type %v", value) } - var cv []string + var cv []types.ThemeSummary if *v == nil { - cv = []string{} + cv = []types.ThemeSummary{} } else { cv = *v } for _, value := range shape { - var col string - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) - } - col = jtv + var col types.ThemeSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentThemeSummary(&destAddr, value); err != nil { + return err } + col = *destAddr cv = append(cv, col) } @@ -60966,7 +68275,7 @@ func awsRestjson1_deserializeDocumentTargetVisualList(v *[]string, value interfa return nil } -func awsRestjson1_deserializeDocumentTemplate(v **types.Template, value interface{}) error { +func awsRestjson1_deserializeDocumentThemeVersion(v **types.ThemeVersion, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -60979,9 +68288,9 @@ func awsRestjson1_deserializeDocumentTemplate(v **types.Template, value interfac return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.Template + var sv *types.ThemeVersion if *v == nil { - sv = &types.Template{} + sv = &types.ThemeVersion{} } else { sv = *v } @@ -60997,23 +68306,21 @@ func awsRestjson1_deserializeDocumentTemplate(v **types.Template, value interfac sv.Arn = ptr.String(jtv) } - case "CreatedTime": + case "BaseThemeId": if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.CreatedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) } + sv.BaseThemeId = ptr.String(jtv) } - case "LastUpdatedTime": + case "Configuration": + if err := awsRestjson1_deserializeDocumentThemeConfiguration(&sv.Configuration, value); err != nil { + return err + } + + case "CreatedTime": if value != nil { switch jtv := value.(type) { case json.Number: @@ -61021,7 +68328,7 @@ func awsRestjson1_deserializeDocumentTemplate(v **types.Template, value interfac if err != nil { return err } - sv.LastUpdatedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + sv.CreatedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) default: return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) @@ -61029,27 +68336,40 @@ func awsRestjson1_deserializeDocumentTemplate(v **types.Template, value interfac } } - case "Name": + case "Description": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected TemplateName to be of type string, got %T instead", value) + return fmt.Errorf("expected VersionDescription to be of type string, got %T instead", value) } - sv.Name = ptr.String(jtv) + sv.Description = ptr.String(jtv) } - case "TemplateId": + case "Errors": + if err := awsRestjson1_deserializeDocumentThemeErrorList(&sv.Errors, value); err != nil { + return err + } + + case "Status": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + return fmt.Errorf("expected ResourceStatus to be of type string, got %T instead", value) } - sv.TemplateId = ptr.String(jtv) + sv.Status = types.ResourceStatus(jtv) } - case "Version": - if err := awsRestjson1_deserializeDocumentTemplateVersion(&sv.Version, value); err != nil { - return err + case "VersionNumber": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected VersionNumber to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.VersionNumber = ptr.Int64(i64) } default: @@ -61061,7 +68381,7 @@ func awsRestjson1_deserializeDocumentTemplate(v **types.Template, value interfac return nil } -func awsRestjson1_deserializeDocumentTemplateAlias(v **types.TemplateAlias, value interface{}) error { +func awsRestjson1_deserializeDocumentThemeVersionSummary(v **types.ThemeVersionSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -61074,34 +68394,59 @@ func awsRestjson1_deserializeDocumentTemplateAlias(v **types.TemplateAlias, valu return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.TemplateAlias + var sv *types.ThemeVersionSummary if *v == nil { - sv = &types.TemplateAlias{} + sv = &types.ThemeVersionSummary{} } else { sv = *v } for key, value := range shape { switch key { - case "AliasName": + case "Arn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected AliasName to be of type string, got %T instead", value) + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.AliasName = ptr.String(jtv) + sv.Arn = ptr.String(jtv) } - case "Arn": + case "CreatedTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreatedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "Description": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + return fmt.Errorf("expected VersionDescription to be of type string, got %T instead", value) } - sv.Arn = ptr.String(jtv) + sv.Description = ptr.String(jtv) } - case "TemplateVersionNumber": + case "Status": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourceStatus to be of type string, got %T instead", value) + } + sv.Status = types.ResourceStatus(jtv) + } + + case "VersionNumber": if value != nil { jtv, ok := value.(json.Number) if !ok { @@ -61111,7 +68456,7 @@ func awsRestjson1_deserializeDocumentTemplateAlias(v **types.TemplateAlias, valu if err != nil { return err } - sv.TemplateVersionNumber = ptr.Int64(i64) + sv.VersionNumber = ptr.Int64(i64) } default: @@ -61123,7 +68468,7 @@ func awsRestjson1_deserializeDocumentTemplateAlias(v **types.TemplateAlias, valu return nil } -func awsRestjson1_deserializeDocumentTemplateAliasList(v *[]types.TemplateAlias, value interface{}) error { +func awsRestjson1_deserializeDocumentThemeVersionSummaryList(v *[]types.ThemeVersionSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -61136,17 +68481,17 @@ func awsRestjson1_deserializeDocumentTemplateAliasList(v *[]types.TemplateAlias, return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.TemplateAlias + var cv []types.ThemeVersionSummary if *v == nil { - cv = []types.TemplateAlias{} + cv = []types.ThemeVersionSummary{} } else { cv = *v } for _, value := range shape { - var col types.TemplateAlias + var col types.ThemeVersionSummary destAddr := &col - if err := awsRestjson1_deserializeDocumentTemplateAlias(&destAddr, value); err != nil { + if err := awsRestjson1_deserializeDocumentThemeVersionSummary(&destAddr, value); err != nil { return err } col = *destAddr @@ -61157,7 +68502,7 @@ func awsRestjson1_deserializeDocumentTemplateAliasList(v *[]types.TemplateAlias, return nil } -func awsRestjson1_deserializeDocumentTemplateError(v **types.TemplateError, value interface{}) error { +func awsRestjson1_deserializeDocumentThousandSeparatorOptions(v **types.ThousandSeparatorOptions, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -61170,36 +68515,31 @@ func awsRestjson1_deserializeDocumentTemplateError(v **types.TemplateError, valu return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.TemplateError + var sv *types.ThousandSeparatorOptions if *v == nil { - sv = &types.TemplateError{} + sv = &types.ThousandSeparatorOptions{} } else { sv = *v } for key, value := range shape { switch key { - case "Message": + case "Symbol": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + return fmt.Errorf("expected NumericSeparatorSymbol to be of type string, got %T instead", value) } - sv.Message = ptr.String(jtv) + sv.Symbol = types.NumericSeparatorSymbol(jtv) } - case "Type": + case "Visibility": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected TemplateErrorType to be of type string, got %T instead", value) + return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) } - sv.Type = types.TemplateErrorType(jtv) - } - - case "ViolatedEntities": - if err := awsRestjson1_deserializeDocumentEntityList(&sv.ViolatedEntities, value); err != nil { - return err + sv.Visibility = types.Visibility(jtv) } default: @@ -61211,7 +68551,7 @@ func awsRestjson1_deserializeDocumentTemplateError(v **types.TemplateError, valu return nil } -func awsRestjson1_deserializeDocumentTemplateErrorList(v *[]types.TemplateError, value interface{}) error { +func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -61219,33 +68559,48 @@ func awsRestjson1_deserializeDocumentTemplateErrorList(v *[]types.TemplateError, return nil } - shape, ok := value.([]interface{}) + shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.TemplateError + var sv *types.ThrottlingException if *v == nil { - cv = []types.TemplateError{} + sv = &types.ThrottlingException{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col types.TemplateError - destAddr := &col - if err := awsRestjson1_deserializeDocumentTemplateError(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) + for key, value := range shape { + switch key { + case "Message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + case "RequestId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.RequestId = ptr.String(jtv) + } + default: + _, _ = key, value + + } } - *v = cv + *v = sv return nil } -func awsRestjson1_deserializeDocumentTemplateSummary(v **types.TemplateSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentTileLayoutStyle(v **types.TileLayoutStyle, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -61258,85 +68613,23 @@ func awsRestjson1_deserializeDocumentTemplateSummary(v **types.TemplateSummary, return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.TemplateSummary + var sv *types.TileLayoutStyle if *v == nil { - sv = &types.TemplateSummary{} + sv = &types.TileLayoutStyle{} } else { sv = *v } for key, value := range shape { switch key { - case "Arn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.Arn = ptr.String(jtv) - } - - case "CreatedTime": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.CreatedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - - } - } - - case "LastUpdatedTime": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.LastUpdatedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - - } - } - - case "LatestVersionNumber": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected VersionNumber to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.LatestVersionNumber = ptr.Int64(i64) - } - - case "Name": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected TemplateName to be of type string, got %T instead", value) - } - sv.Name = ptr.String(jtv) + case "Gutter": + if err := awsRestjson1_deserializeDocumentGutterStyle(&sv.Gutter, value); err != nil { + return err } - case "TemplateId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) - } - sv.TemplateId = ptr.String(jtv) + case "Margin": + if err := awsRestjson1_deserializeDocumentMarginStyle(&sv.Margin, value); err != nil { + return err } default: @@ -61348,7 +68641,7 @@ func awsRestjson1_deserializeDocumentTemplateSummary(v **types.TemplateSummary, return nil } -func awsRestjson1_deserializeDocumentTemplateSummaryList(v *[]types.TemplateSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentTileStyle(v **types.TileStyle, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -61356,33 +68649,35 @@ func awsRestjson1_deserializeDocumentTemplateSummaryList(v *[]types.TemplateSumm return nil } - shape, ok := value.([]interface{}) + shape, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.TemplateSummary + var sv *types.TileStyle if *v == nil { - cv = []types.TemplateSummary{} + sv = &types.TileStyle{} } else { - cv = *v + sv = *v } - for _, value := range shape { - var col types.TemplateSummary - destAddr := &col - if err := awsRestjson1_deserializeDocumentTemplateSummary(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) + for key, value := range shape { + switch key { + case "Border": + if err := awsRestjson1_deserializeDocumentBorderStyle(&sv.Border, value); err != nil { + return err + } + + default: + _, _ = key, value + } } - *v = cv + *v = sv return nil } -func awsRestjson1_deserializeDocumentTemplateVersion(v **types.TemplateVersion, value interface{}) error { +func awsRestjson1_deserializeDocumentTimeBasedForecastProperties(v **types.TimeBasedForecastProperties, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -61395,16 +68690,16 @@ func awsRestjson1_deserializeDocumentTemplateVersion(v **types.TemplateVersion, return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.TemplateVersion + var sv *types.TimeBasedForecastProperties if *v == nil { - sv = &types.TemplateVersion{} + sv = &types.TimeBasedForecastProperties{} } else { sv = *v } for key, value := range shape { switch key { - case "CreatedTime": + case "LowerBoundary": if value != nil { switch jtv := value.(type) { case json.Number: @@ -61412,76 +68707,116 @@ func awsRestjson1_deserializeDocumentTemplateVersion(v **types.TemplateVersion, if err != nil { return err } - sv.CreatedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + sv.LowerBoundary = ptr.Float64(f64) - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + case string: + var f64 float64 + switch { + case strings.EqualFold(jtv, "NaN"): + f64 = math.NaN() - } - } + case strings.EqualFold(jtv, "Infinity"): + f64 = math.Inf(1) - case "DataSetConfigurations": - if err := awsRestjson1_deserializeDocumentDataSetConfigurationList(&sv.DataSetConfigurations, value); err != nil { - return err - } + case strings.EqualFold(jtv, "-Infinity"): + f64 = math.Inf(-1) - case "Description": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected VersionDescription to be of type string, got %T instead", value) - } - sv.Description = ptr.String(jtv) - } + default: + return fmt.Errorf("unknown JSON number value: %s", jtv) - case "Errors": - if err := awsRestjson1_deserializeDocumentTemplateErrorList(&sv.Errors, value); err != nil { - return err - } + } + sv.LowerBoundary = ptr.Float64(f64) - case "Sheets": - if err := awsRestjson1_deserializeDocumentSheetList(&sv.Sheets, value); err != nil { - return err + default: + return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value) + + } } - case "SourceEntityArn": + case "PeriodsBackward": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + return fmt.Errorf("expected PeriodsBackward to be json.Number, got %T instead", value) } - sv.SourceEntityArn = ptr.String(jtv) + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.PeriodsBackward = ptr.Int32(int32(i64)) } - case "Status": + case "PeriodsForward": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected ResourceStatus to be of type string, got %T instead", value) + return fmt.Errorf("expected PeriodsForward to be json.Number, got %T instead", value) } - sv.Status = types.ResourceStatus(jtv) + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.PeriodsForward = ptr.Int32(int32(i64)) } - case "ThemeArn": + case "PredictionInterval": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + return fmt.Errorf("expected PredictionInterval to be json.Number, got %T instead", value) } - sv.ThemeArn = ptr.String(jtv) + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.PredictionInterval = ptr.Int32(int32(i64)) } - case "VersionNumber": + case "Seasonality": if value != nil { jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected VersionNumber to be json.Number, got %T instead", value) + return fmt.Errorf("expected Seasonality to be json.Number, got %T instead", value) } i64, err := jtv.Int64() if err != nil { return err } - sv.VersionNumber = ptr.Int64(i64) + sv.Seasonality = ptr.Int32(int32(i64)) + } + + case "UpperBoundary": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.UpperBoundary = ptr.Float64(f64) + + case string: + var f64 float64 + switch { + case strings.EqualFold(jtv, "NaN"): + f64 = math.NaN() + + case strings.EqualFold(jtv, "Infinity"): + f64 = math.Inf(1) + + case strings.EqualFold(jtv, "-Infinity"): + f64 = math.Inf(-1) + + default: + return fmt.Errorf("unknown JSON number value: %s", jtv) + + } + sv.UpperBoundary = ptr.Float64(f64) + + default: + return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value) + + } } default: @@ -61493,7 +68828,7 @@ func awsRestjson1_deserializeDocumentTemplateVersion(v **types.TemplateVersion, return nil } -func awsRestjson1_deserializeDocumentTemplateVersionDefinition(v **types.TemplateVersionDefinition, value interface{}) error { +func awsRestjson1_deserializeDocumentTimeEqualityFilter(v **types.TimeEqualityFilter, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -61506,48 +68841,61 @@ func awsRestjson1_deserializeDocumentTemplateVersionDefinition(v **types.Templat return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.TemplateVersionDefinition + var sv *types.TimeEqualityFilter if *v == nil { - sv = &types.TemplateVersionDefinition{} + sv = &types.TimeEqualityFilter{} } else { sv = *v } for key, value := range shape { switch key { - case "AnalysisDefaults": - if err := awsRestjson1_deserializeDocumentAnalysisDefaults(&sv.AnalysisDefaults, value); err != nil { + case "Column": + if err := awsRestjson1_deserializeDocumentColumnIdentifier(&sv.Column, value); err != nil { return err } - case "CalculatedFields": - if err := awsRestjson1_deserializeDocumentCalculatedFields(&sv.CalculatedFields, value); err != nil { - return err + case "FilterId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + } + sv.FilterId = ptr.String(jtv) } - case "ColumnConfigurations": - if err := awsRestjson1_deserializeDocumentColumnConfigurationList(&sv.ColumnConfigurations, value); err != nil { - return err + case "ParameterName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ParameterName to be of type string, got %T instead", value) + } + sv.ParameterName = ptr.String(jtv) } - case "DataSetConfigurations": - if err := awsRestjson1_deserializeDocumentDataSetConfigurationList(&sv.DataSetConfigurations, value); err != nil { - return err + case "TimeGranularity": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TimeGranularity to be of type string, got %T instead", value) + } + sv.TimeGranularity = types.TimeGranularity(jtv) } - case "FilterGroups": - if err := awsRestjson1_deserializeDocumentFilterGroupList(&sv.FilterGroups, value); err != nil { - return err - } + case "Value": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.Value = ptr.Time(smithytime.ParseEpochSeconds(f64)) - case "ParameterDeclarations": - if err := awsRestjson1_deserializeDocumentParameterDeclarationList(&sv.ParameterDeclarations, value); err != nil { - return err - } + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - case "Sheets": - if err := awsRestjson1_deserializeDocumentSheetDefinitionList(&sv.Sheets, value); err != nil { - return err + } } default: @@ -61559,7 +68907,7 @@ func awsRestjson1_deserializeDocumentTemplateVersionDefinition(v **types.Templat return nil } -func awsRestjson1_deserializeDocumentTemplateVersionSummary(v **types.TemplateVersionSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentTimeRangeDrillDownFilter(v **types.TimeRangeDrillDownFilter, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -61572,25 +68920,37 @@ func awsRestjson1_deserializeDocumentTemplateVersionSummary(v **types.TemplateVe return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.TemplateVersionSummary + var sv *types.TimeRangeDrillDownFilter if *v == nil { - sv = &types.TemplateVersionSummary{} + sv = &types.TimeRangeDrillDownFilter{} } else { sv = *v } for key, value := range shape { switch key { - case "Arn": + case "Column": + if err := awsRestjson1_deserializeDocumentColumnIdentifier(&sv.Column, value); err != nil { + return err + } + + case "RangeMaximum": if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.RangeMaximum = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + } - sv.Arn = ptr.String(jtv) } - case "CreatedTime": + case "RangeMinimum": if value != nil { switch jtv := value.(type) { case json.Number: @@ -61598,7 +68958,7 @@ func awsRestjson1_deserializeDocumentTemplateVersionSummary(v **types.TemplateVe if err != nil { return err } - sv.CreatedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + sv.RangeMinimum = ptr.Time(smithytime.ParseEpochSeconds(f64)) default: return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) @@ -61606,35 +68966,13 @@ func awsRestjson1_deserializeDocumentTemplateVersionSummary(v **types.TemplateVe } } - case "Description": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected VersionDescription to be of type string, got %T instead", value) - } - sv.Description = ptr.String(jtv) - } - - case "Status": + case "TimeGranularity": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ResourceStatus to be of type string, got %T instead", value) - } - sv.Status = types.ResourceStatus(jtv) - } - - case "VersionNumber": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected VersionNumber to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err + return fmt.Errorf("expected TimeGranularity to be of type string, got %T instead", value) } - sv.VersionNumber = ptr.Int64(i64) + sv.TimeGranularity = types.TimeGranularity(jtv) } default: @@ -61646,41 +68984,7 @@ func awsRestjson1_deserializeDocumentTemplateVersionSummary(v **types.TemplateVe return nil } -func awsRestjson1_deserializeDocumentTemplateVersionSummaryList(v *[]types.TemplateVersionSummary, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []types.TemplateVersionSummary - if *v == nil { - cv = []types.TemplateVersionSummary{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.TemplateVersionSummary - destAddr := &col - if err := awsRestjson1_deserializeDocumentTemplateVersionSummary(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsRestjson1_deserializeDocumentTeradataParameters(v **types.TeradataParameters, value interface{}) error { +func awsRestjson1_deserializeDocumentTimeRangeFilter(v **types.TimeRangeFilter, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -61693,44 +68997,78 @@ func awsRestjson1_deserializeDocumentTeradataParameters(v **types.TeradataParame return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.TeradataParameters + var sv *types.TimeRangeFilter if *v == nil { - sv = &types.TeradataParameters{} + sv = &types.TimeRangeFilter{} } else { sv = *v } for key, value := range shape { switch key { - case "Database": + case "Column": + if err := awsRestjson1_deserializeDocumentColumnIdentifier(&sv.Column, value); err != nil { + return err + } + + case "ExcludePeriodConfiguration": + if err := awsRestjson1_deserializeDocumentExcludePeriodConfiguration(&sv.ExcludePeriodConfiguration, value); err != nil { + return err + } + + case "FilterId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Database to be of type string, got %T instead", value) + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) } - sv.Database = ptr.String(jtv) + sv.FilterId = ptr.String(jtv) } - case "Host": + case "IncludeMaximum": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(bool) if !ok { - return fmt.Errorf("expected Host to be of type string, got %T instead", value) + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Host = ptr.String(jtv) + sv.IncludeMaximum = ptr.Bool(jtv) } - case "Port": + case "IncludeMinimum": if value != nil { - jtv, ok := value.(json.Number) + jtv, ok := value.(bool) if !ok { - return fmt.Errorf("expected Port to be json.Number, got %T instead", value) + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - i64, err := jtv.Int64() - if err != nil { - return err + sv.IncludeMinimum = ptr.Bool(jtv) + } + + case "NullOption": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected FilterNullOption to be of type string, got %T instead", value) } - sv.Port = int32(i64) + sv.NullOption = types.FilterNullOption(jtv) + } + + case "RangeMaximumValue": + if err := awsRestjson1_deserializeDocumentTimeRangeFilterValue(&sv.RangeMaximumValue, value); err != nil { + return err + } + + case "RangeMinimumValue": + if err := awsRestjson1_deserializeDocumentTimeRangeFilterValue(&sv.RangeMinimumValue, value); err != nil { + return err + } + + case "TimeGranularity": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TimeGranularity to be of type string, got %T instead", value) + } + sv.TimeGranularity = types.TimeGranularity(jtv) } default: @@ -61742,7 +69080,7 @@ func awsRestjson1_deserializeDocumentTeradataParameters(v **types.TeradataParame return nil } -func awsRestjson1_deserializeDocumentTextAreaControlDisplayOptions(v **types.TextAreaControlDisplayOptions, value interface{}) error { +func awsRestjson1_deserializeDocumentTimeRangeFilterValue(v **types.TimeRangeFilterValue, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -61755,25 +69093,45 @@ func awsRestjson1_deserializeDocumentTextAreaControlDisplayOptions(v **types.Tex return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.TextAreaControlDisplayOptions + var sv *types.TimeRangeFilterValue if *v == nil { - sv = &types.TextAreaControlDisplayOptions{} + sv = &types.TimeRangeFilterValue{} } else { sv = *v } for key, value := range shape { switch key { - case "PlaceholderOptions": - if err := awsRestjson1_deserializeDocumentTextControlPlaceholderOptions(&sv.PlaceholderOptions, value); err != nil { - return err + case "Parameter": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ParameterName to be of type string, got %T instead", value) + } + sv.Parameter = ptr.String(jtv) } - case "TitleOptions": - if err := awsRestjson1_deserializeDocumentLabelOptions(&sv.TitleOptions, value); err != nil { + case "RollingDate": + if err := awsRestjson1_deserializeDocumentRollingDateConfiguration(&sv.RollingDate, value); err != nil { return err } + case "StaticValue": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.StaticValue = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + default: _, _ = key, value @@ -61783,7 +69141,7 @@ func awsRestjson1_deserializeDocumentTextAreaControlDisplayOptions(v **types.Tex return nil } -func awsRestjson1_deserializeDocumentTextConditionalFormat(v **types.TextConditionalFormat, value interface{}) error { +func awsRestjson1_deserializeDocumentTooltipItem(v **types.TooltipItem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -61796,27 +69154,22 @@ func awsRestjson1_deserializeDocumentTextConditionalFormat(v **types.TextConditi return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.TextConditionalFormat + var sv *types.TooltipItem if *v == nil { - sv = &types.TextConditionalFormat{} + sv = &types.TooltipItem{} } else { sv = *v } for key, value := range shape { switch key { - case "BackgroundColor": - if err := awsRestjson1_deserializeDocumentConditionalFormattingColor(&sv.BackgroundColor, value); err != nil { - return err - } - - case "Icon": - if err := awsRestjson1_deserializeDocumentConditionalFormattingIcon(&sv.Icon, value); err != nil { + case "ColumnTooltipItem": + if err := awsRestjson1_deserializeDocumentColumnTooltipItem(&sv.ColumnTooltipItem, value); err != nil { return err } - case "TextColor": - if err := awsRestjson1_deserializeDocumentConditionalFormattingColor(&sv.TextColor, value); err != nil { + case "FieldTooltipItem": + if err := awsRestjson1_deserializeDocumentFieldTooltipItem(&sv.FieldTooltipItem, value); err != nil { return err } @@ -61829,7 +69182,7 @@ func awsRestjson1_deserializeDocumentTextConditionalFormat(v **types.TextConditi return nil } -func awsRestjson1_deserializeDocumentTextControlPlaceholderOptions(v **types.TextControlPlaceholderOptions, value interface{}) error { +func awsRestjson1_deserializeDocumentTooltipItemList(v *[]types.TooltipItem, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -61837,39 +69190,33 @@ func awsRestjson1_deserializeDocumentTextControlPlaceholderOptions(v **types.Tex return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.TextControlPlaceholderOptions + var cv []types.TooltipItem if *v == nil { - sv = &types.TextControlPlaceholderOptions{} + cv = []types.TooltipItem{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "Visibility": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) - } - sv.Visibility = types.Visibility(jtv) - } - - default: - _, _ = key, value - + for _, value := range shape { + var col types.TooltipItem + destAddr := &col + if err := awsRestjson1_deserializeDocumentTooltipItem(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsRestjson1_deserializeDocumentTextFieldControlDisplayOptions(v **types.TextFieldControlDisplayOptions, value interface{}) error { +func awsRestjson1_deserializeDocumentTooltipOptions(v **types.TooltipOptions, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -61882,23 +69229,36 @@ func awsRestjson1_deserializeDocumentTextFieldControlDisplayOptions(v **types.Te return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.TextFieldControlDisplayOptions + var sv *types.TooltipOptions if *v == nil { - sv = &types.TextFieldControlDisplayOptions{} + sv = &types.TooltipOptions{} } else { sv = *v } for key, value := range shape { switch key { - case "PlaceholderOptions": - if err := awsRestjson1_deserializeDocumentTextControlPlaceholderOptions(&sv.PlaceholderOptions, value); err != nil { + case "FieldBasedTooltip": + if err := awsRestjson1_deserializeDocumentFieldBasedTooltip(&sv.FieldBasedTooltip, value); err != nil { return err } - case "TitleOptions": - if err := awsRestjson1_deserializeDocumentLabelOptions(&sv.TitleOptions, value); err != nil { - return err + case "SelectedTooltipType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected SelectedTooltipType to be of type string, got %T instead", value) + } + sv.SelectedTooltipType = types.SelectedTooltipType(jtv) + } + + case "TooltipVisibility": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) + } + sv.TooltipVisibility = types.Visibility(jtv) } default: @@ -61910,7 +69270,7 @@ func awsRestjson1_deserializeDocumentTextFieldControlDisplayOptions(v **types.Te return nil } -func awsRestjson1_deserializeDocumentTheme(v **types.Theme, value interface{}) error { +func awsRestjson1_deserializeDocumentTopBottomFilter(v **types.TopBottomFilter, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -61923,86 +69283,63 @@ func awsRestjson1_deserializeDocumentTheme(v **types.Theme, value interface{}) e return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.Theme + var sv *types.TopBottomFilter if *v == nil { - sv = &types.Theme{} + sv = &types.TopBottomFilter{} } else { sv = *v } for key, value := range shape { switch key { - case "Arn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) - } - sv.Arn = ptr.String(jtv) + case "AggregationSortConfigurations": + if err := awsRestjson1_deserializeDocumentAggregationSortConfigurationList(&sv.AggregationSortConfigurations, value); err != nil { + return err } - case "CreatedTime": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.CreatedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - - } + case "Column": + if err := awsRestjson1_deserializeDocumentColumnIdentifier(&sv.Column, value); err != nil { + return err } - case "LastUpdatedTime": + case "FilterId": if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.LastUpdatedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) } + sv.FilterId = ptr.String(jtv) } - case "Name": + case "Limit": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected ThemeName to be of type string, got %T instead", value) + return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) } - sv.Name = ptr.String(jtv) + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.Limit = ptr.Int32(int32(i64)) } - case "ThemeId": + case "ParameterName": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + return fmt.Errorf("expected ParameterName to be of type string, got %T instead", value) } - sv.ThemeId = ptr.String(jtv) + sv.ParameterName = ptr.String(jtv) } - case "Type": + case "TimeGranularity": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ThemeType to be of type string, got %T instead", value) + return fmt.Errorf("expected TimeGranularity to be of type string, got %T instead", value) } - sv.Type = types.ThemeType(jtv) - } - - case "Version": - if err := awsRestjson1_deserializeDocumentThemeVersion(&sv.Version, value); err != nil { - return err + sv.TimeGranularity = types.TimeGranularity(jtv) } default: @@ -62014,7 +69351,7 @@ func awsRestjson1_deserializeDocumentTheme(v **types.Theme, value interface{}) e return nil } -func awsRestjson1_deserializeDocumentThemeAlias(v **types.ThemeAlias, value interface{}) error { +func awsRestjson1_deserializeDocumentTopBottomMoversComputation(v **types.TopBottomMoversComputation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -62027,128 +69364,76 @@ func awsRestjson1_deserializeDocumentThemeAlias(v **types.ThemeAlias, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ThemeAlias + var sv *types.TopBottomMoversComputation if *v == nil { - sv = &types.ThemeAlias{} + sv = &types.TopBottomMoversComputation{} } else { sv = *v } for key, value := range shape { switch key { - case "AliasName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected AliasName to be of type string, got %T instead", value) - } - sv.AliasName = ptr.String(jtv) + case "Category": + if err := awsRestjson1_deserializeDocumentDimensionField(&sv.Category, value); err != nil { + return err } - case "Arn": + case "ComputationId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) } - sv.Arn = ptr.String(jtv) + sv.ComputationId = ptr.String(jtv) } - case "ThemeVersionNumber": + case "MoverSize": if value != nil { jtv, ok := value.(json.Number) if !ok { - return fmt.Errorf("expected VersionNumber to be json.Number, got %T instead", value) + return fmt.Errorf("expected TopBottomMoversComputationMoverSize to be json.Number, got %T instead", value) } i64, err := jtv.Int64() if err != nil { return err } - sv.ThemeVersionNumber = ptr.Int64(i64) + sv.MoverSize = int32(i64) } - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentThemeAliasList(v *[]types.ThemeAlias, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var cv []types.ThemeAlias - if *v == nil { - cv = []types.ThemeAlias{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.ThemeAlias - destAddr := &col - if err := awsRestjson1_deserializeDocumentThemeAlias(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsRestjson1_deserializeDocumentThemeConfiguration(v **types.ThemeConfiguration, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.ThemeConfiguration - if *v == nil { - sv = &types.ThemeConfiguration{} - } else { - sv = *v - } + case "Name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } - for key, value := range shape { - switch key { - case "DataColorPalette": - if err := awsRestjson1_deserializeDocumentDataColorPalette(&sv.DataColorPalette, value); err != nil { - return err + case "SortOrder": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TopBottomSortOrder to be of type string, got %T instead", value) + } + sv.SortOrder = types.TopBottomSortOrder(jtv) } - case "Sheet": - if err := awsRestjson1_deserializeDocumentSheetStyle(&sv.Sheet, value); err != nil { + case "Time": + if err := awsRestjson1_deserializeDocumentDimensionField(&sv.Time, value); err != nil { return err } - case "Typography": - if err := awsRestjson1_deserializeDocumentTypography(&sv.Typography, value); err != nil { - return err + case "Type": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TopBottomComputationType to be of type string, got %T instead", value) + } + sv.Type = types.TopBottomComputationType(jtv) } - case "UIColorPalette": - if err := awsRestjson1_deserializeDocumentUIColorPalette(&sv.UIColorPalette, value); err != nil { + case "Value": + if err := awsRestjson1_deserializeDocumentMeasureField(&sv.Value, value); err != nil { return err } @@ -62161,7 +69446,7 @@ func awsRestjson1_deserializeDocumentThemeConfiguration(v **types.ThemeConfigura return nil } -func awsRestjson1_deserializeDocumentThemeError(v **types.ThemeError, value interface{}) error { +func awsRestjson1_deserializeDocumentTopBottomRankedComputation(v **types.TopBottomRankedComputation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -62174,77 +69459,75 @@ func awsRestjson1_deserializeDocumentThemeError(v **types.ThemeError, value inte return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ThemeError + var sv *types.TopBottomRankedComputation if *v == nil { - sv = &types.ThemeError{} + sv = &types.TopBottomRankedComputation{} } else { sv = *v } for key, value := range shape { switch key { - case "Message": + case "Category": + if err := awsRestjson1_deserializeDocumentDimensionField(&sv.Category, value); err != nil { + return err + } + + case "ComputationId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) } - sv.Message = ptr.String(jtv) + sv.ComputationId = ptr.String(jtv) } - case "Type": + case "Name": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ThemeErrorType to be of type string, got %T instead", value) + return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Type = types.ThemeErrorType(jtv) + sv.Name = ptr.String(jtv) } - default: - _, _ = key, value - - } - } - *v = sv - return nil -} + case "ResultSize": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected TopBottomRankedComputationResultSize to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.ResultSize = int32(i64) + } -func awsRestjson1_deserializeDocumentThemeErrorList(v *[]types.ThemeError, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } + case "Type": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TopBottomComputationType to be of type string, got %T instead", value) + } + sv.Type = types.TopBottomComputationType(jtv) + } - shape, ok := value.([]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } + case "Value": + if err := awsRestjson1_deserializeDocumentMeasureField(&sv.Value, value); err != nil { + return err + } - var cv []types.ThemeError - if *v == nil { - cv = []types.ThemeError{} - } else { - cv = *v - } + default: + _, _ = key, value - for _, value := range shape { - var col types.ThemeError - destAddr := &col - if err := awsRestjson1_deserializeDocumentThemeError(&destAddr, value); err != nil { - return err } - col = *destAddr - cv = append(cv, col) - } - *v = cv + *v = sv return nil } -func awsRestjson1_deserializeDocumentThemeSummary(v **types.ThemeSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentTopicCalculatedField(v **types.TopicCalculatedField, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -62257,85 +69540,129 @@ func awsRestjson1_deserializeDocumentThemeSummary(v **types.ThemeSummary, value return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ThemeSummary + var sv *types.TopicCalculatedField if *v == nil { - sv = &types.ThemeSummary{} + sv = &types.TopicCalculatedField{} } else { sv = *v } for key, value := range shape { switch key { - case "Arn": + case "Aggregation": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + return fmt.Errorf("expected DefaultAggregation to be of type string, got %T instead", value) } - sv.Arn = ptr.String(jtv) + sv.Aggregation = types.DefaultAggregation(jtv) } - case "CreatedTime": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.CreatedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + case "AllowedAggregations": + if err := awsRestjson1_deserializeDocumentAuthorSpecifiedAggregations(&sv.AllowedAggregations, value); err != nil { + return err + } - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + case "CalculatedFieldDescription": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected LimitedString to be of type string, got %T instead", value) + } + sv.CalculatedFieldDescription = ptr.String(jtv) + } + case "CalculatedFieldName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected LimitedString to be of type string, got %T instead", value) } + sv.CalculatedFieldName = ptr.String(jtv) } - case "LastUpdatedTime": + case "CalculatedFieldSynonyms": + if err := awsRestjson1_deserializeDocumentSynonyms(&sv.CalculatedFieldSynonyms, value); err != nil { + return err + } + + case "CellValueSynonyms": + if err := awsRestjson1_deserializeDocumentCellValueSynonyms(&sv.CellValueSynonyms, value); err != nil { + return err + } + + case "ColumnDataRole": if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.LastUpdatedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ColumnDataRole to be of type string, got %T instead", value) + } + sv.ColumnDataRole = types.ColumnDataRole(jtv) + } - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + case "ComparativeOrder": + if err := awsRestjson1_deserializeDocumentComparativeOrder(&sv.ComparativeOrder, value); err != nil { + return err + } + + case "DefaultFormatting": + if err := awsRestjson1_deserializeDocumentDefaultFormatting(&sv.DefaultFormatting, value); err != nil { + return err + } + case "DisableIndexing": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected NullableBoolean to be of type *bool, got %T instead", value) } + sv.DisableIndexing = ptr.Bool(jtv) } - case "LatestVersionNumber": + case "Expression": if value != nil { - jtv, ok := value.(json.Number) + jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected VersionNumber to be json.Number, got %T instead", value) + return fmt.Errorf("expected Expression to be of type string, got %T instead", value) } - i64, err := jtv.Int64() - if err != nil { - return err + sv.Expression = ptr.String(jtv) + } + + case "IsIncludedInTopic": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.LatestVersionNumber = ptr.Int64(i64) + sv.IsIncludedInTopic = jtv } - case "Name": + case "NeverAggregateInFilter": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(bool) if !ok { - return fmt.Errorf("expected ThemeName to be of type string, got %T instead", value) + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Name = ptr.String(jtv) + sv.NeverAggregateInFilter = jtv } - case "ThemeId": + case "NotAllowedAggregations": + if err := awsRestjson1_deserializeDocumentAuthorSpecifiedAggregations(&sv.NotAllowedAggregations, value); err != nil { + return err + } + + case "SemanticType": + if err := awsRestjson1_deserializeDocumentSemanticType(&sv.SemanticType, value); err != nil { + return err + } + + case "TimeGranularity": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + return fmt.Errorf("expected TopicTimeGranularity to be of type string, got %T instead", value) } - sv.ThemeId = ptr.String(jtv) + sv.TimeGranularity = types.TopicTimeGranularity(jtv) } default: @@ -62347,7 +69674,7 @@ func awsRestjson1_deserializeDocumentThemeSummary(v **types.ThemeSummary, value return nil } -func awsRestjson1_deserializeDocumentThemeSummaryList(v *[]types.ThemeSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentTopicCalculatedFields(v *[]types.TopicCalculatedField, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -62360,17 +69687,17 @@ func awsRestjson1_deserializeDocumentThemeSummaryList(v *[]types.ThemeSummary, v return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.ThemeSummary + var cv []types.TopicCalculatedField if *v == nil { - cv = []types.ThemeSummary{} + cv = []types.TopicCalculatedField{} } else { cv = *v } for _, value := range shape { - var col types.ThemeSummary + var col types.TopicCalculatedField destAddr := &col - if err := awsRestjson1_deserializeDocumentThemeSummary(&destAddr, value); err != nil { + if err := awsRestjson1_deserializeDocumentTopicCalculatedField(&destAddr, value); err != nil { return err } col = *destAddr @@ -62381,7 +69708,7 @@ func awsRestjson1_deserializeDocumentThemeSummaryList(v *[]types.ThemeSummary, v return nil } -func awsRestjson1_deserializeDocumentThemeVersion(v **types.ThemeVersion, value interface{}) error { +func awsRestjson1_deserializeDocumentTopicCategoryFilter(v **types.TopicCategoryFilter, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -62394,88 +69721,99 @@ func awsRestjson1_deserializeDocumentThemeVersion(v **types.ThemeVersion, value return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ThemeVersion + var sv *types.TopicCategoryFilter if *v == nil { - sv = &types.ThemeVersion{} + sv = &types.TopicCategoryFilter{} } else { sv = *v } for key, value := range shape { switch key { - case "Arn": + case "CategoryFilterFunction": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + return fmt.Errorf("expected CategoryFilterFunction to be of type string, got %T instead", value) } - sv.Arn = ptr.String(jtv) + sv.CategoryFilterFunction = types.CategoryFilterFunction(jtv) } - case "BaseThemeId": + case "CategoryFilterType": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + return fmt.Errorf("expected CategoryFilterType to be of type string, got %T instead", value) } - sv.BaseThemeId = ptr.String(jtv) + sv.CategoryFilterType = types.CategoryFilterType(jtv) } - case "Configuration": - if err := awsRestjson1_deserializeDocumentThemeConfiguration(&sv.Configuration, value); err != nil { + case "Constant": + if err := awsRestjson1_deserializeDocumentTopicCategoryFilterConstant(&sv.Constant, value); err != nil { return err } - case "CreatedTime": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.CreatedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - - } - } - - case "Description": + case "Inverse": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(bool) if !ok { - return fmt.Errorf("expected VersionDescription to be of type string, got %T instead", value) + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Description = ptr.String(jtv) + sv.Inverse = jtv } - case "Errors": - if err := awsRestjson1_deserializeDocumentThemeErrorList(&sv.Errors, value); err != nil { + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentTopicCategoryFilterConstant(v **types.TopicCategoryFilterConstant, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.TopicCategoryFilterConstant + if *v == nil { + sv = &types.TopicCategoryFilterConstant{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "CollectiveConstant": + if err := awsRestjson1_deserializeDocumentCollectiveConstant(&sv.CollectiveConstant, value); err != nil { return err } - case "Status": + case "ConstantType": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ResourceStatus to be of type string, got %T instead", value) + return fmt.Errorf("expected ConstantType to be of type string, got %T instead", value) } - sv.Status = types.ResourceStatus(jtv) + sv.ConstantType = types.ConstantType(jtv) } - case "VersionNumber": + case "SingularConstant": if value != nil { - jtv, ok := value.(json.Number) + jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected VersionNumber to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err + return fmt.Errorf("expected LimitedString to be of type string, got %T instead", value) } - sv.VersionNumber = ptr.Int64(i64) + sv.SingularConstant = ptr.String(jtv) } default: @@ -62487,7 +69825,7 @@ func awsRestjson1_deserializeDocumentThemeVersion(v **types.ThemeVersion, value return nil } -func awsRestjson1_deserializeDocumentThemeVersionSummary(v **types.ThemeVersionSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentTopicColumn(v **types.TopicColumn, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -62500,69 +69838,129 @@ func awsRestjson1_deserializeDocumentThemeVersionSummary(v **types.ThemeVersionS return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ThemeVersionSummary + var sv *types.TopicColumn if *v == nil { - sv = &types.ThemeVersionSummary{} + sv = &types.TopicColumn{} } else { sv = *v } for key, value := range shape { switch key { - case "Arn": + case "Aggregation": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + return fmt.Errorf("expected DefaultAggregation to be of type string, got %T instead", value) } - sv.Arn = ptr.String(jtv) + sv.Aggregation = types.DefaultAggregation(jtv) } - case "CreatedTime": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.CreatedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + case "AllowedAggregations": + if err := awsRestjson1_deserializeDocumentAuthorSpecifiedAggregations(&sv.AllowedAggregations, value); err != nil { + return err + } - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + case "CellValueSynonyms": + if err := awsRestjson1_deserializeDocumentCellValueSynonyms(&sv.CellValueSynonyms, value); err != nil { + return err + } + case "ColumnDataRole": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ColumnDataRole to be of type string, got %T instead", value) } + sv.ColumnDataRole = types.ColumnDataRole(jtv) } - case "Description": + case "ColumnDescription": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected VersionDescription to be of type string, got %T instead", value) + return fmt.Errorf("expected LimitedString to be of type string, got %T instead", value) } - sv.Description = ptr.String(jtv) + sv.ColumnDescription = ptr.String(jtv) } - case "Status": + case "ColumnFriendlyName": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ResourceStatus to be of type string, got %T instead", value) + return fmt.Errorf("expected LimitedString to be of type string, got %T instead", value) } - sv.Status = types.ResourceStatus(jtv) + sv.ColumnFriendlyName = ptr.String(jtv) } - case "VersionNumber": + case "ColumnName": if value != nil { - jtv, ok := value.(json.Number) + jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected VersionNumber to be json.Number, got %T instead", value) + return fmt.Errorf("expected LimitedString to be of type string, got %T instead", value) } - i64, err := jtv.Int64() - if err != nil { - return err + sv.ColumnName = ptr.String(jtv) + } + + case "ColumnSynonyms": + if err := awsRestjson1_deserializeDocumentSynonyms(&sv.ColumnSynonyms, value); err != nil { + return err + } + + case "ComparativeOrder": + if err := awsRestjson1_deserializeDocumentComparativeOrder(&sv.ComparativeOrder, value); err != nil { + return err + } + + case "DefaultFormatting": + if err := awsRestjson1_deserializeDocumentDefaultFormatting(&sv.DefaultFormatting, value); err != nil { + return err + } + + case "DisableIndexing": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected NullableBoolean to be of type *bool, got %T instead", value) } - sv.VersionNumber = ptr.Int64(i64) + sv.DisableIndexing = ptr.Bool(jtv) + } + + case "IsIncludedInTopic": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + } + sv.IsIncludedInTopic = jtv + } + + case "NeverAggregateInFilter": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + } + sv.NeverAggregateInFilter = jtv + } + + case "NotAllowedAggregations": + if err := awsRestjson1_deserializeDocumentAuthorSpecifiedAggregations(&sv.NotAllowedAggregations, value); err != nil { + return err + } + + case "SemanticType": + if err := awsRestjson1_deserializeDocumentSemanticType(&sv.SemanticType, value); err != nil { + return err + } + + case "TimeGranularity": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TopicTimeGranularity to be of type string, got %T instead", value) + } + sv.TimeGranularity = types.TopicTimeGranularity(jtv) } default: @@ -62574,7 +69972,7 @@ func awsRestjson1_deserializeDocumentThemeVersionSummary(v **types.ThemeVersionS return nil } -func awsRestjson1_deserializeDocumentThemeVersionSummaryList(v *[]types.ThemeVersionSummary, value interface{}) error { +func awsRestjson1_deserializeDocumentTopicColumns(v *[]types.TopicColumn, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -62587,17 +69985,17 @@ func awsRestjson1_deserializeDocumentThemeVersionSummaryList(v *[]types.ThemeVer return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.ThemeVersionSummary + var cv []types.TopicColumn if *v == nil { - cv = []types.ThemeVersionSummary{} + cv = []types.TopicColumn{} } else { cv = *v } for _, value := range shape { - var col types.ThemeVersionSummary + var col types.TopicColumn destAddr := &col - if err := awsRestjson1_deserializeDocumentThemeVersionSummary(&destAddr, value); err != nil { + if err := awsRestjson1_deserializeDocumentTopicColumn(&destAddr, value); err != nil { return err } col = *destAddr @@ -62608,7 +70006,7 @@ func awsRestjson1_deserializeDocumentThemeVersionSummaryList(v *[]types.ThemeVer return nil } -func awsRestjson1_deserializeDocumentThousandSeparatorOptions(v **types.ThousandSeparatorOptions, value interface{}) error { +func awsRestjson1_deserializeDocumentTopicDateRangeFilter(v **types.TopicDateRangeFilter, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -62621,31 +70019,27 @@ func awsRestjson1_deserializeDocumentThousandSeparatorOptions(v **types.Thousand return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ThousandSeparatorOptions + var sv *types.TopicDateRangeFilter if *v == nil { - sv = &types.ThousandSeparatorOptions{} + sv = &types.TopicDateRangeFilter{} } else { sv = *v } for key, value := range shape { switch key { - case "Symbol": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected NumericSeparatorSymbol to be of type string, got %T instead", value) - } - sv.Symbol = types.NumericSeparatorSymbol(jtv) + case "Constant": + if err := awsRestjson1_deserializeDocumentTopicRangeFilterConstant(&sv.Constant, value); err != nil { + return err } - case "Visibility": + case "Inclusive": if value != nil { - jtv, ok := value.(string) + jtv, ok := value.(bool) if !ok { - return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Visibility = types.Visibility(jtv) + sv.Inclusive = jtv } default: @@ -62657,7 +70051,7 @@ func awsRestjson1_deserializeDocumentThousandSeparatorOptions(v **types.Thousand return nil } -func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingException, value interface{}) error { +func awsRestjson1_deserializeDocumentTopicDetails(v **types.TopicDetails, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -62670,31 +70064,36 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.ThrottlingException + var sv *types.TopicDetails if *v == nil { - sv = &types.ThrottlingException{} + sv = &types.TopicDetails{} } else { sv = *v } for key, value := range shape { switch key { - case "Message": + case "DataSets": + if err := awsRestjson1_deserializeDocumentDatasets(&sv.DataSets, value); err != nil { + return err + } + + case "Description": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) + return fmt.Errorf("expected LimitedString to be of type string, got %T instead", value) } - sv.Message = ptr.String(jtv) + sv.Description = ptr.String(jtv) } - case "RequestId": + case "Name": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) + return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.RequestId = ptr.String(jtv) + sv.Name = ptr.String(jtv) } default: @@ -62706,7 +70105,7 @@ func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingExc return nil } -func awsRestjson1_deserializeDocumentTileLayoutStyle(v **types.TileLayoutStyle, value interface{}) error { +func awsRestjson1_deserializeDocumentTopicFilter(v **types.TopicFilter, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -62719,222 +70118,168 @@ func awsRestjson1_deserializeDocumentTileLayoutStyle(v **types.TileLayoutStyle, return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.TileLayoutStyle + var sv *types.TopicFilter if *v == nil { - sv = &types.TileLayoutStyle{} + sv = &types.TopicFilter{} } else { sv = *v } for key, value := range shape { switch key { - case "Gutter": - if err := awsRestjson1_deserializeDocumentGutterStyle(&sv.Gutter, value); err != nil { - return err - } - - case "Margin": - if err := awsRestjson1_deserializeDocumentMarginStyle(&sv.Margin, value); err != nil { + case "CategoryFilter": + if err := awsRestjson1_deserializeDocumentTopicCategoryFilter(&sv.CategoryFilter, value); err != nil { return err } - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentTileStyle(v **types.TileStyle, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.TileStyle - if *v == nil { - sv = &types.TileStyle{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Border": - if err := awsRestjson1_deserializeDocumentBorderStyle(&sv.Border, value); err != nil { + case "DateRangeFilter": + if err := awsRestjson1_deserializeDocumentTopicDateRangeFilter(&sv.DateRangeFilter, value); err != nil { return err } - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsRestjson1_deserializeDocumentTimeBasedForecastProperties(v **types.TimeBasedForecastProperties, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } - - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } - - var sv *types.TimeBasedForecastProperties - if *v == nil { - sv = &types.TimeBasedForecastProperties{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "LowerBoundary": + case "FilterClass": if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.LowerBoundary = ptr.Float64(f64) - - case string: - var f64 float64 - switch { - case strings.EqualFold(jtv, "NaN"): - f64 = math.NaN() - - case strings.EqualFold(jtv, "Infinity"): - f64 = math.Inf(1) - - case strings.EqualFold(jtv, "-Infinity"): - f64 = math.Inf(-1) - - default: - return fmt.Errorf("unknown JSON number value: %s", jtv) - - } - sv.LowerBoundary = ptr.Float64(f64) - - default: - return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value) - + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected FilterClass to be of type string, got %T instead", value) } + sv.FilterClass = types.FilterClass(jtv) } - case "PeriodsBackward": + case "FilterDescription": if value != nil { - jtv, ok := value.(json.Number) + jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected PeriodsBackward to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err + return fmt.Errorf("expected LimitedString to be of type string, got %T instead", value) } - sv.PeriodsBackward = ptr.Int32(int32(i64)) + sv.FilterDescription = ptr.String(jtv) } - case "PeriodsForward": + case "FilterName": if value != nil { - jtv, ok := value.(json.Number) + jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected PeriodsForward to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err + return fmt.Errorf("expected LimitedString to be of type string, got %T instead", value) } - sv.PeriodsForward = ptr.Int32(int32(i64)) + sv.FilterName = ptr.String(jtv) } - case "PredictionInterval": + case "FilterSynonyms": + if err := awsRestjson1_deserializeDocumentSynonyms(&sv.FilterSynonyms, value); err != nil { + return err + } + + case "FilterType": if value != nil { - jtv, ok := value.(json.Number) + jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected PredictionInterval to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err + return fmt.Errorf("expected NamedFilterType to be of type string, got %T instead", value) } - sv.PredictionInterval = ptr.Int32(int32(i64)) + sv.FilterType = types.NamedFilterType(jtv) } - case "Seasonality": + case "NumericEqualityFilter": + if err := awsRestjson1_deserializeDocumentTopicNumericEqualityFilter(&sv.NumericEqualityFilter, value); err != nil { + return err + } + + case "NumericRangeFilter": + if err := awsRestjson1_deserializeDocumentTopicNumericRangeFilter(&sv.NumericRangeFilter, value); err != nil { + return err + } + + case "OperandFieldName": if value != nil { - jtv, ok := value.(json.Number) + jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Seasonality to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err + return fmt.Errorf("expected LimitedString to be of type string, got %T instead", value) } - sv.Seasonality = ptr.Int32(int32(i64)) + sv.OperandFieldName = ptr.String(jtv) } - case "UpperBoundary": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.UpperBoundary = ptr.Float64(f64) + case "RelativeDateFilter": + if err := awsRestjson1_deserializeDocumentTopicRelativeDateFilter(&sv.RelativeDateFilter, value); err != nil { + return err + } - case string: - var f64 float64 - switch { - case strings.EqualFold(jtv, "NaN"): - f64 = math.NaN() + default: + _, _ = key, value - case strings.EqualFold(jtv, "Infinity"): - f64 = math.Inf(1) + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentTopicFilters(v *[]types.TopicFilter, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } - case strings.EqualFold(jtv, "-Infinity"): - f64 = math.Inf(-1) + var cv []types.TopicFilter + if *v == nil { + cv = []types.TopicFilter{} + } else { + cv = *v + } - default: - return fmt.Errorf("unknown JSON number value: %s", jtv) + for _, value := range shape { + var col types.TopicFilter + destAddr := &col + if err := awsRestjson1_deserializeDocumentTopicFilter(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) - } - sv.UpperBoundary = ptr.Float64(f64) + } + *v = cv + return nil +} - default: - return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value) +func awsRestjson1_deserializeDocumentTopicNamedEntities(v *[]types.TopicNamedEntity, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } - } - } + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } - default: - _, _ = key, value + var cv []types.TopicNamedEntity + if *v == nil { + cv = []types.TopicNamedEntity{} + } else { + cv = *v + } + for _, value := range shape { + var col types.TopicNamedEntity + destAddr := &col + if err := awsRestjson1_deserializeDocumentTopicNamedEntity(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsRestjson1_deserializeDocumentTimeEqualityFilter(v **types.TimeEqualityFilter, value interface{}) error { +func awsRestjson1_deserializeDocumentTopicNamedEntity(v **types.TopicNamedEntity, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -62947,61 +70292,46 @@ func awsRestjson1_deserializeDocumentTimeEqualityFilter(v **types.TimeEqualityFi return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.TimeEqualityFilter + var sv *types.TopicNamedEntity if *v == nil { - sv = &types.TimeEqualityFilter{} + sv = &types.TopicNamedEntity{} } else { sv = *v } for key, value := range shape { switch key { - case "Column": - if err := awsRestjson1_deserializeDocumentColumnIdentifier(&sv.Column, value); err != nil { + case "Definition": + if err := awsRestjson1_deserializeDocumentNamedEntityDefinitions(&sv.Definition, value); err != nil { return err } - case "FilterId": + case "EntityDescription": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + return fmt.Errorf("expected LimitedString to be of type string, got %T instead", value) } - sv.FilterId = ptr.String(jtv) + sv.EntityDescription = ptr.String(jtv) } - case "ParameterName": + case "EntityName": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ParameterName to be of type string, got %T instead", value) + return fmt.Errorf("expected LimitedString to be of type string, got %T instead", value) } - sv.ParameterName = ptr.String(jtv) + sv.EntityName = ptr.String(jtv) } - case "TimeGranularity": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected TimeGranularity to be of type string, got %T instead", value) - } - sv.TimeGranularity = types.TimeGranularity(jtv) + case "EntitySynonyms": + if err := awsRestjson1_deserializeDocumentSynonyms(&sv.EntitySynonyms, value); err != nil { + return err } - case "Value": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.Value = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - - } + case "SemanticEntityType": + if err := awsRestjson1_deserializeDocumentSemanticEntityType(&sv.SemanticEntityType, value); err != nil { + return err } default: @@ -63013,7 +70343,7 @@ func awsRestjson1_deserializeDocumentTimeEqualityFilter(v **types.TimeEqualityFi return nil } -func awsRestjson1_deserializeDocumentTimeRangeDrillDownFilter(v **types.TimeRangeDrillDownFilter, value interface{}) error { +func awsRestjson1_deserializeDocumentTopicNumericEqualityFilter(v **types.TopicNumericEqualityFilter, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -63026,59 +70356,27 @@ func awsRestjson1_deserializeDocumentTimeRangeDrillDownFilter(v **types.TimeRang return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.TimeRangeDrillDownFilter + var sv *types.TopicNumericEqualityFilter if *v == nil { - sv = &types.TimeRangeDrillDownFilter{} + sv = &types.TopicNumericEqualityFilter{} } else { sv = *v } for key, value := range shape { switch key { - case "Column": - if err := awsRestjson1_deserializeDocumentColumnIdentifier(&sv.Column, value); err != nil { - return err - } - - case "RangeMaximum": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.RangeMaximum = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - - } - } - - case "RangeMinimum": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.RangeMinimum = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - - } - } - - case "TimeGranularity": + case "Aggregation": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected TimeGranularity to be of type string, got %T instead", value) + return fmt.Errorf("expected NamedFilterAggType to be of type string, got %T instead", value) } - sv.TimeGranularity = types.TimeGranularity(jtv) + sv.Aggregation = types.NamedFilterAggType(jtv) + } + + case "Constant": + if err := awsRestjson1_deserializeDocumentTopicSingularFilterConstant(&sv.Constant, value); err != nil { + return err } default: @@ -63090,7 +70388,7 @@ func awsRestjson1_deserializeDocumentTimeRangeDrillDownFilter(v **types.TimeRang return nil } -func awsRestjson1_deserializeDocumentTimeRangeFilter(v **types.TimeRangeFilter, value interface{}) error { +func awsRestjson1_deserializeDocumentTopicNumericRangeFilter(v **types.TopicNumericRangeFilter, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -63103,78 +70401,81 @@ func awsRestjson1_deserializeDocumentTimeRangeFilter(v **types.TimeRangeFilter, return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.TimeRangeFilter + var sv *types.TopicNumericRangeFilter if *v == nil { - sv = &types.TimeRangeFilter{} + sv = &types.TopicNumericRangeFilter{} } else { sv = *v } for key, value := range shape { switch key { - case "Column": - if err := awsRestjson1_deserializeDocumentColumnIdentifier(&sv.Column, value); err != nil { - return err - } - - case "ExcludePeriodConfiguration": - if err := awsRestjson1_deserializeDocumentExcludePeriodConfiguration(&sv.ExcludePeriodConfiguration, value); err != nil { - return err - } - - case "FilterId": + case "Aggregation": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + return fmt.Errorf("expected NamedFilterAggType to be of type string, got %T instead", value) } - sv.FilterId = ptr.String(jtv) + sv.Aggregation = types.NamedFilterAggType(jtv) } - case "IncludeMaximum": - if value != nil { - jtv, ok := value.(bool) - if !ok { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) - } - sv.IncludeMaximum = ptr.Bool(jtv) + case "Constant": + if err := awsRestjson1_deserializeDocumentTopicRangeFilterConstant(&sv.Constant, value); err != nil { + return err } - case "IncludeMinimum": + case "Inclusive": if value != nil { jtv, ok := value.(bool) if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.IncludeMinimum = ptr.Bool(jtv) + sv.Inclusive = jtv } - case "NullOption": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected FilterNullOption to be of type string, got %T instead", value) - } - sv.NullOption = types.FilterNullOption(jtv) - } + default: + _, _ = key, value - case "RangeMaximumValue": - if err := awsRestjson1_deserializeDocumentTimeRangeFilterValue(&sv.RangeMaximumValue, value); err != nil { - return err - } + } + } + *v = sv + return nil +} - case "RangeMinimumValue": - if err := awsRestjson1_deserializeDocumentTimeRangeFilterValue(&sv.RangeMinimumValue, value); err != nil { - return err - } +func awsRestjson1_deserializeDocumentTopicRangeFilterConstant(v **types.TopicRangeFilterConstant, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } - case "TimeGranularity": + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.TopicRangeFilterConstant + if *v == nil { + sv = &types.TopicRangeFilterConstant{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "ConstantType": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected TimeGranularity to be of type string, got %T instead", value) + return fmt.Errorf("expected ConstantType to be of type string, got %T instead", value) } - sv.TimeGranularity = types.TimeGranularity(jtv) + sv.ConstantType = types.ConstantType(jtv) + } + + case "RangeConstant": + if err := awsRestjson1_deserializeDocumentRangeConstant(&sv.RangeConstant, value); err != nil { + return err } default: @@ -63186,7 +70487,7 @@ func awsRestjson1_deserializeDocumentTimeRangeFilter(v **types.TimeRangeFilter, return nil } -func awsRestjson1_deserializeDocumentTimeRangeFilterValue(v **types.TimeRangeFilterValue, value interface{}) error { +func awsRestjson1_deserializeDocumentTopicRefreshDetails(v **types.TopicRefreshDetails, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -63199,43 +70500,40 @@ func awsRestjson1_deserializeDocumentTimeRangeFilterValue(v **types.TimeRangeFil return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.TimeRangeFilterValue + var sv *types.TopicRefreshDetails if *v == nil { - sv = &types.TimeRangeFilterValue{} + sv = &types.TopicRefreshDetails{} } else { sv = *v } for key, value := range shape { switch key { - case "Parameter": + case "RefreshArn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ParameterName to be of type string, got %T instead", value) + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.Parameter = ptr.String(jtv) + sv.RefreshArn = ptr.String(jtv) } - case "RollingDate": - if err := awsRestjson1_deserializeDocumentRollingDateConfiguration(&sv.RollingDate, value); err != nil { - return err + case "RefreshId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) + } + sv.RefreshId = ptr.String(jtv) } - case "StaticValue": + case "RefreshStatus": if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.StaticValue = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TopicRefreshStatus to be of type string, got %T instead", value) } + sv.RefreshStatus = types.TopicRefreshStatus(jtv) } default: @@ -63247,7 +70545,7 @@ func awsRestjson1_deserializeDocumentTimeRangeFilterValue(v **types.TimeRangeFil return nil } -func awsRestjson1_deserializeDocumentTooltipItem(v **types.TooltipItem, value interface{}) error { +func awsRestjson1_deserializeDocumentTopicRefreshSchedule(v **types.TopicRefreshSchedule, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -63260,23 +70558,74 @@ func awsRestjson1_deserializeDocumentTooltipItem(v **types.TooltipItem, value in return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.TooltipItem + var sv *types.TopicRefreshSchedule if *v == nil { - sv = &types.TooltipItem{} + sv = &types.TopicRefreshSchedule{} } else { sv = *v } for key, value := range shape { switch key { - case "ColumnTooltipItem": - if err := awsRestjson1_deserializeDocumentColumnTooltipItem(&sv.ColumnTooltipItem, value); err != nil { - return err + case "BasedOnSpiceSchedule": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + } + sv.BasedOnSpiceSchedule = jtv } - case "FieldTooltipItem": - if err := awsRestjson1_deserializeDocumentFieldTooltipItem(&sv.FieldTooltipItem, value); err != nil { - return err + case "IsEnabled": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected NullableBoolean to be of type *bool, got %T instead", value) + } + sv.IsEnabled = ptr.Bool(jtv) + } + + case "RepeatAt": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected LimitedString to be of type string, got %T instead", value) + } + sv.RepeatAt = ptr.String(jtv) + } + + case "StartingAt": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.StartingAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "Timezone": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected LimitedString to be of type string, got %T instead", value) + } + sv.Timezone = ptr.String(jtv) + } + + case "TopicScheduleType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TopicScheduleType to be of type string, got %T instead", value) + } + sv.TopicScheduleType = types.TopicScheduleType(jtv) } default: @@ -63288,7 +70637,7 @@ func awsRestjson1_deserializeDocumentTooltipItem(v **types.TooltipItem, value in return nil } -func awsRestjson1_deserializeDocumentTooltipItemList(v *[]types.TooltipItem, value interface{}) error { +func awsRestjson1_deserializeDocumentTopicRefreshScheduleSummaries(v *[]types.TopicRefreshScheduleSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -63301,17 +70650,17 @@ func awsRestjson1_deserializeDocumentTooltipItemList(v *[]types.TooltipItem, val return fmt.Errorf("unexpected JSON type %v", value) } - var cv []types.TooltipItem + var cv []types.TopicRefreshScheduleSummary if *v == nil { - cv = []types.TooltipItem{} + cv = []types.TopicRefreshScheduleSummary{} } else { cv = *v } for _, value := range shape { - var col types.TooltipItem + var col types.TopicRefreshScheduleSummary destAddr := &col - if err := awsRestjson1_deserializeDocumentTooltipItem(&destAddr, value); err != nil { + if err := awsRestjson1_deserializeDocumentTopicRefreshScheduleSummary(&destAddr, value); err != nil { return err } col = *destAddr @@ -63322,7 +70671,7 @@ func awsRestjson1_deserializeDocumentTooltipItemList(v *[]types.TooltipItem, val return nil } -func awsRestjson1_deserializeDocumentTooltipOptions(v **types.TooltipOptions, value interface{}) error { +func awsRestjson1_deserializeDocumentTopicRefreshScheduleSummary(v **types.TopicRefreshScheduleSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -63335,36 +70684,45 @@ func awsRestjson1_deserializeDocumentTooltipOptions(v **types.TooltipOptions, va return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.TooltipOptions + var sv *types.TopicRefreshScheduleSummary if *v == nil { - sv = &types.TooltipOptions{} + sv = &types.TopicRefreshScheduleSummary{} } else { sv = *v } for key, value := range shape { switch key { - case "FieldBasedTooltip": - if err := awsRestjson1_deserializeDocumentFieldBasedTooltip(&sv.FieldBasedTooltip, value); err != nil { - return err + case "DatasetArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.DatasetArn = ptr.String(jtv) } - case "SelectedTooltipType": + case "DatasetId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected SelectedTooltipType to be of type string, got %T instead", value) + return fmt.Errorf("expected LimitedString to be of type string, got %T instead", value) } - sv.SelectedTooltipType = types.SelectedTooltipType(jtv) + sv.DatasetId = ptr.String(jtv) } - case "TooltipVisibility": + case "DatasetName": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected Visibility to be of type string, got %T instead", value) + return fmt.Errorf("expected LimitedString to be of type string, got %T instead", value) } - sv.TooltipVisibility = types.Visibility(jtv) + sv.DatasetName = ptr.String(jtv) + } + + case "RefreshSchedule": + if err := awsRestjson1_deserializeDocumentTopicRefreshSchedule(&sv.RefreshSchedule, value); err != nil { + return err } default: @@ -63376,7 +70734,7 @@ func awsRestjson1_deserializeDocumentTooltipOptions(v **types.TooltipOptions, va return nil } -func awsRestjson1_deserializeDocumentTopBottomFilter(v **types.TopBottomFilter, value interface{}) error { +func awsRestjson1_deserializeDocumentTopicRelativeDateFilter(v **types.TopicRelativeDateFilter, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -63389,63 +70747,36 @@ func awsRestjson1_deserializeDocumentTopBottomFilter(v **types.TopBottomFilter, return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.TopBottomFilter + var sv *types.TopicRelativeDateFilter if *v == nil { - sv = &types.TopBottomFilter{} + sv = &types.TopicRelativeDateFilter{} } else { sv = *v } for key, value := range shape { switch key { - case "AggregationSortConfigurations": - if err := awsRestjson1_deserializeDocumentAggregationSortConfigurationList(&sv.AggregationSortConfigurations, value); err != nil { - return err - } - - case "Column": - if err := awsRestjson1_deserializeDocumentColumnIdentifier(&sv.Column, value); err != nil { + case "Constant": + if err := awsRestjson1_deserializeDocumentTopicSingularFilterConstant(&sv.Constant, value); err != nil { return err } - case "FilterId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) - } - sv.FilterId = ptr.String(jtv) - } - - case "Limit": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.Limit = ptr.Int32(int32(i64)) - } - - case "ParameterName": + case "RelativeDateFilterFunction": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ParameterName to be of type string, got %T instead", value) + return fmt.Errorf("expected TopicRelativeDateFilterFunction to be of type string, got %T instead", value) } - sv.ParameterName = ptr.String(jtv) + sv.RelativeDateFilterFunction = types.TopicRelativeDateFilterFunction(jtv) } case "TimeGranularity": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected TimeGranularity to be of type string, got %T instead", value) + return fmt.Errorf("expected TopicTimeGranularity to be of type string, got %T instead", value) } - sv.TimeGranularity = types.TimeGranularity(jtv) + sv.TimeGranularity = types.TopicTimeGranularity(jtv) } default: @@ -63457,7 +70788,7 @@ func awsRestjson1_deserializeDocumentTopBottomFilter(v **types.TopBottomFilter, return nil } -func awsRestjson1_deserializeDocumentTopBottomMoversComputation(v **types.TopBottomMoversComputation, value interface{}) error { +func awsRestjson1_deserializeDocumentTopicSingularFilterConstant(v **types.TopicSingularFilterConstant, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -63470,89 +70801,77 @@ func awsRestjson1_deserializeDocumentTopBottomMoversComputation(v **types.TopBot return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.TopBottomMoversComputation + var sv *types.TopicSingularFilterConstant if *v == nil { - sv = &types.TopBottomMoversComputation{} + sv = &types.TopicSingularFilterConstant{} } else { sv = *v } for key, value := range shape { switch key { - case "Category": - if err := awsRestjson1_deserializeDocumentDimensionField(&sv.Category, value); err != nil { - return err - } - - case "ComputationId": + case "ConstantType": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) - } - sv.ComputationId = ptr.String(jtv) - } - - case "MoverSize": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected TopBottomMoversComputationMoverSize to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err + return fmt.Errorf("expected ConstantType to be of type string, got %T instead", value) } - sv.MoverSize = int32(i64) + sv.ConstantType = types.ConstantType(jtv) } - case "Name": + case "SingularConstant": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) + return fmt.Errorf("expected LimitedString to be of type string, got %T instead", value) } - sv.Name = ptr.String(jtv) + sv.SingularConstant = ptr.String(jtv) } - case "SortOrder": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected TopBottomSortOrder to be of type string, got %T instead", value) - } - sv.SortOrder = types.TopBottomSortOrder(jtv) - } + default: + _, _ = key, value - case "Time": - if err := awsRestjson1_deserializeDocumentDimensionField(&sv.Time, value); err != nil { - return err - } + } + } + *v = sv + return nil +} - case "Type": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected TopBottomComputationType to be of type string, got %T instead", value) - } - sv.Type = types.TopBottomComputationType(jtv) - } +func awsRestjson1_deserializeDocumentTopicSummaries(v *[]types.TopicSummary, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } - case "Value": - if err := awsRestjson1_deserializeDocumentMeasureField(&sv.Value, value); err != nil { - return err - } + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } - default: - _, _ = key, value + var cv []types.TopicSummary + if *v == nil { + cv = []types.TopicSummary{} + } else { + cv = *v + } + for _, value := range shape { + var col types.TopicSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentTopicSummary(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsRestjson1_deserializeDocumentTopBottomRankedComputation(v **types.TopBottomRankedComputation, value interface{}) error { +func awsRestjson1_deserializeDocumentTopicSummary(v **types.TopicSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -63565,63 +70884,40 @@ func awsRestjson1_deserializeDocumentTopBottomRankedComputation(v **types.TopBot return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.TopBottomRankedComputation + var sv *types.TopicSummary if *v == nil { - sv = &types.TopBottomRankedComputation{} + sv = &types.TopicSummary{} } else { sv = *v } for key, value := range shape { switch key { - case "Category": - if err := awsRestjson1_deserializeDocumentDimensionField(&sv.Category, value); err != nil { - return err - } - - case "ComputationId": + case "Arn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ShortRestrictiveResourceId to be of type string, got %T instead", value) + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) } - sv.ComputationId = ptr.String(jtv) + sv.Arn = ptr.String(jtv) } case "Name": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) + return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } sv.Name = ptr.String(jtv) } - case "ResultSize": - if value != nil { - jtv, ok := value.(json.Number) - if !ok { - return fmt.Errorf("expected TopBottomRankedComputationResultSize to be json.Number, got %T instead", value) - } - i64, err := jtv.Int64() - if err != nil { - return err - } - sv.ResultSize = int32(i64) - } - - case "Type": + case "TopicId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected TopBottomComputationType to be of type string, got %T instead", value) + return fmt.Errorf("expected TopicId to be of type string, got %T instead", value) } - sv.Type = types.TopBottomComputationType(jtv) - } - - case "Value": - if err := awsRestjson1_deserializeDocumentMeasureField(&sv.Value, value); err != nil { - return err + sv.TopicId = ptr.String(jtv) } default: @@ -63809,6 +71105,16 @@ loop: uv = &types.TransformOperationMemberFilterOperation{Value: mv} break loop + case "OverrideDatasetParameterOperation": + var mv types.OverrideDatasetParameterOperation + destAddr := &mv + if err := awsRestjson1_deserializeDocumentOverrideDatasetParameterOperation(&destAddr, value); err != nil { + return err + } + mv = *destAddr + uv = &types.TransformOperationMemberOverrideDatasetParameterOperation{Value: mv} + break loop + case "ProjectOperation": var mv types.ProjectOperation destAddr := &mv @@ -64316,6 +71622,42 @@ func awsRestjson1_deserializeDocumentTwitterParameters(v **types.TwitterParamete return nil } +func awsRestjson1_deserializeDocumentTypeParameters(v *map[string]string, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var mv map[string]string + if *v == nil { + mv = map[string]string{} + } else { + mv = *v + } + + for key, value := range shape { + var parsedVal string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected LimitedString to be of type string, got %T instead", value) + } + parsedVal = jtv + } + mv[key] = parsedVal + + } + *v = mv + return nil +} + func awsRestjson1_deserializeDocumentTypography(v **types.Typography, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -65674,6 +73016,147 @@ func awsRestjson1_deserializeDocumentVisualTitleLabelOptions(v **types.VisualTit return nil } +func awsRestjson1_deserializeDocumentVPCConnection(v **types.VPCConnection, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.VPCConnection + if *v == nil { + sv = &types.VPCConnection{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Arn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) + } + + case "AvailabilityStatus": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected VPCConnectionAvailabilityStatus to be of type string, got %T instead", value) + } + sv.AvailabilityStatus = types.VPCConnectionAvailabilityStatus(jtv) + } + + case "CreatedTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreatedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "DnsResolvers": + if err := awsRestjson1_deserializeDocumentStringList(&sv.DnsResolvers, value); err != nil { + return err + } + + case "LastUpdatedTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.LastUpdatedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "Name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + case "NetworkInterfaces": + if err := awsRestjson1_deserializeDocumentNetworkInterfaceList(&sv.NetworkInterfaces, value); err != nil { + return err + } + + case "RoleArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.RoleArn = ptr.String(jtv) + } + + case "SecurityGroupIds": + if err := awsRestjson1_deserializeDocumentSecurityGroupIdList(&sv.SecurityGroupIds, value); err != nil { + return err + } + + case "Status": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected VPCConnectionResourceStatus to be of type string, got %T instead", value) + } + sv.Status = types.VPCConnectionResourceStatus(jtv) + } + + case "VPCConnectionId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected VPCConnectionResourceIdUnrestricted to be of type string, got %T instead", value) + } + sv.VPCConnectionId = ptr.String(jtv) + } + + case "VPCId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.VPCId = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsRestjson1_deserializeDocumentVpcConnectionProperties(v **types.VpcConnectionProperties, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -65714,6 +73197,181 @@ func awsRestjson1_deserializeDocumentVpcConnectionProperties(v **types.VpcConnec return nil } +func awsRestjson1_deserializeDocumentVPCConnectionSummary(v **types.VPCConnectionSummary, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.VPCConnectionSummary + if *v == nil { + sv = &types.VPCConnectionSummary{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Arn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Arn to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) + } + + case "AvailabilityStatus": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected VPCConnectionAvailabilityStatus to be of type string, got %T instead", value) + } + sv.AvailabilityStatus = types.VPCConnectionAvailabilityStatus(jtv) + } + + case "CreatedTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.CreatedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "DnsResolvers": + if err := awsRestjson1_deserializeDocumentStringList(&sv.DnsResolvers, value); err != nil { + return err + } + + case "LastUpdatedTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.LastUpdatedTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "Name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + case "NetworkInterfaces": + if err := awsRestjson1_deserializeDocumentNetworkInterfaceList(&sv.NetworkInterfaces, value); err != nil { + return err + } + + case "RoleArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.RoleArn = ptr.String(jtv) + } + + case "SecurityGroupIds": + if err := awsRestjson1_deserializeDocumentSecurityGroupIdList(&sv.SecurityGroupIds, value); err != nil { + return err + } + + case "Status": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected VPCConnectionResourceStatus to be of type string, got %T instead", value) + } + sv.Status = types.VPCConnectionResourceStatus(jtv) + } + + case "VPCConnectionId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected VPCConnectionResourceIdUnrestricted to be of type string, got %T instead", value) + } + sv.VPCConnectionId = ptr.String(jtv) + } + + case "VPCId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.VPCId = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentVPCConnectionSummaryList(v *[]types.VPCConnectionSummary, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.VPCConnectionSummary + if *v == nil { + cv = []types.VPCConnectionSummary{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.VPCConnectionSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentVPCConnectionSummary(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + func awsRestjson1_deserializeDocumentWaterfallChartAggregatedFieldWells(v **types.WaterfallChartAggregatedFieldWells, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) diff --git a/service/quicksight/generated.json b/service/quicksight/generated.json index a1f479de782..dcdef29098b 100644 --- a/service/quicksight/generated.json +++ b/service/quicksight/generated.json @@ -27,6 +27,9 @@ "api_op_CreateTemplateAlias.go", "api_op_CreateTheme.go", "api_op_CreateThemeAlias.go", + "api_op_CreateTopic.go", + "api_op_CreateTopicRefreshSchedule.go", + "api_op_CreateVPCConnection.go", "api_op_DeleteAccountCustomization.go", "api_op_DeleteAccountSubscription.go", "api_op_DeleteAnalysis.go", @@ -45,8 +48,11 @@ "api_op_DeleteTemplateAlias.go", "api_op_DeleteTheme.go", "api_op_DeleteThemeAlias.go", + "api_op_DeleteTopic.go", + "api_op_DeleteTopicRefreshSchedule.go", "api_op_DeleteUser.go", "api_op_DeleteUserByPrincipalId.go", + "api_op_DeleteVPCConnection.go", "api_op_DescribeAccountCustomization.go", "api_op_DescribeAccountSettings.go", "api_op_DescribeAccountSubscription.go", @@ -78,7 +84,12 @@ "api_op_DescribeTheme.go", "api_op_DescribeThemeAlias.go", "api_op_DescribeThemePermissions.go", + "api_op_DescribeTopic.go", + "api_op_DescribeTopicPermissions.go", + "api_op_DescribeTopicRefresh.go", + "api_op_DescribeTopicRefreshSchedule.go", "api_op_DescribeUser.go", + "api_op_DescribeVPCConnection.go", "api_op_GenerateEmbedUrlForAnonymousUser.go", "api_op_GenerateEmbedUrlForRegisteredUser.go", "api_op_GetDashboardEmbedUrl.go", @@ -104,8 +115,11 @@ "api_op_ListThemeAliases.go", "api_op_ListThemeVersions.go", "api_op_ListThemes.go", + "api_op_ListTopicRefreshSchedules.go", + "api_op_ListTopics.go", "api_op_ListUserGroups.go", "api_op_ListUsers.go", + "api_op_ListVPCConnections.go", "api_op_PutDataSetRefreshProperties.go", "api_op_RegisterUser.go", "api_op_RestoreAnalysis.go", @@ -141,7 +155,11 @@ "api_op_UpdateTheme.go", "api_op_UpdateThemeAlias.go", "api_op_UpdateThemePermissions.go", + "api_op_UpdateTopic.go", + "api_op_UpdateTopicPermissions.go", + "api_op_UpdateTopicRefreshSchedule.go", "api_op_UpdateUser.go", + "api_op_UpdateVPCConnection.go", "deserializers.go", "doc.go", "endpoints.go", diff --git a/service/quicksight/internal/endpoints/endpoints.go b/service/quicksight/internal/endpoints/endpoints.go index 31a5439ffc1..ea5f73c417a 100644 --- a/service/quicksight/internal/endpoints/endpoints.go +++ b/service/quicksight/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -259,6 +261,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "quicksight-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "quicksight.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/quicksight/serializers.go b/service/quicksight/serializers.go index 0337a8ea2f6..44f2bc38fd2 100644 --- a/service/quicksight/serializers.go +++ b/service/quicksight/serializers.go @@ -703,6 +703,13 @@ func awsRestjson1_serializeOpDocumentCreateDataSetInput(v *CreateDataSetInput, v ok.String(*v.DataSetId) } + if v.DatasetParameters != nil { + ok := object.Key("DatasetParameters") + if err := awsRestjson1_serializeDocumentDatasetParameterList(v.DatasetParameters, ok); err != nil { + return err + } + } + if v.DataSetUsageConfiguration != nil { ok := object.Key("DataSetUsageConfiguration") if err := awsRestjson1_serializeDocumentDataSetUsageConfiguration(v.DataSetUsageConfiguration, ok); err != nil { @@ -2117,14 +2124,14 @@ func awsRestjson1_serializeOpDocumentCreateThemeAliasInput(v *CreateThemeAliasIn return nil } -type awsRestjson1_serializeOpDeleteAccountCustomization struct { +type awsRestjson1_serializeOpCreateTopic struct { } -func (*awsRestjson1_serializeOpDeleteAccountCustomization) ID() string { +func (*awsRestjson1_serializeOpCreateTopic) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpDeleteAccountCustomization) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpCreateTopic) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -2132,22 +2139,33 @@ func (m *awsRestjson1_serializeOpDeleteAccountCustomization) HandleSerialize(ctx return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteAccountCustomizationInput) + input, ok := in.Parameters.(*CreateTopicInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/customizations") + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/topics") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "DELETE" + request.Method = "POST" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsDeleteAccountCustomizationInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsCreateTopicInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentCreateTopicInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -2158,7 +2176,7 @@ func (m *awsRestjson1_serializeOpDeleteAccountCustomization) HandleSerialize(ctx return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsDeleteAccountCustomizationInput(v *DeleteAccountCustomizationInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsCreateTopicInput(v *CreateTopicInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -2172,21 +2190,43 @@ func awsRestjson1_serializeOpHttpBindingsDeleteAccountCustomizationInput(v *Dele } } - if v.Namespace != nil { - encoder.SetQuery("namespace").String(*v.Namespace) + return nil +} + +func awsRestjson1_serializeOpDocumentCreateTopicInput(v *CreateTopicInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Tags != nil { + ok := object.Key("Tags") + if err := awsRestjson1_serializeDocumentTagList(v.Tags, ok); err != nil { + return err + } + } + + if v.Topic != nil { + ok := object.Key("Topic") + if err := awsRestjson1_serializeDocumentTopicDetails(v.Topic, ok); err != nil { + return err + } + } + + if v.TopicId != nil { + ok := object.Key("TopicId") + ok.String(*v.TopicId) } return nil } -type awsRestjson1_serializeOpDeleteAccountSubscription struct { +type awsRestjson1_serializeOpCreateTopicRefreshSchedule struct { } -func (*awsRestjson1_serializeOpDeleteAccountSubscription) ID() string { +func (*awsRestjson1_serializeOpCreateTopicRefreshSchedule) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpDeleteAccountSubscription) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpCreateTopicRefreshSchedule) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -2194,22 +2234,33 @@ func (m *awsRestjson1_serializeOpDeleteAccountSubscription) HandleSerialize(ctx return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteAccountSubscriptionInput) + input, ok := in.Parameters.(*CreateTopicRefreshScheduleInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/account/{AwsAccountId}") + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/topics/{TopicId}/schedules") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "DELETE" + request.Method = "POST" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsDeleteAccountSubscriptionInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsCreateTopicRefreshScheduleInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentCreateTopicRefreshScheduleInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -2220,7 +2271,7 @@ func (m *awsRestjson1_serializeOpDeleteAccountSubscription) HandleSerialize(ctx return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsDeleteAccountSubscriptionInput(v *DeleteAccountSubscriptionInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsCreateTopicRefreshScheduleInput(v *CreateTopicRefreshScheduleInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -2234,17 +2285,50 @@ func awsRestjson1_serializeOpHttpBindingsDeleteAccountSubscriptionInput(v *Delet } } + if v.TopicId == nil || len(*v.TopicId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member TopicId must not be empty")} + } + if v.TopicId != nil { + if err := encoder.SetURI("TopicId").String(*v.TopicId); err != nil { + return err + } + } + return nil } -type awsRestjson1_serializeOpDeleteAnalysis struct { +func awsRestjson1_serializeOpDocumentCreateTopicRefreshScheduleInput(v *CreateTopicRefreshScheduleInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.DatasetArn != nil { + ok := object.Key("DatasetArn") + ok.String(*v.DatasetArn) + } + + if v.DatasetName != nil { + ok := object.Key("DatasetName") + ok.String(*v.DatasetName) + } + + if v.RefreshSchedule != nil { + ok := object.Key("RefreshSchedule") + if err := awsRestjson1_serializeDocumentTopicRefreshSchedule(v.RefreshSchedule, ok); err != nil { + return err + } + } + + return nil } -func (*awsRestjson1_serializeOpDeleteAnalysis) ID() string { +type awsRestjson1_serializeOpCreateVPCConnection struct { +} + +func (*awsRestjson1_serializeOpCreateVPCConnection) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpDeleteAnalysis) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpCreateVPCConnection) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -2252,22 +2336,33 @@ func (m *awsRestjson1_serializeOpDeleteAnalysis) HandleSerialize(ctx context.Con return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteAnalysisInput) + input, ok := in.Parameters.(*CreateVPCConnectionInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/analyses/{AnalysisId}") + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/vpc-connections") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "DELETE" + request.Method = "POST" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsDeleteAnalysisInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsCreateVPCConnectionInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentCreateVPCConnectionInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -2278,48 +2373,81 @@ func (m *awsRestjson1_serializeOpDeleteAnalysis) HandleSerialize(ctx context.Con return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsDeleteAnalysisInput(v *DeleteAnalysisInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsCreateVPCConnectionInput(v *CreateVPCConnectionInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AnalysisId == nil || len(*v.AnalysisId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AnalysisId must not be empty")} + if v.AwsAccountId == nil || len(*v.AwsAccountId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} } - if v.AnalysisId != nil { - if err := encoder.SetURI("AnalysisId").String(*v.AnalysisId); err != nil { + if v.AwsAccountId != nil { + if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } } - if v.AwsAccountId == nil || len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} + return nil +} + +func awsRestjson1_serializeOpDocumentCreateVPCConnectionInput(v *CreateVPCConnectionInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.DnsResolvers != nil { + ok := object.Key("DnsResolvers") + if err := awsRestjson1_serializeDocumentDnsResolverList(v.DnsResolvers, ok); err != nil { + return err + } } - if v.AwsAccountId != nil { - if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { + + if v.Name != nil { + ok := object.Key("Name") + ok.String(*v.Name) + } + + if v.RoleArn != nil { + ok := object.Key("RoleArn") + ok.String(*v.RoleArn) + } + + if v.SecurityGroupIds != nil { + ok := object.Key("SecurityGroupIds") + if err := awsRestjson1_serializeDocumentSecurityGroupIdList(v.SecurityGroupIds, ok); err != nil { return err } } - if v.ForceDeleteWithoutRecovery { - encoder.SetQuery("force-delete-without-recovery").Boolean(v.ForceDeleteWithoutRecovery) + if v.SubnetIds != nil { + ok := object.Key("SubnetIds") + if err := awsRestjson1_serializeDocumentSubnetIdList(v.SubnetIds, ok); err != nil { + return err + } } - if v.RecoveryWindowInDays != nil { - encoder.SetQuery("recovery-window-in-days").Long(*v.RecoveryWindowInDays) + if v.Tags != nil { + ok := object.Key("Tags") + if err := awsRestjson1_serializeDocumentTagList(v.Tags, ok); err != nil { + return err + } + } + + if v.VPCConnectionId != nil { + ok := object.Key("VPCConnectionId") + ok.String(*v.VPCConnectionId) } return nil } -type awsRestjson1_serializeOpDeleteDashboard struct { +type awsRestjson1_serializeOpDeleteAccountCustomization struct { } -func (*awsRestjson1_serializeOpDeleteDashboard) ID() string { +func (*awsRestjson1_serializeOpDeleteAccountCustomization) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpDeleteDashboard) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpDeleteAccountCustomization) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -2327,13 +2455,13 @@ func (m *awsRestjson1_serializeOpDeleteDashboard) HandleSerialize(ctx context.Co return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteDashboardInput) + input, ok := in.Parameters.(*DeleteAccountCustomizationInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/dashboards/{DashboardId}") + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/customizations") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "DELETE" @@ -2342,7 +2470,7 @@ func (m *awsRestjson1_serializeOpDeleteDashboard) HandleSerialize(ctx context.Co return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsDeleteDashboardInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsDeleteAccountCustomizationInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -2353,7 +2481,7 @@ func (m *awsRestjson1_serializeOpDeleteDashboard) HandleSerialize(ctx context.Co return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsDeleteDashboardInput(v *DeleteDashboardInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsDeleteAccountCustomizationInput(v *DeleteAccountCustomizationInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -2367,30 +2495,21 @@ func awsRestjson1_serializeOpHttpBindingsDeleteDashboardInput(v *DeleteDashboard } } - if v.DashboardId == nil || len(*v.DashboardId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DashboardId must not be empty")} - } - if v.DashboardId != nil { - if err := encoder.SetURI("DashboardId").String(*v.DashboardId); err != nil { - return err - } - } - - if v.VersionNumber != nil { - encoder.SetQuery("version-number").Long(*v.VersionNumber) + if v.Namespace != nil { + encoder.SetQuery("namespace").String(*v.Namespace) } return nil } -type awsRestjson1_serializeOpDeleteDataSet struct { +type awsRestjson1_serializeOpDeleteAccountSubscription struct { } -func (*awsRestjson1_serializeOpDeleteDataSet) ID() string { +func (*awsRestjson1_serializeOpDeleteAccountSubscription) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpDeleteDataSet) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpDeleteAccountSubscription) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -2398,13 +2517,13 @@ func (m *awsRestjson1_serializeOpDeleteDataSet) HandleSerialize(ctx context.Cont return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteDataSetInput) + input, ok := in.Parameters.(*DeleteAccountSubscriptionInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/data-sets/{DataSetId}") + opPath, opQuery := httpbinding.SplitURI("/account/{AwsAccountId}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "DELETE" @@ -2413,7 +2532,7 @@ func (m *awsRestjson1_serializeOpDeleteDataSet) HandleSerialize(ctx context.Cont return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsDeleteDataSetInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsDeleteAccountSubscriptionInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -2424,7 +2543,7 @@ func (m *awsRestjson1_serializeOpDeleteDataSet) HandleSerialize(ctx context.Cont return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsDeleteDataSetInput(v *DeleteDataSetInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsDeleteAccountSubscriptionInput(v *DeleteAccountSubscriptionInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -2438,26 +2557,17 @@ func awsRestjson1_serializeOpHttpBindingsDeleteDataSetInput(v *DeleteDataSetInpu } } - if v.DataSetId == nil || len(*v.DataSetId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DataSetId must not be empty")} - } - if v.DataSetId != nil { - if err := encoder.SetURI("DataSetId").String(*v.DataSetId); err != nil { - return err - } - } - return nil } -type awsRestjson1_serializeOpDeleteDataSetRefreshProperties struct { +type awsRestjson1_serializeOpDeleteAnalysis struct { } -func (*awsRestjson1_serializeOpDeleteDataSetRefreshProperties) ID() string { +func (*awsRestjson1_serializeOpDeleteAnalysis) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpDeleteDataSetRefreshProperties) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpDeleteAnalysis) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -2465,13 +2575,13 @@ func (m *awsRestjson1_serializeOpDeleteDataSetRefreshProperties) HandleSerialize return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteDataSetRefreshPropertiesInput) + input, ok := in.Parameters.(*DeleteAnalysisInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/data-sets/{DataSetId}/refresh-properties") + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/analyses/{AnalysisId}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "DELETE" @@ -2480,7 +2590,7 @@ func (m *awsRestjson1_serializeOpDeleteDataSetRefreshProperties) HandleSerialize return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsDeleteDataSetRefreshPropertiesInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsDeleteAnalysisInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -2491,11 +2601,20 @@ func (m *awsRestjson1_serializeOpDeleteDataSetRefreshProperties) HandleSerialize return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsDeleteDataSetRefreshPropertiesInput(v *DeleteDataSetRefreshPropertiesInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsDeleteAnalysisInput(v *DeleteAnalysisInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } + if v.AnalysisId == nil || len(*v.AnalysisId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member AnalysisId must not be empty")} + } + if v.AnalysisId != nil { + if err := encoder.SetURI("AnalysisId").String(*v.AnalysisId); err != nil { + return err + } + } + if v.AwsAccountId == nil || len(*v.AwsAccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} } @@ -2505,26 +2624,25 @@ func awsRestjson1_serializeOpHttpBindingsDeleteDataSetRefreshPropertiesInput(v * } } - if v.DataSetId == nil || len(*v.DataSetId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DataSetId must not be empty")} + if v.ForceDeleteWithoutRecovery { + encoder.SetQuery("force-delete-without-recovery").Boolean(v.ForceDeleteWithoutRecovery) } - if v.DataSetId != nil { - if err := encoder.SetURI("DataSetId").String(*v.DataSetId); err != nil { - return err - } + + if v.RecoveryWindowInDays != nil { + encoder.SetQuery("recovery-window-in-days").Long(*v.RecoveryWindowInDays) } return nil } -type awsRestjson1_serializeOpDeleteDataSource struct { +type awsRestjson1_serializeOpDeleteDashboard struct { } -func (*awsRestjson1_serializeOpDeleteDataSource) ID() string { +func (*awsRestjson1_serializeOpDeleteDashboard) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpDeleteDataSource) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpDeleteDashboard) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -2532,13 +2650,13 @@ func (m *awsRestjson1_serializeOpDeleteDataSource) HandleSerialize(ctx context.C return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteDataSourceInput) + input, ok := in.Parameters.(*DeleteDashboardInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/data-sources/{DataSourceId}") + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/dashboards/{DashboardId}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "DELETE" @@ -2547,7 +2665,7 @@ func (m *awsRestjson1_serializeOpDeleteDataSource) HandleSerialize(ctx context.C return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsDeleteDataSourceInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsDeleteDashboardInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -2558,7 +2676,7 @@ func (m *awsRestjson1_serializeOpDeleteDataSource) HandleSerialize(ctx context.C return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsDeleteDataSourceInput(v *DeleteDataSourceInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsDeleteDashboardInput(v *DeleteDashboardInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -2572,22 +2690,227 @@ func awsRestjson1_serializeOpHttpBindingsDeleteDataSourceInput(v *DeleteDataSour } } - if v.DataSourceId == nil || len(*v.DataSourceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DataSourceId must not be empty")} + if v.DashboardId == nil || len(*v.DashboardId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member DashboardId must not be empty")} } - if v.DataSourceId != nil { - if err := encoder.SetURI("DataSourceId").String(*v.DataSourceId); err != nil { + if v.DashboardId != nil { + if err := encoder.SetURI("DashboardId").String(*v.DashboardId); err != nil { return err } } + if v.VersionNumber != nil { + encoder.SetQuery("version-number").Long(*v.VersionNumber) + } + return nil } -type awsRestjson1_serializeOpDeleteFolder struct { +type awsRestjson1_serializeOpDeleteDataSet struct { } -func (*awsRestjson1_serializeOpDeleteFolder) ID() string { +func (*awsRestjson1_serializeOpDeleteDataSet) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpDeleteDataSet) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*DeleteDataSetInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/data-sets/{DataSetId}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "DELETE" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsDeleteDataSetInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsDeleteDataSetInput(v *DeleteDataSetInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.AwsAccountId == nil || len(*v.AwsAccountId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} + } + if v.AwsAccountId != nil { + if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { + return err + } + } + + if v.DataSetId == nil || len(*v.DataSetId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member DataSetId must not be empty")} + } + if v.DataSetId != nil { + if err := encoder.SetURI("DataSetId").String(*v.DataSetId); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpDeleteDataSetRefreshProperties struct { +} + +func (*awsRestjson1_serializeOpDeleteDataSetRefreshProperties) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpDeleteDataSetRefreshProperties) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*DeleteDataSetRefreshPropertiesInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/data-sets/{DataSetId}/refresh-properties") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "DELETE" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsDeleteDataSetRefreshPropertiesInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsDeleteDataSetRefreshPropertiesInput(v *DeleteDataSetRefreshPropertiesInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.AwsAccountId == nil || len(*v.AwsAccountId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} + } + if v.AwsAccountId != nil { + if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { + return err + } + } + + if v.DataSetId == nil || len(*v.DataSetId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member DataSetId must not be empty")} + } + if v.DataSetId != nil { + if err := encoder.SetURI("DataSetId").String(*v.DataSetId); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpDeleteDataSource struct { +} + +func (*awsRestjson1_serializeOpDeleteDataSource) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpDeleteDataSource) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*DeleteDataSourceInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/data-sources/{DataSourceId}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "DELETE" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsDeleteDataSourceInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsDeleteDataSourceInput(v *DeleteDataSourceInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.AwsAccountId == nil || len(*v.AwsAccountId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} + } + if v.AwsAccountId != nil { + if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { + return err + } + } + + if v.DataSourceId == nil || len(*v.DataSourceId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member DataSourceId must not be empty")} + } + if v.DataSourceId != nil { + if err := encoder.SetURI("DataSourceId").String(*v.DataSourceId); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpDeleteFolder struct { +} + +func (*awsRestjson1_serializeOpDeleteFolder) ID() string { return "OperationSerializer" } @@ -3410,14 +3733,14 @@ func awsRestjson1_serializeOpHttpBindingsDeleteThemeAliasInput(v *DeleteThemeAli return nil } -type awsRestjson1_serializeOpDeleteUser struct { +type awsRestjson1_serializeOpDeleteTopic struct { } -func (*awsRestjson1_serializeOpDeleteUser) ID() string { +func (*awsRestjson1_serializeOpDeleteTopic) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpDeleteUser) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpDeleteTopic) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -3425,13 +3748,13 @@ func (m *awsRestjson1_serializeOpDeleteUser) HandleSerialize(ctx context.Context return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteUserInput) + input, ok := in.Parameters.(*DeleteTopicInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/namespaces/{Namespace}/users/{UserName}") + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/topics/{TopicId}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "DELETE" @@ -3440,7 +3763,7 @@ func (m *awsRestjson1_serializeOpDeleteUser) HandleSerialize(ctx context.Context return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsDeleteUserInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsDeleteTopicInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -3451,7 +3774,7 @@ func (m *awsRestjson1_serializeOpDeleteUser) HandleSerialize(ctx context.Context return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsDeleteUserInput(v *DeleteUserInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsDeleteTopicInput(v *DeleteTopicInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -3465,20 +3788,11 @@ func awsRestjson1_serializeOpHttpBindingsDeleteUserInput(v *DeleteUserInput, enc } } - if v.Namespace == nil || len(*v.Namespace) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Namespace must not be empty")} - } - if v.Namespace != nil { - if err := encoder.SetURI("Namespace").String(*v.Namespace); err != nil { - return err - } - } - - if v.UserName == nil || len(*v.UserName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member UserName must not be empty")} + if v.TopicId == nil || len(*v.TopicId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member TopicId must not be empty")} } - if v.UserName != nil { - if err := encoder.SetURI("UserName").String(*v.UserName); err != nil { + if v.TopicId != nil { + if err := encoder.SetURI("TopicId").String(*v.TopicId); err != nil { return err } } @@ -3486,14 +3800,14 @@ func awsRestjson1_serializeOpHttpBindingsDeleteUserInput(v *DeleteUserInput, enc return nil } -type awsRestjson1_serializeOpDeleteUserByPrincipalId struct { +type awsRestjson1_serializeOpDeleteTopicRefreshSchedule struct { } -func (*awsRestjson1_serializeOpDeleteUserByPrincipalId) ID() string { +func (*awsRestjson1_serializeOpDeleteTopicRefreshSchedule) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpDeleteUserByPrincipalId) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpDeleteTopicRefreshSchedule) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -3501,13 +3815,13 @@ func (m *awsRestjson1_serializeOpDeleteUserByPrincipalId) HandleSerialize(ctx co return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DeleteUserByPrincipalIdInput) + input, ok := in.Parameters.(*DeleteTopicRefreshScheduleInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/namespaces/{Namespace}/user-principals/{PrincipalId}") + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/topics/{TopicId}/schedules/{DatasetId}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "DELETE" @@ -3516,7 +3830,7 @@ func (m *awsRestjson1_serializeOpDeleteUserByPrincipalId) HandleSerialize(ctx co return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsDeleteUserByPrincipalIdInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsDeleteTopicRefreshScheduleInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -3527,7 +3841,7 @@ func (m *awsRestjson1_serializeOpDeleteUserByPrincipalId) HandleSerialize(ctx co return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsDeleteUserByPrincipalIdInput(v *DeleteUserByPrincipalIdInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsDeleteTopicRefreshScheduleInput(v *DeleteTopicRefreshScheduleInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -3541,20 +3855,20 @@ func awsRestjson1_serializeOpHttpBindingsDeleteUserByPrincipalIdInput(v *DeleteU } } - if v.Namespace == nil || len(*v.Namespace) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Namespace must not be empty")} + if v.DatasetId == nil || len(*v.DatasetId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member DatasetId must not be empty")} } - if v.Namespace != nil { - if err := encoder.SetURI("Namespace").String(*v.Namespace); err != nil { + if v.DatasetId != nil { + if err := encoder.SetURI("DatasetId").String(*v.DatasetId); err != nil { return err } } - if v.PrincipalId == nil || len(*v.PrincipalId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member PrincipalId must not be empty")} + if v.TopicId == nil || len(*v.TopicId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member TopicId must not be empty")} } - if v.PrincipalId != nil { - if err := encoder.SetURI("PrincipalId").String(*v.PrincipalId); err != nil { + if v.TopicId != nil { + if err := encoder.SetURI("TopicId").String(*v.TopicId); err != nil { return err } } @@ -3562,14 +3876,14 @@ func awsRestjson1_serializeOpHttpBindingsDeleteUserByPrincipalIdInput(v *DeleteU return nil } -type awsRestjson1_serializeOpDescribeAccountCustomization struct { +type awsRestjson1_serializeOpDeleteUser struct { } -func (*awsRestjson1_serializeOpDescribeAccountCustomization) ID() string { +func (*awsRestjson1_serializeOpDeleteUser) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpDescribeAccountCustomization) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpDeleteUser) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -3577,22 +3891,22 @@ func (m *awsRestjson1_serializeOpDescribeAccountCustomization) HandleSerialize(c return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeAccountCustomizationInput) + input, ok := in.Parameters.(*DeleteUserInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/customizations") + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/namespaces/{Namespace}/users/{UserName}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "GET" + request.Method = "DELETE" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsDescribeAccountCustomizationInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsDeleteUserInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -3603,7 +3917,226 @@ func (m *awsRestjson1_serializeOpDescribeAccountCustomization) HandleSerialize(c return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsDescribeAccountCustomizationInput(v *DescribeAccountCustomizationInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsDeleteUserInput(v *DeleteUserInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.AwsAccountId == nil || len(*v.AwsAccountId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} + } + if v.AwsAccountId != nil { + if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { + return err + } + } + + if v.Namespace == nil || len(*v.Namespace) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member Namespace must not be empty")} + } + if v.Namespace != nil { + if err := encoder.SetURI("Namespace").String(*v.Namespace); err != nil { + return err + } + } + + if v.UserName == nil || len(*v.UserName) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member UserName must not be empty")} + } + if v.UserName != nil { + if err := encoder.SetURI("UserName").String(*v.UserName); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpDeleteUserByPrincipalId struct { +} + +func (*awsRestjson1_serializeOpDeleteUserByPrincipalId) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpDeleteUserByPrincipalId) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*DeleteUserByPrincipalIdInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/namespaces/{Namespace}/user-principals/{PrincipalId}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "DELETE" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsDeleteUserByPrincipalIdInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsDeleteUserByPrincipalIdInput(v *DeleteUserByPrincipalIdInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.AwsAccountId == nil || len(*v.AwsAccountId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} + } + if v.AwsAccountId != nil { + if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { + return err + } + } + + if v.Namespace == nil || len(*v.Namespace) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member Namespace must not be empty")} + } + if v.Namespace != nil { + if err := encoder.SetURI("Namespace").String(*v.Namespace); err != nil { + return err + } + } + + if v.PrincipalId == nil || len(*v.PrincipalId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member PrincipalId must not be empty")} + } + if v.PrincipalId != nil { + if err := encoder.SetURI("PrincipalId").String(*v.PrincipalId); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpDeleteVPCConnection struct { +} + +func (*awsRestjson1_serializeOpDeleteVPCConnection) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpDeleteVPCConnection) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*DeleteVPCConnectionInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/vpc-connections/{VPCConnectionId}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "DELETE" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsDeleteVPCConnectionInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsDeleteVPCConnectionInput(v *DeleteVPCConnectionInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.AwsAccountId == nil || len(*v.AwsAccountId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} + } + if v.AwsAccountId != nil { + if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { + return err + } + } + + if v.VPCConnectionId == nil || len(*v.VPCConnectionId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member VPCConnectionId must not be empty")} + } + if v.VPCConnectionId != nil { + if err := encoder.SetURI("VPCConnectionId").String(*v.VPCConnectionId); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpDescribeAccountCustomization struct { +} + +func (*awsRestjson1_serializeOpDescribeAccountCustomization) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpDescribeAccountCustomization) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*DescribeAccountCustomizationInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/customizations") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "GET" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsDescribeAccountCustomizationInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsDescribeAccountCustomizationInput(v *DescribeAccountCustomizationInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -5723,14 +6256,14 @@ func awsRestjson1_serializeOpHttpBindingsDescribeThemePermissionsInput(v *Descri return nil } -type awsRestjson1_serializeOpDescribeUser struct { +type awsRestjson1_serializeOpDescribeTopic struct { } -func (*awsRestjson1_serializeOpDescribeUser) ID() string { +func (*awsRestjson1_serializeOpDescribeTopic) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpDescribeUser) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpDescribeTopic) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -5738,13 +6271,13 @@ func (m *awsRestjson1_serializeOpDescribeUser) HandleSerialize(ctx context.Conte return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeUserInput) + input, ok := in.Parameters.(*DescribeTopicInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/namespaces/{Namespace}/users/{UserName}") + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/topics/{TopicId}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" @@ -5753,7 +6286,7 @@ func (m *awsRestjson1_serializeOpDescribeUser) HandleSerialize(ctx context.Conte return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsDescribeUserInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsDescribeTopicInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -5764,7 +6297,7 @@ func (m *awsRestjson1_serializeOpDescribeUser) HandleSerialize(ctx context.Conte return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsDescribeUserInput(v *DescribeUserInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsDescribeTopicInput(v *DescribeTopicInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -5778,20 +6311,11 @@ func awsRestjson1_serializeOpHttpBindingsDescribeUserInput(v *DescribeUserInput, } } - if v.Namespace == nil || len(*v.Namespace) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Namespace must not be empty")} - } - if v.Namespace != nil { - if err := encoder.SetURI("Namespace").String(*v.Namespace); err != nil { - return err - } - } - - if v.UserName == nil || len(*v.UserName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member UserName must not be empty")} + if v.TopicId == nil || len(*v.TopicId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member TopicId must not be empty")} } - if v.UserName != nil { - if err := encoder.SetURI("UserName").String(*v.UserName); err != nil { + if v.TopicId != nil { + if err := encoder.SetURI("TopicId").String(*v.TopicId); err != nil { return err } } @@ -5799,14 +6323,14 @@ func awsRestjson1_serializeOpHttpBindingsDescribeUserInput(v *DescribeUserInput, return nil } -type awsRestjson1_serializeOpGenerateEmbedUrlForAnonymousUser struct { +type awsRestjson1_serializeOpDescribeTopicPermissions struct { } -func (*awsRestjson1_serializeOpGenerateEmbedUrlForAnonymousUser) ID() string { +func (*awsRestjson1_serializeOpDescribeTopicPermissions) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpGenerateEmbedUrlForAnonymousUser) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpDescribeTopicPermissions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -5814,33 +6338,22 @@ func (m *awsRestjson1_serializeOpGenerateEmbedUrlForAnonymousUser) HandleSeriali return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*GenerateEmbedUrlForAnonymousUserInput) + input, ok := in.Parameters.(*DescribeTopicPermissionsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/embed-url/anonymous-user") + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/topics/{TopicId}/permissions") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "POST" + request.Method = "GET" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsGenerateEmbedUrlForAnonymousUserInput(input, restEncoder); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - restEncoder.SetHeader("Content-Type").String("application/json") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsRestjson1_serializeOpDocumentGenerateEmbedUrlForAnonymousUserInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsDescribeTopicPermissionsInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -5851,7 +6364,7 @@ func (m *awsRestjson1_serializeOpGenerateEmbedUrlForAnonymousUser) HandleSeriali return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsGenerateEmbedUrlForAnonymousUserInput(v *GenerateEmbedUrlForAnonymousUserInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsDescribeTopicPermissionsInput(v *DescribeTopicPermissionsInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -5865,47 +6378,11 @@ func awsRestjson1_serializeOpHttpBindingsGenerateEmbedUrlForAnonymousUserInput(v } } - return nil -} - -func awsRestjson1_serializeOpDocumentGenerateEmbedUrlForAnonymousUserInput(v *GenerateEmbedUrlForAnonymousUserInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.AllowedDomains != nil { - ok := object.Key("AllowedDomains") - if err := awsRestjson1_serializeDocumentStringList(v.AllowedDomains, ok); err != nil { - return err - } - } - - if v.AuthorizedResourceArns != nil { - ok := object.Key("AuthorizedResourceArns") - if err := awsRestjson1_serializeDocumentArnList(v.AuthorizedResourceArns, ok); err != nil { - return err - } - } - - if v.ExperienceConfiguration != nil { - ok := object.Key("ExperienceConfiguration") - if err := awsRestjson1_serializeDocumentAnonymousUserEmbeddingExperienceConfiguration(v.ExperienceConfiguration, ok); err != nil { - return err - } - } - - if v.Namespace != nil { - ok := object.Key("Namespace") - ok.String(*v.Namespace) - } - - if v.SessionLifetimeInMinutes != nil { - ok := object.Key("SessionLifetimeInMinutes") - ok.Long(*v.SessionLifetimeInMinutes) - } - - if v.SessionTags != nil { - ok := object.Key("SessionTags") - if err := awsRestjson1_serializeDocumentSessionTagList(v.SessionTags, ok); err != nil { + if v.TopicId == nil || len(*v.TopicId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member TopicId must not be empty")} + } + if v.TopicId != nil { + if err := encoder.SetURI("TopicId").String(*v.TopicId); err != nil { return err } } @@ -5913,14 +6390,14 @@ func awsRestjson1_serializeOpDocumentGenerateEmbedUrlForAnonymousUserInput(v *Ge return nil } -type awsRestjson1_serializeOpGenerateEmbedUrlForRegisteredUser struct { +type awsRestjson1_serializeOpDescribeTopicRefresh struct { } -func (*awsRestjson1_serializeOpGenerateEmbedUrlForRegisteredUser) ID() string { +func (*awsRestjson1_serializeOpDescribeTopicRefresh) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpGenerateEmbedUrlForRegisteredUser) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpDescribeTopicRefresh) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -5928,33 +6405,22 @@ func (m *awsRestjson1_serializeOpGenerateEmbedUrlForRegisteredUser) HandleSerial return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*GenerateEmbedUrlForRegisteredUserInput) + input, ok := in.Parameters.(*DescribeTopicRefreshInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/embed-url/registered-user") + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/topics/{TopicId}/refresh/{RefreshId}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "POST" + request.Method = "GET" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsGenerateEmbedUrlForRegisteredUserInput(input, restEncoder); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - restEncoder.SetHeader("Content-Type").String("application/json") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsRestjson1_serializeOpDocumentGenerateEmbedUrlForRegisteredUserInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsDescribeTopicRefreshInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -5965,7 +6431,7 @@ func (m *awsRestjson1_serializeOpGenerateEmbedUrlForRegisteredUser) HandleSerial return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsGenerateEmbedUrlForRegisteredUserInput(v *GenerateEmbedUrlForRegisteredUserInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsDescribeTopicRefreshInput(v *DescribeTopicRefreshInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -5979,48 +6445,35 @@ func awsRestjson1_serializeOpHttpBindingsGenerateEmbedUrlForRegisteredUserInput( } } - return nil -} - -func awsRestjson1_serializeOpDocumentGenerateEmbedUrlForRegisteredUserInput(v *GenerateEmbedUrlForRegisteredUserInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.AllowedDomains != nil { - ok := object.Key("AllowedDomains") - if err := awsRestjson1_serializeDocumentStringList(v.AllowedDomains, ok); err != nil { - return err - } + if v.RefreshId == nil || len(*v.RefreshId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member RefreshId must not be empty")} } - - if v.ExperienceConfiguration != nil { - ok := object.Key("ExperienceConfiguration") - if err := awsRestjson1_serializeDocumentRegisteredUserEmbeddingExperienceConfiguration(v.ExperienceConfiguration, ok); err != nil { + if v.RefreshId != nil { + if err := encoder.SetURI("RefreshId").String(*v.RefreshId); err != nil { return err } } - if v.SessionLifetimeInMinutes != nil { - ok := object.Key("SessionLifetimeInMinutes") - ok.Long(*v.SessionLifetimeInMinutes) + if v.TopicId == nil || len(*v.TopicId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member TopicId must not be empty")} } - - if v.UserArn != nil { - ok := object.Key("UserArn") - ok.String(*v.UserArn) + if v.TopicId != nil { + if err := encoder.SetURI("TopicId").String(*v.TopicId); err != nil { + return err + } } return nil } -type awsRestjson1_serializeOpGetDashboardEmbedUrl struct { +type awsRestjson1_serializeOpDescribeTopicRefreshSchedule struct { } -func (*awsRestjson1_serializeOpGetDashboardEmbedUrl) ID() string { +func (*awsRestjson1_serializeOpDescribeTopicRefreshSchedule) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpGetDashboardEmbedUrl) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpDescribeTopicRefreshSchedule) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -6028,13 +6481,13 @@ func (m *awsRestjson1_serializeOpGetDashboardEmbedUrl) HandleSerialize(ctx conte return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*GetDashboardEmbedUrlInput) + input, ok := in.Parameters.(*DescribeTopicRefreshScheduleInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/dashboards/{DashboardId}/embed-url") + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/topics/{TopicId}/schedules/{DatasetId}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" @@ -6043,7 +6496,7 @@ func (m *awsRestjson1_serializeOpGetDashboardEmbedUrl) HandleSerialize(ctx conte return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsGetDashboardEmbedUrlInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsDescribeTopicRefreshScheduleInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -6054,17 +6507,11 @@ func (m *awsRestjson1_serializeOpGetDashboardEmbedUrl) HandleSerialize(ctx conte return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsGetDashboardEmbedUrlInput(v *GetDashboardEmbedUrlInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsDescribeTopicRefreshScheduleInput(v *DescribeTopicRefreshScheduleInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AdditionalDashboardIds != nil { - for i := range v.AdditionalDashboardIds { - encoder.AddQuery("additional-dashboard-ids").String(v.AdditionalDashboardIds[i]) - } - } - if v.AwsAccountId == nil || len(*v.AwsAccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} } @@ -6074,54 +6521,35 @@ func awsRestjson1_serializeOpHttpBindingsGetDashboardEmbedUrlInput(v *GetDashboa } } - if v.DashboardId == nil || len(*v.DashboardId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DashboardId must not be empty")} + if v.DatasetId == nil || len(*v.DatasetId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member DatasetId must not be empty")} } - if v.DashboardId != nil { - if err := encoder.SetURI("DashboardId").String(*v.DashboardId); err != nil { + if v.DatasetId != nil { + if err := encoder.SetURI("DatasetId").String(*v.DatasetId); err != nil { return err } } - if len(v.IdentityType) > 0 { - encoder.SetQuery("creds-type").String(string(v.IdentityType)) - } - - if v.Namespace != nil { - encoder.SetQuery("namespace").String(*v.Namespace) - } - - if v.ResetDisabled { - encoder.SetQuery("reset-disabled").Boolean(v.ResetDisabled) - } - - if v.SessionLifetimeInMinutes != nil { - encoder.SetQuery("session-lifetime").Long(*v.SessionLifetimeInMinutes) - } - - if v.StatePersistenceEnabled { - encoder.SetQuery("state-persistence-enabled").Boolean(v.StatePersistenceEnabled) - } - - if v.UndoRedoDisabled { - encoder.SetQuery("undo-redo-disabled").Boolean(v.UndoRedoDisabled) + if v.TopicId == nil || len(*v.TopicId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member TopicId must not be empty")} } - - if v.UserArn != nil { - encoder.SetQuery("user-arn").String(*v.UserArn) + if v.TopicId != nil { + if err := encoder.SetURI("TopicId").String(*v.TopicId); err != nil { + return err + } } return nil } -type awsRestjson1_serializeOpGetSessionEmbedUrl struct { +type awsRestjson1_serializeOpDescribeUser struct { } -func (*awsRestjson1_serializeOpGetSessionEmbedUrl) ID() string { +func (*awsRestjson1_serializeOpDescribeUser) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpGetSessionEmbedUrl) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpDescribeUser) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -6129,13 +6557,13 @@ func (m *awsRestjson1_serializeOpGetSessionEmbedUrl) HandleSerialize(ctx context return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*GetSessionEmbedUrlInput) + input, ok := in.Parameters.(*DescribeUserInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/session-embed-url") + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/namespaces/{Namespace}/users/{UserName}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" @@ -6144,7 +6572,7 @@ func (m *awsRestjson1_serializeOpGetSessionEmbedUrl) HandleSerialize(ctx context return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsGetSessionEmbedUrlInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsDescribeUserInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -6155,7 +6583,7 @@ func (m *awsRestjson1_serializeOpGetSessionEmbedUrl) HandleSerialize(ctx context return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsGetSessionEmbedUrlInput(v *GetSessionEmbedUrlInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsDescribeUserInput(v *DescribeUserInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -6169,29 +6597,35 @@ func awsRestjson1_serializeOpHttpBindingsGetSessionEmbedUrlInput(v *GetSessionEm } } - if v.EntryPoint != nil { - encoder.SetQuery("entry-point").String(*v.EntryPoint) + if v.Namespace == nil || len(*v.Namespace) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member Namespace must not be empty")} } - - if v.SessionLifetimeInMinutes != nil { - encoder.SetQuery("session-lifetime").Long(*v.SessionLifetimeInMinutes) + if v.Namespace != nil { + if err := encoder.SetURI("Namespace").String(*v.Namespace); err != nil { + return err + } } - if v.UserArn != nil { - encoder.SetQuery("user-arn").String(*v.UserArn) + if v.UserName == nil || len(*v.UserName) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member UserName must not be empty")} + } + if v.UserName != nil { + if err := encoder.SetURI("UserName").String(*v.UserName); err != nil { + return err + } } return nil } -type awsRestjson1_serializeOpListAnalyses struct { +type awsRestjson1_serializeOpDescribeVPCConnection struct { } -func (*awsRestjson1_serializeOpListAnalyses) ID() string { +func (*awsRestjson1_serializeOpDescribeVPCConnection) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpListAnalyses) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpDescribeVPCConnection) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -6199,13 +6633,13 @@ func (m *awsRestjson1_serializeOpListAnalyses) HandleSerialize(ctx context.Conte return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ListAnalysesInput) + input, ok := in.Parameters.(*DescribeVPCConnectionInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/analyses") + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/vpc-connections/{VPCConnectionId}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" @@ -6214,7 +6648,7 @@ func (m *awsRestjson1_serializeOpListAnalyses) HandleSerialize(ctx context.Conte return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsListAnalysesInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsDescribeVPCConnectionInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -6225,7 +6659,7 @@ func (m *awsRestjson1_serializeOpListAnalyses) HandleSerialize(ctx context.Conte return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsListAnalysesInput(v *ListAnalysesInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsDescribeVPCConnectionInput(v *DescribeVPCConnectionInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -6239,25 +6673,26 @@ func awsRestjson1_serializeOpHttpBindingsListAnalysesInput(v *ListAnalysesInput, } } - if v.MaxResults != nil { - encoder.SetQuery("max-results").Integer(*v.MaxResults) + if v.VPCConnectionId == nil || len(*v.VPCConnectionId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member VPCConnectionId must not be empty")} } - - if v.NextToken != nil { - encoder.SetQuery("next-token").String(*v.NextToken) + if v.VPCConnectionId != nil { + if err := encoder.SetURI("VPCConnectionId").String(*v.VPCConnectionId); err != nil { + return err + } } return nil } -type awsRestjson1_serializeOpListDashboards struct { +type awsRestjson1_serializeOpGenerateEmbedUrlForAnonymousUser struct { } -func (*awsRestjson1_serializeOpListDashboards) ID() string { +func (*awsRestjson1_serializeOpGenerateEmbedUrlForAnonymousUser) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpListDashboards) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpGenerateEmbedUrlForAnonymousUser) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -6265,22 +6700,33 @@ func (m *awsRestjson1_serializeOpListDashboards) HandleSerialize(ctx context.Con return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ListDashboardsInput) + input, ok := in.Parameters.(*GenerateEmbedUrlForAnonymousUserInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/dashboards") + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/embed-url/anonymous-user") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "GET" + request.Method = "POST" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsListDashboardsInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsGenerateEmbedUrlForAnonymousUserInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentGenerateEmbedUrlForAnonymousUserInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -6291,7 +6737,7 @@ func (m *awsRestjson1_serializeOpListDashboards) HandleSerialize(ctx context.Con return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsListDashboardsInput(v *ListDashboardsInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsGenerateEmbedUrlForAnonymousUserInput(v *GenerateEmbedUrlForAnonymousUserInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -6305,25 +6751,62 @@ func awsRestjson1_serializeOpHttpBindingsListDashboardsInput(v *ListDashboardsIn } } - if v.MaxResults != nil { - encoder.SetQuery("max-results").Integer(*v.MaxResults) + return nil +} + +func awsRestjson1_serializeOpDocumentGenerateEmbedUrlForAnonymousUserInput(v *GenerateEmbedUrlForAnonymousUserInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.AllowedDomains != nil { + ok := object.Key("AllowedDomains") + if err := awsRestjson1_serializeDocumentStringList(v.AllowedDomains, ok); err != nil { + return err + } } - if v.NextToken != nil { - encoder.SetQuery("next-token").String(*v.NextToken) + if v.AuthorizedResourceArns != nil { + ok := object.Key("AuthorizedResourceArns") + if err := awsRestjson1_serializeDocumentArnList(v.AuthorizedResourceArns, ok); err != nil { + return err + } + } + + if v.ExperienceConfiguration != nil { + ok := object.Key("ExperienceConfiguration") + if err := awsRestjson1_serializeDocumentAnonymousUserEmbeddingExperienceConfiguration(v.ExperienceConfiguration, ok); err != nil { + return err + } + } + + if v.Namespace != nil { + ok := object.Key("Namespace") + ok.String(*v.Namespace) + } + + if v.SessionLifetimeInMinutes != nil { + ok := object.Key("SessionLifetimeInMinutes") + ok.Long(*v.SessionLifetimeInMinutes) + } + + if v.SessionTags != nil { + ok := object.Key("SessionTags") + if err := awsRestjson1_serializeDocumentSessionTagList(v.SessionTags, ok); err != nil { + return err + } } return nil } -type awsRestjson1_serializeOpListDashboardVersions struct { +type awsRestjson1_serializeOpGenerateEmbedUrlForRegisteredUser struct { } -func (*awsRestjson1_serializeOpListDashboardVersions) ID() string { +func (*awsRestjson1_serializeOpGenerateEmbedUrlForRegisteredUser) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpListDashboardVersions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpGenerateEmbedUrlForRegisteredUser) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -6331,33 +6814,44 @@ func (m *awsRestjson1_serializeOpListDashboardVersions) HandleSerialize(ctx cont return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ListDashboardVersionsInput) + input, ok := in.Parameters.(*GenerateEmbedUrlForRegisteredUserInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/dashboards/{DashboardId}/versions") + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/embed-url/registered-user") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "GET" + request.Method = "POST" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsListDashboardVersionsInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsGenerateEmbedUrlForRegisteredUserInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } - if request.Request, err = restEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentGenerateEmbedUrlForRegisteredUserInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} } in.Request = request return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsListDashboardVersionsInput(v *ListDashboardVersionsInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsGenerateEmbedUrlForRegisteredUserInput(v *GenerateEmbedUrlForRegisteredUserInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -6371,34 +6865,48 @@ func awsRestjson1_serializeOpHttpBindingsListDashboardVersionsInput(v *ListDashb } } - if v.DashboardId == nil || len(*v.DashboardId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DashboardId must not be empty")} + return nil +} + +func awsRestjson1_serializeOpDocumentGenerateEmbedUrlForRegisteredUserInput(v *GenerateEmbedUrlForRegisteredUserInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.AllowedDomains != nil { + ok := object.Key("AllowedDomains") + if err := awsRestjson1_serializeDocumentStringList(v.AllowedDomains, ok); err != nil { + return err + } } - if v.DashboardId != nil { - if err := encoder.SetURI("DashboardId").String(*v.DashboardId); err != nil { + + if v.ExperienceConfiguration != nil { + ok := object.Key("ExperienceConfiguration") + if err := awsRestjson1_serializeDocumentRegisteredUserEmbeddingExperienceConfiguration(v.ExperienceConfiguration, ok); err != nil { return err } } - if v.MaxResults != nil { - encoder.SetQuery("max-results").Integer(*v.MaxResults) + if v.SessionLifetimeInMinutes != nil { + ok := object.Key("SessionLifetimeInMinutes") + ok.Long(*v.SessionLifetimeInMinutes) } - if v.NextToken != nil { - encoder.SetQuery("next-token").String(*v.NextToken) + if v.UserArn != nil { + ok := object.Key("UserArn") + ok.String(*v.UserArn) } return nil } -type awsRestjson1_serializeOpListDataSets struct { +type awsRestjson1_serializeOpGetDashboardEmbedUrl struct { } -func (*awsRestjson1_serializeOpListDataSets) ID() string { +func (*awsRestjson1_serializeOpGetDashboardEmbedUrl) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpListDataSets) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpGetDashboardEmbedUrl) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -6406,13 +6914,13 @@ func (m *awsRestjson1_serializeOpListDataSets) HandleSerialize(ctx context.Conte return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ListDataSetsInput) + input, ok := in.Parameters.(*GetDashboardEmbedUrlInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/data-sets") + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/dashboards/{DashboardId}/embed-url") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" @@ -6421,7 +6929,7 @@ func (m *awsRestjson1_serializeOpListDataSets) HandleSerialize(ctx context.Conte return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsListDataSetsInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsGetDashboardEmbedUrlInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -6432,11 +6940,17 @@ func (m *awsRestjson1_serializeOpListDataSets) HandleSerialize(ctx context.Conte return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsListDataSetsInput(v *ListDataSetsInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsGetDashboardEmbedUrlInput(v *GetDashboardEmbedUrlInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } + if v.AdditionalDashboardIds != nil { + for i := range v.AdditionalDashboardIds { + encoder.AddQuery("additional-dashboard-ids").String(v.AdditionalDashboardIds[i]) + } + } + if v.AwsAccountId == nil || len(*v.AwsAccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} } @@ -6446,25 +6960,54 @@ func awsRestjson1_serializeOpHttpBindingsListDataSetsInput(v *ListDataSetsInput, } } - if v.MaxResults != nil { - encoder.SetQuery("max-results").Integer(*v.MaxResults) + if v.DashboardId == nil || len(*v.DashboardId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member DashboardId must not be empty")} + } + if v.DashboardId != nil { + if err := encoder.SetURI("DashboardId").String(*v.DashboardId); err != nil { + return err + } } - if v.NextToken != nil { - encoder.SetQuery("next-token").String(*v.NextToken) + if len(v.IdentityType) > 0 { + encoder.SetQuery("creds-type").String(string(v.IdentityType)) + } + + if v.Namespace != nil { + encoder.SetQuery("namespace").String(*v.Namespace) + } + + if v.ResetDisabled { + encoder.SetQuery("reset-disabled").Boolean(v.ResetDisabled) + } + + if v.SessionLifetimeInMinutes != nil { + encoder.SetQuery("session-lifetime").Long(*v.SessionLifetimeInMinutes) + } + + if v.StatePersistenceEnabled { + encoder.SetQuery("state-persistence-enabled").Boolean(v.StatePersistenceEnabled) + } + + if v.UndoRedoDisabled { + encoder.SetQuery("undo-redo-disabled").Boolean(v.UndoRedoDisabled) + } + + if v.UserArn != nil { + encoder.SetQuery("user-arn").String(*v.UserArn) } return nil } -type awsRestjson1_serializeOpListDataSources struct { +type awsRestjson1_serializeOpGetSessionEmbedUrl struct { } -func (*awsRestjson1_serializeOpListDataSources) ID() string { +func (*awsRestjson1_serializeOpGetSessionEmbedUrl) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpListDataSources) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpGetSessionEmbedUrl) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -6472,13 +7015,13 @@ func (m *awsRestjson1_serializeOpListDataSources) HandleSerialize(ctx context.Co return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ListDataSourcesInput) + input, ok := in.Parameters.(*GetSessionEmbedUrlInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/data-sources") + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/session-embed-url") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" @@ -6487,7 +7030,7 @@ func (m *awsRestjson1_serializeOpListDataSources) HandleSerialize(ctx context.Co return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsListDataSourcesInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsGetSessionEmbedUrlInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -6498,7 +7041,7 @@ func (m *awsRestjson1_serializeOpListDataSources) HandleSerialize(ctx context.Co return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsListDataSourcesInput(v *ListDataSourcesInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsGetSessionEmbedUrlInput(v *GetSessionEmbedUrlInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -6512,25 +7055,29 @@ func awsRestjson1_serializeOpHttpBindingsListDataSourcesInput(v *ListDataSources } } - if v.MaxResults != nil { - encoder.SetQuery("max-results").Integer(*v.MaxResults) + if v.EntryPoint != nil { + encoder.SetQuery("entry-point").String(*v.EntryPoint) } - if v.NextToken != nil { - encoder.SetQuery("next-token").String(*v.NextToken) + if v.SessionLifetimeInMinutes != nil { + encoder.SetQuery("session-lifetime").Long(*v.SessionLifetimeInMinutes) + } + + if v.UserArn != nil { + encoder.SetQuery("user-arn").String(*v.UserArn) } return nil } -type awsRestjson1_serializeOpListFolderMembers struct { +type awsRestjson1_serializeOpListAnalyses struct { } -func (*awsRestjson1_serializeOpListFolderMembers) ID() string { +func (*awsRestjson1_serializeOpListAnalyses) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpListFolderMembers) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpListAnalyses) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -6538,13 +7085,13 @@ func (m *awsRestjson1_serializeOpListFolderMembers) HandleSerialize(ctx context. return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ListFolderMembersInput) + input, ok := in.Parameters.(*ListAnalysesInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/folders/{FolderId}/members") + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/analyses") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" @@ -6553,7 +7100,7 @@ func (m *awsRestjson1_serializeOpListFolderMembers) HandleSerialize(ctx context. return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsListFolderMembersInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsListAnalysesInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -6564,7 +7111,7 @@ func (m *awsRestjson1_serializeOpListFolderMembers) HandleSerialize(ctx context. return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsListFolderMembersInput(v *ListFolderMembersInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsListAnalysesInput(v *ListAnalysesInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -6578,15 +7125,6 @@ func awsRestjson1_serializeOpHttpBindingsListFolderMembersInput(v *ListFolderMem } } - if v.FolderId == nil || len(*v.FolderId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member FolderId must not be empty")} - } - if v.FolderId != nil { - if err := encoder.SetURI("FolderId").String(*v.FolderId); err != nil { - return err - } - } - if v.MaxResults != nil { encoder.SetQuery("max-results").Integer(*v.MaxResults) } @@ -6598,14 +7136,14 @@ func awsRestjson1_serializeOpHttpBindingsListFolderMembersInput(v *ListFolderMem return nil } -type awsRestjson1_serializeOpListFolders struct { +type awsRestjson1_serializeOpListDashboards struct { } -func (*awsRestjson1_serializeOpListFolders) ID() string { +func (*awsRestjson1_serializeOpListDashboards) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpListFolders) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpListDashboards) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -6613,13 +7151,13 @@ func (m *awsRestjson1_serializeOpListFolders) HandleSerialize(ctx context.Contex return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ListFoldersInput) + input, ok := in.Parameters.(*ListDashboardsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/folders") + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/dashboards") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" @@ -6628,7 +7166,7 @@ func (m *awsRestjson1_serializeOpListFolders) HandleSerialize(ctx context.Contex return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsListFoldersInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsListDashboardsInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -6639,7 +7177,7 @@ func (m *awsRestjson1_serializeOpListFolders) HandleSerialize(ctx context.Contex return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsListFoldersInput(v *ListFoldersInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsListDashboardsInput(v *ListDashboardsInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -6664,14 +7202,14 @@ func awsRestjson1_serializeOpHttpBindingsListFoldersInput(v *ListFoldersInput, e return nil } -type awsRestjson1_serializeOpListGroupMemberships struct { +type awsRestjson1_serializeOpListDashboardVersions struct { } -func (*awsRestjson1_serializeOpListGroupMemberships) ID() string { +func (*awsRestjson1_serializeOpListDashboardVersions) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpListGroupMemberships) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpListDashboardVersions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -6679,13 +7217,13 @@ func (m *awsRestjson1_serializeOpListGroupMemberships) HandleSerialize(ctx conte return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ListGroupMembershipsInput) + input, ok := in.Parameters.(*ListDashboardVersionsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/namespaces/{Namespace}/groups/{GroupName}/members") + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/dashboards/{DashboardId}/versions") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" @@ -6694,7 +7232,7 @@ func (m *awsRestjson1_serializeOpListGroupMemberships) HandleSerialize(ctx conte return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsListGroupMembershipsInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsListDashboardVersionsInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -6705,7 +7243,7 @@ func (m *awsRestjson1_serializeOpListGroupMemberships) HandleSerialize(ctx conte return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsListGroupMembershipsInput(v *ListGroupMembershipsInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsListDashboardVersionsInput(v *ListDashboardVersionsInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -6719,11 +7257,11 @@ func awsRestjson1_serializeOpHttpBindingsListGroupMembershipsInput(v *ListGroupM } } - if v.GroupName == nil || len(*v.GroupName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member GroupName must not be empty")} + if v.DashboardId == nil || len(*v.DashboardId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member DashboardId must not be empty")} } - if v.GroupName != nil { - if err := encoder.SetURI("GroupName").String(*v.GroupName); err != nil { + if v.DashboardId != nil { + if err := encoder.SetURI("DashboardId").String(*v.DashboardId); err != nil { return err } } @@ -6732,15 +7270,6 @@ func awsRestjson1_serializeOpHttpBindingsListGroupMembershipsInput(v *ListGroupM encoder.SetQuery("max-results").Integer(*v.MaxResults) } - if v.Namespace == nil || len(*v.Namespace) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Namespace must not be empty")} - } - if v.Namespace != nil { - if err := encoder.SetURI("Namespace").String(*v.Namespace); err != nil { - return err - } - } - if v.NextToken != nil { encoder.SetQuery("next-token").String(*v.NextToken) } @@ -6748,14 +7277,14 @@ func awsRestjson1_serializeOpHttpBindingsListGroupMembershipsInput(v *ListGroupM return nil } -type awsRestjson1_serializeOpListGroups struct { +type awsRestjson1_serializeOpListDataSets struct { } -func (*awsRestjson1_serializeOpListGroups) ID() string { +func (*awsRestjson1_serializeOpListDataSets) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpListGroups) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpListDataSets) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -6763,13 +7292,13 @@ func (m *awsRestjson1_serializeOpListGroups) HandleSerialize(ctx context.Context return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ListGroupsInput) + input, ok := in.Parameters.(*ListDataSetsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/namespaces/{Namespace}/groups") + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/data-sets") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" @@ -6778,7 +7307,7 @@ func (m *awsRestjson1_serializeOpListGroups) HandleSerialize(ctx context.Context return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsListGroupsInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsListDataSetsInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -6789,7 +7318,7 @@ func (m *awsRestjson1_serializeOpListGroups) HandleSerialize(ctx context.Context return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsListGroupsInput(v *ListGroupsInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsListDataSetsInput(v *ListDataSetsInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -6807,15 +7336,6 @@ func awsRestjson1_serializeOpHttpBindingsListGroupsInput(v *ListGroupsInput, enc encoder.SetQuery("max-results").Integer(*v.MaxResults) } - if v.Namespace == nil || len(*v.Namespace) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Namespace must not be empty")} - } - if v.Namespace != nil { - if err := encoder.SetURI("Namespace").String(*v.Namespace); err != nil { - return err - } - } - if v.NextToken != nil { encoder.SetQuery("next-token").String(*v.NextToken) } @@ -6823,14 +7343,14 @@ func awsRestjson1_serializeOpHttpBindingsListGroupsInput(v *ListGroupsInput, enc return nil } -type awsRestjson1_serializeOpListIAMPolicyAssignments struct { +type awsRestjson1_serializeOpListDataSources struct { } -func (*awsRestjson1_serializeOpListIAMPolicyAssignments) ID() string { +func (*awsRestjson1_serializeOpListDataSources) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpListIAMPolicyAssignments) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpListDataSources) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -6838,13 +7358,13 @@ func (m *awsRestjson1_serializeOpListIAMPolicyAssignments) HandleSerialize(ctx c return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ListIAMPolicyAssignmentsInput) + input, ok := in.Parameters.(*ListDataSourcesInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/namespaces/{Namespace}/iam-policy-assignments") + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/data-sources") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" @@ -6853,18 +7373,7 @@ func (m *awsRestjson1_serializeOpListIAMPolicyAssignments) HandleSerialize(ctx c return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsListIAMPolicyAssignmentsInput(input, restEncoder); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - restEncoder.SetHeader("Content-Type").String("application/json") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsRestjson1_serializeOpDocumentListIAMPolicyAssignmentsInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsListDataSourcesInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -6875,7 +7384,7 @@ func (m *awsRestjson1_serializeOpListIAMPolicyAssignments) HandleSerialize(ctx c return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsListIAMPolicyAssignmentsInput(v *ListIAMPolicyAssignmentsInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsListDataSourcesInput(v *ListDataSourcesInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -6893,15 +7402,6 @@ func awsRestjson1_serializeOpHttpBindingsListIAMPolicyAssignmentsInput(v *ListIA encoder.SetQuery("max-results").Integer(*v.MaxResults) } - if v.Namespace == nil || len(*v.Namespace) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Namespace must not be empty")} - } - if v.Namespace != nil { - if err := encoder.SetURI("Namespace").String(*v.Namespace); err != nil { - return err - } - } - if v.NextToken != nil { encoder.SetQuery("next-token").String(*v.NextToken) } @@ -6909,26 +7409,14 @@ func awsRestjson1_serializeOpHttpBindingsListIAMPolicyAssignmentsInput(v *ListIA return nil } -func awsRestjson1_serializeOpDocumentListIAMPolicyAssignmentsInput(v *ListIAMPolicyAssignmentsInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() +type awsRestjson1_serializeOpListFolderMembers struct { +} - if len(v.AssignmentStatus) > 0 { - ok := object.Key("AssignmentStatus") - ok.String(string(v.AssignmentStatus)) - } - - return nil -} - -type awsRestjson1_serializeOpListIAMPolicyAssignmentsForUser struct { -} - -func (*awsRestjson1_serializeOpListIAMPolicyAssignmentsForUser) ID() string { +func (*awsRestjson1_serializeOpListFolderMembers) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpListIAMPolicyAssignmentsForUser) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpListFolderMembers) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -6936,13 +7424,13 @@ func (m *awsRestjson1_serializeOpListIAMPolicyAssignmentsForUser) HandleSerializ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ListIAMPolicyAssignmentsForUserInput) + input, ok := in.Parameters.(*ListFolderMembersInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/namespaces/{Namespace}/users/{UserName}/iam-policy-assignments") + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/folders/{FolderId}/members") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" @@ -6951,7 +7439,7 @@ func (m *awsRestjson1_serializeOpListIAMPolicyAssignmentsForUser) HandleSerializ return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsListIAMPolicyAssignmentsForUserInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsListFolderMembersInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -6962,7 +7450,7 @@ func (m *awsRestjson1_serializeOpListIAMPolicyAssignmentsForUser) HandleSerializ return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsListIAMPolicyAssignmentsForUserInput(v *ListIAMPolicyAssignmentsForUserInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsListFolderMembersInput(v *ListFolderMembersInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -6976,43 +7464,34 @@ func awsRestjson1_serializeOpHttpBindingsListIAMPolicyAssignmentsForUserInput(v } } - if v.MaxResults != nil { - encoder.SetQuery("max-results").Integer(*v.MaxResults) - } - - if v.Namespace == nil || len(*v.Namespace) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Namespace must not be empty")} + if v.FolderId == nil || len(*v.FolderId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member FolderId must not be empty")} } - if v.Namespace != nil { - if err := encoder.SetURI("Namespace").String(*v.Namespace); err != nil { + if v.FolderId != nil { + if err := encoder.SetURI("FolderId").String(*v.FolderId); err != nil { return err } } - if v.NextToken != nil { - encoder.SetQuery("next-token").String(*v.NextToken) + if v.MaxResults != nil { + encoder.SetQuery("max-results").Integer(*v.MaxResults) } - if v.UserName == nil || len(*v.UserName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member UserName must not be empty")} - } - if v.UserName != nil { - if err := encoder.SetURI("UserName").String(*v.UserName); err != nil { - return err - } + if v.NextToken != nil { + encoder.SetQuery("next-token").String(*v.NextToken) } return nil } -type awsRestjson1_serializeOpListIngestions struct { +type awsRestjson1_serializeOpListFolders struct { } -func (*awsRestjson1_serializeOpListIngestions) ID() string { +func (*awsRestjson1_serializeOpListFolders) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpListIngestions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpListFolders) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -7020,13 +7499,13 @@ func (m *awsRestjson1_serializeOpListIngestions) HandleSerialize(ctx context.Con return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ListIngestionsInput) + input, ok := in.Parameters.(*ListFoldersInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/data-sets/{DataSetId}/ingestions") + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/folders") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" @@ -7035,7 +7514,7 @@ func (m *awsRestjson1_serializeOpListIngestions) HandleSerialize(ctx context.Con return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsListIngestionsInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsListFoldersInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -7046,7 +7525,7 @@ func (m *awsRestjson1_serializeOpListIngestions) HandleSerialize(ctx context.Con return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsListIngestionsInput(v *ListIngestionsInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsListFoldersInput(v *ListFoldersInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -7060,15 +7539,6 @@ func awsRestjson1_serializeOpHttpBindingsListIngestionsInput(v *ListIngestionsIn } } - if v.DataSetId == nil || len(*v.DataSetId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DataSetId must not be empty")} - } - if v.DataSetId != nil { - if err := encoder.SetURI("DataSetId").String(*v.DataSetId); err != nil { - return err - } - } - if v.MaxResults != nil { encoder.SetQuery("max-results").Integer(*v.MaxResults) } @@ -7080,14 +7550,14 @@ func awsRestjson1_serializeOpHttpBindingsListIngestionsInput(v *ListIngestionsIn return nil } -type awsRestjson1_serializeOpListNamespaces struct { +type awsRestjson1_serializeOpListGroupMemberships struct { } -func (*awsRestjson1_serializeOpListNamespaces) ID() string { +func (*awsRestjson1_serializeOpListGroupMemberships) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpListNamespaces) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpListGroupMemberships) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -7095,13 +7565,13 @@ func (m *awsRestjson1_serializeOpListNamespaces) HandleSerialize(ctx context.Con return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ListNamespacesInput) + input, ok := in.Parameters.(*ListGroupMembershipsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/namespaces") + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/namespaces/{Namespace}/groups/{GroupName}/members") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" @@ -7110,7 +7580,7 @@ func (m *awsRestjson1_serializeOpListNamespaces) HandleSerialize(ctx context.Con return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsListNamespacesInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsListGroupMembershipsInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -7121,7 +7591,7 @@ func (m *awsRestjson1_serializeOpListNamespaces) HandleSerialize(ctx context.Con return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsListNamespacesInput(v *ListNamespacesInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsListGroupMembershipsInput(v *ListGroupMembershipsInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -7135,10 +7605,28 @@ func awsRestjson1_serializeOpHttpBindingsListNamespacesInput(v *ListNamespacesIn } } + if v.GroupName == nil || len(*v.GroupName) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member GroupName must not be empty")} + } + if v.GroupName != nil { + if err := encoder.SetURI("GroupName").String(*v.GroupName); err != nil { + return err + } + } + if v.MaxResults != nil { encoder.SetQuery("max-results").Integer(*v.MaxResults) } + if v.Namespace == nil || len(*v.Namespace) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member Namespace must not be empty")} + } + if v.Namespace != nil { + if err := encoder.SetURI("Namespace").String(*v.Namespace); err != nil { + return err + } + } + if v.NextToken != nil { encoder.SetQuery("next-token").String(*v.NextToken) } @@ -7146,14 +7634,14 @@ func awsRestjson1_serializeOpHttpBindingsListNamespacesInput(v *ListNamespacesIn return nil } -type awsRestjson1_serializeOpListRefreshSchedules struct { +type awsRestjson1_serializeOpListGroups struct { } -func (*awsRestjson1_serializeOpListRefreshSchedules) ID() string { +func (*awsRestjson1_serializeOpListGroups) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpListRefreshSchedules) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpListGroups) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -7161,13 +7649,13 @@ func (m *awsRestjson1_serializeOpListRefreshSchedules) HandleSerialize(ctx conte return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ListRefreshSchedulesInput) + input, ok := in.Parameters.(*ListGroupsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/data-sets/{DataSetId}/refresh-schedules") + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/namespaces/{Namespace}/groups") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" @@ -7176,7 +7664,7 @@ func (m *awsRestjson1_serializeOpListRefreshSchedules) HandleSerialize(ctx conte return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsListRefreshSchedulesInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsListGroupsInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -7187,7 +7675,7 @@ func (m *awsRestjson1_serializeOpListRefreshSchedules) HandleSerialize(ctx conte return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsListRefreshSchedulesInput(v *ListRefreshSchedulesInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsListGroupsInput(v *ListGroupsInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -7201,26 +7689,34 @@ func awsRestjson1_serializeOpHttpBindingsListRefreshSchedulesInput(v *ListRefres } } - if v.DataSetId == nil || len(*v.DataSetId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DataSetId must not be empty")} + if v.MaxResults != nil { + encoder.SetQuery("max-results").Integer(*v.MaxResults) } - if v.DataSetId != nil { - if err := encoder.SetURI("DataSetId").String(*v.DataSetId); err != nil { + + if v.Namespace == nil || len(*v.Namespace) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member Namespace must not be empty")} + } + if v.Namespace != nil { + if err := encoder.SetURI("Namespace").String(*v.Namespace); err != nil { return err } } + if v.NextToken != nil { + encoder.SetQuery("next-token").String(*v.NextToken) + } + return nil } -type awsRestjson1_serializeOpListTagsForResource struct { +type awsRestjson1_serializeOpListIAMPolicyAssignments struct { } -func (*awsRestjson1_serializeOpListTagsForResource) ID() string { +func (*awsRestjson1_serializeOpListIAMPolicyAssignments) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpListTagsForResource) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpListIAMPolicyAssignments) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -7228,13 +7724,13 @@ func (m *awsRestjson1_serializeOpListTagsForResource) HandleSerialize(ctx contex return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ListTagsForResourceInput) + input, ok := in.Parameters.(*ListIAMPolicyAssignmentsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/resources/{ResourceArn}/tags") + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/namespaces/{Namespace}/v2/iam-policy-assignments") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" @@ -7243,7 +7739,7 @@ func (m *awsRestjson1_serializeOpListTagsForResource) HandleSerialize(ctx contex return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsListTagsForResourceInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsListIAMPolicyAssignmentsInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -7254,31 +7750,52 @@ func (m *awsRestjson1_serializeOpListTagsForResource) HandleSerialize(ctx contex return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsListTagsForResourceInput(v *ListTagsForResourceInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsListIAMPolicyAssignmentsInput(v *ListIAMPolicyAssignmentsInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil || len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} + if len(v.AssignmentStatus) > 0 { + encoder.SetQuery("assignment-status").String(string(v.AssignmentStatus)) } - if v.ResourceArn != nil { - if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { + + if v.AwsAccountId == nil || len(*v.AwsAccountId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} + } + if v.AwsAccountId != nil { + if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { + return err + } + } + + if v.MaxResults != nil { + encoder.SetQuery("max-results").Integer(*v.MaxResults) + } + + if v.Namespace == nil || len(*v.Namespace) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member Namespace must not be empty")} + } + if v.Namespace != nil { + if err := encoder.SetURI("Namespace").String(*v.Namespace); err != nil { return err } } + if v.NextToken != nil { + encoder.SetQuery("next-token").String(*v.NextToken) + } + return nil } -type awsRestjson1_serializeOpListTemplateAliases struct { +type awsRestjson1_serializeOpListIAMPolicyAssignmentsForUser struct { } -func (*awsRestjson1_serializeOpListTemplateAliases) ID() string { +func (*awsRestjson1_serializeOpListIAMPolicyAssignmentsForUser) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpListTemplateAliases) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpListIAMPolicyAssignmentsForUser) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -7286,13 +7803,13 @@ func (m *awsRestjson1_serializeOpListTemplateAliases) HandleSerialize(ctx contex return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ListTemplateAliasesInput) + input, ok := in.Parameters.(*ListIAMPolicyAssignmentsForUserInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/templates/{TemplateId}/aliases") + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/namespaces/{Namespace}/users/{UserName}/iam-policy-assignments") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" @@ -7301,7 +7818,7 @@ func (m *awsRestjson1_serializeOpListTemplateAliases) HandleSerialize(ctx contex return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsListTemplateAliasesInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsListIAMPolicyAssignmentsForUserInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -7312,7 +7829,7 @@ func (m *awsRestjson1_serializeOpListTemplateAliases) HandleSerialize(ctx contex return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsListTemplateAliasesInput(v *ListTemplateAliasesInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsListIAMPolicyAssignmentsForUserInput(v *ListIAMPolicyAssignmentsForUserInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -7327,18 +7844,27 @@ func awsRestjson1_serializeOpHttpBindingsListTemplateAliasesInput(v *ListTemplat } if v.MaxResults != nil { - encoder.SetQuery("max-result").Integer(*v.MaxResults) + encoder.SetQuery("max-results").Integer(*v.MaxResults) + } + + if v.Namespace == nil || len(*v.Namespace) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member Namespace must not be empty")} + } + if v.Namespace != nil { + if err := encoder.SetURI("Namespace").String(*v.Namespace); err != nil { + return err + } } if v.NextToken != nil { encoder.SetQuery("next-token").String(*v.NextToken) } - if v.TemplateId == nil || len(*v.TemplateId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member TemplateId must not be empty")} + if v.UserName == nil || len(*v.UserName) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member UserName must not be empty")} } - if v.TemplateId != nil { - if err := encoder.SetURI("TemplateId").String(*v.TemplateId); err != nil { + if v.UserName != nil { + if err := encoder.SetURI("UserName").String(*v.UserName); err != nil { return err } } @@ -7346,14 +7872,14 @@ func awsRestjson1_serializeOpHttpBindingsListTemplateAliasesInput(v *ListTemplat return nil } -type awsRestjson1_serializeOpListTemplates struct { +type awsRestjson1_serializeOpListIngestions struct { } -func (*awsRestjson1_serializeOpListTemplates) ID() string { +func (*awsRestjson1_serializeOpListIngestions) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpListTemplates) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpListIngestions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -7361,13 +7887,13 @@ func (m *awsRestjson1_serializeOpListTemplates) HandleSerialize(ctx context.Cont return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ListTemplatesInput) + input, ok := in.Parameters.(*ListIngestionsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/templates") + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/data-sets/{DataSetId}/ingestions") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" @@ -7376,7 +7902,7 @@ func (m *awsRestjson1_serializeOpListTemplates) HandleSerialize(ctx context.Cont return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsListTemplatesInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsListIngestionsInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -7387,7 +7913,7 @@ func (m *awsRestjson1_serializeOpListTemplates) HandleSerialize(ctx context.Cont return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsListTemplatesInput(v *ListTemplatesInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsListIngestionsInput(v *ListIngestionsInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -7401,8 +7927,17 @@ func awsRestjson1_serializeOpHttpBindingsListTemplatesInput(v *ListTemplatesInpu } } + if v.DataSetId == nil || len(*v.DataSetId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member DataSetId must not be empty")} + } + if v.DataSetId != nil { + if err := encoder.SetURI("DataSetId").String(*v.DataSetId); err != nil { + return err + } + } + if v.MaxResults != nil { - encoder.SetQuery("max-result").Integer(*v.MaxResults) + encoder.SetQuery("max-results").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -7412,14 +7947,14 @@ func awsRestjson1_serializeOpHttpBindingsListTemplatesInput(v *ListTemplatesInpu return nil } -type awsRestjson1_serializeOpListTemplateVersions struct { +type awsRestjson1_serializeOpListNamespaces struct { } -func (*awsRestjson1_serializeOpListTemplateVersions) ID() string { +func (*awsRestjson1_serializeOpListNamespaces) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpListTemplateVersions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpListNamespaces) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -7427,13 +7962,13 @@ func (m *awsRestjson1_serializeOpListTemplateVersions) HandleSerialize(ctx conte return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ListTemplateVersionsInput) + input, ok := in.Parameters.(*ListNamespacesInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/templates/{TemplateId}/versions") + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/namespaces") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" @@ -7442,7 +7977,7 @@ func (m *awsRestjson1_serializeOpListTemplateVersions) HandleSerialize(ctx conte return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsListTemplateVersionsInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsListNamespacesInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -7453,7 +7988,7 @@ func (m *awsRestjson1_serializeOpListTemplateVersions) HandleSerialize(ctx conte return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsListTemplateVersionsInput(v *ListTemplateVersionsInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsListNamespacesInput(v *ListNamespacesInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -7475,26 +8010,17 @@ func awsRestjson1_serializeOpHttpBindingsListTemplateVersionsInput(v *ListTempla encoder.SetQuery("next-token").String(*v.NextToken) } - if v.TemplateId == nil || len(*v.TemplateId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member TemplateId must not be empty")} - } - if v.TemplateId != nil { - if err := encoder.SetURI("TemplateId").String(*v.TemplateId); err != nil { - return err - } - } - return nil } -type awsRestjson1_serializeOpListThemeAliases struct { +type awsRestjson1_serializeOpListRefreshSchedules struct { } -func (*awsRestjson1_serializeOpListThemeAliases) ID() string { +func (*awsRestjson1_serializeOpListRefreshSchedules) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpListThemeAliases) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpListRefreshSchedules) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -7502,13 +8028,13 @@ func (m *awsRestjson1_serializeOpListThemeAliases) HandleSerialize(ctx context.C return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ListThemeAliasesInput) + input, ok := in.Parameters.(*ListRefreshSchedulesInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/themes/{ThemeId}/aliases") + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/data-sets/{DataSetId}/refresh-schedules") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" @@ -7517,7 +8043,7 @@ func (m *awsRestjson1_serializeOpListThemeAliases) HandleSerialize(ctx context.C return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsListThemeAliasesInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsListRefreshSchedulesInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -7528,7 +8054,7 @@ func (m *awsRestjson1_serializeOpListThemeAliases) HandleSerialize(ctx context.C return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsListThemeAliasesInput(v *ListThemeAliasesInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsListRefreshSchedulesInput(v *ListRefreshSchedulesInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -7542,19 +8068,11 @@ func awsRestjson1_serializeOpHttpBindingsListThemeAliasesInput(v *ListThemeAlias } } - if v.MaxResults != nil { - encoder.SetQuery("max-result").Integer(*v.MaxResults) - } - - if v.NextToken != nil { - encoder.SetQuery("next-token").String(*v.NextToken) - } - - if v.ThemeId == nil || len(*v.ThemeId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ThemeId must not be empty")} + if v.DataSetId == nil || len(*v.DataSetId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member DataSetId must not be empty")} } - if v.ThemeId != nil { - if err := encoder.SetURI("ThemeId").String(*v.ThemeId); err != nil { + if v.DataSetId != nil { + if err := encoder.SetURI("DataSetId").String(*v.DataSetId); err != nil { return err } } @@ -7562,14 +8080,14 @@ func awsRestjson1_serializeOpHttpBindingsListThemeAliasesInput(v *ListThemeAlias return nil } -type awsRestjson1_serializeOpListThemes struct { +type awsRestjson1_serializeOpListTagsForResource struct { } -func (*awsRestjson1_serializeOpListThemes) ID() string { +func (*awsRestjson1_serializeOpListTagsForResource) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpListThemes) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpListTagsForResource) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -7577,13 +8095,13 @@ func (m *awsRestjson1_serializeOpListThemes) HandleSerialize(ctx context.Context return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ListThemesInput) + input, ok := in.Parameters.(*ListTagsForResourceInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/themes") + opPath, opQuery := httpbinding.SplitURI("/resources/{ResourceArn}/tags") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" @@ -7592,7 +8110,7 @@ func (m *awsRestjson1_serializeOpListThemes) HandleSerialize(ctx context.Context return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsListThemesInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsListTagsForResourceInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -7603,43 +8121,31 @@ func (m *awsRestjson1_serializeOpListThemes) HandleSerialize(ctx context.Context return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsListThemesInput(v *ListThemesInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsListTagsForResourceInput(v *ListTagsForResourceInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AwsAccountId == nil || len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} + if v.ResourceArn == nil || len(*v.ResourceArn) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} } - if v.AwsAccountId != nil { - if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { + if v.ResourceArn != nil { + if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { return err } } - if v.MaxResults != nil { - encoder.SetQuery("max-results").Integer(*v.MaxResults) - } - - if v.NextToken != nil { - encoder.SetQuery("next-token").String(*v.NextToken) - } - - if len(v.Type) > 0 { - encoder.SetQuery("type").String(string(v.Type)) - } - return nil } -type awsRestjson1_serializeOpListThemeVersions struct { +type awsRestjson1_serializeOpListTemplateAliases struct { } -func (*awsRestjson1_serializeOpListThemeVersions) ID() string { +func (*awsRestjson1_serializeOpListTemplateAliases) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpListThemeVersions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpListTemplateAliases) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -7647,13 +8153,13 @@ func (m *awsRestjson1_serializeOpListThemeVersions) HandleSerialize(ctx context. return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ListThemeVersionsInput) + input, ok := in.Parameters.(*ListTemplateAliasesInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/themes/{ThemeId}/versions") + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/templates/{TemplateId}/aliases") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" @@ -7662,7 +8168,7 @@ func (m *awsRestjson1_serializeOpListThemeVersions) HandleSerialize(ctx context. return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsListThemeVersionsInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsListTemplateAliasesInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -7673,7 +8179,7 @@ func (m *awsRestjson1_serializeOpListThemeVersions) HandleSerialize(ctx context. return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsListThemeVersionsInput(v *ListThemeVersionsInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsListTemplateAliasesInput(v *ListTemplateAliasesInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -7688,18 +8194,18 @@ func awsRestjson1_serializeOpHttpBindingsListThemeVersionsInput(v *ListThemeVers } if v.MaxResults != nil { - encoder.SetQuery("max-results").Integer(*v.MaxResults) + encoder.SetQuery("max-result").Integer(*v.MaxResults) } if v.NextToken != nil { encoder.SetQuery("next-token").String(*v.NextToken) } - if v.ThemeId == nil || len(*v.ThemeId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ThemeId must not be empty")} + if v.TemplateId == nil || len(*v.TemplateId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member TemplateId must not be empty")} } - if v.ThemeId != nil { - if err := encoder.SetURI("ThemeId").String(*v.ThemeId); err != nil { + if v.TemplateId != nil { + if err := encoder.SetURI("TemplateId").String(*v.TemplateId); err != nil { return err } } @@ -7707,14 +8213,14 @@ func awsRestjson1_serializeOpHttpBindingsListThemeVersionsInput(v *ListThemeVers return nil } -type awsRestjson1_serializeOpListUserGroups struct { +type awsRestjson1_serializeOpListTemplates struct { } -func (*awsRestjson1_serializeOpListUserGroups) ID() string { +func (*awsRestjson1_serializeOpListTemplates) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpListUserGroups) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpListTemplates) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -7722,13 +8228,13 @@ func (m *awsRestjson1_serializeOpListUserGroups) HandleSerialize(ctx context.Con return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ListUserGroupsInput) + input, ok := in.Parameters.(*ListTemplatesInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/namespaces/{Namespace}/users/{UserName}/groups") + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/templates") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" @@ -7737,7 +8243,7 @@ func (m *awsRestjson1_serializeOpListUserGroups) HandleSerialize(ctx context.Con return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsListUserGroupsInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsListTemplatesInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -7748,7 +8254,7 @@ func (m *awsRestjson1_serializeOpListUserGroups) HandleSerialize(ctx context.Con return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsListUserGroupsInput(v *ListUserGroupsInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsListTemplatesInput(v *ListTemplatesInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -7763,42 +8269,24 @@ func awsRestjson1_serializeOpHttpBindingsListUserGroupsInput(v *ListUserGroupsIn } if v.MaxResults != nil { - encoder.SetQuery("max-results").Integer(*v.MaxResults) - } - - if v.Namespace == nil || len(*v.Namespace) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Namespace must not be empty")} - } - if v.Namespace != nil { - if err := encoder.SetURI("Namespace").String(*v.Namespace); err != nil { - return err - } + encoder.SetQuery("max-result").Integer(*v.MaxResults) } if v.NextToken != nil { encoder.SetQuery("next-token").String(*v.NextToken) } - if v.UserName == nil || len(*v.UserName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member UserName must not be empty")} - } - if v.UserName != nil { - if err := encoder.SetURI("UserName").String(*v.UserName); err != nil { - return err - } - } - return nil } -type awsRestjson1_serializeOpListUsers struct { +type awsRestjson1_serializeOpListTemplateVersions struct { } -func (*awsRestjson1_serializeOpListUsers) ID() string { +func (*awsRestjson1_serializeOpListTemplateVersions) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpListUsers) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpListTemplateVersions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -7806,13 +8294,13 @@ func (m *awsRestjson1_serializeOpListUsers) HandleSerialize(ctx context.Context, return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ListUsersInput) + input, ok := in.Parameters.(*ListTemplateVersionsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/namespaces/{Namespace}/users") + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/templates/{TemplateId}/versions") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "GET" @@ -7821,7 +8309,7 @@ func (m *awsRestjson1_serializeOpListUsers) HandleSerialize(ctx context.Context, return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsListUsersInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsListTemplateVersionsInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -7832,7 +8320,7 @@ func (m *awsRestjson1_serializeOpListUsers) HandleSerialize(ctx context.Context, return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsListUsersInput(v *ListUsersInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsListTemplateVersionsInput(v *ListTemplateVersionsInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -7850,30 +8338,30 @@ func awsRestjson1_serializeOpHttpBindingsListUsersInput(v *ListUsersInput, encod encoder.SetQuery("max-results").Integer(*v.MaxResults) } - if v.Namespace == nil || len(*v.Namespace) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Namespace must not be empty")} + if v.NextToken != nil { + encoder.SetQuery("next-token").String(*v.NextToken) } - if v.Namespace != nil { - if err := encoder.SetURI("Namespace").String(*v.Namespace); err != nil { + + if v.TemplateId == nil || len(*v.TemplateId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member TemplateId must not be empty")} + } + if v.TemplateId != nil { + if err := encoder.SetURI("TemplateId").String(*v.TemplateId); err != nil { return err } } - if v.NextToken != nil { - encoder.SetQuery("next-token").String(*v.NextToken) - } - return nil } -type awsRestjson1_serializeOpPutDataSetRefreshProperties struct { +type awsRestjson1_serializeOpListThemeAliases struct { } -func (*awsRestjson1_serializeOpPutDataSetRefreshProperties) ID() string { +func (*awsRestjson1_serializeOpListThemeAliases) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpPutDataSetRefreshProperties) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpListThemeAliases) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -7881,33 +8369,22 @@ func (m *awsRestjson1_serializeOpPutDataSetRefreshProperties) HandleSerialize(ct return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*PutDataSetRefreshPropertiesInput) + input, ok := in.Parameters.(*ListThemeAliasesInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/data-sets/{DataSetId}/refresh-properties") + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/themes/{ThemeId}/aliases") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "PUT" + request.Method = "GET" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsPutDataSetRefreshPropertiesInput(input, restEncoder); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - restEncoder.SetHeader("Content-Type").String("application/json") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsRestjson1_serializeOpDocumentPutDataSetRefreshPropertiesInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsListThemeAliasesInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -7918,7 +8395,7 @@ func (m *awsRestjson1_serializeOpPutDataSetRefreshProperties) HandleSerialize(ct return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsPutDataSetRefreshPropertiesInput(v *PutDataSetRefreshPropertiesInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsListThemeAliasesInput(v *ListThemeAliasesInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -7932,25 +8409,19 @@ func awsRestjson1_serializeOpHttpBindingsPutDataSetRefreshPropertiesInput(v *Put } } - if v.DataSetId == nil || len(*v.DataSetId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DataSetId must not be empty")} - } - if v.DataSetId != nil { - if err := encoder.SetURI("DataSetId").String(*v.DataSetId); err != nil { - return err - } + if v.MaxResults != nil { + encoder.SetQuery("max-result").Integer(*v.MaxResults) } - return nil -} - -func awsRestjson1_serializeOpDocumentPutDataSetRefreshPropertiesInput(v *PutDataSetRefreshPropertiesInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() + if v.NextToken != nil { + encoder.SetQuery("next-token").String(*v.NextToken) + } - if v.DataSetRefreshProperties != nil { - ok := object.Key("DataSetRefreshProperties") - if err := awsRestjson1_serializeDocumentDataSetRefreshProperties(v.DataSetRefreshProperties, ok); err != nil { + if v.ThemeId == nil || len(*v.ThemeId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member ThemeId must not be empty")} + } + if v.ThemeId != nil { + if err := encoder.SetURI("ThemeId").String(*v.ThemeId); err != nil { return err } } @@ -7958,14 +8429,14 @@ func awsRestjson1_serializeOpDocumentPutDataSetRefreshPropertiesInput(v *PutData return nil } -type awsRestjson1_serializeOpRegisterUser struct { +type awsRestjson1_serializeOpListThemes struct { } -func (*awsRestjson1_serializeOpRegisterUser) ID() string { +func (*awsRestjson1_serializeOpListThemes) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpRegisterUser) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpListThemes) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -7973,33 +8444,22 @@ func (m *awsRestjson1_serializeOpRegisterUser) HandleSerialize(ctx context.Conte return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*RegisterUserInput) + input, ok := in.Parameters.(*ListThemesInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/namespaces/{Namespace}/users") + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/themes") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "POST" + request.Method = "GET" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsRegisterUserInput(input, restEncoder); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - restEncoder.SetHeader("Content-Type").String("application/json") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsRestjson1_serializeOpDocumentRegisterUserInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsListThemesInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -8010,7 +8470,7 @@ func (m *awsRestjson1_serializeOpRegisterUser) HandleSerialize(ctx context.Conte return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsRegisterUserInput(v *RegisterUserInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsListThemesInput(v *ListThemesInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -8024,83 +8484,29 @@ func awsRestjson1_serializeOpHttpBindingsRegisterUserInput(v *RegisterUserInput, } } - if v.Namespace == nil || len(*v.Namespace) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Namespace must not be empty")} + if v.MaxResults != nil { + encoder.SetQuery("max-results").Integer(*v.MaxResults) } - if v.Namespace != nil { - if err := encoder.SetURI("Namespace").String(*v.Namespace); err != nil { - return err - } + + if v.NextToken != nil { + encoder.SetQuery("next-token").String(*v.NextToken) + } + + if len(v.Type) > 0 { + encoder.SetQuery("type").String(string(v.Type)) } return nil } -func awsRestjson1_serializeOpDocumentRegisterUserInput(v *RegisterUserInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.CustomFederationProviderUrl != nil { - ok := object.Key("CustomFederationProviderUrl") - ok.String(*v.CustomFederationProviderUrl) - } +type awsRestjson1_serializeOpListThemeVersions struct { +} - if v.CustomPermissionsName != nil { - ok := object.Key("CustomPermissionsName") - ok.String(*v.CustomPermissionsName) - } - - if v.Email != nil { - ok := object.Key("Email") - ok.String(*v.Email) - } - - if v.ExternalLoginFederationProviderType != nil { - ok := object.Key("ExternalLoginFederationProviderType") - ok.String(*v.ExternalLoginFederationProviderType) - } - - if v.ExternalLoginId != nil { - ok := object.Key("ExternalLoginId") - ok.String(*v.ExternalLoginId) - } - - if v.IamArn != nil { - ok := object.Key("IamArn") - ok.String(*v.IamArn) - } - - if len(v.IdentityType) > 0 { - ok := object.Key("IdentityType") - ok.String(string(v.IdentityType)) - } - - if v.SessionName != nil { - ok := object.Key("SessionName") - ok.String(*v.SessionName) - } - - if v.UserName != nil { - ok := object.Key("UserName") - ok.String(*v.UserName) - } - - if len(v.UserRole) > 0 { - ok := object.Key("UserRole") - ok.String(string(v.UserRole)) - } - - return nil -} - -type awsRestjson1_serializeOpRestoreAnalysis struct { -} - -func (*awsRestjson1_serializeOpRestoreAnalysis) ID() string { +func (*awsRestjson1_serializeOpListThemeVersions) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpRestoreAnalysis) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpListThemeVersions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -8108,22 +8514,22 @@ func (m *awsRestjson1_serializeOpRestoreAnalysis) HandleSerialize(ctx context.Co return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*RestoreAnalysisInput) + input, ok := in.Parameters.(*ListThemeVersionsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/restore/analyses/{AnalysisId}") + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/themes/{ThemeId}/versions") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "POST" + request.Method = "GET" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsRestoreAnalysisInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsListThemeVersionsInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -8134,25 +8540,33 @@ func (m *awsRestjson1_serializeOpRestoreAnalysis) HandleSerialize(ctx context.Co return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsRestoreAnalysisInput(v *RestoreAnalysisInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsListThemeVersionsInput(v *ListThemeVersionsInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AnalysisId == nil || len(*v.AnalysisId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AnalysisId must not be empty")} + if v.AwsAccountId == nil || len(*v.AwsAccountId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} } - if v.AnalysisId != nil { - if err := encoder.SetURI("AnalysisId").String(*v.AnalysisId); err != nil { + if v.AwsAccountId != nil { + if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } } - if v.AwsAccountId == nil || len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} + if v.MaxResults != nil { + encoder.SetQuery("max-results").Integer(*v.MaxResults) } - if v.AwsAccountId != nil { - if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { + + if v.NextToken != nil { + encoder.SetQuery("next-token").String(*v.NextToken) + } + + if v.ThemeId == nil || len(*v.ThemeId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member ThemeId must not be empty")} + } + if v.ThemeId != nil { + if err := encoder.SetURI("ThemeId").String(*v.ThemeId); err != nil { return err } } @@ -8160,14 +8574,14 @@ func awsRestjson1_serializeOpHttpBindingsRestoreAnalysisInput(v *RestoreAnalysis return nil } -type awsRestjson1_serializeOpSearchAnalyses struct { +type awsRestjson1_serializeOpListTopicRefreshSchedules struct { } -func (*awsRestjson1_serializeOpSearchAnalyses) ID() string { +func (*awsRestjson1_serializeOpListTopicRefreshSchedules) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpSearchAnalyses) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpListTopicRefreshSchedules) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -8175,33 +8589,22 @@ func (m *awsRestjson1_serializeOpSearchAnalyses) HandleSerialize(ctx context.Con return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*SearchAnalysesInput) + input, ok := in.Parameters.(*ListTopicRefreshSchedulesInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/search/analyses") + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/topics/{TopicId}/schedules") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "POST" + request.Method = "GET" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsSearchAnalysesInput(input, restEncoder); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - restEncoder.SetHeader("Content-Type").String("application/json") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsRestjson1_serializeOpDocumentSearchAnalysesInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsListTopicRefreshSchedulesInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -8212,7 +8615,7 @@ func (m *awsRestjson1_serializeOpSearchAnalyses) HandleSerialize(ctx context.Con return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsSearchAnalysesInput(v *SearchAnalysesInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsListTopicRefreshSchedulesInput(v *ListTopicRefreshSchedulesInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -8226,41 +8629,26 @@ func awsRestjson1_serializeOpHttpBindingsSearchAnalysesInput(v *SearchAnalysesIn } } - return nil -} - -func awsRestjson1_serializeOpDocumentSearchAnalysesInput(v *SearchAnalysesInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Filters != nil { - ok := object.Key("Filters") - if err := awsRestjson1_serializeDocumentAnalysisSearchFilterList(v.Filters, ok); err != nil { + if v.TopicId == nil || len(*v.TopicId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member TopicId must not be empty")} + } + if v.TopicId != nil { + if err := encoder.SetURI("TopicId").String(*v.TopicId); err != nil { return err } } - if v.MaxResults != nil { - ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) - } - - if v.NextToken != nil { - ok := object.Key("NextToken") - ok.String(*v.NextToken) - } - return nil } -type awsRestjson1_serializeOpSearchDashboards struct { +type awsRestjson1_serializeOpListTopics struct { } -func (*awsRestjson1_serializeOpSearchDashboards) ID() string { +func (*awsRestjson1_serializeOpListTopics) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpSearchDashboards) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpListTopics) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -8268,33 +8656,22 @@ func (m *awsRestjson1_serializeOpSearchDashboards) HandleSerialize(ctx context.C return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*SearchDashboardsInput) + input, ok := in.Parameters.(*ListTopicsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/search/dashboards") + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/topics") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "POST" + request.Method = "GET" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsSearchDashboardsInput(input, restEncoder); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - restEncoder.SetHeader("Content-Type").String("application/json") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsRestjson1_serializeOpDocumentSearchDashboardsInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsListTopicsInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -8305,7 +8682,7 @@ func (m *awsRestjson1_serializeOpSearchDashboards) HandleSerialize(ctx context.C return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsSearchDashboardsInput(v *SearchDashboardsInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsListTopicsInput(v *ListTopicsInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -8319,41 +8696,25 @@ func awsRestjson1_serializeOpHttpBindingsSearchDashboardsInput(v *SearchDashboar } } - return nil -} - -func awsRestjson1_serializeOpDocumentSearchDashboardsInput(v *SearchDashboardsInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Filters != nil { - ok := object.Key("Filters") - if err := awsRestjson1_serializeDocumentDashboardSearchFilterList(v.Filters, ok); err != nil { - return err - } - } - if v.MaxResults != nil { - ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + encoder.SetQuery("max-results").Integer(*v.MaxResults) } if v.NextToken != nil { - ok := object.Key("NextToken") - ok.String(*v.NextToken) + encoder.SetQuery("next-token").String(*v.NextToken) } return nil } -type awsRestjson1_serializeOpSearchDataSets struct { +type awsRestjson1_serializeOpListUserGroups struct { } -func (*awsRestjson1_serializeOpSearchDataSets) ID() string { +func (*awsRestjson1_serializeOpListUserGroups) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpSearchDataSets) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpListUserGroups) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -8361,33 +8722,22 @@ func (m *awsRestjson1_serializeOpSearchDataSets) HandleSerialize(ctx context.Con return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*SearchDataSetsInput) + input, ok := in.Parameters.(*ListUserGroupsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/search/data-sets") + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/namespaces/{Namespace}/users/{UserName}/groups") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "POST" + request.Method = "GET" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsSearchDataSetsInput(input, restEncoder); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - restEncoder.SetHeader("Content-Type").String("application/json") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsRestjson1_serializeOpDocumentSearchDataSetsInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsListUserGroupsInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -8398,7 +8748,7 @@ func (m *awsRestjson1_serializeOpSearchDataSets) HandleSerialize(ctx context.Con return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsSearchDataSetsInput(v *SearchDataSetsInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsListUserGroupsInput(v *ListUserGroupsInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -8412,41 +8762,43 @@ func awsRestjson1_serializeOpHttpBindingsSearchDataSetsInput(v *SearchDataSetsIn } } - return nil -} - -func awsRestjson1_serializeOpDocumentSearchDataSetsInput(v *SearchDataSetsInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() + if v.MaxResults != nil { + encoder.SetQuery("max-results").Integer(*v.MaxResults) + } - if v.Filters != nil { - ok := object.Key("Filters") - if err := awsRestjson1_serializeDocumentDataSetSearchFilterList(v.Filters, ok); err != nil { + if v.Namespace == nil || len(*v.Namespace) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member Namespace must not be empty")} + } + if v.Namespace != nil { + if err := encoder.SetURI("Namespace").String(*v.Namespace); err != nil { return err } } - if v.MaxResults != nil { - ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + if v.NextToken != nil { + encoder.SetQuery("next-token").String(*v.NextToken) } - if v.NextToken != nil { - ok := object.Key("NextToken") - ok.String(*v.NextToken) + if v.UserName == nil || len(*v.UserName) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member UserName must not be empty")} + } + if v.UserName != nil { + if err := encoder.SetURI("UserName").String(*v.UserName); err != nil { + return err + } } return nil } -type awsRestjson1_serializeOpSearchDataSources struct { +type awsRestjson1_serializeOpListUsers struct { } -func (*awsRestjson1_serializeOpSearchDataSources) ID() string { +func (*awsRestjson1_serializeOpListUsers) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpSearchDataSources) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpListUsers) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -8454,33 +8806,22 @@ func (m *awsRestjson1_serializeOpSearchDataSources) HandleSerialize(ctx context. return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*SearchDataSourcesInput) + input, ok := in.Parameters.(*ListUsersInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/search/data-sources") + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/namespaces/{Namespace}/users") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "POST" + request.Method = "GET" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsSearchDataSourcesInput(input, restEncoder); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - restEncoder.SetHeader("Content-Type").String("application/json") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsRestjson1_serializeOpDocumentSearchDataSourcesInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsListUsersInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -8491,7 +8832,7 @@ func (m *awsRestjson1_serializeOpSearchDataSources) HandleSerialize(ctx context. return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsSearchDataSourcesInput(v *SearchDataSourcesInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsListUsersInput(v *ListUsersInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -8505,41 +8846,34 @@ func awsRestjson1_serializeOpHttpBindingsSearchDataSourcesInput(v *SearchDataSou } } - return nil -} - -func awsRestjson1_serializeOpDocumentSearchDataSourcesInput(v *SearchDataSourcesInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() + if v.MaxResults != nil { + encoder.SetQuery("max-results").Integer(*v.MaxResults) + } - if v.Filters != nil { - ok := object.Key("Filters") - if err := awsRestjson1_serializeDocumentDataSourceSearchFilterList(v.Filters, ok); err != nil { + if v.Namespace == nil || len(*v.Namespace) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member Namespace must not be empty")} + } + if v.Namespace != nil { + if err := encoder.SetURI("Namespace").String(*v.Namespace); err != nil { return err } } - if v.MaxResults != nil { - ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) - } - if v.NextToken != nil { - ok := object.Key("NextToken") - ok.String(*v.NextToken) + encoder.SetQuery("next-token").String(*v.NextToken) } return nil } -type awsRestjson1_serializeOpSearchFolders struct { +type awsRestjson1_serializeOpListVPCConnections struct { } -func (*awsRestjson1_serializeOpSearchFolders) ID() string { +func (*awsRestjson1_serializeOpListVPCConnections) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpSearchFolders) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpListVPCConnections) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -8547,33 +8881,22 @@ func (m *awsRestjson1_serializeOpSearchFolders) HandleSerialize(ctx context.Cont return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*SearchFoldersInput) + input, ok := in.Parameters.(*ListVPCConnectionsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/search/folders") + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/vpc-connections") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "POST" + request.Method = "GET" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsSearchFoldersInput(input, restEncoder); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - restEncoder.SetHeader("Content-Type").String("application/json") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsRestjson1_serializeOpDocumentSearchFoldersInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsListVPCConnectionsInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -8584,7 +8907,7 @@ func (m *awsRestjson1_serializeOpSearchFolders) HandleSerialize(ctx context.Cont return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsSearchFoldersInput(v *SearchFoldersInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsListVPCConnectionsInput(v *ListVPCConnectionsInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -8598,41 +8921,25 @@ func awsRestjson1_serializeOpHttpBindingsSearchFoldersInput(v *SearchFoldersInpu } } - return nil -} - -func awsRestjson1_serializeOpDocumentSearchFoldersInput(v *SearchFoldersInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Filters != nil { - ok := object.Key("Filters") - if err := awsRestjson1_serializeDocumentFolderSearchFilterList(v.Filters, ok); err != nil { - return err - } - } - if v.MaxResults != nil { - ok := object.Key("MaxResults") - ok.Integer(*v.MaxResults) + encoder.SetQuery("max-results").Integer(*v.MaxResults) } if v.NextToken != nil { - ok := object.Key("NextToken") - ok.String(*v.NextToken) + encoder.SetQuery("next-token").String(*v.NextToken) } return nil } -type awsRestjson1_serializeOpSearchGroups struct { +type awsRestjson1_serializeOpPutDataSetRefreshProperties struct { } -func (*awsRestjson1_serializeOpSearchGroups) ID() string { +func (*awsRestjson1_serializeOpPutDataSetRefreshProperties) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpSearchGroups) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpPutDataSetRefreshProperties) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -8640,29 +8947,29 @@ func (m *awsRestjson1_serializeOpSearchGroups) HandleSerialize(ctx context.Conte return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*SearchGroupsInput) + input, ok := in.Parameters.(*PutDataSetRefreshPropertiesInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/namespaces/{Namespace}/groups-search") + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/data-sets/{DataSetId}/refresh-properties") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "POST" + request.Method = "PUT" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsSearchGroupsInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsPutDataSetRefreshPropertiesInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() - if err := awsRestjson1_serializeOpDocumentSearchGroupsInput(input, jsonEncoder.Value); err != nil { + if err := awsRestjson1_serializeOpDocumentPutDataSetRefreshPropertiesInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -8677,7 +8984,7 @@ func (m *awsRestjson1_serializeOpSearchGroups) HandleSerialize(ctx context.Conte return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsSearchGroupsInput(v *SearchGroupsInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsPutDataSetRefreshPropertiesInput(v *PutDataSetRefreshPropertiesInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -8691,33 +8998,25 @@ func awsRestjson1_serializeOpHttpBindingsSearchGroupsInput(v *SearchGroupsInput, } } - if v.MaxResults != nil { - encoder.SetQuery("max-results").Integer(*v.MaxResults) - } - - if v.Namespace == nil || len(*v.Namespace) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Namespace must not be empty")} + if v.DataSetId == nil || len(*v.DataSetId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member DataSetId must not be empty")} } - if v.Namespace != nil { - if err := encoder.SetURI("Namespace").String(*v.Namespace); err != nil { + if v.DataSetId != nil { + if err := encoder.SetURI("DataSetId").String(*v.DataSetId); err != nil { return err } } - if v.NextToken != nil { - encoder.SetQuery("next-token").String(*v.NextToken) - } - return nil } -func awsRestjson1_serializeOpDocumentSearchGroupsInput(v *SearchGroupsInput, value smithyjson.Value) error { +func awsRestjson1_serializeOpDocumentPutDataSetRefreshPropertiesInput(v *PutDataSetRefreshPropertiesInput, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Filters != nil { - ok := object.Key("Filters") - if err := awsRestjson1_serializeDocumentGroupSearchFilterList(v.Filters, ok); err != nil { + if v.DataSetRefreshProperties != nil { + ok := object.Key("DataSetRefreshProperties") + if err := awsRestjson1_serializeDocumentDataSetRefreshProperties(v.DataSetRefreshProperties, ok); err != nil { return err } } @@ -8725,14 +9024,14 @@ func awsRestjson1_serializeOpDocumentSearchGroupsInput(v *SearchGroupsInput, val return nil } -type awsRestjson1_serializeOpTagResource struct { +type awsRestjson1_serializeOpRegisterUser struct { } -func (*awsRestjson1_serializeOpTagResource) ID() string { +func (*awsRestjson1_serializeOpRegisterUser) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpTagResource) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpRegisterUser) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -8740,13 +9039,13 @@ func (m *awsRestjson1_serializeOpTagResource) HandleSerialize(ctx context.Contex return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*TagResourceInput) + input, ok := in.Parameters.(*RegisterUserInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/resources/{ResourceArn}/tags") + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/namespaces/{Namespace}/users") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "POST" @@ -8755,14 +9054,14 @@ func (m *awsRestjson1_serializeOpTagResource) HandleSerialize(ctx context.Contex return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsTagResourceInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsRegisterUserInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() - if err := awsRestjson1_serializeOpDocumentTagResourceInput(input, jsonEncoder.Value); err != nil { + if err := awsRestjson1_serializeOpDocumentRegisterUserInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -8777,16 +9076,25 @@ func (m *awsRestjson1_serializeOpTagResource) HandleSerialize(ctx context.Contex return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsTagResourceInput(v *TagResourceInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsRegisterUserInput(v *RegisterUserInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil || len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} + if v.AwsAccountId == nil || len(*v.AwsAccountId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} } - if v.ResourceArn != nil { - if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { + if v.AwsAccountId != nil { + if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { + return err + } + } + + if v.Namespace == nil || len(*v.Namespace) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member Namespace must not be empty")} + } + if v.Namespace != nil { + if err := encoder.SetURI("Namespace").String(*v.Namespace); err != nil { return err } } @@ -8794,28 +9102,71 @@ func awsRestjson1_serializeOpHttpBindingsTagResourceInput(v *TagResourceInput, e return nil } -func awsRestjson1_serializeOpDocumentTagResourceInput(v *TagResourceInput, value smithyjson.Value) error { +func awsRestjson1_serializeOpDocumentRegisterUserInput(v *RegisterUserInput, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Tags != nil { - ok := object.Key("Tags") - if err := awsRestjson1_serializeDocumentTagList(v.Tags, ok); err != nil { - return err - } + if v.CustomFederationProviderUrl != nil { + ok := object.Key("CustomFederationProviderUrl") + ok.String(*v.CustomFederationProviderUrl) + } + + if v.CustomPermissionsName != nil { + ok := object.Key("CustomPermissionsName") + ok.String(*v.CustomPermissionsName) + } + + if v.Email != nil { + ok := object.Key("Email") + ok.String(*v.Email) + } + + if v.ExternalLoginFederationProviderType != nil { + ok := object.Key("ExternalLoginFederationProviderType") + ok.String(*v.ExternalLoginFederationProviderType) + } + + if v.ExternalLoginId != nil { + ok := object.Key("ExternalLoginId") + ok.String(*v.ExternalLoginId) + } + + if v.IamArn != nil { + ok := object.Key("IamArn") + ok.String(*v.IamArn) + } + + if len(v.IdentityType) > 0 { + ok := object.Key("IdentityType") + ok.String(string(v.IdentityType)) + } + + if v.SessionName != nil { + ok := object.Key("SessionName") + ok.String(*v.SessionName) + } + + if v.UserName != nil { + ok := object.Key("UserName") + ok.String(*v.UserName) + } + + if len(v.UserRole) > 0 { + ok := object.Key("UserRole") + ok.String(string(v.UserRole)) } return nil } -type awsRestjson1_serializeOpUntagResource struct { +type awsRestjson1_serializeOpRestoreAnalysis struct { } -func (*awsRestjson1_serializeOpUntagResource) ID() string { +func (*awsRestjson1_serializeOpRestoreAnalysis) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpUntagResource) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpRestoreAnalysis) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -8823,22 +9174,22 @@ func (m *awsRestjson1_serializeOpUntagResource) HandleSerialize(ctx context.Cont return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*UntagResourceInput) + input, ok := in.Parameters.(*RestoreAnalysisInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/resources/{ResourceArn}/tags") + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/restore/analyses/{AnalysisId}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "DELETE" + request.Method = "POST" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsUntagResourceInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsRestoreAnalysisInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -8849,37 +9200,40 @@ func (m *awsRestjson1_serializeOpUntagResource) HandleSerialize(ctx context.Cont return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsRestoreAnalysisInput(v *RestoreAnalysisInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.ResourceArn == nil || len(*v.ResourceArn) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} + if v.AnalysisId == nil || len(*v.AnalysisId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member AnalysisId must not be empty")} } - if v.ResourceArn != nil { - if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { + if v.AnalysisId != nil { + if err := encoder.SetURI("AnalysisId").String(*v.AnalysisId); err != nil { return err } } - if v.TagKeys != nil { - for i := range v.TagKeys { - encoder.AddQuery("keys").String(v.TagKeys[i]) + if v.AwsAccountId == nil || len(*v.AwsAccountId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} + } + if v.AwsAccountId != nil { + if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { + return err } } return nil } -type awsRestjson1_serializeOpUpdateAccountCustomization struct { +type awsRestjson1_serializeOpSearchAnalyses struct { } -func (*awsRestjson1_serializeOpUpdateAccountCustomization) ID() string { +func (*awsRestjson1_serializeOpSearchAnalyses) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpUpdateAccountCustomization) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpSearchAnalyses) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -8887,29 +9241,29 @@ func (m *awsRestjson1_serializeOpUpdateAccountCustomization) HandleSerialize(ctx return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*UpdateAccountCustomizationInput) + input, ok := in.Parameters.(*SearchAnalysesInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/customizations") + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/search/analyses") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "PUT" + request.Method = "POST" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsUpdateAccountCustomizationInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsSearchAnalysesInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() - if err := awsRestjson1_serializeOpDocumentUpdateAccountCustomizationInput(input, jsonEncoder.Value); err != nil { + if err := awsRestjson1_serializeOpDocumentSearchAnalysesInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -8924,7 +9278,7 @@ func (m *awsRestjson1_serializeOpUpdateAccountCustomization) HandleSerialize(ctx return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsUpdateAccountCustomizationInput(v *UpdateAccountCustomizationInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsSearchAnalysesInput(v *SearchAnalysesInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -8938,35 +9292,41 @@ func awsRestjson1_serializeOpHttpBindingsUpdateAccountCustomizationInput(v *Upda } } - if v.Namespace != nil { - encoder.SetQuery("namespace").String(*v.Namespace) - } - return nil } -func awsRestjson1_serializeOpDocumentUpdateAccountCustomizationInput(v *UpdateAccountCustomizationInput, value smithyjson.Value) error { +func awsRestjson1_serializeOpDocumentSearchAnalysesInput(v *SearchAnalysesInput, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.AccountCustomization != nil { - ok := object.Key("AccountCustomization") - if err := awsRestjson1_serializeDocumentAccountCustomization(v.AccountCustomization, ok); err != nil { - return err + if v.Filters != nil { + ok := object.Key("Filters") + if err := awsRestjson1_serializeDocumentAnalysisSearchFilterList(v.Filters, ok); err != nil { + return err } } + if v.MaxResults != nil { + ok := object.Key("MaxResults") + ok.Integer(*v.MaxResults) + } + + if v.NextToken != nil { + ok := object.Key("NextToken") + ok.String(*v.NextToken) + } + return nil } -type awsRestjson1_serializeOpUpdateAccountSettings struct { +type awsRestjson1_serializeOpSearchDashboards struct { } -func (*awsRestjson1_serializeOpUpdateAccountSettings) ID() string { +func (*awsRestjson1_serializeOpSearchDashboards) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpUpdateAccountSettings) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpSearchDashboards) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -8974,29 +9334,29 @@ func (m *awsRestjson1_serializeOpUpdateAccountSettings) HandleSerialize(ctx cont return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*UpdateAccountSettingsInput) + input, ok := in.Parameters.(*SearchDashboardsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/settings") + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/search/dashboards") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "PUT" + request.Method = "POST" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsUpdateAccountSettingsInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsSearchDashboardsInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() - if err := awsRestjson1_serializeOpDocumentUpdateAccountSettingsInput(input, jsonEncoder.Value); err != nil { + if err := awsRestjson1_serializeOpDocumentSearchDashboardsInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -9011,7 +9371,7 @@ func (m *awsRestjson1_serializeOpUpdateAccountSettings) HandleSerialize(ctx cont return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsUpdateAccountSettingsInput(v *UpdateAccountSettingsInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsSearchDashboardsInput(v *SearchDashboardsInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -9028,36 +9388,38 @@ func awsRestjson1_serializeOpHttpBindingsUpdateAccountSettingsInput(v *UpdateAcc return nil } -func awsRestjson1_serializeOpDocumentUpdateAccountSettingsInput(v *UpdateAccountSettingsInput, value smithyjson.Value) error { +func awsRestjson1_serializeOpDocumentSearchDashboardsInput(v *SearchDashboardsInput, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.DefaultNamespace != nil { - ok := object.Key("DefaultNamespace") - ok.String(*v.DefaultNamespace) + if v.Filters != nil { + ok := object.Key("Filters") + if err := awsRestjson1_serializeDocumentDashboardSearchFilterList(v.Filters, ok); err != nil { + return err + } } - if v.NotificationEmail != nil { - ok := object.Key("NotificationEmail") - ok.String(*v.NotificationEmail) + if v.MaxResults != nil { + ok := object.Key("MaxResults") + ok.Integer(*v.MaxResults) } - if v.TerminationProtectionEnabled { - ok := object.Key("TerminationProtectionEnabled") - ok.Boolean(v.TerminationProtectionEnabled) + if v.NextToken != nil { + ok := object.Key("NextToken") + ok.String(*v.NextToken) } return nil } -type awsRestjson1_serializeOpUpdateAnalysis struct { +type awsRestjson1_serializeOpSearchDataSets struct { } -func (*awsRestjson1_serializeOpUpdateAnalysis) ID() string { +func (*awsRestjson1_serializeOpSearchDataSets) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpUpdateAnalysis) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpSearchDataSets) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -9065,29 +9427,29 @@ func (m *awsRestjson1_serializeOpUpdateAnalysis) HandleSerialize(ctx context.Con return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*UpdateAnalysisInput) + input, ok := in.Parameters.(*SearchDataSetsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/analyses/{AnalysisId}") + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/search/data-sets") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "PUT" + request.Method = "POST" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsUpdateAnalysisInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsSearchDataSetsInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() - if err := awsRestjson1_serializeOpDocumentUpdateAnalysisInput(input, jsonEncoder.Value); err != nil { + if err := awsRestjson1_serializeOpDocumentSearchDataSetsInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -9102,20 +9464,11 @@ func (m *awsRestjson1_serializeOpUpdateAnalysis) HandleSerialize(ctx context.Con return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsUpdateAnalysisInput(v *UpdateAnalysisInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsSearchDataSetsInput(v *SearchDataSetsInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AnalysisId == nil || len(*v.AnalysisId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AnalysisId must not be empty")} - } - if v.AnalysisId != nil { - if err := encoder.SetURI("AnalysisId").String(*v.AnalysisId); err != nil { - return err - } - } - if v.AwsAccountId == nil || len(*v.AwsAccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} } @@ -9128,52 +9481,38 @@ func awsRestjson1_serializeOpHttpBindingsUpdateAnalysisInput(v *UpdateAnalysisIn return nil } -func awsRestjson1_serializeOpDocumentUpdateAnalysisInput(v *UpdateAnalysisInput, value smithyjson.Value) error { +func awsRestjson1_serializeOpDocumentSearchDataSetsInput(v *SearchDataSetsInput, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Definition != nil { - ok := object.Key("Definition") - if err := awsRestjson1_serializeDocumentAnalysisDefinition(v.Definition, ok); err != nil { - return err - } - } - - if v.Name != nil { - ok := object.Key("Name") - ok.String(*v.Name) - } - - if v.Parameters != nil { - ok := object.Key("Parameters") - if err := awsRestjson1_serializeDocumentParameters(v.Parameters, ok); err != nil { + if v.Filters != nil { + ok := object.Key("Filters") + if err := awsRestjson1_serializeDocumentDataSetSearchFilterList(v.Filters, ok); err != nil { return err } } - if v.SourceEntity != nil { - ok := object.Key("SourceEntity") - if err := awsRestjson1_serializeDocumentAnalysisSourceEntity(v.SourceEntity, ok); err != nil { - return err - } + if v.MaxResults != nil { + ok := object.Key("MaxResults") + ok.Integer(*v.MaxResults) } - if v.ThemeArn != nil { - ok := object.Key("ThemeArn") - ok.String(*v.ThemeArn) + if v.NextToken != nil { + ok := object.Key("NextToken") + ok.String(*v.NextToken) } return nil } -type awsRestjson1_serializeOpUpdateAnalysisPermissions struct { +type awsRestjson1_serializeOpSearchDataSources struct { } -func (*awsRestjson1_serializeOpUpdateAnalysisPermissions) ID() string { +func (*awsRestjson1_serializeOpSearchDataSources) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpUpdateAnalysisPermissions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpSearchDataSources) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -9181,29 +9520,29 @@ func (m *awsRestjson1_serializeOpUpdateAnalysisPermissions) HandleSerialize(ctx return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*UpdateAnalysisPermissionsInput) + input, ok := in.Parameters.(*SearchDataSourcesInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/analyses/{AnalysisId}/permissions") + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/search/data-sources") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "PUT" + request.Method = "POST" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsUpdateAnalysisPermissionsInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsSearchDataSourcesInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() - if err := awsRestjson1_serializeOpDocumentUpdateAnalysisPermissionsInput(input, jsonEncoder.Value); err != nil { + if err := awsRestjson1_serializeOpDocumentSearchDataSourcesInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -9218,20 +9557,11 @@ func (m *awsRestjson1_serializeOpUpdateAnalysisPermissions) HandleSerialize(ctx return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsUpdateAnalysisPermissionsInput(v *UpdateAnalysisPermissionsInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsSearchDataSourcesInput(v *SearchDataSourcesInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AnalysisId == nil || len(*v.AnalysisId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AnalysisId must not be empty")} - } - if v.AnalysisId != nil { - if err := encoder.SetURI("AnalysisId").String(*v.AnalysisId); err != nil { - return err - } - } - if v.AwsAccountId == nil || len(*v.AwsAccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} } @@ -9244,35 +9574,38 @@ func awsRestjson1_serializeOpHttpBindingsUpdateAnalysisPermissionsInput(v *Updat return nil } -func awsRestjson1_serializeOpDocumentUpdateAnalysisPermissionsInput(v *UpdateAnalysisPermissionsInput, value smithyjson.Value) error { +func awsRestjson1_serializeOpDocumentSearchDataSourcesInput(v *SearchDataSourcesInput, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.GrantPermissions != nil { - ok := object.Key("GrantPermissions") - if err := awsRestjson1_serializeDocumentUpdateResourcePermissionList(v.GrantPermissions, ok); err != nil { + if v.Filters != nil { + ok := object.Key("Filters") + if err := awsRestjson1_serializeDocumentDataSourceSearchFilterList(v.Filters, ok); err != nil { return err } } - if v.RevokePermissions != nil { - ok := object.Key("RevokePermissions") - if err := awsRestjson1_serializeDocumentUpdateResourcePermissionList(v.RevokePermissions, ok); err != nil { - return err - } + if v.MaxResults != nil { + ok := object.Key("MaxResults") + ok.Integer(*v.MaxResults) + } + + if v.NextToken != nil { + ok := object.Key("NextToken") + ok.String(*v.NextToken) } return nil } -type awsRestjson1_serializeOpUpdateDashboard struct { +type awsRestjson1_serializeOpSearchFolders struct { } -func (*awsRestjson1_serializeOpUpdateDashboard) ID() string { +func (*awsRestjson1_serializeOpSearchFolders) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpUpdateDashboard) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpSearchFolders) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -9280,29 +9613,29 @@ func (m *awsRestjson1_serializeOpUpdateDashboard) HandleSerialize(ctx context.Co return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*UpdateDashboardInput) + input, ok := in.Parameters.(*SearchFoldersInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/dashboards/{DashboardId}") + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/search/folders") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "PUT" + request.Method = "POST" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsUpdateDashboardInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsSearchFoldersInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() - if err := awsRestjson1_serializeOpDocumentUpdateDashboardInput(input, jsonEncoder.Value); err != nil { + if err := awsRestjson1_serializeOpDocumentSearchFoldersInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -9317,7 +9650,7 @@ func (m *awsRestjson1_serializeOpUpdateDashboard) HandleSerialize(ctx context.Co return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsUpdateDashboardInput(v *UpdateDashboardInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsSearchFoldersInput(v *SearchFoldersInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -9331,76 +9664,41 @@ func awsRestjson1_serializeOpHttpBindingsUpdateDashboardInput(v *UpdateDashboard } } - if v.DashboardId == nil || len(*v.DashboardId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DashboardId must not be empty")} - } - if v.DashboardId != nil { - if err := encoder.SetURI("DashboardId").String(*v.DashboardId); err != nil { - return err - } - } - return nil } -func awsRestjson1_serializeOpDocumentUpdateDashboardInput(v *UpdateDashboardInput, value smithyjson.Value) error { +func awsRestjson1_serializeOpDocumentSearchFoldersInput(v *SearchFoldersInput, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.DashboardPublishOptions != nil { - ok := object.Key("DashboardPublishOptions") - if err := awsRestjson1_serializeDocumentDashboardPublishOptions(v.DashboardPublishOptions, ok); err != nil { - return err - } - } - - if v.Definition != nil { - ok := object.Key("Definition") - if err := awsRestjson1_serializeDocumentDashboardVersionDefinition(v.Definition, ok); err != nil { - return err - } - } - - if v.Name != nil { - ok := object.Key("Name") - ok.String(*v.Name) - } - - if v.Parameters != nil { - ok := object.Key("Parameters") - if err := awsRestjson1_serializeDocumentParameters(v.Parameters, ok); err != nil { - return err - } - } - - if v.SourceEntity != nil { - ok := object.Key("SourceEntity") - if err := awsRestjson1_serializeDocumentDashboardSourceEntity(v.SourceEntity, ok); err != nil { + if v.Filters != nil { + ok := object.Key("Filters") + if err := awsRestjson1_serializeDocumentFolderSearchFilterList(v.Filters, ok); err != nil { return err } } - if v.ThemeArn != nil { - ok := object.Key("ThemeArn") - ok.String(*v.ThemeArn) + if v.MaxResults != nil { + ok := object.Key("MaxResults") + ok.Integer(*v.MaxResults) } - if v.VersionDescription != nil { - ok := object.Key("VersionDescription") - ok.String(*v.VersionDescription) + if v.NextToken != nil { + ok := object.Key("NextToken") + ok.String(*v.NextToken) } return nil } -type awsRestjson1_serializeOpUpdateDashboardPermissions struct { +type awsRestjson1_serializeOpSearchGroups struct { } -func (*awsRestjson1_serializeOpUpdateDashboardPermissions) ID() string { +func (*awsRestjson1_serializeOpSearchGroups) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpUpdateDashboardPermissions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpSearchGroups) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -9408,29 +9706,29 @@ func (m *awsRestjson1_serializeOpUpdateDashboardPermissions) HandleSerialize(ctx return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*UpdateDashboardPermissionsInput) + input, ok := in.Parameters.(*SearchGroupsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/dashboards/{DashboardId}/permissions") + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/namespaces/{Namespace}/groups-search") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "PUT" + request.Method = "POST" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsUpdateDashboardPermissionsInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsSearchGroupsInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() - if err := awsRestjson1_serializeOpDocumentUpdateDashboardPermissionsInput(input, jsonEncoder.Value); err != nil { + if err := awsRestjson1_serializeOpDocumentSearchGroupsInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -9445,7 +9743,7 @@ func (m *awsRestjson1_serializeOpUpdateDashboardPermissions) HandleSerialize(ctx return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsUpdateDashboardPermissionsInput(v *UpdateDashboardPermissionsInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsSearchGroupsInput(v *SearchGroupsInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -9459,46 +9757,116 @@ func awsRestjson1_serializeOpHttpBindingsUpdateDashboardPermissionsInput(v *Upda } } - if v.DashboardId == nil || len(*v.DashboardId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DashboardId must not be empty")} + if v.MaxResults != nil { + encoder.SetQuery("max-results").Integer(*v.MaxResults) } - if v.DashboardId != nil { - if err := encoder.SetURI("DashboardId").String(*v.DashboardId); err != nil { + + if v.Namespace == nil || len(*v.Namespace) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member Namespace must not be empty")} + } + if v.Namespace != nil { + if err := encoder.SetURI("Namespace").String(*v.Namespace); err != nil { return err } } + if v.NextToken != nil { + encoder.SetQuery("next-token").String(*v.NextToken) + } + return nil } -func awsRestjson1_serializeOpDocumentUpdateDashboardPermissionsInput(v *UpdateDashboardPermissionsInput, value smithyjson.Value) error { +func awsRestjson1_serializeOpDocumentSearchGroupsInput(v *SearchGroupsInput, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.GrantLinkPermissions != nil { - ok := object.Key("GrantLinkPermissions") - if err := awsRestjson1_serializeDocumentUpdateLinkPermissionList(v.GrantLinkPermissions, ok); err != nil { + if v.Filters != nil { + ok := object.Key("Filters") + if err := awsRestjson1_serializeDocumentGroupSearchFilterList(v.Filters, ok); err != nil { return err } } - if v.GrantPermissions != nil { - ok := object.Key("GrantPermissions") - if err := awsRestjson1_serializeDocumentUpdateResourcePermissionList(v.GrantPermissions, ok); err != nil { - return err - } + return nil +} + +type awsRestjson1_serializeOpTagResource struct { +} + +func (*awsRestjson1_serializeOpTagResource) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpTagResource) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - if v.RevokeLinkPermissions != nil { - ok := object.Key("RevokeLinkPermissions") - if err := awsRestjson1_serializeDocumentUpdateLinkPermissionList(v.RevokeLinkPermissions, ok); err != nil { + input, ok := in.Parameters.(*TagResourceInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/resources/{ResourceArn}/tags") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsTagResourceInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentTagResourceInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsTagResourceInput(v *TagResourceInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.ResourceArn == nil || len(*v.ResourceArn) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} + } + if v.ResourceArn != nil { + if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { return err } } - if v.RevokePermissions != nil { - ok := object.Key("RevokePermissions") - if err := awsRestjson1_serializeDocumentUpdateResourcePermissionList(v.RevokePermissions, ok); err != nil { + return nil +} + +func awsRestjson1_serializeOpDocumentTagResourceInput(v *TagResourceInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Tags != nil { + ok := object.Key("Tags") + if err := awsRestjson1_serializeDocumentTagList(v.Tags, ok); err != nil { return err } } @@ -9506,14 +9874,14 @@ func awsRestjson1_serializeOpDocumentUpdateDashboardPermissionsInput(v *UpdateDa return nil } -type awsRestjson1_serializeOpUpdateDashboardPublishedVersion struct { +type awsRestjson1_serializeOpUntagResource struct { } -func (*awsRestjson1_serializeOpUpdateDashboardPublishedVersion) ID() string { +func (*awsRestjson1_serializeOpUntagResource) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpUpdateDashboardPublishedVersion) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpUntagResource) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -9521,22 +9889,22 @@ func (m *awsRestjson1_serializeOpUpdateDashboardPublishedVersion) HandleSerializ return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*UpdateDashboardPublishedVersionInput) + input, ok := in.Parameters.(*UntagResourceInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/dashboards/{DashboardId}/versions/{VersionNumber}") + opPath, opQuery := httpbinding.SplitURI("/resources/{ResourceArn}/tags") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "PUT" + request.Method = "DELETE" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsUpdateDashboardPublishedVersionInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsUntagResourceInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -9547,49 +9915,37 @@ func (m *awsRestjson1_serializeOpUpdateDashboardPublishedVersion) HandleSerializ return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsUpdateDashboardPublishedVersionInput(v *UpdateDashboardPublishedVersionInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AwsAccountId == nil || len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} - } - if v.AwsAccountId != nil { - if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { - return err - } - } - - if v.DashboardId == nil || len(*v.DashboardId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DashboardId must not be empty")} + if v.ResourceArn == nil || len(*v.ResourceArn) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member ResourceArn must not be empty")} } - if v.DashboardId != nil { - if err := encoder.SetURI("DashboardId").String(*v.DashboardId); err != nil { + if v.ResourceArn != nil { + if err := encoder.SetURI("ResourceArn").String(*v.ResourceArn); err != nil { return err } } - if v.VersionNumber == nil { - return &smithy.SerializationError{Err: fmt.Errorf("input member VersionNumber must not be empty")} - } - if v.VersionNumber != nil { - if err := encoder.SetURI("VersionNumber").Long(*v.VersionNumber); err != nil { - return err + if v.TagKeys != nil { + for i := range v.TagKeys { + encoder.AddQuery("keys").String(v.TagKeys[i]) } } return nil } -type awsRestjson1_serializeOpUpdateDataSet struct { +type awsRestjson1_serializeOpUpdateAccountCustomization struct { } -func (*awsRestjson1_serializeOpUpdateDataSet) ID() string { +func (*awsRestjson1_serializeOpUpdateAccountCustomization) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpUpdateDataSet) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpUpdateAccountCustomization) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -9597,13 +9953,13 @@ func (m *awsRestjson1_serializeOpUpdateDataSet) HandleSerialize(ctx context.Cont return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*UpdateDataSetInput) + input, ok := in.Parameters.(*UpdateAccountCustomizationInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/data-sets/{DataSetId}") + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/customizations") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "PUT" @@ -9612,14 +9968,14 @@ func (m *awsRestjson1_serializeOpUpdateDataSet) HandleSerialize(ctx context.Cont return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsUpdateDataSetInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsUpdateAccountCustomizationInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() - if err := awsRestjson1_serializeOpDocumentUpdateDataSetInput(input, jsonEncoder.Value); err != nil { + if err := awsRestjson1_serializeOpDocumentUpdateAccountCustomizationInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -9634,7 +9990,7 @@ func (m *awsRestjson1_serializeOpUpdateDataSet) HandleSerialize(ctx context.Cont return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsUpdateDataSetInput(v *UpdateDataSetInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsUpdateAccountCustomizationInput(v *UpdateAccountCustomizationInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -9648,84 +10004,20 @@ func awsRestjson1_serializeOpHttpBindingsUpdateDataSetInput(v *UpdateDataSetInpu } } - if v.DataSetId == nil || len(*v.DataSetId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DataSetId must not be empty")} - } - if v.DataSetId != nil { - if err := encoder.SetURI("DataSetId").String(*v.DataSetId); err != nil { - return err - } + if v.Namespace != nil { + encoder.SetQuery("namespace").String(*v.Namespace) } return nil } -func awsRestjson1_serializeOpDocumentUpdateDataSetInput(v *UpdateDataSetInput, value smithyjson.Value) error { +func awsRestjson1_serializeOpDocumentUpdateAccountCustomizationInput(v *UpdateAccountCustomizationInput, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.ColumnGroups != nil { - ok := object.Key("ColumnGroups") - if err := awsRestjson1_serializeDocumentColumnGroupList(v.ColumnGroups, ok); err != nil { - return err - } - } - - if v.ColumnLevelPermissionRules != nil { - ok := object.Key("ColumnLevelPermissionRules") - if err := awsRestjson1_serializeDocumentColumnLevelPermissionRuleList(v.ColumnLevelPermissionRules, ok); err != nil { - return err - } - } - - if v.DataSetUsageConfiguration != nil { - ok := object.Key("DataSetUsageConfiguration") - if err := awsRestjson1_serializeDocumentDataSetUsageConfiguration(v.DataSetUsageConfiguration, ok); err != nil { - return err - } - } - - if v.FieldFolders != nil { - ok := object.Key("FieldFolders") - if err := awsRestjson1_serializeDocumentFieldFolderMap(v.FieldFolders, ok); err != nil { - return err - } - } - - if len(v.ImportMode) > 0 { - ok := object.Key("ImportMode") - ok.String(string(v.ImportMode)) - } - - if v.LogicalTableMap != nil { - ok := object.Key("LogicalTableMap") - if err := awsRestjson1_serializeDocumentLogicalTableMap(v.LogicalTableMap, ok); err != nil { - return err - } - } - - if v.Name != nil { - ok := object.Key("Name") - ok.String(*v.Name) - } - - if v.PhysicalTableMap != nil { - ok := object.Key("PhysicalTableMap") - if err := awsRestjson1_serializeDocumentPhysicalTableMap(v.PhysicalTableMap, ok); err != nil { - return err - } - } - - if v.RowLevelPermissionDataSet != nil { - ok := object.Key("RowLevelPermissionDataSet") - if err := awsRestjson1_serializeDocumentRowLevelPermissionDataSet(v.RowLevelPermissionDataSet, ok); err != nil { - return err - } - } - - if v.RowLevelPermissionTagConfiguration != nil { - ok := object.Key("RowLevelPermissionTagConfiguration") - if err := awsRestjson1_serializeDocumentRowLevelPermissionTagConfiguration(v.RowLevelPermissionTagConfiguration, ok); err != nil { + if v.AccountCustomization != nil { + ok := object.Key("AccountCustomization") + if err := awsRestjson1_serializeDocumentAccountCustomization(v.AccountCustomization, ok); err != nil { return err } } @@ -9733,14 +10025,14 @@ func awsRestjson1_serializeOpDocumentUpdateDataSetInput(v *UpdateDataSetInput, v return nil } -type awsRestjson1_serializeOpUpdateDataSetPermissions struct { +type awsRestjson1_serializeOpUpdateAccountSettings struct { } -func (*awsRestjson1_serializeOpUpdateDataSetPermissions) ID() string { +func (*awsRestjson1_serializeOpUpdateAccountSettings) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpUpdateDataSetPermissions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpUpdateAccountSettings) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -9748,29 +10040,29 @@ func (m *awsRestjson1_serializeOpUpdateDataSetPermissions) HandleSerialize(ctx c return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*UpdateDataSetPermissionsInput) + input, ok := in.Parameters.(*UpdateAccountSettingsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/data-sets/{DataSetId}/permissions") + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/settings") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "POST" + request.Method = "PUT" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsUpdateDataSetPermissionsInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsUpdateAccountSettingsInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() - if err := awsRestjson1_serializeOpDocumentUpdateDataSetPermissionsInput(input, jsonEncoder.Value); err != nil { + if err := awsRestjson1_serializeOpDocumentUpdateAccountSettingsInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -9785,7 +10077,7 @@ func (m *awsRestjson1_serializeOpUpdateDataSetPermissions) HandleSerialize(ctx c return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsUpdateDataSetPermissionsInput(v *UpdateDataSetPermissionsInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsUpdateAccountSettingsInput(v *UpdateAccountSettingsInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -9799,47 +10091,39 @@ func awsRestjson1_serializeOpHttpBindingsUpdateDataSetPermissionsInput(v *Update } } - if v.DataSetId == nil || len(*v.DataSetId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DataSetId must not be empty")} - } - if v.DataSetId != nil { - if err := encoder.SetURI("DataSetId").String(*v.DataSetId); err != nil { - return err - } - } - return nil } -func awsRestjson1_serializeOpDocumentUpdateDataSetPermissionsInput(v *UpdateDataSetPermissionsInput, value smithyjson.Value) error { +func awsRestjson1_serializeOpDocumentUpdateAccountSettingsInput(v *UpdateAccountSettingsInput, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.GrantPermissions != nil { - ok := object.Key("GrantPermissions") - if err := awsRestjson1_serializeDocumentResourcePermissionList(v.GrantPermissions, ok); err != nil { - return err - } + if v.DefaultNamespace != nil { + ok := object.Key("DefaultNamespace") + ok.String(*v.DefaultNamespace) } - if v.RevokePermissions != nil { - ok := object.Key("RevokePermissions") - if err := awsRestjson1_serializeDocumentResourcePermissionList(v.RevokePermissions, ok); err != nil { - return err - } + if v.NotificationEmail != nil { + ok := object.Key("NotificationEmail") + ok.String(*v.NotificationEmail) + } + + if v.TerminationProtectionEnabled { + ok := object.Key("TerminationProtectionEnabled") + ok.Boolean(v.TerminationProtectionEnabled) } return nil } -type awsRestjson1_serializeOpUpdateDataSource struct { +type awsRestjson1_serializeOpUpdateAnalysis struct { } -func (*awsRestjson1_serializeOpUpdateDataSource) ID() string { +func (*awsRestjson1_serializeOpUpdateAnalysis) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpUpdateDataSource) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpUpdateAnalysis) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -9847,13 +10131,13 @@ func (m *awsRestjson1_serializeOpUpdateDataSource) HandleSerialize(ctx context.C return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*UpdateDataSourceInput) + input, ok := in.Parameters.(*UpdateAnalysisInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/data-sources/{DataSourceId}") + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/analyses/{AnalysisId}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "PUT" @@ -9862,14 +10146,14 @@ func (m *awsRestjson1_serializeOpUpdateDataSource) HandleSerialize(ctx context.C return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsUpdateDataSourceInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsUpdateAnalysisInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() - if err := awsRestjson1_serializeOpDocumentUpdateDataSourceInput(input, jsonEncoder.Value); err != nil { + if err := awsRestjson1_serializeOpDocumentUpdateAnalysisInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -9884,25 +10168,25 @@ func (m *awsRestjson1_serializeOpUpdateDataSource) HandleSerialize(ctx context.C return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsUpdateDataSourceInput(v *UpdateDataSourceInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsUpdateAnalysisInput(v *UpdateAnalysisInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AwsAccountId == nil || len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} + if v.AnalysisId == nil || len(*v.AnalysisId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member AnalysisId must not be empty")} } - if v.AwsAccountId != nil { - if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { + if v.AnalysisId != nil { + if err := encoder.SetURI("AnalysisId").String(*v.AnalysisId); err != nil { return err } } - if v.DataSourceId == nil || len(*v.DataSourceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DataSourceId must not be empty")} + if v.AwsAccountId == nil || len(*v.AwsAccountId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} } - if v.DataSourceId != nil { - if err := encoder.SetURI("DataSourceId").String(*v.DataSourceId); err != nil { + if v.AwsAccountId != nil { + if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } } @@ -9910,20 +10194,13 @@ func awsRestjson1_serializeOpHttpBindingsUpdateDataSourceInput(v *UpdateDataSour return nil } -func awsRestjson1_serializeOpDocumentUpdateDataSourceInput(v *UpdateDataSourceInput, value smithyjson.Value) error { +func awsRestjson1_serializeOpDocumentUpdateAnalysisInput(v *UpdateAnalysisInput, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Credentials != nil { - ok := object.Key("Credentials") - if err := awsRestjson1_serializeDocumentDataSourceCredentials(v.Credentials, ok); err != nil { - return err - } - } - - if v.DataSourceParameters != nil { - ok := object.Key("DataSourceParameters") - if err := awsRestjson1_serializeDocumentDataSourceParameters(v.DataSourceParameters, ok); err != nil { + if v.Definition != nil { + ok := object.Key("Definition") + if err := awsRestjson1_serializeDocumentAnalysisDefinition(v.Definition, ok); err != nil { return err } } @@ -9933,31 +10210,36 @@ func awsRestjson1_serializeOpDocumentUpdateDataSourceInput(v *UpdateDataSourceIn ok.String(*v.Name) } - if v.SslProperties != nil { - ok := object.Key("SslProperties") - if err := awsRestjson1_serializeDocumentSslProperties(v.SslProperties, ok); err != nil { + if v.Parameters != nil { + ok := object.Key("Parameters") + if err := awsRestjson1_serializeDocumentParameters(v.Parameters, ok); err != nil { return err } } - if v.VpcConnectionProperties != nil { - ok := object.Key("VpcConnectionProperties") - if err := awsRestjson1_serializeDocumentVpcConnectionProperties(v.VpcConnectionProperties, ok); err != nil { + if v.SourceEntity != nil { + ok := object.Key("SourceEntity") + if err := awsRestjson1_serializeDocumentAnalysisSourceEntity(v.SourceEntity, ok); err != nil { return err } } + if v.ThemeArn != nil { + ok := object.Key("ThemeArn") + ok.String(*v.ThemeArn) + } + return nil } -type awsRestjson1_serializeOpUpdateDataSourcePermissions struct { +type awsRestjson1_serializeOpUpdateAnalysisPermissions struct { } -func (*awsRestjson1_serializeOpUpdateDataSourcePermissions) ID() string { +func (*awsRestjson1_serializeOpUpdateAnalysisPermissions) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpUpdateDataSourcePermissions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpUpdateAnalysisPermissions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -9965,29 +10247,29 @@ func (m *awsRestjson1_serializeOpUpdateDataSourcePermissions) HandleSerialize(ct return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*UpdateDataSourcePermissionsInput) + input, ok := in.Parameters.(*UpdateAnalysisPermissionsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/data-sources/{DataSourceId}/permissions") + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/analyses/{AnalysisId}/permissions") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "POST" + request.Method = "PUT" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsUpdateDataSourcePermissionsInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsUpdateAnalysisPermissionsInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() - if err := awsRestjson1_serializeOpDocumentUpdateDataSourcePermissionsInput(input, jsonEncoder.Value); err != nil { + if err := awsRestjson1_serializeOpDocumentUpdateAnalysisPermissionsInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -10002,25 +10284,25 @@ func (m *awsRestjson1_serializeOpUpdateDataSourcePermissions) HandleSerialize(ct return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsUpdateDataSourcePermissionsInput(v *UpdateDataSourcePermissionsInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsUpdateAnalysisPermissionsInput(v *UpdateAnalysisPermissionsInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AwsAccountId == nil || len(*v.AwsAccountId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} + if v.AnalysisId == nil || len(*v.AnalysisId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member AnalysisId must not be empty")} } - if v.AwsAccountId != nil { - if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { + if v.AnalysisId != nil { + if err := encoder.SetURI("AnalysisId").String(*v.AnalysisId); err != nil { return err } } - if v.DataSourceId == nil || len(*v.DataSourceId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DataSourceId must not be empty")} + if v.AwsAccountId == nil || len(*v.AwsAccountId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} } - if v.DataSourceId != nil { - if err := encoder.SetURI("DataSourceId").String(*v.DataSourceId); err != nil { + if v.AwsAccountId != nil { + if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } } @@ -10028,20 +10310,20 @@ func awsRestjson1_serializeOpHttpBindingsUpdateDataSourcePermissionsInput(v *Upd return nil } -func awsRestjson1_serializeOpDocumentUpdateDataSourcePermissionsInput(v *UpdateDataSourcePermissionsInput, value smithyjson.Value) error { +func awsRestjson1_serializeOpDocumentUpdateAnalysisPermissionsInput(v *UpdateAnalysisPermissionsInput, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.GrantPermissions != nil { ok := object.Key("GrantPermissions") - if err := awsRestjson1_serializeDocumentResourcePermissionList(v.GrantPermissions, ok); err != nil { + if err := awsRestjson1_serializeDocumentUpdateResourcePermissionList(v.GrantPermissions, ok); err != nil { return err } } if v.RevokePermissions != nil { ok := object.Key("RevokePermissions") - if err := awsRestjson1_serializeDocumentResourcePermissionList(v.RevokePermissions, ok); err != nil { + if err := awsRestjson1_serializeDocumentUpdateResourcePermissionList(v.RevokePermissions, ok); err != nil { return err } } @@ -10049,14 +10331,14 @@ func awsRestjson1_serializeOpDocumentUpdateDataSourcePermissionsInput(v *UpdateD return nil } -type awsRestjson1_serializeOpUpdateFolder struct { +type awsRestjson1_serializeOpUpdateDashboard struct { } -func (*awsRestjson1_serializeOpUpdateFolder) ID() string { +func (*awsRestjson1_serializeOpUpdateDashboard) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpUpdateFolder) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpUpdateDashboard) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -10064,13 +10346,13 @@ func (m *awsRestjson1_serializeOpUpdateFolder) HandleSerialize(ctx context.Conte return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*UpdateFolderInput) + input, ok := in.Parameters.(*UpdateDashboardInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/folders/{FolderId}") + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/dashboards/{DashboardId}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "PUT" @@ -10079,14 +10361,14 @@ func (m *awsRestjson1_serializeOpUpdateFolder) HandleSerialize(ctx context.Conte return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsUpdateFolderInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsUpdateDashboardInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() - if err := awsRestjson1_serializeOpDocumentUpdateFolderInput(input, jsonEncoder.Value); err != nil { + if err := awsRestjson1_serializeOpDocumentUpdateDashboardInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -10101,7 +10383,7 @@ func (m *awsRestjson1_serializeOpUpdateFolder) HandleSerialize(ctx context.Conte return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsUpdateFolderInput(v *UpdateFolderInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsUpdateDashboardInput(v *UpdateDashboardInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -10115,11 +10397,11 @@ func awsRestjson1_serializeOpHttpBindingsUpdateFolderInput(v *UpdateFolderInput, } } - if v.FolderId == nil || len(*v.FolderId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member FolderId must not be empty")} + if v.DashboardId == nil || len(*v.DashboardId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member DashboardId must not be empty")} } - if v.FolderId != nil { - if err := encoder.SetURI("FolderId").String(*v.FolderId); err != nil { + if v.DashboardId != nil { + if err := encoder.SetURI("DashboardId").String(*v.DashboardId); err != nil { return err } } @@ -10127,26 +10409,64 @@ func awsRestjson1_serializeOpHttpBindingsUpdateFolderInput(v *UpdateFolderInput, return nil } -func awsRestjson1_serializeOpDocumentUpdateFolderInput(v *UpdateFolderInput, value smithyjson.Value) error { +func awsRestjson1_serializeOpDocumentUpdateDashboardInput(v *UpdateDashboardInput, value smithyjson.Value) error { object := value.Object() defer object.Close() + if v.DashboardPublishOptions != nil { + ok := object.Key("DashboardPublishOptions") + if err := awsRestjson1_serializeDocumentDashboardPublishOptions(v.DashboardPublishOptions, ok); err != nil { + return err + } + } + + if v.Definition != nil { + ok := object.Key("Definition") + if err := awsRestjson1_serializeDocumentDashboardVersionDefinition(v.Definition, ok); err != nil { + return err + } + } + if v.Name != nil { ok := object.Key("Name") ok.String(*v.Name) } + if v.Parameters != nil { + ok := object.Key("Parameters") + if err := awsRestjson1_serializeDocumentParameters(v.Parameters, ok); err != nil { + return err + } + } + + if v.SourceEntity != nil { + ok := object.Key("SourceEntity") + if err := awsRestjson1_serializeDocumentDashboardSourceEntity(v.SourceEntity, ok); err != nil { + return err + } + } + + if v.ThemeArn != nil { + ok := object.Key("ThemeArn") + ok.String(*v.ThemeArn) + } + + if v.VersionDescription != nil { + ok := object.Key("VersionDescription") + ok.String(*v.VersionDescription) + } + return nil } -type awsRestjson1_serializeOpUpdateFolderPermissions struct { +type awsRestjson1_serializeOpUpdateDashboardPermissions struct { } -func (*awsRestjson1_serializeOpUpdateFolderPermissions) ID() string { +func (*awsRestjson1_serializeOpUpdateDashboardPermissions) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpUpdateFolderPermissions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpUpdateDashboardPermissions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -10154,13 +10474,13 @@ func (m *awsRestjson1_serializeOpUpdateFolderPermissions) HandleSerialize(ctx co return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*UpdateFolderPermissionsInput) + input, ok := in.Parameters.(*UpdateDashboardPermissionsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/folders/{FolderId}/permissions") + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/dashboards/{DashboardId}/permissions") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "PUT" @@ -10169,14 +10489,14 @@ func (m *awsRestjson1_serializeOpUpdateFolderPermissions) HandleSerialize(ctx co return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsUpdateFolderPermissionsInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsUpdateDashboardPermissionsInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() - if err := awsRestjson1_serializeOpDocumentUpdateFolderPermissionsInput(input, jsonEncoder.Value); err != nil { + if err := awsRestjson1_serializeOpDocumentUpdateDashboardPermissionsInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -10191,7 +10511,7 @@ func (m *awsRestjson1_serializeOpUpdateFolderPermissions) HandleSerialize(ctx co return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsUpdateFolderPermissionsInput(v *UpdateFolderPermissionsInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsUpdateDashboardPermissionsInput(v *UpdateDashboardPermissionsInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -10205,11 +10525,11 @@ func awsRestjson1_serializeOpHttpBindingsUpdateFolderPermissionsInput(v *UpdateF } } - if v.FolderId == nil || len(*v.FolderId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member FolderId must not be empty")} + if v.DashboardId == nil || len(*v.DashboardId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member DashboardId must not be empty")} } - if v.FolderId != nil { - if err := encoder.SetURI("FolderId").String(*v.FolderId); err != nil { + if v.DashboardId != nil { + if err := encoder.SetURI("DashboardId").String(*v.DashboardId); err != nil { return err } } @@ -10217,20 +10537,34 @@ func awsRestjson1_serializeOpHttpBindingsUpdateFolderPermissionsInput(v *UpdateF return nil } -func awsRestjson1_serializeOpDocumentUpdateFolderPermissionsInput(v *UpdateFolderPermissionsInput, value smithyjson.Value) error { +func awsRestjson1_serializeOpDocumentUpdateDashboardPermissionsInput(v *UpdateDashboardPermissionsInput, value smithyjson.Value) error { object := value.Object() defer object.Close() + if v.GrantLinkPermissions != nil { + ok := object.Key("GrantLinkPermissions") + if err := awsRestjson1_serializeDocumentUpdateLinkPermissionList(v.GrantLinkPermissions, ok); err != nil { + return err + } + } + if v.GrantPermissions != nil { ok := object.Key("GrantPermissions") - if err := awsRestjson1_serializeDocumentResourcePermissionList(v.GrantPermissions, ok); err != nil { + if err := awsRestjson1_serializeDocumentUpdateResourcePermissionList(v.GrantPermissions, ok); err != nil { + return err + } + } + + if v.RevokeLinkPermissions != nil { + ok := object.Key("RevokeLinkPermissions") + if err := awsRestjson1_serializeDocumentUpdateLinkPermissionList(v.RevokeLinkPermissions, ok); err != nil { return err } } if v.RevokePermissions != nil { ok := object.Key("RevokePermissions") - if err := awsRestjson1_serializeDocumentResourcePermissionList(v.RevokePermissions, ok); err != nil { + if err := awsRestjson1_serializeDocumentUpdateResourcePermissionList(v.RevokePermissions, ok); err != nil { return err } } @@ -10238,14 +10572,14 @@ func awsRestjson1_serializeOpDocumentUpdateFolderPermissionsInput(v *UpdateFolde return nil } -type awsRestjson1_serializeOpUpdateGroup struct { +type awsRestjson1_serializeOpUpdateDashboardPublishedVersion struct { } -func (*awsRestjson1_serializeOpUpdateGroup) ID() string { +func (*awsRestjson1_serializeOpUpdateDashboardPublishedVersion) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpUpdateGroup) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpUpdateDashboardPublishedVersion) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -10253,13 +10587,13 @@ func (m *awsRestjson1_serializeOpUpdateGroup) HandleSerialize(ctx context.Contex return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*UpdateGroupInput) + input, ok := in.Parameters.(*UpdateDashboardPublishedVersionInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/namespaces/{Namespace}/groups/{GroupName}") + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/dashboards/{DashboardId}/versions/{VersionNumber}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "PUT" @@ -10268,18 +10602,7 @@ func (m *awsRestjson1_serializeOpUpdateGroup) HandleSerialize(ctx context.Contex return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsUpdateGroupInput(input, restEncoder); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - restEncoder.SetHeader("Content-Type").String("application/json") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsRestjson1_serializeOpDocumentUpdateGroupInput(input, jsonEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsUpdateDashboardPublishedVersionInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -10290,7 +10613,7 @@ func (m *awsRestjson1_serializeOpUpdateGroup) HandleSerialize(ctx context.Contex return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsUpdateGroupInput(v *UpdateGroupInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsUpdateDashboardPublishedVersionInput(v *UpdateDashboardPublishedVersionInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -10304,20 +10627,20 @@ func awsRestjson1_serializeOpHttpBindingsUpdateGroupInput(v *UpdateGroupInput, e } } - if v.GroupName == nil || len(*v.GroupName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member GroupName must not be empty")} + if v.DashboardId == nil || len(*v.DashboardId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member DashboardId must not be empty")} } - if v.GroupName != nil { - if err := encoder.SetURI("GroupName").String(*v.GroupName); err != nil { + if v.DashboardId != nil { + if err := encoder.SetURI("DashboardId").String(*v.DashboardId); err != nil { return err } } - if v.Namespace == nil || len(*v.Namespace) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Namespace must not be empty")} + if v.VersionNumber == nil { + return &smithy.SerializationError{Err: fmt.Errorf("input member VersionNumber must not be empty")} } - if v.Namespace != nil { - if err := encoder.SetURI("Namespace").String(*v.Namespace); err != nil { + if v.VersionNumber != nil { + if err := encoder.SetURI("VersionNumber").Long(*v.VersionNumber); err != nil { return err } } @@ -10325,26 +10648,14 @@ func awsRestjson1_serializeOpHttpBindingsUpdateGroupInput(v *UpdateGroupInput, e return nil } -func awsRestjson1_serializeOpDocumentUpdateGroupInput(v *UpdateGroupInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Description != nil { - ok := object.Key("Description") - ok.String(*v.Description) - } - - return nil -} - -type awsRestjson1_serializeOpUpdateIAMPolicyAssignment struct { +type awsRestjson1_serializeOpUpdateDataSet struct { } -func (*awsRestjson1_serializeOpUpdateIAMPolicyAssignment) ID() string { +func (*awsRestjson1_serializeOpUpdateDataSet) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpUpdateIAMPolicyAssignment) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpUpdateDataSet) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -10352,13 +10663,13 @@ func (m *awsRestjson1_serializeOpUpdateIAMPolicyAssignment) HandleSerialize(ctx return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*UpdateIAMPolicyAssignmentInput) + input, ok := in.Parameters.(*UpdateDataSetInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/namespaces/{Namespace}/iam-policy-assignments/{AssignmentName}") + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/data-sets/{DataSetId}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "PUT" @@ -10367,14 +10678,14 @@ func (m *awsRestjson1_serializeOpUpdateIAMPolicyAssignment) HandleSerialize(ctx return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsUpdateIAMPolicyAssignmentInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsUpdateDataSetInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() - if err := awsRestjson1_serializeOpDocumentUpdateIAMPolicyAssignmentInput(input, jsonEncoder.Value); err != nil { + if err := awsRestjson1_serializeOpDocumentUpdateDataSetInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -10389,20 +10700,11 @@ func (m *awsRestjson1_serializeOpUpdateIAMPolicyAssignment) HandleSerialize(ctx return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsUpdateIAMPolicyAssignmentInput(v *UpdateIAMPolicyAssignmentInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsUpdateDataSetInput(v *UpdateDataSetInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AssignmentName == nil || len(*v.AssignmentName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AssignmentName must not be empty")} - } - if v.AssignmentName != nil { - if err := encoder.SetURI("AssignmentName").String(*v.AssignmentName); err != nil { - return err - } - } - if v.AwsAccountId == nil || len(*v.AwsAccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} } @@ -10412,11 +10714,11 @@ func awsRestjson1_serializeOpHttpBindingsUpdateIAMPolicyAssignmentInput(v *Updat } } - if v.Namespace == nil || len(*v.Namespace) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Namespace must not be empty")} + if v.DataSetId == nil || len(*v.DataSetId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member DataSetId must not be empty")} } - if v.Namespace != nil { - if err := encoder.SetURI("Namespace").String(*v.Namespace); err != nil { + if v.DataSetId != nil { + if err := encoder.SetURI("DataSetId").String(*v.DataSetId); err != nil { return err } } @@ -10424,38 +10726,94 @@ func awsRestjson1_serializeOpHttpBindingsUpdateIAMPolicyAssignmentInput(v *Updat return nil } -func awsRestjson1_serializeOpDocumentUpdateIAMPolicyAssignmentInput(v *UpdateIAMPolicyAssignmentInput, value smithyjson.Value) error { +func awsRestjson1_serializeOpDocumentUpdateDataSetInput(v *UpdateDataSetInput, value smithyjson.Value) error { object := value.Object() defer object.Close() - if len(v.AssignmentStatus) > 0 { - ok := object.Key("AssignmentStatus") - ok.String(string(v.AssignmentStatus)) + if v.ColumnGroups != nil { + ok := object.Key("ColumnGroups") + if err := awsRestjson1_serializeDocumentColumnGroupList(v.ColumnGroups, ok); err != nil { + return err + } } - if v.Identities != nil { - ok := object.Key("Identities") - if err := awsRestjson1_serializeDocumentIdentityMap(v.Identities, ok); err != nil { + if v.ColumnLevelPermissionRules != nil { + ok := object.Key("ColumnLevelPermissionRules") + if err := awsRestjson1_serializeDocumentColumnLevelPermissionRuleList(v.ColumnLevelPermissionRules, ok); err != nil { return err } } - if v.PolicyArn != nil { - ok := object.Key("PolicyArn") - ok.String(*v.PolicyArn) + if v.DatasetParameters != nil { + ok := object.Key("DatasetParameters") + if err := awsRestjson1_serializeDocumentDatasetParameterList(v.DatasetParameters, ok); err != nil { + return err + } + } + + if v.DataSetUsageConfiguration != nil { + ok := object.Key("DataSetUsageConfiguration") + if err := awsRestjson1_serializeDocumentDataSetUsageConfiguration(v.DataSetUsageConfiguration, ok); err != nil { + return err + } + } + + if v.FieldFolders != nil { + ok := object.Key("FieldFolders") + if err := awsRestjson1_serializeDocumentFieldFolderMap(v.FieldFolders, ok); err != nil { + return err + } + } + + if len(v.ImportMode) > 0 { + ok := object.Key("ImportMode") + ok.String(string(v.ImportMode)) + } + + if v.LogicalTableMap != nil { + ok := object.Key("LogicalTableMap") + if err := awsRestjson1_serializeDocumentLogicalTableMap(v.LogicalTableMap, ok); err != nil { + return err + } + } + + if v.Name != nil { + ok := object.Key("Name") + ok.String(*v.Name) + } + + if v.PhysicalTableMap != nil { + ok := object.Key("PhysicalTableMap") + if err := awsRestjson1_serializeDocumentPhysicalTableMap(v.PhysicalTableMap, ok); err != nil { + return err + } + } + + if v.RowLevelPermissionDataSet != nil { + ok := object.Key("RowLevelPermissionDataSet") + if err := awsRestjson1_serializeDocumentRowLevelPermissionDataSet(v.RowLevelPermissionDataSet, ok); err != nil { + return err + } + } + + if v.RowLevelPermissionTagConfiguration != nil { + ok := object.Key("RowLevelPermissionTagConfiguration") + if err := awsRestjson1_serializeDocumentRowLevelPermissionTagConfiguration(v.RowLevelPermissionTagConfiguration, ok); err != nil { + return err + } } return nil } -type awsRestjson1_serializeOpUpdateIpRestriction struct { +type awsRestjson1_serializeOpUpdateDataSetPermissions struct { } -func (*awsRestjson1_serializeOpUpdateIpRestriction) ID() string { +func (*awsRestjson1_serializeOpUpdateDataSetPermissions) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpUpdateIpRestriction) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpUpdateDataSetPermissions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -10463,13 +10821,13 @@ func (m *awsRestjson1_serializeOpUpdateIpRestriction) HandleSerialize(ctx contex return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*UpdateIpRestrictionInput) + input, ok := in.Parameters.(*UpdateDataSetPermissionsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/ip-restriction") + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/data-sets/{DataSetId}/permissions") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "POST" @@ -10478,14 +10836,14 @@ func (m *awsRestjson1_serializeOpUpdateIpRestriction) HandleSerialize(ctx contex return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsUpdateIpRestrictionInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsUpdateDataSetPermissionsInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() - if err := awsRestjson1_serializeOpDocumentUpdateIpRestrictionInput(input, jsonEncoder.Value); err != nil { + if err := awsRestjson1_serializeOpDocumentUpdateDataSetPermissionsInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -10500,7 +10858,7 @@ func (m *awsRestjson1_serializeOpUpdateIpRestriction) HandleSerialize(ctx contex return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsUpdateIpRestrictionInput(v *UpdateIpRestrictionInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsUpdateDataSetPermissionsInput(v *UpdateDataSetPermissionsInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -10514,21 +10872,32 @@ func awsRestjson1_serializeOpHttpBindingsUpdateIpRestrictionInput(v *UpdateIpRes } } + if v.DataSetId == nil || len(*v.DataSetId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member DataSetId must not be empty")} + } + if v.DataSetId != nil { + if err := encoder.SetURI("DataSetId").String(*v.DataSetId); err != nil { + return err + } + } + return nil } -func awsRestjson1_serializeOpDocumentUpdateIpRestrictionInput(v *UpdateIpRestrictionInput, value smithyjson.Value) error { +func awsRestjson1_serializeOpDocumentUpdateDataSetPermissionsInput(v *UpdateDataSetPermissionsInput, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Enabled != nil { - ok := object.Key("Enabled") - ok.Boolean(*v.Enabled) + if v.GrantPermissions != nil { + ok := object.Key("GrantPermissions") + if err := awsRestjson1_serializeDocumentResourcePermissionList(v.GrantPermissions, ok); err != nil { + return err + } } - if v.IpRestrictionRuleMap != nil { - ok := object.Key("IpRestrictionRuleMap") - if err := awsRestjson1_serializeDocumentIpRestrictionRuleMap(v.IpRestrictionRuleMap, ok); err != nil { + if v.RevokePermissions != nil { + ok := object.Key("RevokePermissions") + if err := awsRestjson1_serializeDocumentResourcePermissionList(v.RevokePermissions, ok); err != nil { return err } } @@ -10536,14 +10905,14 @@ func awsRestjson1_serializeOpDocumentUpdateIpRestrictionInput(v *UpdateIpRestric return nil } -type awsRestjson1_serializeOpUpdatePublicSharingSettings struct { +type awsRestjson1_serializeOpUpdateDataSource struct { } -func (*awsRestjson1_serializeOpUpdatePublicSharingSettings) ID() string { +func (*awsRestjson1_serializeOpUpdateDataSource) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpUpdatePublicSharingSettings) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpUpdateDataSource) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -10551,13 +10920,13 @@ func (m *awsRestjson1_serializeOpUpdatePublicSharingSettings) HandleSerialize(ct return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*UpdatePublicSharingSettingsInput) + input, ok := in.Parameters.(*UpdateDataSourceInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/public-sharing-settings") + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/data-sources/{DataSourceId}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "PUT" @@ -10566,14 +10935,14 @@ func (m *awsRestjson1_serializeOpUpdatePublicSharingSettings) HandleSerialize(ct return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsUpdatePublicSharingSettingsInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsUpdateDataSourceInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() - if err := awsRestjson1_serializeOpDocumentUpdatePublicSharingSettingsInput(input, jsonEncoder.Value); err != nil { + if err := awsRestjson1_serializeOpDocumentUpdateDataSourceInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -10588,7 +10957,7 @@ func (m *awsRestjson1_serializeOpUpdatePublicSharingSettings) HandleSerialize(ct return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsUpdatePublicSharingSettingsInput(v *UpdatePublicSharingSettingsInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsUpdateDataSourceInput(v *UpdateDataSourceInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -10602,29 +10971,66 @@ func awsRestjson1_serializeOpHttpBindingsUpdatePublicSharingSettingsInput(v *Upd } } + if v.DataSourceId == nil || len(*v.DataSourceId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member DataSourceId must not be empty")} + } + if v.DataSourceId != nil { + if err := encoder.SetURI("DataSourceId").String(*v.DataSourceId); err != nil { + return err + } + } + return nil } -func awsRestjson1_serializeOpDocumentUpdatePublicSharingSettingsInput(v *UpdatePublicSharingSettingsInput, value smithyjson.Value) error { +func awsRestjson1_serializeOpDocumentUpdateDataSourceInput(v *UpdateDataSourceInput, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.PublicSharingEnabled { - ok := object.Key("PublicSharingEnabled") - ok.Boolean(v.PublicSharingEnabled) + if v.Credentials != nil { + ok := object.Key("Credentials") + if err := awsRestjson1_serializeDocumentDataSourceCredentials(v.Credentials, ok); err != nil { + return err + } + } + + if v.DataSourceParameters != nil { + ok := object.Key("DataSourceParameters") + if err := awsRestjson1_serializeDocumentDataSourceParameters(v.DataSourceParameters, ok); err != nil { + return err + } + } + + if v.Name != nil { + ok := object.Key("Name") + ok.String(*v.Name) + } + + if v.SslProperties != nil { + ok := object.Key("SslProperties") + if err := awsRestjson1_serializeDocumentSslProperties(v.SslProperties, ok); err != nil { + return err + } + } + + if v.VpcConnectionProperties != nil { + ok := object.Key("VpcConnectionProperties") + if err := awsRestjson1_serializeDocumentVpcConnectionProperties(v.VpcConnectionProperties, ok); err != nil { + return err + } } return nil } -type awsRestjson1_serializeOpUpdateRefreshSchedule struct { +type awsRestjson1_serializeOpUpdateDataSourcePermissions struct { } -func (*awsRestjson1_serializeOpUpdateRefreshSchedule) ID() string { +func (*awsRestjson1_serializeOpUpdateDataSourcePermissions) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpUpdateRefreshSchedule) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpUpdateDataSourcePermissions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -10632,29 +11038,29 @@ func (m *awsRestjson1_serializeOpUpdateRefreshSchedule) HandleSerialize(ctx cont return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*UpdateRefreshScheduleInput) + input, ok := in.Parameters.(*UpdateDataSourcePermissionsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/data-sets/{DataSetId}/refresh-schedules") + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/data-sources/{DataSourceId}/permissions") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "PUT" + request.Method = "POST" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsUpdateRefreshScheduleInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsUpdateDataSourcePermissionsInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() - if err := awsRestjson1_serializeOpDocumentUpdateRefreshScheduleInput(input, jsonEncoder.Value); err != nil { + if err := awsRestjson1_serializeOpDocumentUpdateDataSourcePermissionsInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -10669,7 +11075,7 @@ func (m *awsRestjson1_serializeOpUpdateRefreshSchedule) HandleSerialize(ctx cont return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsUpdateRefreshScheduleInput(v *UpdateRefreshScheduleInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsUpdateDataSourcePermissionsInput(v *UpdateDataSourcePermissionsInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -10683,11 +11089,11 @@ func awsRestjson1_serializeOpHttpBindingsUpdateRefreshScheduleInput(v *UpdateRef } } - if v.DataSetId == nil || len(*v.DataSetId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member DataSetId must not be empty")} + if v.DataSourceId == nil || len(*v.DataSourceId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member DataSourceId must not be empty")} } - if v.DataSetId != nil { - if err := encoder.SetURI("DataSetId").String(*v.DataSetId); err != nil { + if v.DataSourceId != nil { + if err := encoder.SetURI("DataSourceId").String(*v.DataSourceId); err != nil { return err } } @@ -10695,13 +11101,20 @@ func awsRestjson1_serializeOpHttpBindingsUpdateRefreshScheduleInput(v *UpdateRef return nil } -func awsRestjson1_serializeOpDocumentUpdateRefreshScheduleInput(v *UpdateRefreshScheduleInput, value smithyjson.Value) error { +func awsRestjson1_serializeOpDocumentUpdateDataSourcePermissionsInput(v *UpdateDataSourcePermissionsInput, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Schedule != nil { - ok := object.Key("Schedule") - if err := awsRestjson1_serializeDocumentRefreshSchedule(v.Schedule, ok); err != nil { + if v.GrantPermissions != nil { + ok := object.Key("GrantPermissions") + if err := awsRestjson1_serializeDocumentResourcePermissionList(v.GrantPermissions, ok); err != nil { + return err + } + } + + if v.RevokePermissions != nil { + ok := object.Key("RevokePermissions") + if err := awsRestjson1_serializeDocumentResourcePermissionList(v.RevokePermissions, ok); err != nil { return err } } @@ -10709,14 +11122,14 @@ func awsRestjson1_serializeOpDocumentUpdateRefreshScheduleInput(v *UpdateRefresh return nil } -type awsRestjson1_serializeOpUpdateTemplate struct { +type awsRestjson1_serializeOpUpdateFolder struct { } -func (*awsRestjson1_serializeOpUpdateTemplate) ID() string { +func (*awsRestjson1_serializeOpUpdateFolder) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpUpdateTemplate) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpUpdateFolder) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -10724,13 +11137,13 @@ func (m *awsRestjson1_serializeOpUpdateTemplate) HandleSerialize(ctx context.Con return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*UpdateTemplateInput) + input, ok := in.Parameters.(*UpdateFolderInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/templates/{TemplateId}") + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/folders/{FolderId}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "PUT" @@ -10739,14 +11152,14 @@ func (m *awsRestjson1_serializeOpUpdateTemplate) HandleSerialize(ctx context.Con return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsUpdateTemplateInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsUpdateFolderInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() - if err := awsRestjson1_serializeOpDocumentUpdateTemplateInput(input, jsonEncoder.Value); err != nil { + if err := awsRestjson1_serializeOpDocumentUpdateFolderInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -10761,7 +11174,7 @@ func (m *awsRestjson1_serializeOpUpdateTemplate) HandleSerialize(ctx context.Con return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsUpdateTemplateInput(v *UpdateTemplateInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsUpdateFolderInput(v *UpdateFolderInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -10775,11 +11188,11 @@ func awsRestjson1_serializeOpHttpBindingsUpdateTemplateInput(v *UpdateTemplateIn } } - if v.TemplateId == nil || len(*v.TemplateId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member TemplateId must not be empty")} + if v.FolderId == nil || len(*v.FolderId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member FolderId must not be empty")} } - if v.TemplateId != nil { - if err := encoder.SetURI("TemplateId").String(*v.TemplateId); err != nil { + if v.FolderId != nil { + if err := encoder.SetURI("FolderId").String(*v.FolderId); err != nil { return err } } @@ -10787,45 +11200,26 @@ func awsRestjson1_serializeOpHttpBindingsUpdateTemplateInput(v *UpdateTemplateIn return nil } -func awsRestjson1_serializeOpDocumentUpdateTemplateInput(v *UpdateTemplateInput, value smithyjson.Value) error { +func awsRestjson1_serializeOpDocumentUpdateFolderInput(v *UpdateFolderInput, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Definition != nil { - ok := object.Key("Definition") - if err := awsRestjson1_serializeDocumentTemplateVersionDefinition(v.Definition, ok); err != nil { - return err - } - } - if v.Name != nil { ok := object.Key("Name") ok.String(*v.Name) } - if v.SourceEntity != nil { - ok := object.Key("SourceEntity") - if err := awsRestjson1_serializeDocumentTemplateSourceEntity(v.SourceEntity, ok); err != nil { - return err - } - } - - if v.VersionDescription != nil { - ok := object.Key("VersionDescription") - ok.String(*v.VersionDescription) - } - return nil } -type awsRestjson1_serializeOpUpdateTemplateAlias struct { +type awsRestjson1_serializeOpUpdateFolderPermissions struct { } -func (*awsRestjson1_serializeOpUpdateTemplateAlias) ID() string { +func (*awsRestjson1_serializeOpUpdateFolderPermissions) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpUpdateTemplateAlias) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpUpdateFolderPermissions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -10833,13 +11227,13 @@ func (m *awsRestjson1_serializeOpUpdateTemplateAlias) HandleSerialize(ctx contex return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*UpdateTemplateAliasInput) + input, ok := in.Parameters.(*UpdateFolderPermissionsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/templates/{TemplateId}/aliases/{AliasName}") + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/folders/{FolderId}/permissions") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "PUT" @@ -10848,14 +11242,14 @@ func (m *awsRestjson1_serializeOpUpdateTemplateAlias) HandleSerialize(ctx contex return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsUpdateTemplateAliasInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsUpdateFolderPermissionsInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() - if err := awsRestjson1_serializeOpDocumentUpdateTemplateAliasInput(input, jsonEncoder.Value); err != nil { + if err := awsRestjson1_serializeOpDocumentUpdateFolderPermissionsInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -10870,20 +11264,11 @@ func (m *awsRestjson1_serializeOpUpdateTemplateAlias) HandleSerialize(ctx contex return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsUpdateTemplateAliasInput(v *UpdateTemplateAliasInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsUpdateFolderPermissionsInput(v *UpdateFolderPermissionsInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AliasName == nil || len(*v.AliasName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AliasName must not be empty")} - } - if v.AliasName != nil { - if err := encoder.SetURI("AliasName").String(*v.AliasName); err != nil { - return err - } - } - if v.AwsAccountId == nil || len(*v.AwsAccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} } @@ -10893,11 +11278,11 @@ func awsRestjson1_serializeOpHttpBindingsUpdateTemplateAliasInput(v *UpdateTempl } } - if v.TemplateId == nil || len(*v.TemplateId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member TemplateId must not be empty")} + if v.FolderId == nil || len(*v.FolderId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member FolderId must not be empty")} } - if v.TemplateId != nil { - if err := encoder.SetURI("TemplateId").String(*v.TemplateId); err != nil { + if v.FolderId != nil { + if err := encoder.SetURI("FolderId").String(*v.FolderId); err != nil { return err } } @@ -10905,26 +11290,35 @@ func awsRestjson1_serializeOpHttpBindingsUpdateTemplateAliasInput(v *UpdateTempl return nil } -func awsRestjson1_serializeOpDocumentUpdateTemplateAliasInput(v *UpdateTemplateAliasInput, value smithyjson.Value) error { +func awsRestjson1_serializeOpDocumentUpdateFolderPermissionsInput(v *UpdateFolderPermissionsInput, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.TemplateVersionNumber != nil { - ok := object.Key("TemplateVersionNumber") - ok.Long(*v.TemplateVersionNumber) + if v.GrantPermissions != nil { + ok := object.Key("GrantPermissions") + if err := awsRestjson1_serializeDocumentResourcePermissionList(v.GrantPermissions, ok); err != nil { + return err + } + } + + if v.RevokePermissions != nil { + ok := object.Key("RevokePermissions") + if err := awsRestjson1_serializeDocumentResourcePermissionList(v.RevokePermissions, ok); err != nil { + return err + } } return nil } -type awsRestjson1_serializeOpUpdateTemplatePermissions struct { +type awsRestjson1_serializeOpUpdateGroup struct { } -func (*awsRestjson1_serializeOpUpdateTemplatePermissions) ID() string { +func (*awsRestjson1_serializeOpUpdateGroup) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpUpdateTemplatePermissions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpUpdateGroup) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -10932,13 +11326,13 @@ func (m *awsRestjson1_serializeOpUpdateTemplatePermissions) HandleSerialize(ctx return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*UpdateTemplatePermissionsInput) + input, ok := in.Parameters.(*UpdateGroupInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/templates/{TemplateId}/permissions") + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/namespaces/{Namespace}/groups/{GroupName}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "PUT" @@ -10947,14 +11341,14 @@ func (m *awsRestjson1_serializeOpUpdateTemplatePermissions) HandleSerialize(ctx return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsUpdateTemplatePermissionsInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsUpdateGroupInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() - if err := awsRestjson1_serializeOpDocumentUpdateTemplatePermissionsInput(input, jsonEncoder.Value); err != nil { + if err := awsRestjson1_serializeOpDocumentUpdateGroupInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -10969,7 +11363,7 @@ func (m *awsRestjson1_serializeOpUpdateTemplatePermissions) HandleSerialize(ctx return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsUpdateTemplatePermissionsInput(v *UpdateTemplatePermissionsInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsUpdateGroupInput(v *UpdateGroupInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -10983,11 +11377,20 @@ func awsRestjson1_serializeOpHttpBindingsUpdateTemplatePermissionsInput(v *Updat } } - if v.TemplateId == nil || len(*v.TemplateId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member TemplateId must not be empty")} + if v.GroupName == nil || len(*v.GroupName) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member GroupName must not be empty")} } - if v.TemplateId != nil { - if err := encoder.SetURI("TemplateId").String(*v.TemplateId); err != nil { + if v.GroupName != nil { + if err := encoder.SetURI("GroupName").String(*v.GroupName); err != nil { + return err + } + } + + if v.Namespace == nil || len(*v.Namespace) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member Namespace must not be empty")} + } + if v.Namespace != nil { + if err := encoder.SetURI("Namespace").String(*v.Namespace); err != nil { return err } } @@ -10995,35 +11398,26 @@ func awsRestjson1_serializeOpHttpBindingsUpdateTemplatePermissionsInput(v *Updat return nil } -func awsRestjson1_serializeOpDocumentUpdateTemplatePermissionsInput(v *UpdateTemplatePermissionsInput, value smithyjson.Value) error { +func awsRestjson1_serializeOpDocumentUpdateGroupInput(v *UpdateGroupInput, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.GrantPermissions != nil { - ok := object.Key("GrantPermissions") - if err := awsRestjson1_serializeDocumentUpdateResourcePermissionList(v.GrantPermissions, ok); err != nil { - return err - } - } - - if v.RevokePermissions != nil { - ok := object.Key("RevokePermissions") - if err := awsRestjson1_serializeDocumentUpdateResourcePermissionList(v.RevokePermissions, ok); err != nil { - return err - } + if v.Description != nil { + ok := object.Key("Description") + ok.String(*v.Description) } return nil } -type awsRestjson1_serializeOpUpdateTheme struct { +type awsRestjson1_serializeOpUpdateIAMPolicyAssignment struct { } -func (*awsRestjson1_serializeOpUpdateTheme) ID() string { +func (*awsRestjson1_serializeOpUpdateIAMPolicyAssignment) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpUpdateTheme) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpUpdateIAMPolicyAssignment) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -11031,13 +11425,13 @@ func (m *awsRestjson1_serializeOpUpdateTheme) HandleSerialize(ctx context.Contex return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*UpdateThemeInput) + input, ok := in.Parameters.(*UpdateIAMPolicyAssignmentInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/themes/{ThemeId}") + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/namespaces/{Namespace}/iam-policy-assignments/{AssignmentName}") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "PUT" @@ -11046,14 +11440,14 @@ func (m *awsRestjson1_serializeOpUpdateTheme) HandleSerialize(ctx context.Contex return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsUpdateThemeInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsUpdateIAMPolicyAssignmentInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() - if err := awsRestjson1_serializeOpDocumentUpdateThemeInput(input, jsonEncoder.Value); err != nil { + if err := awsRestjson1_serializeOpDocumentUpdateIAMPolicyAssignmentInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -11068,11 +11462,20 @@ func (m *awsRestjson1_serializeOpUpdateTheme) HandleSerialize(ctx context.Contex return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsUpdateThemeInput(v *UpdateThemeInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsUpdateIAMPolicyAssignmentInput(v *UpdateIAMPolicyAssignmentInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } + if v.AssignmentName == nil || len(*v.AssignmentName) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member AssignmentName must not be empty")} + } + if v.AssignmentName != nil { + if err := encoder.SetURI("AssignmentName").String(*v.AssignmentName); err != nil { + return err + } + } + if v.AwsAccountId == nil || len(*v.AwsAccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} } @@ -11082,11 +11485,11 @@ func awsRestjson1_serializeOpHttpBindingsUpdateThemeInput(v *UpdateThemeInput, e } } - if v.ThemeId == nil || len(*v.ThemeId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ThemeId must not be empty")} + if v.Namespace == nil || len(*v.Namespace) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member Namespace must not be empty")} } - if v.ThemeId != nil { - if err := encoder.SetURI("ThemeId").String(*v.ThemeId); err != nil { + if v.Namespace != nil { + if err := encoder.SetURI("Namespace").String(*v.Namespace); err != nil { return err } } @@ -11094,43 +11497,38 @@ func awsRestjson1_serializeOpHttpBindingsUpdateThemeInput(v *UpdateThemeInput, e return nil } -func awsRestjson1_serializeOpDocumentUpdateThemeInput(v *UpdateThemeInput, value smithyjson.Value) error { +func awsRestjson1_serializeOpDocumentUpdateIAMPolicyAssignmentInput(v *UpdateIAMPolicyAssignmentInput, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.BaseThemeId != nil { - ok := object.Key("BaseThemeId") - ok.String(*v.BaseThemeId) + if len(v.AssignmentStatus) > 0 { + ok := object.Key("AssignmentStatus") + ok.String(string(v.AssignmentStatus)) } - if v.Configuration != nil { - ok := object.Key("Configuration") - if err := awsRestjson1_serializeDocumentThemeConfiguration(v.Configuration, ok); err != nil { + if v.Identities != nil { + ok := object.Key("Identities") + if err := awsRestjson1_serializeDocumentIdentityMap(v.Identities, ok); err != nil { return err } } - if v.Name != nil { - ok := object.Key("Name") - ok.String(*v.Name) - } - - if v.VersionDescription != nil { - ok := object.Key("VersionDescription") - ok.String(*v.VersionDescription) + if v.PolicyArn != nil { + ok := object.Key("PolicyArn") + ok.String(*v.PolicyArn) } return nil } -type awsRestjson1_serializeOpUpdateThemeAlias struct { +type awsRestjson1_serializeOpUpdateIpRestriction struct { } -func (*awsRestjson1_serializeOpUpdateThemeAlias) ID() string { +func (*awsRestjson1_serializeOpUpdateIpRestriction) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpUpdateThemeAlias) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpUpdateIpRestriction) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -11138,29 +11536,29 @@ func (m *awsRestjson1_serializeOpUpdateThemeAlias) HandleSerialize(ctx context.C return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*UpdateThemeAliasInput) + input, ok := in.Parameters.(*UpdateIpRestrictionInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/themes/{ThemeId}/aliases/{AliasName}") + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/ip-restriction") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) - request.Method = "PUT" + request.Method = "POST" restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsUpdateThemeAliasInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsUpdateIpRestrictionInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() - if err := awsRestjson1_serializeOpDocumentUpdateThemeAliasInput(input, jsonEncoder.Value); err != nil { + if err := awsRestjson1_serializeOpDocumentUpdateIpRestrictionInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -11175,20 +11573,11 @@ func (m *awsRestjson1_serializeOpUpdateThemeAlias) HandleSerialize(ctx context.C return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsUpdateThemeAliasInput(v *UpdateThemeAliasInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsUpdateIpRestrictionInput(v *UpdateIpRestrictionInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.AliasName == nil || len(*v.AliasName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member AliasName must not be empty")} - } - if v.AliasName != nil { - if err := encoder.SetURI("AliasName").String(*v.AliasName); err != nil { - return err - } - } - if v.AwsAccountId == nil || len(*v.AwsAccountId) == 0 { return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} } @@ -11198,38 +11587,36 @@ func awsRestjson1_serializeOpHttpBindingsUpdateThemeAliasInput(v *UpdateThemeAli } } - if v.ThemeId == nil || len(*v.ThemeId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ThemeId must not be empty")} - } - if v.ThemeId != nil { - if err := encoder.SetURI("ThemeId").String(*v.ThemeId); err != nil { - return err - } - } - return nil } -func awsRestjson1_serializeOpDocumentUpdateThemeAliasInput(v *UpdateThemeAliasInput, value smithyjson.Value) error { +func awsRestjson1_serializeOpDocumentUpdateIpRestrictionInput(v *UpdateIpRestrictionInput, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.ThemeVersionNumber != nil { - ok := object.Key("ThemeVersionNumber") - ok.Long(*v.ThemeVersionNumber) + if v.Enabled != nil { + ok := object.Key("Enabled") + ok.Boolean(*v.Enabled) + } + + if v.IpRestrictionRuleMap != nil { + ok := object.Key("IpRestrictionRuleMap") + if err := awsRestjson1_serializeDocumentIpRestrictionRuleMap(v.IpRestrictionRuleMap, ok); err != nil { + return err + } } return nil } -type awsRestjson1_serializeOpUpdateThemePermissions struct { +type awsRestjson1_serializeOpUpdatePublicSharingSettings struct { } -func (*awsRestjson1_serializeOpUpdateThemePermissions) ID() string { +func (*awsRestjson1_serializeOpUpdatePublicSharingSettings) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpUpdateThemePermissions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpUpdatePublicSharingSettings) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -11237,13 +11624,13 @@ func (m *awsRestjson1_serializeOpUpdateThemePermissions) HandleSerialize(ctx con return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*UpdateThemePermissionsInput) + input, ok := in.Parameters.(*UpdatePublicSharingSettingsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/themes/{ThemeId}/permissions") + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/public-sharing-settings") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "PUT" @@ -11252,14 +11639,14 @@ func (m *awsRestjson1_serializeOpUpdateThemePermissions) HandleSerialize(ctx con return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsUpdateThemePermissionsInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsUpdatePublicSharingSettingsInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() - if err := awsRestjson1_serializeOpDocumentUpdateThemePermissionsInput(input, jsonEncoder.Value); err != nil { + if err := awsRestjson1_serializeOpDocumentUpdatePublicSharingSettingsInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -11274,7 +11661,7 @@ func (m *awsRestjson1_serializeOpUpdateThemePermissions) HandleSerialize(ctx con return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsUpdateThemePermissionsInput(v *UpdateThemePermissionsInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsUpdatePublicSharingSettingsInput(v *UpdatePublicSharingSettingsInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -11288,47 +11675,29 @@ func awsRestjson1_serializeOpHttpBindingsUpdateThemePermissionsInput(v *UpdateTh } } - if v.ThemeId == nil || len(*v.ThemeId) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member ThemeId must not be empty")} - } - if v.ThemeId != nil { - if err := encoder.SetURI("ThemeId").String(*v.ThemeId); err != nil { - return err - } - } - return nil } -func awsRestjson1_serializeOpDocumentUpdateThemePermissionsInput(v *UpdateThemePermissionsInput, value smithyjson.Value) error { +func awsRestjson1_serializeOpDocumentUpdatePublicSharingSettingsInput(v *UpdatePublicSharingSettingsInput, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.GrantPermissions != nil { - ok := object.Key("GrantPermissions") - if err := awsRestjson1_serializeDocumentUpdateResourcePermissionList(v.GrantPermissions, ok); err != nil { - return err - } - } - - if v.RevokePermissions != nil { - ok := object.Key("RevokePermissions") - if err := awsRestjson1_serializeDocumentUpdateResourcePermissionList(v.RevokePermissions, ok); err != nil { - return err - } + if v.PublicSharingEnabled { + ok := object.Key("PublicSharingEnabled") + ok.Boolean(v.PublicSharingEnabled) } return nil } -type awsRestjson1_serializeOpUpdateUser struct { +type awsRestjson1_serializeOpUpdateRefreshSchedule struct { } -func (*awsRestjson1_serializeOpUpdateUser) ID() string { +func (*awsRestjson1_serializeOpUpdateRefreshSchedule) ID() string { return "OperationSerializer" } -func (m *awsRestjson1_serializeOpUpdateUser) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsRestjson1_serializeOpUpdateRefreshSchedule) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -11336,13 +11705,13 @@ func (m *awsRestjson1_serializeOpUpdateUser) HandleSerialize(ctx context.Context return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*UpdateUserInput) + input, ok := in.Parameters.(*UpdateRefreshScheduleInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/namespaces/{Namespace}/users/{UserName}") + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/data-sets/{DataSetId}/refresh-schedules") request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) request.Method = "PUT" @@ -11351,14 +11720,14 @@ func (m *awsRestjson1_serializeOpUpdateUser) HandleSerialize(ctx context.Context return out, metadata, &smithy.SerializationError{Err: err} } - if err := awsRestjson1_serializeOpHttpBindingsUpdateUserInput(input, restEncoder); err != nil { + if err := awsRestjson1_serializeOpHttpBindingsUpdateRefreshScheduleInput(input, restEncoder); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } restEncoder.SetHeader("Content-Type").String("application/json") jsonEncoder := smithyjson.NewEncoder() - if err := awsRestjson1_serializeOpDocumentUpdateUserInput(input, jsonEncoder.Value); err != nil { + if err := awsRestjson1_serializeOpDocumentUpdateRefreshScheduleInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -11373,7 +11742,7 @@ func (m *awsRestjson1_serializeOpUpdateUser) HandleSerialize(ctx context.Context return next.HandleSerialize(ctx, in) } -func awsRestjson1_serializeOpHttpBindingsUpdateUserInput(v *UpdateUserInput, encoder *httpbinding.Encoder) error { +func awsRestjson1_serializeOpHttpBindingsUpdateRefreshScheduleInput(v *UpdateRefreshScheduleInput, encoder *httpbinding.Encoder) error { if v == nil { return fmt.Errorf("unsupported serialization of nil %T", v) } @@ -11387,20 +11756,11 @@ func awsRestjson1_serializeOpHttpBindingsUpdateUserInput(v *UpdateUserInput, enc } } - if v.Namespace == nil || len(*v.Namespace) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member Namespace must not be empty")} - } - if v.Namespace != nil { - if err := encoder.SetURI("Namespace").String(*v.Namespace); err != nil { - return err - } - } - - if v.UserName == nil || len(*v.UserName) == 0 { - return &smithy.SerializationError{Err: fmt.Errorf("input member UserName must not be empty")} + if v.DataSetId == nil || len(*v.DataSetId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member DataSetId must not be empty")} } - if v.UserName != nil { - if err := encoder.SetURI("UserName").String(*v.UserName); err != nil { + if v.DataSetId != nil { + if err := encoder.SetURI("DataSetId").String(*v.DataSetId); err != nil { return err } } @@ -11408,105 +11768,91 @@ func awsRestjson1_serializeOpHttpBindingsUpdateUserInput(v *UpdateUserInput, enc return nil } -func awsRestjson1_serializeOpDocumentUpdateUserInput(v *UpdateUserInput, value smithyjson.Value) error { +func awsRestjson1_serializeOpDocumentUpdateRefreshScheduleInput(v *UpdateRefreshScheduleInput, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.CustomFederationProviderUrl != nil { - ok := object.Key("CustomFederationProviderUrl") - ok.String(*v.CustomFederationProviderUrl) + if v.Schedule != nil { + ok := object.Key("Schedule") + if err := awsRestjson1_serializeDocumentRefreshSchedule(v.Schedule, ok); err != nil { + return err + } } - if v.CustomPermissionsName != nil { - ok := object.Key("CustomPermissionsName") - ok.String(*v.CustomPermissionsName) - } + return nil +} - if v.Email != nil { - ok := object.Key("Email") - ok.String(*v.Email) - } +type awsRestjson1_serializeOpUpdateTemplate struct { +} - if v.ExternalLoginFederationProviderType != nil { - ok := object.Key("ExternalLoginFederationProviderType") - ok.String(*v.ExternalLoginFederationProviderType) +func (*awsRestjson1_serializeOpUpdateTemplate) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpUpdateTemplate) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - if v.ExternalLoginId != nil { - ok := object.Key("ExternalLoginId") - ok.String(*v.ExternalLoginId) + input, ok := in.Parameters.(*UpdateTemplateInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - if len(v.Role) > 0 { - ok := object.Key("Role") - ok.String(string(v.Role)) + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/templates/{TemplateId}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "PUT" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} } - if v.UnapplyCustomPermissions { - ok := object.Key("UnapplyCustomPermissions") - ok.Boolean(v.UnapplyCustomPermissions) + if err := awsRestjson1_serializeOpHttpBindingsUpdateTemplateInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} } - return nil -} + restEncoder.SetHeader("Content-Type").String("application/json") -func awsRestjson1_serializeDocumentAccountCustomization(v *types.AccountCustomization, value smithyjson.Value) error { - object := value.Object() - defer object.Close() + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentUpdateTemplateInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } - if v.DefaultEmailCustomizationTemplate != nil { - ok := object.Key("DefaultEmailCustomizationTemplate") - ok.String(*v.DefaultEmailCustomizationTemplate) + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} } - if v.DefaultTheme != nil { - ok := object.Key("DefaultTheme") - ok.String(*v.DefaultTheme) + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} } + in.Request = request - return nil + return next.HandleSerialize(ctx, in) } - -func awsRestjson1_serializeDocumentActionList(v []string, value smithyjson.Value) error { - array := value.Array() - defer array.Close() - - for i := range v { - av := array.Value() - av.String(v[i]) +func awsRestjson1_serializeOpHttpBindingsUpdateTemplateInput(v *UpdateTemplateInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) } - return nil -} - -func awsRestjson1_serializeDocumentAdHocFilteringOption(v *types.AdHocFilteringOption, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - if len(v.AvailabilityStatus) > 0 { - ok := object.Key("AvailabilityStatus") - ok.String(string(v.AvailabilityStatus)) + if v.AwsAccountId == nil || len(*v.AwsAccountId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} } - - return nil -} - -func awsRestjson1_serializeDocumentAggregationFunction(v *types.AggregationFunction, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if len(v.CategoricalAggregationFunction) > 0 { - ok := object.Key("CategoricalAggregationFunction") - ok.String(string(v.CategoricalAggregationFunction)) + if v.AwsAccountId != nil { + if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { + return err + } } - if len(v.DateAggregationFunction) > 0 { - ok := object.Key("DateAggregationFunction") - ok.String(string(v.DateAggregationFunction)) + if v.TemplateId == nil || len(*v.TemplateId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member TemplateId must not be empty")} } - - if v.NumericalAggregationFunction != nil { - ok := object.Key("NumericalAggregationFunction") - if err := awsRestjson1_serializeDocumentNumericalAggregationFunction(v.NumericalAggregationFunction, ok); err != nil { + if v.TemplateId != nil { + if err := encoder.SetURI("TemplateId").String(*v.TemplateId); err != nil { return err } } @@ -11514,132 +11860,117 @@ func awsRestjson1_serializeDocumentAggregationFunction(v *types.AggregationFunct return nil } -func awsRestjson1_serializeDocumentAggregationSortConfiguration(v *types.AggregationSortConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeOpDocumentUpdateTemplateInput(v *UpdateTemplateInput, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.AggregationFunction != nil { - ok := object.Key("AggregationFunction") - if err := awsRestjson1_serializeDocumentAggregationFunction(v.AggregationFunction, ok); err != nil { + if v.Definition != nil { + ok := object.Key("Definition") + if err := awsRestjson1_serializeDocumentTemplateVersionDefinition(v.Definition, ok); err != nil { return err } } - if v.Column != nil { - ok := object.Key("Column") - if err := awsRestjson1_serializeDocumentColumnIdentifier(v.Column, ok); err != nil { + if v.Name != nil { + ok := object.Key("Name") + ok.String(*v.Name) + } + + if v.SourceEntity != nil { + ok := object.Key("SourceEntity") + if err := awsRestjson1_serializeDocumentTemplateSourceEntity(v.SourceEntity, ok); err != nil { return err } } - if len(v.SortDirection) > 0 { - ok := object.Key("SortDirection") - ok.String(string(v.SortDirection)) + if v.VersionDescription != nil { + ok := object.Key("VersionDescription") + ok.String(*v.VersionDescription) } return nil } -func awsRestjson1_serializeDocumentAggregationSortConfigurationList(v []types.AggregationSortConfiguration, value smithyjson.Value) error { - array := value.Array() - defer array.Close() - - for i := range v { - av := array.Value() - if err := awsRestjson1_serializeDocumentAggregationSortConfiguration(&v[i], av); err != nil { - return err - } - } - return nil +type awsRestjson1_serializeOpUpdateTemplateAlias struct { } -func awsRestjson1_serializeDocumentAmazonElasticsearchParameters(v *types.AmazonElasticsearchParameters, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Domain != nil { - ok := object.Key("Domain") - ok.String(*v.Domain) - } - - return nil +func (*awsRestjson1_serializeOpUpdateTemplateAlias) ID() string { + return "OperationSerializer" } -func awsRestjson1_serializeDocumentAmazonOpenSearchParameters(v *types.AmazonOpenSearchParameters, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Domain != nil { - ok := object.Key("Domain") - ok.String(*v.Domain) +func (m *awsRestjson1_serializeOpUpdateTemplateAlias) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - return nil -} - -func awsRestjson1_serializeDocumentAnalysisDefaults(v *types.AnalysisDefaults, value smithyjson.Value) error { - object := value.Object() - defer object.Close() + input, ok := in.Parameters.(*UpdateTemplateAliasInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } - if v.DefaultNewSheetConfiguration != nil { - ok := object.Key("DefaultNewSheetConfiguration") - if err := awsRestjson1_serializeDocumentDefaultNewSheetConfiguration(v.DefaultNewSheetConfiguration, ok); err != nil { - return err - } + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/templates/{TemplateId}/aliases/{AliasName}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "PUT" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} } - return nil -} + if err := awsRestjson1_serializeOpHttpBindingsUpdateTemplateAliasInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } -func awsRestjson1_serializeDocumentAnalysisDefinition(v *types.AnalysisDefinition, value smithyjson.Value) error { - object := value.Object() - defer object.Close() + restEncoder.SetHeader("Content-Type").String("application/json") - if v.AnalysisDefaults != nil { - ok := object.Key("AnalysisDefaults") - if err := awsRestjson1_serializeDocumentAnalysisDefaults(v.AnalysisDefaults, ok); err != nil { - return err - } + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentUpdateTemplateAliasInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} } - if v.CalculatedFields != nil { - ok := object.Key("CalculatedFields") - if err := awsRestjson1_serializeDocumentCalculatedFields(v.CalculatedFields, ok); err != nil { - return err - } + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} } - if v.ColumnConfigurations != nil { - ok := object.Key("ColumnConfigurations") - if err := awsRestjson1_serializeDocumentColumnConfigurationList(v.ColumnConfigurations, ok); err != nil { - return err - } + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} } + in.Request = request - if v.DataSetIdentifierDeclarations != nil { - ok := object.Key("DataSetIdentifierDeclarations") - if err := awsRestjson1_serializeDocumentDataSetIdentifierDeclarationList(v.DataSetIdentifierDeclarations, ok); err != nil { - return err - } + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsUpdateTemplateAliasInput(v *UpdateTemplateAliasInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.FilterGroups != nil { - ok := object.Key("FilterGroups") - if err := awsRestjson1_serializeDocumentFilterGroupList(v.FilterGroups, ok); err != nil { + if v.AliasName == nil || len(*v.AliasName) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member AliasName must not be empty")} + } + if v.AliasName != nil { + if err := encoder.SetURI("AliasName").String(*v.AliasName); err != nil { return err } } - if v.ParameterDeclarations != nil { - ok := object.Key("ParameterDeclarations") - if err := awsRestjson1_serializeDocumentParameterDeclarationList(v.ParameterDeclarations, ok); err != nil { + if v.AwsAccountId == nil || len(*v.AwsAccountId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} + } + if v.AwsAccountId != nil { + if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { return err } } - if v.Sheets != nil { - ok := object.Key("Sheets") - if err := awsRestjson1_serializeDocumentSheetDefinitionList(v.Sheets, ok); err != nil { + if v.TemplateId == nil || len(*v.TemplateId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member TemplateId must not be empty")} + } + if v.TemplateId != nil { + if err := encoder.SetURI("TemplateId").String(*v.TemplateId); err != nil { return err } } @@ -11647,67 +11978,89 @@ func awsRestjson1_serializeDocumentAnalysisDefinition(v *types.AnalysisDefinitio return nil } -func awsRestjson1_serializeDocumentAnalysisSearchFilter(v *types.AnalysisSearchFilter, value smithyjson.Value) error { +func awsRestjson1_serializeOpDocumentUpdateTemplateAliasInput(v *UpdateTemplateAliasInput, value smithyjson.Value) error { object := value.Object() defer object.Close() - if len(v.Name) > 0 { - ok := object.Key("Name") - ok.String(string(v.Name)) + if v.TemplateVersionNumber != nil { + ok := object.Key("TemplateVersionNumber") + ok.Long(*v.TemplateVersionNumber) } - if len(v.Operator) > 0 { - ok := object.Key("Operator") - ok.String(string(v.Operator)) + return nil +} + +type awsRestjson1_serializeOpUpdateTemplatePermissions struct { +} + +func (*awsRestjson1_serializeOpUpdateTemplatePermissions) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpUpdateTemplatePermissions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - if v.Value != nil { - ok := object.Key("Value") - ok.String(*v.Value) + input, ok := in.Parameters.(*UpdateTemplatePermissionsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} } - return nil -} + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/templates/{TemplateId}/permissions") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "PUT" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } -func awsRestjson1_serializeDocumentAnalysisSearchFilterList(v []types.AnalysisSearchFilter, value smithyjson.Value) error { - array := value.Array() - defer array.Close() + if err := awsRestjson1_serializeOpHttpBindingsUpdateTemplatePermissionsInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } - for i := range v { - av := array.Value() - if err := awsRestjson1_serializeDocumentAnalysisSearchFilter(&v[i], av); err != nil { - return err - } + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentUpdateTemplatePermissionsInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} } - return nil -} -func awsRestjson1_serializeDocumentAnalysisSourceEntity(v *types.AnalysisSourceEntity, value smithyjson.Value) error { - object := value.Object() - defer object.Close() + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } - if v.SourceTemplate != nil { - ok := object.Key("SourceTemplate") - if err := awsRestjson1_serializeDocumentAnalysisSourceTemplate(v.SourceTemplate, ok); err != nil { - return err - } + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} } + in.Request = request - return nil + return next.HandleSerialize(ctx, in) } +func awsRestjson1_serializeOpHttpBindingsUpdateTemplatePermissionsInput(v *UpdateTemplatePermissionsInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } -func awsRestjson1_serializeDocumentAnalysisSourceTemplate(v *types.AnalysisSourceTemplate, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Arn != nil { - ok := object.Key("Arn") - ok.String(*v.Arn) + if v.AwsAccountId == nil || len(*v.AwsAccountId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} + } + if v.AwsAccountId != nil { + if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { + return err + } } - if v.DataSetReferences != nil { - ok := object.Key("DataSetReferences") - if err := awsRestjson1_serializeDocumentDataSetReferenceList(v.DataSetReferences, ok); err != nil { + if v.TemplateId == nil || len(*v.TemplateId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member TemplateId must not be empty")} + } + if v.TemplateId != nil { + if err := encoder.SetURI("TemplateId").String(*v.TemplateId); err != nil { return err } } @@ -11715,42 +12068,1555 @@ func awsRestjson1_serializeDocumentAnalysisSourceTemplate(v *types.AnalysisSourc return nil } -func awsRestjson1_serializeDocumentAnchorDateConfiguration(v *types.AnchorDateConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeOpDocumentUpdateTemplatePermissionsInput(v *UpdateTemplatePermissionsInput, value smithyjson.Value) error { object := value.Object() defer object.Close() - if len(v.AnchorOption) > 0 { - ok := object.Key("AnchorOption") - ok.String(string(v.AnchorOption)) + if v.GrantPermissions != nil { + ok := object.Key("GrantPermissions") + if err := awsRestjson1_serializeDocumentUpdateResourcePermissionList(v.GrantPermissions, ok); err != nil { + return err + } } - if v.ParameterName != nil { - ok := object.Key("ParameterName") - ok.String(*v.ParameterName) + if v.RevokePermissions != nil { + ok := object.Key("RevokePermissions") + if err := awsRestjson1_serializeDocumentUpdateResourcePermissionList(v.RevokePermissions, ok); err != nil { + return err + } } return nil } -func awsRestjson1_serializeDocumentAnonymousUserDashboardEmbeddingConfiguration(v *types.AnonymousUserDashboardEmbeddingConfiguration, value smithyjson.Value) error { - object := value.Object() +type awsRestjson1_serializeOpUpdateTheme struct { +} + +func (*awsRestjson1_serializeOpUpdateTheme) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpUpdateTheme) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*UpdateThemeInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/themes/{ThemeId}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "PUT" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsUpdateThemeInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentUpdateThemeInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsUpdateThemeInput(v *UpdateThemeInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.AwsAccountId == nil || len(*v.AwsAccountId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} + } + if v.AwsAccountId != nil { + if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { + return err + } + } + + if v.ThemeId == nil || len(*v.ThemeId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member ThemeId must not be empty")} + } + if v.ThemeId != nil { + if err := encoder.SetURI("ThemeId").String(*v.ThemeId); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentUpdateThemeInput(v *UpdateThemeInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.BaseThemeId != nil { + ok := object.Key("BaseThemeId") + ok.String(*v.BaseThemeId) + } + + if v.Configuration != nil { + ok := object.Key("Configuration") + if err := awsRestjson1_serializeDocumentThemeConfiguration(v.Configuration, ok); err != nil { + return err + } + } + + if v.Name != nil { + ok := object.Key("Name") + ok.String(*v.Name) + } + + if v.VersionDescription != nil { + ok := object.Key("VersionDescription") + ok.String(*v.VersionDescription) + } + + return nil +} + +type awsRestjson1_serializeOpUpdateThemeAlias struct { +} + +func (*awsRestjson1_serializeOpUpdateThemeAlias) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpUpdateThemeAlias) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*UpdateThemeAliasInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/themes/{ThemeId}/aliases/{AliasName}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "PUT" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsUpdateThemeAliasInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentUpdateThemeAliasInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsUpdateThemeAliasInput(v *UpdateThemeAliasInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.AliasName == nil || len(*v.AliasName) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member AliasName must not be empty")} + } + if v.AliasName != nil { + if err := encoder.SetURI("AliasName").String(*v.AliasName); err != nil { + return err + } + } + + if v.AwsAccountId == nil || len(*v.AwsAccountId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} + } + if v.AwsAccountId != nil { + if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { + return err + } + } + + if v.ThemeId == nil || len(*v.ThemeId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member ThemeId must not be empty")} + } + if v.ThemeId != nil { + if err := encoder.SetURI("ThemeId").String(*v.ThemeId); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentUpdateThemeAliasInput(v *UpdateThemeAliasInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ThemeVersionNumber != nil { + ok := object.Key("ThemeVersionNumber") + ok.Long(*v.ThemeVersionNumber) + } + + return nil +} + +type awsRestjson1_serializeOpUpdateThemePermissions struct { +} + +func (*awsRestjson1_serializeOpUpdateThemePermissions) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpUpdateThemePermissions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*UpdateThemePermissionsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/themes/{ThemeId}/permissions") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "PUT" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsUpdateThemePermissionsInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentUpdateThemePermissionsInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsUpdateThemePermissionsInput(v *UpdateThemePermissionsInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.AwsAccountId == nil || len(*v.AwsAccountId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} + } + if v.AwsAccountId != nil { + if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { + return err + } + } + + if v.ThemeId == nil || len(*v.ThemeId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member ThemeId must not be empty")} + } + if v.ThemeId != nil { + if err := encoder.SetURI("ThemeId").String(*v.ThemeId); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentUpdateThemePermissionsInput(v *UpdateThemePermissionsInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.GrantPermissions != nil { + ok := object.Key("GrantPermissions") + if err := awsRestjson1_serializeDocumentUpdateResourcePermissionList(v.GrantPermissions, ok); err != nil { + return err + } + } + + if v.RevokePermissions != nil { + ok := object.Key("RevokePermissions") + if err := awsRestjson1_serializeDocumentUpdateResourcePermissionList(v.RevokePermissions, ok); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpUpdateTopic struct { +} + +func (*awsRestjson1_serializeOpUpdateTopic) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpUpdateTopic) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*UpdateTopicInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/topics/{TopicId}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "PUT" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsUpdateTopicInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentUpdateTopicInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsUpdateTopicInput(v *UpdateTopicInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.AwsAccountId == nil || len(*v.AwsAccountId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} + } + if v.AwsAccountId != nil { + if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { + return err + } + } + + if v.TopicId == nil || len(*v.TopicId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member TopicId must not be empty")} + } + if v.TopicId != nil { + if err := encoder.SetURI("TopicId").String(*v.TopicId); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentUpdateTopicInput(v *UpdateTopicInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Topic != nil { + ok := object.Key("Topic") + if err := awsRestjson1_serializeDocumentTopicDetails(v.Topic, ok); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpUpdateTopicPermissions struct { +} + +func (*awsRestjson1_serializeOpUpdateTopicPermissions) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpUpdateTopicPermissions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*UpdateTopicPermissionsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/topics/{TopicId}/permissions") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "PUT" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsUpdateTopicPermissionsInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentUpdateTopicPermissionsInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsUpdateTopicPermissionsInput(v *UpdateTopicPermissionsInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.AwsAccountId == nil || len(*v.AwsAccountId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} + } + if v.AwsAccountId != nil { + if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { + return err + } + } + + if v.TopicId == nil || len(*v.TopicId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member TopicId must not be empty")} + } + if v.TopicId != nil { + if err := encoder.SetURI("TopicId").String(*v.TopicId); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentUpdateTopicPermissionsInput(v *UpdateTopicPermissionsInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.GrantPermissions != nil { + ok := object.Key("GrantPermissions") + if err := awsRestjson1_serializeDocumentUpdateResourcePermissionList(v.GrantPermissions, ok); err != nil { + return err + } + } + + if v.RevokePermissions != nil { + ok := object.Key("RevokePermissions") + if err := awsRestjson1_serializeDocumentUpdateResourcePermissionList(v.RevokePermissions, ok); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpUpdateTopicRefreshSchedule struct { +} + +func (*awsRestjson1_serializeOpUpdateTopicRefreshSchedule) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpUpdateTopicRefreshSchedule) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*UpdateTopicRefreshScheduleInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/topics/{TopicId}/schedules/{DatasetId}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "PUT" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsUpdateTopicRefreshScheduleInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentUpdateTopicRefreshScheduleInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsUpdateTopicRefreshScheduleInput(v *UpdateTopicRefreshScheduleInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.AwsAccountId == nil || len(*v.AwsAccountId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} + } + if v.AwsAccountId != nil { + if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { + return err + } + } + + if v.DatasetId == nil || len(*v.DatasetId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member DatasetId must not be empty")} + } + if v.DatasetId != nil { + if err := encoder.SetURI("DatasetId").String(*v.DatasetId); err != nil { + return err + } + } + + if v.TopicId == nil || len(*v.TopicId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member TopicId must not be empty")} + } + if v.TopicId != nil { + if err := encoder.SetURI("TopicId").String(*v.TopicId); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentUpdateTopicRefreshScheduleInput(v *UpdateTopicRefreshScheduleInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.RefreshSchedule != nil { + ok := object.Key("RefreshSchedule") + if err := awsRestjson1_serializeDocumentTopicRefreshSchedule(v.RefreshSchedule, ok); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpUpdateUser struct { +} + +func (*awsRestjson1_serializeOpUpdateUser) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpUpdateUser) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*UpdateUserInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/namespaces/{Namespace}/users/{UserName}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "PUT" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsUpdateUserInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentUpdateUserInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsUpdateUserInput(v *UpdateUserInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.AwsAccountId == nil || len(*v.AwsAccountId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} + } + if v.AwsAccountId != nil { + if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { + return err + } + } + + if v.Namespace == nil || len(*v.Namespace) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member Namespace must not be empty")} + } + if v.Namespace != nil { + if err := encoder.SetURI("Namespace").String(*v.Namespace); err != nil { + return err + } + } + + if v.UserName == nil || len(*v.UserName) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member UserName must not be empty")} + } + if v.UserName != nil { + if err := encoder.SetURI("UserName").String(*v.UserName); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentUpdateUserInput(v *UpdateUserInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.CustomFederationProviderUrl != nil { + ok := object.Key("CustomFederationProviderUrl") + ok.String(*v.CustomFederationProviderUrl) + } + + if v.CustomPermissionsName != nil { + ok := object.Key("CustomPermissionsName") + ok.String(*v.CustomPermissionsName) + } + + if v.Email != nil { + ok := object.Key("Email") + ok.String(*v.Email) + } + + if v.ExternalLoginFederationProviderType != nil { + ok := object.Key("ExternalLoginFederationProviderType") + ok.String(*v.ExternalLoginFederationProviderType) + } + + if v.ExternalLoginId != nil { + ok := object.Key("ExternalLoginId") + ok.String(*v.ExternalLoginId) + } + + if len(v.Role) > 0 { + ok := object.Key("Role") + ok.String(string(v.Role)) + } + + if v.UnapplyCustomPermissions { + ok := object.Key("UnapplyCustomPermissions") + ok.Boolean(v.UnapplyCustomPermissions) + } + + return nil +} + +type awsRestjson1_serializeOpUpdateVPCConnection struct { +} + +func (*awsRestjson1_serializeOpUpdateVPCConnection) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpUpdateVPCConnection) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*UpdateVPCConnectionInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/accounts/{AwsAccountId}/vpc-connections/{VPCConnectionId}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "PUT" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsUpdateVPCConnectionInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentUpdateVPCConnectionInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsUpdateVPCConnectionInput(v *UpdateVPCConnectionInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.AwsAccountId == nil || len(*v.AwsAccountId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member AwsAccountId must not be empty")} + } + if v.AwsAccountId != nil { + if err := encoder.SetURI("AwsAccountId").String(*v.AwsAccountId); err != nil { + return err + } + } + + if v.VPCConnectionId == nil || len(*v.VPCConnectionId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member VPCConnectionId must not be empty")} + } + if v.VPCConnectionId != nil { + if err := encoder.SetURI("VPCConnectionId").String(*v.VPCConnectionId); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentUpdateVPCConnectionInput(v *UpdateVPCConnectionInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.DnsResolvers != nil { + ok := object.Key("DnsResolvers") + if err := awsRestjson1_serializeDocumentDnsResolverList(v.DnsResolvers, ok); err != nil { + return err + } + } + + if v.Name != nil { + ok := object.Key("Name") + ok.String(*v.Name) + } + + if v.RoleArn != nil { + ok := object.Key("RoleArn") + ok.String(*v.RoleArn) + } + + if v.SecurityGroupIds != nil { + ok := object.Key("SecurityGroupIds") + if err := awsRestjson1_serializeDocumentSecurityGroupIdList(v.SecurityGroupIds, ok); err != nil { + return err + } + } + + if v.SubnetIds != nil { + ok := object.Key("SubnetIds") + if err := awsRestjson1_serializeDocumentSubnetIdList(v.SubnetIds, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentAccountCustomization(v *types.AccountCustomization, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.DefaultEmailCustomizationTemplate != nil { + ok := object.Key("DefaultEmailCustomizationTemplate") + ok.String(*v.DefaultEmailCustomizationTemplate) + } + + if v.DefaultTheme != nil { + ok := object.Key("DefaultTheme") + ok.String(*v.DefaultTheme) + } + + return nil +} + +func awsRestjson1_serializeDocumentActionList(v []string, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + av.String(v[i]) + } + return nil +} + +func awsRestjson1_serializeDocumentAdHocFilteringOption(v *types.AdHocFilteringOption, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if len(v.AvailabilityStatus) > 0 { + ok := object.Key("AvailabilityStatus") + ok.String(string(v.AvailabilityStatus)) + } + + return nil +} + +func awsRestjson1_serializeDocumentAggregationFunction(v *types.AggregationFunction, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if len(v.CategoricalAggregationFunction) > 0 { + ok := object.Key("CategoricalAggregationFunction") + ok.String(string(v.CategoricalAggregationFunction)) + } + + if len(v.DateAggregationFunction) > 0 { + ok := object.Key("DateAggregationFunction") + ok.String(string(v.DateAggregationFunction)) + } + + if v.NumericalAggregationFunction != nil { + ok := object.Key("NumericalAggregationFunction") + if err := awsRestjson1_serializeDocumentNumericalAggregationFunction(v.NumericalAggregationFunction, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentAggregationFunctionParameters(v map[string]string, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + for key := range v { + om := object.Key(key) + om.String(v[key]) + } + return nil +} + +func awsRestjson1_serializeDocumentAggregationSortConfiguration(v *types.AggregationSortConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.AggregationFunction != nil { + ok := object.Key("AggregationFunction") + if err := awsRestjson1_serializeDocumentAggregationFunction(v.AggregationFunction, ok); err != nil { + return err + } + } + + if v.Column != nil { + ok := object.Key("Column") + if err := awsRestjson1_serializeDocumentColumnIdentifier(v.Column, ok); err != nil { + return err + } + } + + if len(v.SortDirection) > 0 { + ok := object.Key("SortDirection") + ok.String(string(v.SortDirection)) + } + + return nil +} + +func awsRestjson1_serializeDocumentAggregationSortConfigurationList(v []types.AggregationSortConfiguration, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentAggregationSortConfiguration(&v[i], av); err != nil { + return err + } + } + return nil +} + +func awsRestjson1_serializeDocumentAmazonElasticsearchParameters(v *types.AmazonElasticsearchParameters, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Domain != nil { + ok := object.Key("Domain") + ok.String(*v.Domain) + } + + return nil +} + +func awsRestjson1_serializeDocumentAmazonOpenSearchParameters(v *types.AmazonOpenSearchParameters, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Domain != nil { + ok := object.Key("Domain") + ok.String(*v.Domain) + } + + return nil +} + +func awsRestjson1_serializeDocumentAnalysisDefaults(v *types.AnalysisDefaults, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.DefaultNewSheetConfiguration != nil { + ok := object.Key("DefaultNewSheetConfiguration") + if err := awsRestjson1_serializeDocumentDefaultNewSheetConfiguration(v.DefaultNewSheetConfiguration, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentAnalysisDefinition(v *types.AnalysisDefinition, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.AnalysisDefaults != nil { + ok := object.Key("AnalysisDefaults") + if err := awsRestjson1_serializeDocumentAnalysisDefaults(v.AnalysisDefaults, ok); err != nil { + return err + } + } + + if v.CalculatedFields != nil { + ok := object.Key("CalculatedFields") + if err := awsRestjson1_serializeDocumentCalculatedFields(v.CalculatedFields, ok); err != nil { + return err + } + } + + if v.ColumnConfigurations != nil { + ok := object.Key("ColumnConfigurations") + if err := awsRestjson1_serializeDocumentColumnConfigurationList(v.ColumnConfigurations, ok); err != nil { + return err + } + } + + if v.DataSetIdentifierDeclarations != nil { + ok := object.Key("DataSetIdentifierDeclarations") + if err := awsRestjson1_serializeDocumentDataSetIdentifierDeclarationList(v.DataSetIdentifierDeclarations, ok); err != nil { + return err + } + } + + if v.FilterGroups != nil { + ok := object.Key("FilterGroups") + if err := awsRestjson1_serializeDocumentFilterGroupList(v.FilterGroups, ok); err != nil { + return err + } + } + + if v.ParameterDeclarations != nil { + ok := object.Key("ParameterDeclarations") + if err := awsRestjson1_serializeDocumentParameterDeclarationList(v.ParameterDeclarations, ok); err != nil { + return err + } + } + + if v.Sheets != nil { + ok := object.Key("Sheets") + if err := awsRestjson1_serializeDocumentSheetDefinitionList(v.Sheets, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentAnalysisSearchFilter(v *types.AnalysisSearchFilter, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if len(v.Name) > 0 { + ok := object.Key("Name") + ok.String(string(v.Name)) + } + + if len(v.Operator) > 0 { + ok := object.Key("Operator") + ok.String(string(v.Operator)) + } + + if v.Value != nil { + ok := object.Key("Value") + ok.String(*v.Value) + } + + return nil +} + +func awsRestjson1_serializeDocumentAnalysisSearchFilterList(v []types.AnalysisSearchFilter, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentAnalysisSearchFilter(&v[i], av); err != nil { + return err + } + } + return nil +} + +func awsRestjson1_serializeDocumentAnalysisSourceEntity(v *types.AnalysisSourceEntity, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.SourceTemplate != nil { + ok := object.Key("SourceTemplate") + if err := awsRestjson1_serializeDocumentAnalysisSourceTemplate(v.SourceTemplate, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentAnalysisSourceTemplate(v *types.AnalysisSourceTemplate, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Arn != nil { + ok := object.Key("Arn") + ok.String(*v.Arn) + } + + if v.DataSetReferences != nil { + ok := object.Key("DataSetReferences") + if err := awsRestjson1_serializeDocumentDataSetReferenceList(v.DataSetReferences, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentAnchorDateConfiguration(v *types.AnchorDateConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if len(v.AnchorOption) > 0 { + ok := object.Key("AnchorOption") + ok.String(string(v.AnchorOption)) + } + + if v.ParameterName != nil { + ok := object.Key("ParameterName") + ok.String(*v.ParameterName) + } + + return nil +} + +func awsRestjson1_serializeDocumentAnonymousUserDashboardEmbeddingConfiguration(v *types.AnonymousUserDashboardEmbeddingConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.InitialDashboardId != nil { + ok := object.Key("InitialDashboardId") + ok.String(*v.InitialDashboardId) + } + + return nil +} + +func awsRestjson1_serializeDocumentAnonymousUserDashboardVisualEmbeddingConfiguration(v *types.AnonymousUserDashboardVisualEmbeddingConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.InitialDashboardVisualId != nil { + ok := object.Key("InitialDashboardVisualId") + if err := awsRestjson1_serializeDocumentDashboardVisualId(v.InitialDashboardVisualId, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentAnonymousUserEmbeddingExperienceConfiguration(v *types.AnonymousUserEmbeddingExperienceConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Dashboard != nil { + ok := object.Key("Dashboard") + if err := awsRestjson1_serializeDocumentAnonymousUserDashboardEmbeddingConfiguration(v.Dashboard, ok); err != nil { + return err + } + } + + if v.DashboardVisual != nil { + ok := object.Key("DashboardVisual") + if err := awsRestjson1_serializeDocumentAnonymousUserDashboardVisualEmbeddingConfiguration(v.DashboardVisual, ok); err != nil { + return err + } + } + + if v.QSearchBar != nil { + ok := object.Key("QSearchBar") + if err := awsRestjson1_serializeDocumentAnonymousUserQSearchBarEmbeddingConfiguration(v.QSearchBar, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentAnonymousUserQSearchBarEmbeddingConfiguration(v *types.AnonymousUserQSearchBarEmbeddingConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.InitialTopicId != nil { + ok := object.Key("InitialTopicId") + ok.String(*v.InitialTopicId) + } + + return nil +} + +func awsRestjson1_serializeDocumentArcAxisConfiguration(v *types.ArcAxisConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Range != nil { + ok := object.Key("Range") + if err := awsRestjson1_serializeDocumentArcAxisDisplayRange(v.Range, ok); err != nil { + return err + } + } + + if v.ReserveRange != 0 { + ok := object.Key("ReserveRange") + ok.Integer(v.ReserveRange) + } + + return nil +} + +func awsRestjson1_serializeDocumentArcAxisDisplayRange(v *types.ArcAxisDisplayRange, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Max != nil { + ok := object.Key("Max") + switch { + case math.IsNaN(*v.Max): + ok.String("NaN") + + case math.IsInf(*v.Max, 1): + ok.String("Infinity") + + case math.IsInf(*v.Max, -1): + ok.String("-Infinity") + + default: + ok.Double(*v.Max) + + } + } + + if v.Min != nil { + ok := object.Key("Min") + switch { + case math.IsNaN(*v.Min): + ok.String("NaN") + + case math.IsInf(*v.Min, 1): + ok.String("Infinity") + + case math.IsInf(*v.Min, -1): + ok.String("-Infinity") + + default: + ok.Double(*v.Min) + + } + } + + return nil +} + +func awsRestjson1_serializeDocumentArcConfiguration(v *types.ArcConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ArcAngle != nil { + ok := object.Key("ArcAngle") + switch { + case math.IsNaN(*v.ArcAngle): + ok.String("NaN") + + case math.IsInf(*v.ArcAngle, 1): + ok.String("Infinity") + + case math.IsInf(*v.ArcAngle, -1): + ok.String("-Infinity") + + default: + ok.Double(*v.ArcAngle) + + } + } + + if len(v.ArcThickness) > 0 { + ok := object.Key("ArcThickness") + ok.String(string(v.ArcThickness)) + } + + return nil +} + +func awsRestjson1_serializeDocumentArcOptions(v *types.ArcOptions, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if len(v.ArcThickness) > 0 { + ok := object.Key("ArcThickness") + ok.String(string(v.ArcThickness)) + } + + return nil +} + +func awsRestjson1_serializeDocumentArnList(v []string, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + av.String(v[i]) + } + return nil +} + +func awsRestjson1_serializeDocumentAthenaParameters(v *types.AthenaParameters, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.RoleArn != nil { + ok := object.Key("RoleArn") + ok.String(*v.RoleArn) + } + + if v.WorkGroup != nil { + ok := object.Key("WorkGroup") + ok.String(*v.WorkGroup) + } + + return nil +} + +func awsRestjson1_serializeDocumentAuroraParameters(v *types.AuroraParameters, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Database != nil { + ok := object.Key("Database") + ok.String(*v.Database) + } + + if v.Host != nil { + ok := object.Key("Host") + ok.String(*v.Host) + } + + { + ok := object.Key("Port") + ok.Integer(v.Port) + } + + return nil +} + +func awsRestjson1_serializeDocumentAuroraPostgreSqlParameters(v *types.AuroraPostgreSqlParameters, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Database != nil { + ok := object.Key("Database") + ok.String(*v.Database) + } + + if v.Host != nil { + ok := object.Key("Host") + ok.String(*v.Host) + } + + { + ok := object.Key("Port") + ok.Integer(v.Port) + } + + return nil +} + +func awsRestjson1_serializeDocumentAuthorSpecifiedAggregations(v []types.AuthorSpecifiedAggregation, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + av.String(string(v[i])) + } + return nil +} + +func awsRestjson1_serializeDocumentAwsIotAnalyticsParameters(v *types.AwsIotAnalyticsParameters, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.DataSetName != nil { + ok := object.Key("DataSetName") + ok.String(*v.DataSetName) + } + + return nil +} + +func awsRestjson1_serializeDocumentAxisDataOptions(v *types.AxisDataOptions, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.DateAxisOptions != nil { + ok := object.Key("DateAxisOptions") + if err := awsRestjson1_serializeDocumentDateAxisOptions(v.DateAxisOptions, ok); err != nil { + return err + } + } + + if v.NumericAxisOptions != nil { + ok := object.Key("NumericAxisOptions") + if err := awsRestjson1_serializeDocumentNumericAxisOptions(v.NumericAxisOptions, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentAxisDisplayDataDrivenRange(v *types.AxisDisplayDataDrivenRange, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + return nil +} + +func awsRestjson1_serializeDocumentAxisDisplayMinMaxRange(v *types.AxisDisplayMinMaxRange, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Maximum != nil { + ok := object.Key("Maximum") + switch { + case math.IsNaN(*v.Maximum): + ok.String("NaN") + + case math.IsInf(*v.Maximum, 1): + ok.String("Infinity") + + case math.IsInf(*v.Maximum, -1): + ok.String("-Infinity") + + default: + ok.Double(*v.Maximum) + + } + } + + if v.Minimum != nil { + ok := object.Key("Minimum") + switch { + case math.IsNaN(*v.Minimum): + ok.String("NaN") + + case math.IsInf(*v.Minimum, 1): + ok.String("Infinity") + + case math.IsInf(*v.Minimum, -1): + ok.String("-Infinity") + + default: + ok.Double(*v.Minimum) + + } + } + + return nil +} + +func awsRestjson1_serializeDocumentAxisDisplayOptions(v *types.AxisDisplayOptions, value smithyjson.Value) error { + object := value.Object() defer object.Close() - if v.InitialDashboardId != nil { - ok := object.Key("InitialDashboardId") - ok.String(*v.InitialDashboardId) + if len(v.AxisLineVisibility) > 0 { + ok := object.Key("AxisLineVisibility") + ok.String(string(v.AxisLineVisibility)) + } + + if v.AxisOffset != nil { + ok := object.Key("AxisOffset") + ok.String(*v.AxisOffset) + } + + if v.DataOptions != nil { + ok := object.Key("DataOptions") + if err := awsRestjson1_serializeDocumentAxisDataOptions(v.DataOptions, ok); err != nil { + return err + } + } + + if len(v.GridLineVisibility) > 0 { + ok := object.Key("GridLineVisibility") + ok.String(string(v.GridLineVisibility)) + } + + if v.ScrollbarOptions != nil { + ok := object.Key("ScrollbarOptions") + if err := awsRestjson1_serializeDocumentScrollBarOptions(v.ScrollbarOptions, ok); err != nil { + return err + } + } + + if v.TickLabelOptions != nil { + ok := object.Key("TickLabelOptions") + if err := awsRestjson1_serializeDocumentAxisTickLabelOptions(v.TickLabelOptions, ok); err != nil { + return err + } } return nil } -func awsRestjson1_serializeDocumentAnonymousUserDashboardVisualEmbeddingConfiguration(v *types.AnonymousUserDashboardVisualEmbeddingConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAxisDisplayRange(v *types.AxisDisplayRange, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.InitialDashboardVisualId != nil { - ok := object.Key("InitialDashboardVisualId") - if err := awsRestjson1_serializeDocumentDashboardVisualId(v.InitialDashboardVisualId, ok); err != nil { + if v.DataDriven != nil { + ok := object.Key("DataDriven") + if err := awsRestjson1_serializeDocumentAxisDisplayDataDrivenRange(v.DataDriven, ok); err != nil { + return err + } + } + + if v.MinMax != nil { + ok := object.Key("MinMax") + if err := awsRestjson1_serializeDocumentAxisDisplayMinMaxRange(v.MinMax, ok); err != nil { return err } } @@ -11758,27 +13624,133 @@ func awsRestjson1_serializeDocumentAnonymousUserDashboardVisualEmbeddingConfigur return nil } -func awsRestjson1_serializeDocumentAnonymousUserEmbeddingExperienceConfiguration(v *types.AnonymousUserEmbeddingExperienceConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAxisLabelOptions(v *types.AxisLabelOptions, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Dashboard != nil { - ok := object.Key("Dashboard") - if err := awsRestjson1_serializeDocumentAnonymousUserDashboardEmbeddingConfiguration(v.Dashboard, ok); err != nil { + if v.ApplyTo != nil { + ok := object.Key("ApplyTo") + if err := awsRestjson1_serializeDocumentAxisLabelReferenceOptions(v.ApplyTo, ok); err != nil { return err } } - if v.DashboardVisual != nil { - ok := object.Key("DashboardVisual") - if err := awsRestjson1_serializeDocumentAnonymousUserDashboardVisualEmbeddingConfiguration(v.DashboardVisual, ok); err != nil { + if v.CustomLabel != nil { + ok := object.Key("CustomLabel") + ok.String(*v.CustomLabel) + } + + if v.FontConfiguration != nil { + ok := object.Key("FontConfiguration") + if err := awsRestjson1_serializeDocumentFontConfiguration(v.FontConfiguration, ok); err != nil { return err } } - if v.QSearchBar != nil { - ok := object.Key("QSearchBar") - if err := awsRestjson1_serializeDocumentAnonymousUserQSearchBarEmbeddingConfiguration(v.QSearchBar, ok); err != nil { + return nil +} + +func awsRestjson1_serializeDocumentAxisLabelOptionsList(v []types.AxisLabelOptions, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentAxisLabelOptions(&v[i], av); err != nil { + return err + } + } + return nil +} + +func awsRestjson1_serializeDocumentAxisLabelReferenceOptions(v *types.AxisLabelReferenceOptions, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Column != nil { + ok := object.Key("Column") + if err := awsRestjson1_serializeDocumentColumnIdentifier(v.Column, ok); err != nil { + return err + } + } + + if v.FieldId != nil { + ok := object.Key("FieldId") + ok.String(*v.FieldId) + } + + return nil +} + +func awsRestjson1_serializeDocumentAxisLinearScale(v *types.AxisLinearScale, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.StepCount != nil { + ok := object.Key("StepCount") + ok.Integer(*v.StepCount) + } + + if v.StepSize != nil { + ok := object.Key("StepSize") + switch { + case math.IsNaN(*v.StepSize): + ok.String("NaN") + + case math.IsInf(*v.StepSize, 1): + ok.String("Infinity") + + case math.IsInf(*v.StepSize, -1): + ok.String("-Infinity") + + default: + ok.Double(*v.StepSize) + + } + } + + return nil +} + +func awsRestjson1_serializeDocumentAxisLogarithmicScale(v *types.AxisLogarithmicScale, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Base != nil { + ok := object.Key("Base") + switch { + case math.IsNaN(*v.Base): + ok.String("NaN") + + case math.IsInf(*v.Base, 1): + ok.String("Infinity") + + case math.IsInf(*v.Base, -1): + ok.String("-Infinity") + + default: + ok.Double(*v.Base) + + } + } + + return nil +} + +func awsRestjson1_serializeDocumentAxisScale(v *types.AxisScale, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Linear != nil { + ok := object.Key("Linear") + if err := awsRestjson1_serializeDocumentAxisLinearScale(v.Linear, ok); err != nil { + return err + } + } + + if v.Logarithmic != nil { + ok := object.Key("Logarithmic") + if err := awsRestjson1_serializeDocumentAxisLogarithmicScale(v.Logarithmic, ok); err != nil { return err } } @@ -11786,270 +13758,333 @@ func awsRestjson1_serializeDocumentAnonymousUserEmbeddingExperienceConfiguration return nil } -func awsRestjson1_serializeDocumentAnonymousUserQSearchBarEmbeddingConfiguration(v *types.AnonymousUserQSearchBarEmbeddingConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentAxisTickLabelOptions(v *types.AxisTickLabelOptions, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.InitialTopicId != nil { - ok := object.Key("InitialTopicId") - ok.String(*v.InitialTopicId) + if v.LabelOptions != nil { + ok := object.Key("LabelOptions") + if err := awsRestjson1_serializeDocumentLabelOptions(v.LabelOptions, ok); err != nil { + return err + } + } + + if v.RotationAngle != nil { + ok := object.Key("RotationAngle") + switch { + case math.IsNaN(*v.RotationAngle): + ok.String("NaN") + + case math.IsInf(*v.RotationAngle, 1): + ok.String("Infinity") + + case math.IsInf(*v.RotationAngle, -1): + ok.String("-Infinity") + + default: + ok.Double(*v.RotationAngle) + + } } return nil } -func awsRestjson1_serializeDocumentArcAxisConfiguration(v *types.ArcAxisConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentBarChartAggregatedFieldWells(v *types.BarChartAggregatedFieldWells, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Range != nil { - ok := object.Key("Range") - if err := awsRestjson1_serializeDocumentArcAxisDisplayRange(v.Range, ok); err != nil { + if v.Category != nil { + ok := object.Key("Category") + if err := awsRestjson1_serializeDocumentDimensionFieldList(v.Category, ok); err != nil { + return err + } + } + + if v.Colors != nil { + ok := object.Key("Colors") + if err := awsRestjson1_serializeDocumentDimensionFieldList(v.Colors, ok); err != nil { + return err + } + } + + if v.SmallMultiples != nil { + ok := object.Key("SmallMultiples") + if err := awsRestjson1_serializeDocumentSmallMultiplesDimensionFieldList(v.SmallMultiples, ok); err != nil { return err } } - if v.ReserveRange != 0 { - ok := object.Key("ReserveRange") - ok.Integer(v.ReserveRange) + if v.Values != nil { + ok := object.Key("Values") + if err := awsRestjson1_serializeDocumentMeasureFieldList(v.Values, ok); err != nil { + return err + } } return nil } -func awsRestjson1_serializeDocumentArcAxisDisplayRange(v *types.ArcAxisDisplayRange, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentBarChartConfiguration(v *types.BarChartConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Max != nil { - ok := object.Key("Max") - switch { - case math.IsNaN(*v.Max): - ok.String("NaN") - - case math.IsInf(*v.Max, 1): - ok.String("Infinity") - - case math.IsInf(*v.Max, -1): - ok.String("-Infinity") - - default: - ok.Double(*v.Max) + if len(v.BarsArrangement) > 0 { + ok := object.Key("BarsArrangement") + ok.String(string(v.BarsArrangement)) + } + if v.CategoryAxis != nil { + ok := object.Key("CategoryAxis") + if err := awsRestjson1_serializeDocumentAxisDisplayOptions(v.CategoryAxis, ok); err != nil { + return err } } - if v.Min != nil { - ok := object.Key("Min") - switch { - case math.IsNaN(*v.Min): - ok.String("NaN") - - case math.IsInf(*v.Min, 1): - ok.String("Infinity") - - case math.IsInf(*v.Min, -1): - ok.String("-Infinity") - - default: - ok.Double(*v.Min) - + if v.CategoryLabelOptions != nil { + ok := object.Key("CategoryLabelOptions") + if err := awsRestjson1_serializeDocumentChartAxisLabelOptions(v.CategoryLabelOptions, ok); err != nil { + return err } } - return nil -} + if v.ColorLabelOptions != nil { + ok := object.Key("ColorLabelOptions") + if err := awsRestjson1_serializeDocumentChartAxisLabelOptions(v.ColorLabelOptions, ok); err != nil { + return err + } + } -func awsRestjson1_serializeDocumentArcConfiguration(v *types.ArcConfiguration, value smithyjson.Value) error { - object := value.Object() - defer object.Close() + if v.ContributionAnalysisDefaults != nil { + ok := object.Key("ContributionAnalysisDefaults") + if err := awsRestjson1_serializeDocumentContributionAnalysisDefaultList(v.ContributionAnalysisDefaults, ok); err != nil { + return err + } + } - if v.ArcAngle != nil { - ok := object.Key("ArcAngle") - switch { - case math.IsNaN(*v.ArcAngle): - ok.String("NaN") + if v.DataLabels != nil { + ok := object.Key("DataLabels") + if err := awsRestjson1_serializeDocumentDataLabelOptions(v.DataLabels, ok); err != nil { + return err + } + } - case math.IsInf(*v.ArcAngle, 1): - ok.String("Infinity") + if v.FieldWells != nil { + ok := object.Key("FieldWells") + if err := awsRestjson1_serializeDocumentBarChartFieldWells(v.FieldWells, ok); err != nil { + return err + } + } - case math.IsInf(*v.ArcAngle, -1): - ok.String("-Infinity") + if v.Legend != nil { + ok := object.Key("Legend") + if err := awsRestjson1_serializeDocumentLegendOptions(v.Legend, ok); err != nil { + return err + } + } - default: - ok.Double(*v.ArcAngle) + if len(v.Orientation) > 0 { + ok := object.Key("Orientation") + ok.String(string(v.Orientation)) + } + if v.ReferenceLines != nil { + ok := object.Key("ReferenceLines") + if err := awsRestjson1_serializeDocumentReferenceLineList(v.ReferenceLines, ok); err != nil { + return err } } - if len(v.ArcThickness) > 0 { - ok := object.Key("ArcThickness") - ok.String(string(v.ArcThickness)) + if v.SmallMultiplesOptions != nil { + ok := object.Key("SmallMultiplesOptions") + if err := awsRestjson1_serializeDocumentSmallMultiplesOptions(v.SmallMultiplesOptions, ok); err != nil { + return err + } } - return nil -} - -func awsRestjson1_serializeDocumentArcOptions(v *types.ArcOptions, value smithyjson.Value) error { - object := value.Object() - defer object.Close() + if v.SortConfiguration != nil { + ok := object.Key("SortConfiguration") + if err := awsRestjson1_serializeDocumentBarChartSortConfiguration(v.SortConfiguration, ok); err != nil { + return err + } + } - if len(v.ArcThickness) > 0 { - ok := object.Key("ArcThickness") - ok.String(string(v.ArcThickness)) + if v.Tooltip != nil { + ok := object.Key("Tooltip") + if err := awsRestjson1_serializeDocumentTooltipOptions(v.Tooltip, ok); err != nil { + return err + } } - return nil -} + if v.ValueAxis != nil { + ok := object.Key("ValueAxis") + if err := awsRestjson1_serializeDocumentAxisDisplayOptions(v.ValueAxis, ok); err != nil { + return err + } + } -func awsRestjson1_serializeDocumentArnList(v []string, value smithyjson.Value) error { - array := value.Array() - defer array.Close() + if v.ValueLabelOptions != nil { + ok := object.Key("ValueLabelOptions") + if err := awsRestjson1_serializeDocumentChartAxisLabelOptions(v.ValueLabelOptions, ok); err != nil { + return err + } + } - for i := range v { - av := array.Value() - av.String(v[i]) + if v.VisualPalette != nil { + ok := object.Key("VisualPalette") + if err := awsRestjson1_serializeDocumentVisualPalette(v.VisualPalette, ok); err != nil { + return err + } } + return nil } -func awsRestjson1_serializeDocumentAthenaParameters(v *types.AthenaParameters, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentBarChartFieldWells(v *types.BarChartFieldWells, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.RoleArn != nil { - ok := object.Key("RoleArn") - ok.String(*v.RoleArn) - } - - if v.WorkGroup != nil { - ok := object.Key("WorkGroup") - ok.String(*v.WorkGroup) + if v.BarChartAggregatedFieldWells != nil { + ok := object.Key("BarChartAggregatedFieldWells") + if err := awsRestjson1_serializeDocumentBarChartAggregatedFieldWells(v.BarChartAggregatedFieldWells, ok); err != nil { + return err + } } return nil } -func awsRestjson1_serializeDocumentAuroraParameters(v *types.AuroraParameters, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentBarChartSortConfiguration(v *types.BarChartSortConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Database != nil { - ok := object.Key("Database") - ok.String(*v.Database) + if v.CategoryItemsLimit != nil { + ok := object.Key("CategoryItemsLimit") + if err := awsRestjson1_serializeDocumentItemsLimitConfiguration(v.CategoryItemsLimit, ok); err != nil { + return err + } } - if v.Host != nil { - ok := object.Key("Host") - ok.String(*v.Host) + if v.CategorySort != nil { + ok := object.Key("CategorySort") + if err := awsRestjson1_serializeDocumentFieldSortOptionsList(v.CategorySort, ok); err != nil { + return err + } } - { - ok := object.Key("Port") - ok.Integer(v.Port) + if v.ColorItemsLimit != nil { + ok := object.Key("ColorItemsLimit") + if err := awsRestjson1_serializeDocumentItemsLimitConfiguration(v.ColorItemsLimit, ok); err != nil { + return err + } } - return nil -} - -func awsRestjson1_serializeDocumentAuroraPostgreSqlParameters(v *types.AuroraPostgreSqlParameters, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Database != nil { - ok := object.Key("Database") - ok.String(*v.Database) + if v.ColorSort != nil { + ok := object.Key("ColorSort") + if err := awsRestjson1_serializeDocumentFieldSortOptionsList(v.ColorSort, ok); err != nil { + return err + } } - if v.Host != nil { - ok := object.Key("Host") - ok.String(*v.Host) + if v.SmallMultiplesLimitConfiguration != nil { + ok := object.Key("SmallMultiplesLimitConfiguration") + if err := awsRestjson1_serializeDocumentItemsLimitConfiguration(v.SmallMultiplesLimitConfiguration, ok); err != nil { + return err + } } - { - ok := object.Key("Port") - ok.Integer(v.Port) + if v.SmallMultiplesSort != nil { + ok := object.Key("SmallMultiplesSort") + if err := awsRestjson1_serializeDocumentFieldSortOptionsList(v.SmallMultiplesSort, ok); err != nil { + return err + } } return nil } -func awsRestjson1_serializeDocumentAwsIotAnalyticsParameters(v *types.AwsIotAnalyticsParameters, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentBarChartVisual(v *types.BarChartVisual, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.DataSetName != nil { - ok := object.Key("DataSetName") - ok.String(*v.DataSetName) + if v.Actions != nil { + ok := object.Key("Actions") + if err := awsRestjson1_serializeDocumentVisualCustomActionList(v.Actions, ok); err != nil { + return err + } } - return nil -} + if v.ChartConfiguration != nil { + ok := object.Key("ChartConfiguration") + if err := awsRestjson1_serializeDocumentBarChartConfiguration(v.ChartConfiguration, ok); err != nil { + return err + } + } -func awsRestjson1_serializeDocumentAxisDataOptions(v *types.AxisDataOptions, value smithyjson.Value) error { - object := value.Object() - defer object.Close() + if v.ColumnHierarchies != nil { + ok := object.Key("ColumnHierarchies") + if err := awsRestjson1_serializeDocumentColumnHierarchyList(v.ColumnHierarchies, ok); err != nil { + return err + } + } - if v.DateAxisOptions != nil { - ok := object.Key("DateAxisOptions") - if err := awsRestjson1_serializeDocumentDateAxisOptions(v.DateAxisOptions, ok); err != nil { + if v.Subtitle != nil { + ok := object.Key("Subtitle") + if err := awsRestjson1_serializeDocumentVisualSubtitleLabelOptions(v.Subtitle, ok); err != nil { return err } } - if v.NumericAxisOptions != nil { - ok := object.Key("NumericAxisOptions") - if err := awsRestjson1_serializeDocumentNumericAxisOptions(v.NumericAxisOptions, ok); err != nil { + if v.Title != nil { + ok := object.Key("Title") + if err := awsRestjson1_serializeDocumentVisualTitleLabelOptions(v.Title, ok); err != nil { return err } } + if v.VisualId != nil { + ok := object.Key("VisualId") + ok.String(*v.VisualId) + } + return nil } -func awsRestjson1_serializeDocumentAxisDisplayDataDrivenRange(v *types.AxisDisplayDataDrivenRange, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentBinCountOptions(v *types.BinCountOptions, value smithyjson.Value) error { object := value.Object() defer object.Close() + if v.Value != nil { + ok := object.Key("Value") + ok.Integer(*v.Value) + } + return nil } -func awsRestjson1_serializeDocumentAxisDisplayMinMaxRange(v *types.AxisDisplayMinMaxRange, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentBinWidthOptions(v *types.BinWidthOptions, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Maximum != nil { - ok := object.Key("Maximum") - switch { - case math.IsNaN(*v.Maximum): - ok.String("NaN") - - case math.IsInf(*v.Maximum, 1): - ok.String("Infinity") - - case math.IsInf(*v.Maximum, -1): - ok.String("-Infinity") - - default: - ok.Double(*v.Maximum) - - } + if v.BinCountLimit != nil { + ok := object.Key("BinCountLimit") + ok.Long(*v.BinCountLimit) } - if v.Minimum != nil { - ok := object.Key("Minimum") + if v.Value != nil { + ok := object.Key("Value") switch { - case math.IsNaN(*v.Minimum): + case math.IsNaN(*v.Value): ok.String("NaN") - case math.IsInf(*v.Minimum, 1): + case math.IsInf(*v.Value, 1): ok.String("Infinity") - case math.IsInf(*v.Minimum, -1): + case math.IsInf(*v.Value, -1): ok.String("-Infinity") default: - ok.Double(*v.Minimum) + ok.Double(*v.Value) } } @@ -12057,42 +14092,59 @@ func awsRestjson1_serializeDocumentAxisDisplayMinMaxRange(v *types.AxisDisplayMi return nil } -func awsRestjson1_serializeDocumentAxisDisplayOptions(v *types.AxisDisplayOptions, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentBodySectionConfiguration(v *types.BodySectionConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if len(v.AxisLineVisibility) > 0 { - ok := object.Key("AxisLineVisibility") - ok.String(string(v.AxisLineVisibility)) + if v.Content != nil { + ok := object.Key("Content") + if err := awsRestjson1_serializeDocumentBodySectionContent(v.Content, ok); err != nil { + return err + } } - if v.AxisOffset != nil { - ok := object.Key("AxisOffset") - ok.String(*v.AxisOffset) + if v.PageBreakConfiguration != nil { + ok := object.Key("PageBreakConfiguration") + if err := awsRestjson1_serializeDocumentSectionPageBreakConfiguration(v.PageBreakConfiguration, ok); err != nil { + return err + } } - if v.DataOptions != nil { - ok := object.Key("DataOptions") - if err := awsRestjson1_serializeDocumentAxisDataOptions(v.DataOptions, ok); err != nil { + if v.SectionId != nil { + ok := object.Key("SectionId") + ok.String(*v.SectionId) + } + + if v.Style != nil { + ok := object.Key("Style") + if err := awsRestjson1_serializeDocumentSectionStyle(v.Style, ok); err != nil { return err } } - if len(v.GridLineVisibility) > 0 { - ok := object.Key("GridLineVisibility") - ok.String(string(v.GridLineVisibility)) - } + return nil +} - if v.ScrollbarOptions != nil { - ok := object.Key("ScrollbarOptions") - if err := awsRestjson1_serializeDocumentScrollBarOptions(v.ScrollbarOptions, ok); err != nil { +func awsRestjson1_serializeDocumentBodySectionConfigurationList(v []types.BodySectionConfiguration, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentBodySectionConfiguration(&v[i], av); err != nil { return err } } + return nil +} - if v.TickLabelOptions != nil { - ok := object.Key("TickLabelOptions") - if err := awsRestjson1_serializeDocumentAxisTickLabelOptions(v.TickLabelOptions, ok); err != nil { +func awsRestjson1_serializeDocumentBodySectionContent(v *types.BodySectionContent, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Layout != nil { + ok := object.Key("Layout") + if err := awsRestjson1_serializeDocumentSectionLayoutConfiguration(v.Layout, ok); err != nil { return err } } @@ -12100,20 +14152,44 @@ func awsRestjson1_serializeDocumentAxisDisplayOptions(v *types.AxisDisplayOption return nil } -func awsRestjson1_serializeDocumentAxisDisplayRange(v *types.AxisDisplayRange, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentBookmarksConfigurations(v *types.BookmarksConfigurations, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.DataDriven != nil { - ok := object.Key("DataDriven") - if err := awsRestjson1_serializeDocumentAxisDisplayDataDrivenRange(v.DataDriven, ok); err != nil { + { + ok := object.Key("Enabled") + ok.Boolean(v.Enabled) + } + + return nil +} + +func awsRestjson1_serializeDocumentBorderStyle(v *types.BorderStyle, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Show != nil { + ok := object.Key("Show") + ok.Boolean(*v.Show) + } + + return nil +} + +func awsRestjson1_serializeDocumentBoxPlotAggregatedFieldWells(v *types.BoxPlotAggregatedFieldWells, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.GroupBy != nil { + ok := object.Key("GroupBy") + if err := awsRestjson1_serializeDocumentBoxPlotDimensionFieldList(v.GroupBy, ok); err != nil { return err } } - if v.MinMax != nil { - ok := object.Key("MinMax") - if err := awsRestjson1_serializeDocumentAxisDisplayMinMaxRange(v.MinMax, ok); err != nil { + if v.Values != nil { + ok := object.Key("Values") + if err := awsRestjson1_serializeDocumentBoxPlotMeasureFieldList(v.Values, ok); err != nil { return err } } @@ -12121,133 +14197,147 @@ func awsRestjson1_serializeDocumentAxisDisplayRange(v *types.AxisDisplayRange, v return nil } -func awsRestjson1_serializeDocumentAxisLabelOptions(v *types.AxisLabelOptions, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentBoxPlotChartConfiguration(v *types.BoxPlotChartConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.ApplyTo != nil { - ok := object.Key("ApplyTo") - if err := awsRestjson1_serializeDocumentAxisLabelReferenceOptions(v.ApplyTo, ok); err != nil { + if v.BoxPlotOptions != nil { + ok := object.Key("BoxPlotOptions") + if err := awsRestjson1_serializeDocumentBoxPlotOptions(v.BoxPlotOptions, ok); err != nil { return err } } - if v.CustomLabel != nil { - ok := object.Key("CustomLabel") - ok.String(*v.CustomLabel) + if v.CategoryAxis != nil { + ok := object.Key("CategoryAxis") + if err := awsRestjson1_serializeDocumentAxisDisplayOptions(v.CategoryAxis, ok); err != nil { + return err + } } - if v.FontConfiguration != nil { - ok := object.Key("FontConfiguration") - if err := awsRestjson1_serializeDocumentFontConfiguration(v.FontConfiguration, ok); err != nil { + if v.CategoryLabelOptions != nil { + ok := object.Key("CategoryLabelOptions") + if err := awsRestjson1_serializeDocumentChartAxisLabelOptions(v.CategoryLabelOptions, ok); err != nil { return err } } - return nil -} - -func awsRestjson1_serializeDocumentAxisLabelOptionsList(v []types.AxisLabelOptions, value smithyjson.Value) error { - array := value.Array() - defer array.Close() - - for i := range v { - av := array.Value() - if err := awsRestjson1_serializeDocumentAxisLabelOptions(&v[i], av); err != nil { + if v.FieldWells != nil { + ok := object.Key("FieldWells") + if err := awsRestjson1_serializeDocumentBoxPlotFieldWells(v.FieldWells, ok); err != nil { return err } } - return nil -} - -func awsRestjson1_serializeDocumentAxisLabelReferenceOptions(v *types.AxisLabelReferenceOptions, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - if v.Column != nil { - ok := object.Key("Column") - if err := awsRestjson1_serializeDocumentColumnIdentifier(v.Column, ok); err != nil { + if v.Legend != nil { + ok := object.Key("Legend") + if err := awsRestjson1_serializeDocumentLegendOptions(v.Legend, ok); err != nil { return err } } - if v.FieldId != nil { - ok := object.Key("FieldId") - ok.String(*v.FieldId) + if v.PrimaryYAxisDisplayOptions != nil { + ok := object.Key("PrimaryYAxisDisplayOptions") + if err := awsRestjson1_serializeDocumentAxisDisplayOptions(v.PrimaryYAxisDisplayOptions, ok); err != nil { + return err + } } - return nil -} + if v.PrimaryYAxisLabelOptions != nil { + ok := object.Key("PrimaryYAxisLabelOptions") + if err := awsRestjson1_serializeDocumentChartAxisLabelOptions(v.PrimaryYAxisLabelOptions, ok); err != nil { + return err + } + } -func awsRestjson1_serializeDocumentAxisLinearScale(v *types.AxisLinearScale, value smithyjson.Value) error { - object := value.Object() - defer object.Close() + if v.ReferenceLines != nil { + ok := object.Key("ReferenceLines") + if err := awsRestjson1_serializeDocumentReferenceLineList(v.ReferenceLines, ok); err != nil { + return err + } + } - if v.StepCount != nil { - ok := object.Key("StepCount") - ok.Integer(*v.StepCount) + if v.SortConfiguration != nil { + ok := object.Key("SortConfiguration") + if err := awsRestjson1_serializeDocumentBoxPlotSortConfiguration(v.SortConfiguration, ok); err != nil { + return err + } } - if v.StepSize != nil { - ok := object.Key("StepSize") - switch { - case math.IsNaN(*v.StepSize): - ok.String("NaN") + if v.Tooltip != nil { + ok := object.Key("Tooltip") + if err := awsRestjson1_serializeDocumentTooltipOptions(v.Tooltip, ok); err != nil { + return err + } + } - case math.IsInf(*v.StepSize, 1): - ok.String("Infinity") + if v.VisualPalette != nil { + ok := object.Key("VisualPalette") + if err := awsRestjson1_serializeDocumentVisualPalette(v.VisualPalette, ok); err != nil { + return err + } + } - case math.IsInf(*v.StepSize, -1): - ok.String("-Infinity") + return nil +} - default: - ok.Double(*v.StepSize) +func awsRestjson1_serializeDocumentBoxPlotDimensionFieldList(v []types.DimensionField, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentDimensionField(&v[i], av); err != nil { + return err } } - return nil } -func awsRestjson1_serializeDocumentAxisLogarithmicScale(v *types.AxisLogarithmicScale, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentBoxPlotFieldWells(v *types.BoxPlotFieldWells, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Base != nil { - ok := object.Key("Base") - switch { - case math.IsNaN(*v.Base): - ok.String("NaN") - - case math.IsInf(*v.Base, 1): - ok.String("Infinity") + if v.BoxPlotAggregatedFieldWells != nil { + ok := object.Key("BoxPlotAggregatedFieldWells") + if err := awsRestjson1_serializeDocumentBoxPlotAggregatedFieldWells(v.BoxPlotAggregatedFieldWells, ok); err != nil { + return err + } + } - case math.IsInf(*v.Base, -1): - ok.String("-Infinity") + return nil +} - default: - ok.Double(*v.Base) +func awsRestjson1_serializeDocumentBoxPlotMeasureFieldList(v []types.MeasureField, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentMeasureField(&v[i], av); err != nil { + return err } } - return nil } -func awsRestjson1_serializeDocumentAxisScale(v *types.AxisScale, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentBoxPlotOptions(v *types.BoxPlotOptions, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Linear != nil { - ok := object.Key("Linear") - if err := awsRestjson1_serializeDocumentAxisLinearScale(v.Linear, ok); err != nil { - return err - } + if len(v.AllDataPointsVisibility) > 0 { + ok := object.Key("AllDataPointsVisibility") + ok.String(string(v.AllDataPointsVisibility)) } - if v.Logarithmic != nil { - ok := object.Key("Logarithmic") - if err := awsRestjson1_serializeDocumentAxisLogarithmicScale(v.Logarithmic, ok); err != nil { + if len(v.OutlierVisibility) > 0 { + ok := object.Key("OutlierVisibility") + ok.String(string(v.OutlierVisibility)) + } + + if v.StyleOptions != nil { + ok := object.Key("StyleOptions") + if err := awsRestjson1_serializeDocumentBoxPlotStyleOptions(v.StyleOptions, ok); err != nil { return err } } @@ -12255,244 +14345,317 @@ func awsRestjson1_serializeDocumentAxisScale(v *types.AxisScale, value smithyjso return nil } -func awsRestjson1_serializeDocumentAxisTickLabelOptions(v *types.AxisTickLabelOptions, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentBoxPlotSortConfiguration(v *types.BoxPlotSortConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.LabelOptions != nil { - ok := object.Key("LabelOptions") - if err := awsRestjson1_serializeDocumentLabelOptions(v.LabelOptions, ok); err != nil { + if v.CategorySort != nil { + ok := object.Key("CategorySort") + if err := awsRestjson1_serializeDocumentFieldSortOptionsList(v.CategorySort, ok); err != nil { return err } } - if v.RotationAngle != nil { - ok := object.Key("RotationAngle") - switch { - case math.IsNaN(*v.RotationAngle): - ok.String("NaN") - - case math.IsInf(*v.RotationAngle, 1): - ok.String("Infinity") + if v.PaginationConfiguration != nil { + ok := object.Key("PaginationConfiguration") + if err := awsRestjson1_serializeDocumentPaginationConfiguration(v.PaginationConfiguration, ok); err != nil { + return err + } + } - case math.IsInf(*v.RotationAngle, -1): - ok.String("-Infinity") + return nil +} - default: - ok.Double(*v.RotationAngle) +func awsRestjson1_serializeDocumentBoxPlotStyleOptions(v *types.BoxPlotStyleOptions, value smithyjson.Value) error { + object := value.Object() + defer object.Close() - } + if len(v.FillStyle) > 0 { + ok := object.Key("FillStyle") + ok.String(string(v.FillStyle)) } return nil } -func awsRestjson1_serializeDocumentBarChartAggregatedFieldWells(v *types.BarChartAggregatedFieldWells, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentBoxPlotVisual(v *types.BoxPlotVisual, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Category != nil { - ok := object.Key("Category") - if err := awsRestjson1_serializeDocumentDimensionFieldList(v.Category, ok); err != nil { + if v.Actions != nil { + ok := object.Key("Actions") + if err := awsRestjson1_serializeDocumentVisualCustomActionList(v.Actions, ok); err != nil { return err } } - if v.Colors != nil { - ok := object.Key("Colors") - if err := awsRestjson1_serializeDocumentDimensionFieldList(v.Colors, ok); err != nil { + if v.ChartConfiguration != nil { + ok := object.Key("ChartConfiguration") + if err := awsRestjson1_serializeDocumentBoxPlotChartConfiguration(v.ChartConfiguration, ok); err != nil { return err } } - if v.SmallMultiples != nil { - ok := object.Key("SmallMultiples") - if err := awsRestjson1_serializeDocumentSmallMultiplesDimensionFieldList(v.SmallMultiples, ok); err != nil { + if v.ColumnHierarchies != nil { + ok := object.Key("ColumnHierarchies") + if err := awsRestjson1_serializeDocumentColumnHierarchyList(v.ColumnHierarchies, ok); err != nil { return err } } - if v.Values != nil { - ok := object.Key("Values") - if err := awsRestjson1_serializeDocumentMeasureFieldList(v.Values, ok); err != nil { + if v.Subtitle != nil { + ok := object.Key("Subtitle") + if err := awsRestjson1_serializeDocumentVisualSubtitleLabelOptions(v.Subtitle, ok); err != nil { + return err + } + } + + if v.Title != nil { + ok := object.Key("Title") + if err := awsRestjson1_serializeDocumentVisualTitleLabelOptions(v.Title, ok); err != nil { return err } } + if v.VisualId != nil { + ok := object.Key("VisualId") + ok.String(*v.VisualId) + } + return nil } -func awsRestjson1_serializeDocumentBarChartConfiguration(v *types.BarChartConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentCalculatedColumn(v *types.CalculatedColumn, value smithyjson.Value) error { object := value.Object() defer object.Close() - if len(v.BarsArrangement) > 0 { - ok := object.Key("BarsArrangement") - ok.String(string(v.BarsArrangement)) + if v.ColumnId != nil { + ok := object.Key("ColumnId") + ok.String(*v.ColumnId) } - if v.CategoryAxis != nil { - ok := object.Key("CategoryAxis") - if err := awsRestjson1_serializeDocumentAxisDisplayOptions(v.CategoryAxis, ok); err != nil { - return err - } + if v.ColumnName != nil { + ok := object.Key("ColumnName") + ok.String(*v.ColumnName) } - if v.CategoryLabelOptions != nil { - ok := object.Key("CategoryLabelOptions") - if err := awsRestjson1_serializeDocumentChartAxisLabelOptions(v.CategoryLabelOptions, ok); err != nil { - return err - } + if v.Expression != nil { + ok := object.Key("Expression") + ok.String(*v.Expression) } - if v.ColorLabelOptions != nil { - ok := object.Key("ColorLabelOptions") - if err := awsRestjson1_serializeDocumentChartAxisLabelOptions(v.ColorLabelOptions, ok); err != nil { + return nil +} + +func awsRestjson1_serializeDocumentCalculatedColumnList(v []types.CalculatedColumn, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentCalculatedColumn(&v[i], av); err != nil { return err } } + return nil +} - if v.ContributionAnalysisDefaults != nil { - ok := object.Key("ContributionAnalysisDefaults") - if err := awsRestjson1_serializeDocumentContributionAnalysisDefaultList(v.ContributionAnalysisDefaults, ok); err != nil { - return err - } +func awsRestjson1_serializeDocumentCalculatedField(v *types.CalculatedField, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.DataSetIdentifier != nil { + ok := object.Key("DataSetIdentifier") + ok.String(*v.DataSetIdentifier) } - if v.DataLabels != nil { - ok := object.Key("DataLabels") - if err := awsRestjson1_serializeDocumentDataLabelOptions(v.DataLabels, ok); err != nil { - return err - } + if v.Expression != nil { + ok := object.Key("Expression") + ok.String(*v.Expression) } - if v.FieldWells != nil { - ok := object.Key("FieldWells") - if err := awsRestjson1_serializeDocumentBarChartFieldWells(v.FieldWells, ok); err != nil { - return err - } + if v.Name != nil { + ok := object.Key("Name") + ok.String(*v.Name) } - if v.Legend != nil { - ok := object.Key("Legend") - if err := awsRestjson1_serializeDocumentLegendOptions(v.Legend, ok); err != nil { + return nil +} + +func awsRestjson1_serializeDocumentCalculatedFields(v []types.CalculatedField, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentCalculatedField(&v[i], av); err != nil { return err } } + return nil +} - if len(v.Orientation) > 0 { - ok := object.Key("Orientation") - ok.String(string(v.Orientation)) +func awsRestjson1_serializeDocumentCalculatedMeasureField(v *types.CalculatedMeasureField, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Expression != nil { + ok := object.Key("Expression") + ok.String(*v.Expression) } - if v.ReferenceLines != nil { - ok := object.Key("ReferenceLines") - if err := awsRestjson1_serializeDocumentReferenceLineList(v.ReferenceLines, ok); err != nil { + if v.FieldId != nil { + ok := object.Key("FieldId") + ok.String(*v.FieldId) + } + + return nil +} + +func awsRestjson1_serializeDocumentCascadingControlConfiguration(v *types.CascadingControlConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.SourceControls != nil { + ok := object.Key("SourceControls") + if err := awsRestjson1_serializeDocumentCascadingControlSourceList(v.SourceControls, ok); err != nil { return err } } - if v.SmallMultiplesOptions != nil { - ok := object.Key("SmallMultiplesOptions") - if err := awsRestjson1_serializeDocumentSmallMultiplesOptions(v.SmallMultiplesOptions, ok); err != nil { + return nil +} + +func awsRestjson1_serializeDocumentCascadingControlSource(v *types.CascadingControlSource, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ColumnToMatch != nil { + ok := object.Key("ColumnToMatch") + if err := awsRestjson1_serializeDocumentColumnIdentifier(v.ColumnToMatch, ok); err != nil { return err } } - if v.SortConfiguration != nil { - ok := object.Key("SortConfiguration") - if err := awsRestjson1_serializeDocumentBarChartSortConfiguration(v.SortConfiguration, ok); err != nil { - return err - } + if v.SourceSheetControlId != nil { + ok := object.Key("SourceSheetControlId") + ok.String(*v.SourceSheetControlId) } - if v.Tooltip != nil { - ok := object.Key("Tooltip") - if err := awsRestjson1_serializeDocumentTooltipOptions(v.Tooltip, ok); err != nil { + return nil +} + +func awsRestjson1_serializeDocumentCascadingControlSourceList(v []types.CascadingControlSource, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentCascadingControlSource(&v[i], av); err != nil { return err } } + return nil +} - if v.ValueAxis != nil { - ok := object.Key("ValueAxis") - if err := awsRestjson1_serializeDocumentAxisDisplayOptions(v.ValueAxis, ok); err != nil { - return err - } +func awsRestjson1_serializeDocumentCastColumnTypeOperation(v *types.CastColumnTypeOperation, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ColumnName != nil { + ok := object.Key("ColumnName") + ok.String(*v.ColumnName) } - if v.ValueLabelOptions != nil { - ok := object.Key("ValueLabelOptions") - if err := awsRestjson1_serializeDocumentChartAxisLabelOptions(v.ValueLabelOptions, ok); err != nil { - return err - } + if v.Format != nil { + ok := object.Key("Format") + ok.String(*v.Format) } - if v.VisualPalette != nil { - ok := object.Key("VisualPalette") - if err := awsRestjson1_serializeDocumentVisualPalette(v.VisualPalette, ok); err != nil { - return err - } + if len(v.NewColumnType) > 0 { + ok := object.Key("NewColumnType") + ok.String(string(v.NewColumnType)) } return nil } -func awsRestjson1_serializeDocumentBarChartFieldWells(v *types.BarChartFieldWells, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentCategoricalDimensionField(v *types.CategoricalDimensionField, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.BarChartAggregatedFieldWells != nil { - ok := object.Key("BarChartAggregatedFieldWells") - if err := awsRestjson1_serializeDocumentBarChartAggregatedFieldWells(v.BarChartAggregatedFieldWells, ok); err != nil { + if v.Column != nil { + ok := object.Key("Column") + if err := awsRestjson1_serializeDocumentColumnIdentifier(v.Column, ok); err != nil { + return err + } + } + + if v.FieldId != nil { + ok := object.Key("FieldId") + ok.String(*v.FieldId) + } + + if v.FormatConfiguration != nil { + ok := object.Key("FormatConfiguration") + if err := awsRestjson1_serializeDocumentStringFormatConfiguration(v.FormatConfiguration, ok); err != nil { return err } } + if v.HierarchyId != nil { + ok := object.Key("HierarchyId") + ok.String(*v.HierarchyId) + } + return nil } -func awsRestjson1_serializeDocumentBarChartSortConfiguration(v *types.BarChartSortConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentCategoricalMeasureField(v *types.CategoricalMeasureField, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.CategoryItemsLimit != nil { - ok := object.Key("CategoryItemsLimit") - if err := awsRestjson1_serializeDocumentItemsLimitConfiguration(v.CategoryItemsLimit, ok); err != nil { - return err - } + if len(v.AggregationFunction) > 0 { + ok := object.Key("AggregationFunction") + ok.String(string(v.AggregationFunction)) } - if v.CategorySort != nil { - ok := object.Key("CategorySort") - if err := awsRestjson1_serializeDocumentFieldSortOptionsList(v.CategorySort, ok); err != nil { + if v.Column != nil { + ok := object.Key("Column") + if err := awsRestjson1_serializeDocumentColumnIdentifier(v.Column, ok); err != nil { return err } } - if v.ColorItemsLimit != nil { - ok := object.Key("ColorItemsLimit") - if err := awsRestjson1_serializeDocumentItemsLimitConfiguration(v.ColorItemsLimit, ok); err != nil { - return err - } + if v.FieldId != nil { + ok := object.Key("FieldId") + ok.String(*v.FieldId) } - if v.ColorSort != nil { - ok := object.Key("ColorSort") - if err := awsRestjson1_serializeDocumentFieldSortOptionsList(v.ColorSort, ok); err != nil { + if v.FormatConfiguration != nil { + ok := object.Key("FormatConfiguration") + if err := awsRestjson1_serializeDocumentStringFormatConfiguration(v.FormatConfiguration, ok); err != nil { return err } } - if v.SmallMultiplesLimitConfiguration != nil { - ok := object.Key("SmallMultiplesLimitConfiguration") - if err := awsRestjson1_serializeDocumentItemsLimitConfiguration(v.SmallMultiplesLimitConfiguration, ok); err != nil { + return nil +} + +func awsRestjson1_serializeDocumentCategoryDrillDownFilter(v *types.CategoryDrillDownFilter, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.CategoryValues != nil { + ok := object.Key("CategoryValues") + if err := awsRestjson1_serializeDocumentCategoryValueList(v.CategoryValues, ok); err != nil { return err } } - if v.SmallMultiplesSort != nil { - ok := object.Key("SmallMultiplesSort") - if err := awsRestjson1_serializeDocumentFieldSortOptionsList(v.SmallMultiplesSort, ok); err != nil { + if v.Column != nil { + ok := object.Key("Column") + if err := awsRestjson1_serializeDocumentColumnIdentifier(v.Column, ok); err != nil { return err } } @@ -12500,121 +14663,134 @@ func awsRestjson1_serializeDocumentBarChartSortConfiguration(v *types.BarChartSo return nil } -func awsRestjson1_serializeDocumentBarChartVisual(v *types.BarChartVisual, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentCategoryFilter(v *types.CategoryFilter, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Actions != nil { - ok := object.Key("Actions") - if err := awsRestjson1_serializeDocumentVisualCustomActionList(v.Actions, ok); err != nil { + if v.Column != nil { + ok := object.Key("Column") + if err := awsRestjson1_serializeDocumentColumnIdentifier(v.Column, ok); err != nil { return err } } - if v.ChartConfiguration != nil { - ok := object.Key("ChartConfiguration") - if err := awsRestjson1_serializeDocumentBarChartConfiguration(v.ChartConfiguration, ok); err != nil { + if v.Configuration != nil { + ok := object.Key("Configuration") + if err := awsRestjson1_serializeDocumentCategoryFilterConfiguration(v.Configuration, ok); err != nil { return err } } - if v.ColumnHierarchies != nil { - ok := object.Key("ColumnHierarchies") - if err := awsRestjson1_serializeDocumentColumnHierarchyList(v.ColumnHierarchies, ok); err != nil { - return err - } + if v.FilterId != nil { + ok := object.Key("FilterId") + ok.String(*v.FilterId) } - if v.Subtitle != nil { - ok := object.Key("Subtitle") - if err := awsRestjson1_serializeDocumentVisualSubtitleLabelOptions(v.Subtitle, ok); err != nil { + return nil +} + +func awsRestjson1_serializeDocumentCategoryFilterConfiguration(v *types.CategoryFilterConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.CustomFilterConfiguration != nil { + ok := object.Key("CustomFilterConfiguration") + if err := awsRestjson1_serializeDocumentCustomFilterConfiguration(v.CustomFilterConfiguration, ok); err != nil { return err } } - if v.Title != nil { - ok := object.Key("Title") - if err := awsRestjson1_serializeDocumentVisualTitleLabelOptions(v.Title, ok); err != nil { + if v.CustomFilterListConfiguration != nil { + ok := object.Key("CustomFilterListConfiguration") + if err := awsRestjson1_serializeDocumentCustomFilterListConfiguration(v.CustomFilterListConfiguration, ok); err != nil { return err } } - if v.VisualId != nil { - ok := object.Key("VisualId") - ok.String(*v.VisualId) + if v.FilterListConfiguration != nil { + ok := object.Key("FilterListConfiguration") + if err := awsRestjson1_serializeDocumentFilterListConfiguration(v.FilterListConfiguration, ok); err != nil { + return err + } } return nil } -func awsRestjson1_serializeDocumentBinCountOptions(v *types.BinCountOptions, value smithyjson.Value) error { - object := value.Object() - defer object.Close() +func awsRestjson1_serializeDocumentCategoryValueList(v []string, value smithyjson.Value) error { + array := value.Array() + defer array.Close() - if v.Value != nil { - ok := object.Key("Value") - ok.Integer(*v.Value) + for i := range v { + av := array.Value() + av.String(v[i]) } - return nil } -func awsRestjson1_serializeDocumentBinWidthOptions(v *types.BinWidthOptions, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentCellValueSynonym(v *types.CellValueSynonym, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.BinCountLimit != nil { - ok := object.Key("BinCountLimit") - ok.Long(*v.BinCountLimit) + if v.CellValue != nil { + ok := object.Key("CellValue") + ok.String(*v.CellValue) } - if v.Value != nil { - ok := object.Key("Value") - switch { - case math.IsNaN(*v.Value): - ok.String("NaN") - - case math.IsInf(*v.Value, 1): - ok.String("Infinity") + if v.Synonyms != nil { + ok := object.Key("Synonyms") + if err := awsRestjson1_serializeDocumentStringList(v.Synonyms, ok); err != nil { + return err + } + } - case math.IsInf(*v.Value, -1): - ok.String("-Infinity") + return nil +} - default: - ok.Double(*v.Value) +func awsRestjson1_serializeDocumentCellValueSynonyms(v []types.CellValueSynonym, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentCellValueSynonym(&v[i], av); err != nil { + return err } } - return nil } -func awsRestjson1_serializeDocumentBodySectionConfiguration(v *types.BodySectionConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentChartAxisLabelOptions(v *types.ChartAxisLabelOptions, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Content != nil { - ok := object.Key("Content") - if err := awsRestjson1_serializeDocumentBodySectionContent(v.Content, ok); err != nil { + if v.AxisLabelOptions != nil { + ok := object.Key("AxisLabelOptions") + if err := awsRestjson1_serializeDocumentAxisLabelOptionsList(v.AxisLabelOptions, ok); err != nil { return err } } - if v.PageBreakConfiguration != nil { - ok := object.Key("PageBreakConfiguration") - if err := awsRestjson1_serializeDocumentSectionPageBreakConfiguration(v.PageBreakConfiguration, ok); err != nil { - return err - } + if len(v.SortIconVisibility) > 0 { + ok := object.Key("SortIconVisibility") + ok.String(string(v.SortIconVisibility)) } - if v.SectionId != nil { - ok := object.Key("SectionId") - ok.String(*v.SectionId) + if len(v.Visibility) > 0 { + ok := object.Key("Visibility") + ok.String(string(v.Visibility)) } - if v.Style != nil { - ok := object.Key("Style") - if err := awsRestjson1_serializeDocumentSectionStyle(v.Style, ok); err != nil { + return nil +} + +func awsRestjson1_serializeDocumentClusterMarker(v *types.ClusterMarker, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.SimpleClusterMarker != nil { + ok := object.Key("SimpleClusterMarker") + if err := awsRestjson1_serializeDocumentSimpleClusterMarker(v.SimpleClusterMarker, ok); err != nil { return err } } @@ -12622,26 +14798,27 @@ func awsRestjson1_serializeDocumentBodySectionConfiguration(v *types.BodySection return nil } -func awsRestjson1_serializeDocumentBodySectionConfigurationList(v []types.BodySectionConfiguration, value smithyjson.Value) error { - array := value.Array() - defer array.Close() +func awsRestjson1_serializeDocumentClusterMarkerConfiguration(v *types.ClusterMarkerConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() - for i := range v { - av := array.Value() - if err := awsRestjson1_serializeDocumentBodySectionConfiguration(&v[i], av); err != nil { + if v.ClusterMarker != nil { + ok := object.Key("ClusterMarker") + if err := awsRestjson1_serializeDocumentClusterMarker(v.ClusterMarker, ok); err != nil { return err } } + return nil } -func awsRestjson1_serializeDocumentBodySectionContent(v *types.BodySectionContent, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentCollectiveConstant(v *types.CollectiveConstant, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Layout != nil { - ok := object.Key("Layout") - if err := awsRestjson1_serializeDocumentSectionLayoutConfiguration(v.Layout, ok); err != nil { + if v.ValueList != nil { + ok := object.Key("ValueList") + if err := awsRestjson1_serializeDocumentStringList(v.ValueList, ok); err != nil { return err } } @@ -12649,32 +14826,36 @@ func awsRestjson1_serializeDocumentBodySectionContent(v *types.BodySectionConten return nil } -func awsRestjson1_serializeDocumentBorderStyle(v *types.BorderStyle, value smithyjson.Value) error { - object := value.Object() - defer object.Close() +func awsRestjson1_serializeDocumentColorList(v []string, value smithyjson.Value) error { + array := value.Array() + defer array.Close() - if v.Show != nil { - ok := object.Key("Show") - ok.Boolean(*v.Show) + for i := range v { + av := array.Value() + av.String(v[i]) } - return nil } -func awsRestjson1_serializeDocumentBoxPlotAggregatedFieldWells(v *types.BoxPlotAggregatedFieldWells, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentColorScale(v *types.ColorScale, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.GroupBy != nil { - ok := object.Key("GroupBy") - if err := awsRestjson1_serializeDocumentBoxPlotDimensionFieldList(v.GroupBy, ok); err != nil { + if len(v.ColorFillType) > 0 { + ok := object.Key("ColorFillType") + ok.String(string(v.ColorFillType)) + } + + if v.Colors != nil { + ok := object.Key("Colors") + if err := awsRestjson1_serializeDocumentColorScaleColorList(v.Colors, ok); err != nil { return err } } - if v.Values != nil { - ok := object.Key("Values") - if err := awsRestjson1_serializeDocumentBoxPlotMeasureFieldList(v.Values, ok); err != nil { + if v.NullValueColor != nil { + ok := object.Key("NullValueColor") + if err := awsRestjson1_serializeDocumentDataColor(v.NullValueColor, ok); err != nil { return err } } @@ -12682,168 +14863,175 @@ func awsRestjson1_serializeDocumentBoxPlotAggregatedFieldWells(v *types.BoxPlotA return nil } -func awsRestjson1_serializeDocumentBoxPlotChartConfiguration(v *types.BoxPlotChartConfiguration, value smithyjson.Value) error { - object := value.Object() - defer object.Close() +func awsRestjson1_serializeDocumentColorScaleColorList(v []types.DataColor, value smithyjson.Value) error { + array := value.Array() + defer array.Close() - if v.BoxPlotOptions != nil { - ok := object.Key("BoxPlotOptions") - if err := awsRestjson1_serializeDocumentBoxPlotOptions(v.BoxPlotOptions, ok); err != nil { + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentDataColor(&v[i], av); err != nil { return err } } + return nil +} - if v.CategoryAxis != nil { - ok := object.Key("CategoryAxis") - if err := awsRestjson1_serializeDocumentAxisDisplayOptions(v.CategoryAxis, ok); err != nil { - return err - } - } +func awsRestjson1_serializeDocumentColumnConfiguration(v *types.ColumnConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() - if v.CategoryLabelOptions != nil { - ok := object.Key("CategoryLabelOptions") - if err := awsRestjson1_serializeDocumentChartAxisLabelOptions(v.CategoryLabelOptions, ok); err != nil { + if v.Column != nil { + ok := object.Key("Column") + if err := awsRestjson1_serializeDocumentColumnIdentifier(v.Column, ok); err != nil { return err } } - if v.FieldWells != nil { - ok := object.Key("FieldWells") - if err := awsRestjson1_serializeDocumentBoxPlotFieldWells(v.FieldWells, ok); err != nil { + if v.FormatConfiguration != nil { + ok := object.Key("FormatConfiguration") + if err := awsRestjson1_serializeDocumentFormatConfiguration(v.FormatConfiguration, ok); err != nil { return err } } - if v.Legend != nil { - ok := object.Key("Legend") - if err := awsRestjson1_serializeDocumentLegendOptions(v.Legend, ok); err != nil { - return err - } + if len(v.Role) > 0 { + ok := object.Key("Role") + ok.String(string(v.Role)) } - if v.PrimaryYAxisDisplayOptions != nil { - ok := object.Key("PrimaryYAxisDisplayOptions") - if err := awsRestjson1_serializeDocumentAxisDisplayOptions(v.PrimaryYAxisDisplayOptions, ok); err != nil { - return err - } - } + return nil +} - if v.PrimaryYAxisLabelOptions != nil { - ok := object.Key("PrimaryYAxisLabelOptions") - if err := awsRestjson1_serializeDocumentChartAxisLabelOptions(v.PrimaryYAxisLabelOptions, ok); err != nil { +func awsRestjson1_serializeDocumentColumnConfigurationList(v []types.ColumnConfiguration, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentColumnConfiguration(&v[i], av); err != nil { return err } } + return nil +} - if v.ReferenceLines != nil { - ok := object.Key("ReferenceLines") - if err := awsRestjson1_serializeDocumentReferenceLineList(v.ReferenceLines, ok); err != nil { - return err - } +func awsRestjson1_serializeDocumentColumnDescription(v *types.ColumnDescription, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Text != nil { + ok := object.Key("Text") + ok.String(*v.Text) } - if v.SortConfiguration != nil { - ok := object.Key("SortConfiguration") - if err := awsRestjson1_serializeDocumentBoxPlotSortConfiguration(v.SortConfiguration, ok); err != nil { + return nil +} + +func awsRestjson1_serializeDocumentColumnGroup(v *types.ColumnGroup, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.GeoSpatialColumnGroup != nil { + ok := object.Key("GeoSpatialColumnGroup") + if err := awsRestjson1_serializeDocumentGeoSpatialColumnGroup(v.GeoSpatialColumnGroup, ok); err != nil { return err } } - if v.Tooltip != nil { - ok := object.Key("Tooltip") - if err := awsRestjson1_serializeDocumentTooltipOptions(v.Tooltip, ok); err != nil { - return err - } + return nil +} + +func awsRestjson1_serializeDocumentColumnGroupColumnSchema(v *types.ColumnGroupColumnSchema, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Name != nil { + ok := object.Key("Name") + ok.String(*v.Name) } - if v.VisualPalette != nil { - ok := object.Key("VisualPalette") - if err := awsRestjson1_serializeDocumentVisualPalette(v.VisualPalette, ok); err != nil { + return nil +} + +func awsRestjson1_serializeDocumentColumnGroupColumnSchemaList(v []types.ColumnGroupColumnSchema, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentColumnGroupColumnSchema(&v[i], av); err != nil { return err } } - return nil } -func awsRestjson1_serializeDocumentBoxPlotDimensionFieldList(v []types.DimensionField, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentColumnGroupList(v []types.ColumnGroup, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if err := awsRestjson1_serializeDocumentDimensionField(&v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentColumnGroup(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentBoxPlotFieldWells(v *types.BoxPlotFieldWells, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentColumnGroupSchema(v *types.ColumnGroupSchema, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.BoxPlotAggregatedFieldWells != nil { - ok := object.Key("BoxPlotAggregatedFieldWells") - if err := awsRestjson1_serializeDocumentBoxPlotAggregatedFieldWells(v.BoxPlotAggregatedFieldWells, ok); err != nil { + if v.ColumnGroupColumnSchemaList != nil { + ok := object.Key("ColumnGroupColumnSchemaList") + if err := awsRestjson1_serializeDocumentColumnGroupColumnSchemaList(v.ColumnGroupColumnSchemaList, ok); err != nil { return err } } + if v.Name != nil { + ok := object.Key("Name") + ok.String(*v.Name) + } + return nil } -func awsRestjson1_serializeDocumentBoxPlotMeasureFieldList(v []types.MeasureField, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentColumnGroupSchemaList(v []types.ColumnGroupSchema, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if err := awsRestjson1_serializeDocumentMeasureField(&v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentColumnGroupSchema(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentBoxPlotOptions(v *types.BoxPlotOptions, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentColumnHierarchy(v *types.ColumnHierarchy, value smithyjson.Value) error { object := value.Object() defer object.Close() - if len(v.AllDataPointsVisibility) > 0 { - ok := object.Key("AllDataPointsVisibility") - ok.String(string(v.AllDataPointsVisibility)) - } - - if len(v.OutlierVisibility) > 0 { - ok := object.Key("OutlierVisibility") - ok.String(string(v.OutlierVisibility)) - } - - if v.StyleOptions != nil { - ok := object.Key("StyleOptions") - if err := awsRestjson1_serializeDocumentBoxPlotStyleOptions(v.StyleOptions, ok); err != nil { + if v.DateTimeHierarchy != nil { + ok := object.Key("DateTimeHierarchy") + if err := awsRestjson1_serializeDocumentDateTimeHierarchy(v.DateTimeHierarchy, ok); err != nil { return err } } - return nil -} - -func awsRestjson1_serializeDocumentBoxPlotSortConfiguration(v *types.BoxPlotSortConfiguration, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.CategorySort != nil { - ok := object.Key("CategorySort") - if err := awsRestjson1_serializeDocumentFieldSortOptionsList(v.CategorySort, ok); err != nil { + if v.ExplicitHierarchy != nil { + ok := object.Key("ExplicitHierarchy") + if err := awsRestjson1_serializeDocumentExplicitHierarchy(v.ExplicitHierarchy, ok); err != nil { return err } } - if v.PaginationConfiguration != nil { - ok := object.Key("PaginationConfiguration") - if err := awsRestjson1_serializeDocumentPaginationConfiguration(v.PaginationConfiguration, ok); err != nil { + if v.PredefinedHierarchy != nil { + ok := object.Key("PredefinedHierarchy") + if err := awsRestjson1_serializeDocumentPredefinedHierarchy(v.PredefinedHierarchy, ok); err != nil { return err } } @@ -12851,112 +15039,104 @@ func awsRestjson1_serializeDocumentBoxPlotSortConfiguration(v *types.BoxPlotSort return nil } -func awsRestjson1_serializeDocumentBoxPlotStyleOptions(v *types.BoxPlotStyleOptions, value smithyjson.Value) error { - object := value.Object() - defer object.Close() +func awsRestjson1_serializeDocumentColumnHierarchyList(v []types.ColumnHierarchy, value smithyjson.Value) error { + array := value.Array() + defer array.Close() - if len(v.FillStyle) > 0 { - ok := object.Key("FillStyle") - ok.String(string(v.FillStyle)) + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentColumnHierarchy(&v[i], av); err != nil { + return err + } } - return nil } -func awsRestjson1_serializeDocumentBoxPlotVisual(v *types.BoxPlotVisual, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentColumnIdentifier(v *types.ColumnIdentifier, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Actions != nil { - ok := object.Key("Actions") - if err := awsRestjson1_serializeDocumentVisualCustomActionList(v.Actions, ok); err != nil { - return err - } - } - - if v.ChartConfiguration != nil { - ok := object.Key("ChartConfiguration") - if err := awsRestjson1_serializeDocumentBoxPlotChartConfiguration(v.ChartConfiguration, ok); err != nil { - return err - } + if v.ColumnName != nil { + ok := object.Key("ColumnName") + ok.String(*v.ColumnName) } - if v.ColumnHierarchies != nil { - ok := object.Key("ColumnHierarchies") - if err := awsRestjson1_serializeDocumentColumnHierarchyList(v.ColumnHierarchies, ok); err != nil { - return err - } + if v.DataSetIdentifier != nil { + ok := object.Key("DataSetIdentifier") + ok.String(*v.DataSetIdentifier) } - if v.Subtitle != nil { - ok := object.Key("Subtitle") - if err := awsRestjson1_serializeDocumentVisualSubtitleLabelOptions(v.Subtitle, ok); err != nil { + return nil +} + +func awsRestjson1_serializeDocumentColumnLevelPermissionRule(v *types.ColumnLevelPermissionRule, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ColumnNames != nil { + ok := object.Key("ColumnNames") + if err := awsRestjson1_serializeDocumentColumnNameList(v.ColumnNames, ok); err != nil { return err } } - if v.Title != nil { - ok := object.Key("Title") - if err := awsRestjson1_serializeDocumentVisualTitleLabelOptions(v.Title, ok); err != nil { + if v.Principals != nil { + ok := object.Key("Principals") + if err := awsRestjson1_serializeDocumentPrincipalList(v.Principals, ok); err != nil { return err } } - if v.VisualId != nil { - ok := object.Key("VisualId") - ok.String(*v.VisualId) - } - return nil } -func awsRestjson1_serializeDocumentCalculatedColumn(v *types.CalculatedColumn, value smithyjson.Value) error { - object := value.Object() - defer object.Close() +func awsRestjson1_serializeDocumentColumnLevelPermissionRuleList(v []types.ColumnLevelPermissionRule, value smithyjson.Value) error { + array := value.Array() + defer array.Close() - if v.ColumnId != nil { - ok := object.Key("ColumnId") - ok.String(*v.ColumnId) + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentColumnLevelPermissionRule(&v[i], av); err != nil { + return err + } } + return nil +} - if v.ColumnName != nil { - ok := object.Key("ColumnName") - ok.String(*v.ColumnName) - } +func awsRestjson1_serializeDocumentColumnList(v []string, value smithyjson.Value) error { + array := value.Array() + defer array.Close() - if v.Expression != nil { - ok := object.Key("Expression") - ok.String(*v.Expression) + for i := range v { + av := array.Value() + av.String(v[i]) } - return nil } -func awsRestjson1_serializeDocumentCalculatedColumnList(v []types.CalculatedColumn, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentColumnNameList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if err := awsRestjson1_serializeDocumentCalculatedColumn(&v[i], av); err != nil { - return err - } + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentCalculatedField(v *types.CalculatedField, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentColumnSchema(v *types.ColumnSchema, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.DataSetIdentifier != nil { - ok := object.Key("DataSetIdentifier") - ok.String(*v.DataSetIdentifier) + if v.DataType != nil { + ok := object.Key("DataType") + ok.String(*v.DataType) } - if v.Expression != nil { - ok := object.Key("Expression") - ok.String(*v.Expression) + if v.GeographicRole != nil { + ok := object.Key("GeographicRole") + ok.String(*v.GeographicRole) } if v.Name != nil { @@ -12967,159 +15147,264 @@ func awsRestjson1_serializeDocumentCalculatedField(v *types.CalculatedField, val return nil } -func awsRestjson1_serializeDocumentCalculatedFields(v []types.CalculatedField, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentColumnSchemaList(v []types.ColumnSchema, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if err := awsRestjson1_serializeDocumentCalculatedField(&v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentColumnSchema(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentCalculatedMeasureField(v *types.CalculatedMeasureField, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentColumnSort(v *types.ColumnSort, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Expression != nil { - ok := object.Key("Expression") - ok.String(*v.Expression) + if v.AggregationFunction != nil { + ok := object.Key("AggregationFunction") + if err := awsRestjson1_serializeDocumentAggregationFunction(v.AggregationFunction, ok); err != nil { + return err + } } - if v.FieldId != nil { - ok := object.Key("FieldId") - ok.String(*v.FieldId) + if len(v.Direction) > 0 { + ok := object.Key("Direction") + ok.String(string(v.Direction)) + } + + if v.SortBy != nil { + ok := object.Key("SortBy") + if err := awsRestjson1_serializeDocumentColumnIdentifier(v.SortBy, ok); err != nil { + return err + } } return nil } -func awsRestjson1_serializeDocumentCascadingControlConfiguration(v *types.CascadingControlConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentColumnTag(v *types.ColumnTag, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.SourceControls != nil { - ok := object.Key("SourceControls") - if err := awsRestjson1_serializeDocumentCascadingControlSourceList(v.SourceControls, ok); err != nil { + if v.ColumnDescription != nil { + ok := object.Key("ColumnDescription") + if err := awsRestjson1_serializeDocumentColumnDescription(v.ColumnDescription, ok); err != nil { return err } } + if len(v.ColumnGeographicRole) > 0 { + ok := object.Key("ColumnGeographicRole") + ok.String(string(v.ColumnGeographicRole)) + } + return nil } -func awsRestjson1_serializeDocumentCascadingControlSource(v *types.CascadingControlSource, value smithyjson.Value) error { - object := value.Object() - defer object.Close() +func awsRestjson1_serializeDocumentColumnTagList(v []types.ColumnTag, value smithyjson.Value) error { + array := value.Array() + defer array.Close() - if v.ColumnToMatch != nil { - ok := object.Key("ColumnToMatch") - if err := awsRestjson1_serializeDocumentColumnIdentifier(v.ColumnToMatch, ok); err != nil { + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentColumnTag(&v[i], av); err != nil { return err } } - - if v.SourceSheetControlId != nil { - ok := object.Key("SourceSheetControlId") - ok.String(*v.SourceSheetControlId) - } - return nil } -func awsRestjson1_serializeDocumentCascadingControlSourceList(v []types.CascadingControlSource, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentColumnTagNames(v []types.ColumnTagName, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if err := awsRestjson1_serializeDocumentCascadingControlSource(&v[i], av); err != nil { + av.String(string(v[i])) + } + return nil +} + +func awsRestjson1_serializeDocumentColumnTooltipItem(v *types.ColumnTooltipItem, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Aggregation != nil { + ok := object.Key("Aggregation") + if err := awsRestjson1_serializeDocumentAggregationFunction(v.Aggregation, ok); err != nil { + return err + } + } + + if v.Column != nil { + ok := object.Key("Column") + if err := awsRestjson1_serializeDocumentColumnIdentifier(v.Column, ok); err != nil { return err } } + + if v.Label != nil { + ok := object.Key("Label") + ok.String(*v.Label) + } + + if len(v.Visibility) > 0 { + ok := object.Key("Visibility") + ok.String(string(v.Visibility)) + } + return nil } -func awsRestjson1_serializeDocumentCastColumnTypeOperation(v *types.CastColumnTypeOperation, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentComboChartAggregatedFieldWells(v *types.ComboChartAggregatedFieldWells, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.ColumnName != nil { - ok := object.Key("ColumnName") - ok.String(*v.ColumnName) + if v.BarValues != nil { + ok := object.Key("BarValues") + if err := awsRestjson1_serializeDocumentMeasureFieldList(v.BarValues, ok); err != nil { + return err + } } - if v.Format != nil { - ok := object.Key("Format") - ok.String(*v.Format) + if v.Category != nil { + ok := object.Key("Category") + if err := awsRestjson1_serializeDocumentDimensionFieldList(v.Category, ok); err != nil { + return err + } } - if len(v.NewColumnType) > 0 { - ok := object.Key("NewColumnType") - ok.String(string(v.NewColumnType)) + if v.Colors != nil { + ok := object.Key("Colors") + if err := awsRestjson1_serializeDocumentDimensionFieldList(v.Colors, ok); err != nil { + return err + } + } + + if v.LineValues != nil { + ok := object.Key("LineValues") + if err := awsRestjson1_serializeDocumentMeasureFieldList(v.LineValues, ok); err != nil { + return err + } } return nil } -func awsRestjson1_serializeDocumentCategoricalDimensionField(v *types.CategoricalDimensionField, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentComboChartConfiguration(v *types.ComboChartConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Column != nil { - ok := object.Key("Column") - if err := awsRestjson1_serializeDocumentColumnIdentifier(v.Column, ok); err != nil { + if v.BarDataLabels != nil { + ok := object.Key("BarDataLabels") + if err := awsRestjson1_serializeDocumentDataLabelOptions(v.BarDataLabels, ok); err != nil { + return err + } + } + + if len(v.BarsArrangement) > 0 { + ok := object.Key("BarsArrangement") + ok.String(string(v.BarsArrangement)) + } + + if v.CategoryAxis != nil { + ok := object.Key("CategoryAxis") + if err := awsRestjson1_serializeDocumentAxisDisplayOptions(v.CategoryAxis, ok); err != nil { + return err + } + } + + if v.CategoryLabelOptions != nil { + ok := object.Key("CategoryLabelOptions") + if err := awsRestjson1_serializeDocumentChartAxisLabelOptions(v.CategoryLabelOptions, ok); err != nil { + return err + } + } + + if v.ColorLabelOptions != nil { + ok := object.Key("ColorLabelOptions") + if err := awsRestjson1_serializeDocumentChartAxisLabelOptions(v.ColorLabelOptions, ok); err != nil { + return err + } + } + + if v.FieldWells != nil { + ok := object.Key("FieldWells") + if err := awsRestjson1_serializeDocumentComboChartFieldWells(v.FieldWells, ok); err != nil { + return err + } + } + + if v.Legend != nil { + ok := object.Key("Legend") + if err := awsRestjson1_serializeDocumentLegendOptions(v.Legend, ok); err != nil { + return err + } + } + + if v.LineDataLabels != nil { + ok := object.Key("LineDataLabels") + if err := awsRestjson1_serializeDocumentDataLabelOptions(v.LineDataLabels, ok); err != nil { return err } } - if v.FieldId != nil { - ok := object.Key("FieldId") - ok.String(*v.FieldId) + if v.PrimaryYAxisDisplayOptions != nil { + ok := object.Key("PrimaryYAxisDisplayOptions") + if err := awsRestjson1_serializeDocumentAxisDisplayOptions(v.PrimaryYAxisDisplayOptions, ok); err != nil { + return err + } } - if v.FormatConfiguration != nil { - ok := object.Key("FormatConfiguration") - if err := awsRestjson1_serializeDocumentStringFormatConfiguration(v.FormatConfiguration, ok); err != nil { + if v.PrimaryYAxisLabelOptions != nil { + ok := object.Key("PrimaryYAxisLabelOptions") + if err := awsRestjson1_serializeDocumentChartAxisLabelOptions(v.PrimaryYAxisLabelOptions, ok); err != nil { return err } } - if v.HierarchyId != nil { - ok := object.Key("HierarchyId") - ok.String(*v.HierarchyId) + if v.ReferenceLines != nil { + ok := object.Key("ReferenceLines") + if err := awsRestjson1_serializeDocumentReferenceLineList(v.ReferenceLines, ok); err != nil { + return err + } } - return nil -} - -func awsRestjson1_serializeDocumentCategoricalMeasureField(v *types.CategoricalMeasureField, value smithyjson.Value) error { - object := value.Object() - defer object.Close() + if v.SecondaryYAxisDisplayOptions != nil { + ok := object.Key("SecondaryYAxisDisplayOptions") + if err := awsRestjson1_serializeDocumentAxisDisplayOptions(v.SecondaryYAxisDisplayOptions, ok); err != nil { + return err + } + } - if len(v.AggregationFunction) > 0 { - ok := object.Key("AggregationFunction") - ok.String(string(v.AggregationFunction)) + if v.SecondaryYAxisLabelOptions != nil { + ok := object.Key("SecondaryYAxisLabelOptions") + if err := awsRestjson1_serializeDocumentChartAxisLabelOptions(v.SecondaryYAxisLabelOptions, ok); err != nil { + return err + } } - if v.Column != nil { - ok := object.Key("Column") - if err := awsRestjson1_serializeDocumentColumnIdentifier(v.Column, ok); err != nil { + if v.SortConfiguration != nil { + ok := object.Key("SortConfiguration") + if err := awsRestjson1_serializeDocumentComboChartSortConfiguration(v.SortConfiguration, ok); err != nil { return err } } - if v.FieldId != nil { - ok := object.Key("FieldId") - ok.String(*v.FieldId) + if v.Tooltip != nil { + ok := object.Key("Tooltip") + if err := awsRestjson1_serializeDocumentTooltipOptions(v.Tooltip, ok); err != nil { + return err + } } - if v.FormatConfiguration != nil { - ok := object.Key("FormatConfiguration") - if err := awsRestjson1_serializeDocumentStringFormatConfiguration(v.FormatConfiguration, ok); err != nil { + if v.VisualPalette != nil { + ok := object.Key("VisualPalette") + if err := awsRestjson1_serializeDocumentVisualPalette(v.VisualPalette, ok); err != nil { return err } } @@ -13127,20 +15412,13 @@ func awsRestjson1_serializeDocumentCategoricalMeasureField(v *types.CategoricalM return nil } -func awsRestjson1_serializeDocumentCategoryDrillDownFilter(v *types.CategoryDrillDownFilter, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentComboChartFieldWells(v *types.ComboChartFieldWells, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.CategoryValues != nil { - ok := object.Key("CategoryValues") - if err := awsRestjson1_serializeDocumentCategoryValueList(v.CategoryValues, ok); err != nil { - return err - } - } - - if v.Column != nil { - ok := object.Key("Column") - if err := awsRestjson1_serializeDocumentColumnIdentifier(v.Column, ok); err != nil { + if v.ComboChartAggregatedFieldWells != nil { + ok := object.Key("ComboChartAggregatedFieldWells") + if err := awsRestjson1_serializeDocumentComboChartAggregatedFieldWells(v.ComboChartAggregatedFieldWells, ok); err != nil { return err } } @@ -13148,231 +15426,256 @@ func awsRestjson1_serializeDocumentCategoryDrillDownFilter(v *types.CategoryDril return nil } -func awsRestjson1_serializeDocumentCategoryFilter(v *types.CategoryFilter, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentComboChartSortConfiguration(v *types.ComboChartSortConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Column != nil { - ok := object.Key("Column") - if err := awsRestjson1_serializeDocumentColumnIdentifier(v.Column, ok); err != nil { + if v.CategoryItemsLimit != nil { + ok := object.Key("CategoryItemsLimit") + if err := awsRestjson1_serializeDocumentItemsLimitConfiguration(v.CategoryItemsLimit, ok); err != nil { return err } } - if v.Configuration != nil { - ok := object.Key("Configuration") - if err := awsRestjson1_serializeDocumentCategoryFilterConfiguration(v.Configuration, ok); err != nil { + if v.CategorySort != nil { + ok := object.Key("CategorySort") + if err := awsRestjson1_serializeDocumentFieldSortOptionsList(v.CategorySort, ok); err != nil { return err } } - if v.FilterId != nil { - ok := object.Key("FilterId") - ok.String(*v.FilterId) + if v.ColorItemsLimit != nil { + ok := object.Key("ColorItemsLimit") + if err := awsRestjson1_serializeDocumentItemsLimitConfiguration(v.ColorItemsLimit, ok); err != nil { + return err + } + } + + if v.ColorSort != nil { + ok := object.Key("ColorSort") + if err := awsRestjson1_serializeDocumentFieldSortOptionsList(v.ColorSort, ok); err != nil { + return err + } } return nil } -func awsRestjson1_serializeDocumentCategoryFilterConfiguration(v *types.CategoryFilterConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentComboChartVisual(v *types.ComboChartVisual, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.CustomFilterConfiguration != nil { - ok := object.Key("CustomFilterConfiguration") - if err := awsRestjson1_serializeDocumentCustomFilterConfiguration(v.CustomFilterConfiguration, ok); err != nil { + if v.Actions != nil { + ok := object.Key("Actions") + if err := awsRestjson1_serializeDocumentVisualCustomActionList(v.Actions, ok); err != nil { return err } } - if v.CustomFilterListConfiguration != nil { - ok := object.Key("CustomFilterListConfiguration") - if err := awsRestjson1_serializeDocumentCustomFilterListConfiguration(v.CustomFilterListConfiguration, ok); err != nil { + if v.ChartConfiguration != nil { + ok := object.Key("ChartConfiguration") + if err := awsRestjson1_serializeDocumentComboChartConfiguration(v.ChartConfiguration, ok); err != nil { return err } } - if v.FilterListConfiguration != nil { - ok := object.Key("FilterListConfiguration") - if err := awsRestjson1_serializeDocumentFilterListConfiguration(v.FilterListConfiguration, ok); err != nil { + if v.ColumnHierarchies != nil { + ok := object.Key("ColumnHierarchies") + if err := awsRestjson1_serializeDocumentColumnHierarchyList(v.ColumnHierarchies, ok); err != nil { return err } } - return nil -} + if v.Subtitle != nil { + ok := object.Key("Subtitle") + if err := awsRestjson1_serializeDocumentVisualSubtitleLabelOptions(v.Subtitle, ok); err != nil { + return err + } + } -func awsRestjson1_serializeDocumentCategoryValueList(v []string, value smithyjson.Value) error { - array := value.Array() - defer array.Close() + if v.Title != nil { + ok := object.Key("Title") + if err := awsRestjson1_serializeDocumentVisualTitleLabelOptions(v.Title, ok); err != nil { + return err + } + } - for i := range v { - av := array.Value() - av.String(v[i]) + if v.VisualId != nil { + ok := object.Key("VisualId") + ok.String(*v.VisualId) } + return nil } -func awsRestjson1_serializeDocumentChartAxisLabelOptions(v *types.ChartAxisLabelOptions, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentComparativeOrder(v *types.ComparativeOrder, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.AxisLabelOptions != nil { - ok := object.Key("AxisLabelOptions") - if err := awsRestjson1_serializeDocumentAxisLabelOptionsList(v.AxisLabelOptions, ok); err != nil { + if v.SpecifedOrder != nil { + ok := object.Key("SpecifedOrder") + if err := awsRestjson1_serializeDocumentStringList(v.SpecifedOrder, ok); err != nil { return err } } - if len(v.SortIconVisibility) > 0 { - ok := object.Key("SortIconVisibility") - ok.String(string(v.SortIconVisibility)) + if len(v.TreatUndefinedSpecifiedValues) > 0 { + ok := object.Key("TreatUndefinedSpecifiedValues") + ok.String(string(v.TreatUndefinedSpecifiedValues)) } - if len(v.Visibility) > 0 { - ok := object.Key("Visibility") - ok.String(string(v.Visibility)) + if len(v.UseOrdering) > 0 { + ok := object.Key("UseOrdering") + ok.String(string(v.UseOrdering)) } return nil } -func awsRestjson1_serializeDocumentClusterMarker(v *types.ClusterMarker, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentComparisonConfiguration(v *types.ComparisonConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.SimpleClusterMarker != nil { - ok := object.Key("SimpleClusterMarker") - if err := awsRestjson1_serializeDocumentSimpleClusterMarker(v.SimpleClusterMarker, ok); err != nil { + if v.ComparisonFormat != nil { + ok := object.Key("ComparisonFormat") + if err := awsRestjson1_serializeDocumentComparisonFormatConfiguration(v.ComparisonFormat, ok); err != nil { return err } } + if len(v.ComparisonMethod) > 0 { + ok := object.Key("ComparisonMethod") + ok.String(string(v.ComparisonMethod)) + } + return nil } -func awsRestjson1_serializeDocumentClusterMarkerConfiguration(v *types.ClusterMarkerConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentComparisonFormatConfiguration(v *types.ComparisonFormatConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.ClusterMarker != nil { - ok := object.Key("ClusterMarker") - if err := awsRestjson1_serializeDocumentClusterMarker(v.ClusterMarker, ok); err != nil { + if v.NumberDisplayFormatConfiguration != nil { + ok := object.Key("NumberDisplayFormatConfiguration") + if err := awsRestjson1_serializeDocumentNumberDisplayFormatConfiguration(v.NumberDisplayFormatConfiguration, ok); err != nil { return err } } - return nil -} - -func awsRestjson1_serializeDocumentColorList(v []string, value smithyjson.Value) error { - array := value.Array() - defer array.Close() - - for i := range v { - av := array.Value() - av.String(v[i]) + if v.PercentageDisplayFormatConfiguration != nil { + ok := object.Key("PercentageDisplayFormatConfiguration") + if err := awsRestjson1_serializeDocumentPercentageDisplayFormatConfiguration(v.PercentageDisplayFormatConfiguration, ok); err != nil { + return err + } } + return nil } -func awsRestjson1_serializeDocumentColorScale(v *types.ColorScale, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentComputation(v *types.Computation, value smithyjson.Value) error { object := value.Object() defer object.Close() - if len(v.ColorFillType) > 0 { - ok := object.Key("ColorFillType") - ok.String(string(v.ColorFillType)) + if v.Forecast != nil { + ok := object.Key("Forecast") + if err := awsRestjson1_serializeDocumentForecastComputation(v.Forecast, ok); err != nil { + return err + } } - if v.Colors != nil { - ok := object.Key("Colors") - if err := awsRestjson1_serializeDocumentColorScaleColorList(v.Colors, ok); err != nil { + if v.GrowthRate != nil { + ok := object.Key("GrowthRate") + if err := awsRestjson1_serializeDocumentGrowthRateComputation(v.GrowthRate, ok); err != nil { return err } } - if v.NullValueColor != nil { - ok := object.Key("NullValueColor") - if err := awsRestjson1_serializeDocumentDataColor(v.NullValueColor, ok); err != nil { + if v.MaximumMinimum != nil { + ok := object.Key("MaximumMinimum") + if err := awsRestjson1_serializeDocumentMaximumMinimumComputation(v.MaximumMinimum, ok); err != nil { return err } } - return nil -} + if v.MetricComparison != nil { + ok := object.Key("MetricComparison") + if err := awsRestjson1_serializeDocumentMetricComparisonComputation(v.MetricComparison, ok); err != nil { + return err + } + } -func awsRestjson1_serializeDocumentColorScaleColorList(v []types.DataColor, value smithyjson.Value) error { - array := value.Array() - defer array.Close() + if v.PeriodOverPeriod != nil { + ok := object.Key("PeriodOverPeriod") + if err := awsRestjson1_serializeDocumentPeriodOverPeriodComputation(v.PeriodOverPeriod, ok); err != nil { + return err + } + } - for i := range v { - av := array.Value() - if err := awsRestjson1_serializeDocumentDataColor(&v[i], av); err != nil { + if v.PeriodToDate != nil { + ok := object.Key("PeriodToDate") + if err := awsRestjson1_serializeDocumentPeriodToDateComputation(v.PeriodToDate, ok); err != nil { return err } } - return nil -} -func awsRestjson1_serializeDocumentColumnConfiguration(v *types.ColumnConfiguration, value smithyjson.Value) error { - object := value.Object() - defer object.Close() + if v.TopBottomMovers != nil { + ok := object.Key("TopBottomMovers") + if err := awsRestjson1_serializeDocumentTopBottomMoversComputation(v.TopBottomMovers, ok); err != nil { + return err + } + } - if v.Column != nil { - ok := object.Key("Column") - if err := awsRestjson1_serializeDocumentColumnIdentifier(v.Column, ok); err != nil { + if v.TopBottomRanked != nil { + ok := object.Key("TopBottomRanked") + if err := awsRestjson1_serializeDocumentTopBottomRankedComputation(v.TopBottomRanked, ok); err != nil { return err } } - if v.FormatConfiguration != nil { - ok := object.Key("FormatConfiguration") - if err := awsRestjson1_serializeDocumentFormatConfiguration(v.FormatConfiguration, ok); err != nil { + if v.TotalAggregation != nil { + ok := object.Key("TotalAggregation") + if err := awsRestjson1_serializeDocumentTotalAggregationComputation(v.TotalAggregation, ok); err != nil { return err } } - if len(v.Role) > 0 { - ok := object.Key("Role") - ok.String(string(v.Role)) + if v.UniqueValues != nil { + ok := object.Key("UniqueValues") + if err := awsRestjson1_serializeDocumentUniqueValuesComputation(v.UniqueValues, ok); err != nil { + return err + } } return nil } -func awsRestjson1_serializeDocumentColumnConfigurationList(v []types.ColumnConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentComputationList(v []types.Computation, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if err := awsRestjson1_serializeDocumentColumnConfiguration(&v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentComputation(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentColumnDescription(v *types.ColumnDescription, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentConditionalFormattingColor(v *types.ConditionalFormattingColor, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Text != nil { - ok := object.Key("Text") - ok.String(*v.Text) + if v.Gradient != nil { + ok := object.Key("Gradient") + if err := awsRestjson1_serializeDocumentConditionalFormattingGradientColor(v.Gradient, ok); err != nil { + return err + } } - return nil -} - -func awsRestjson1_serializeDocumentColumnGroup(v *types.ColumnGroup, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.GeoSpatialColumnGroup != nil { - ok := object.Key("GeoSpatialColumnGroup") - if err := awsRestjson1_serializeDocumentGeoSpatialColumnGroup(v.GeoSpatialColumnGroup, ok); err != nil { + if v.Solid != nil { + ok := object.Key("Solid") + if err := awsRestjson1_serializeDocumentConditionalFormattingSolidColor(v.Solid, ok); err != nil { return err } } @@ -13380,353 +15683,333 @@ func awsRestjson1_serializeDocumentColumnGroup(v *types.ColumnGroup, value smith return nil } -func awsRestjson1_serializeDocumentColumnGroupColumnSchema(v *types.ColumnGroupColumnSchema, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentConditionalFormattingCustomIconCondition(v *types.ConditionalFormattingCustomIconCondition, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Name != nil { - ok := object.Key("Name") - ok.String(*v.Name) + if v.Color != nil { + ok := object.Key("Color") + ok.String(*v.Color) } - return nil -} - -func awsRestjson1_serializeDocumentColumnGroupColumnSchemaList(v []types.ColumnGroupColumnSchema, value smithyjson.Value) error { - array := value.Array() - defer array.Close() - - for i := range v { - av := array.Value() - if err := awsRestjson1_serializeDocumentColumnGroupColumnSchema(&v[i], av); err != nil { + if v.DisplayConfiguration != nil { + ok := object.Key("DisplayConfiguration") + if err := awsRestjson1_serializeDocumentConditionalFormattingIconDisplayConfiguration(v.DisplayConfiguration, ok); err != nil { return err } } - return nil -} -func awsRestjson1_serializeDocumentColumnGroupList(v []types.ColumnGroup, value smithyjson.Value) error { - array := value.Array() - defer array.Close() + if v.Expression != nil { + ok := object.Key("Expression") + ok.String(*v.Expression) + } - for i := range v { - av := array.Value() - if err := awsRestjson1_serializeDocumentColumnGroup(&v[i], av); err != nil { + if v.IconOptions != nil { + ok := object.Key("IconOptions") + if err := awsRestjson1_serializeDocumentConditionalFormattingCustomIconOptions(v.IconOptions, ok); err != nil { return err } } + return nil } -func awsRestjson1_serializeDocumentColumnGroupSchema(v *types.ColumnGroupSchema, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentConditionalFormattingCustomIconOptions(v *types.ConditionalFormattingCustomIconOptions, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.ColumnGroupColumnSchemaList != nil { - ok := object.Key("ColumnGroupColumnSchemaList") - if err := awsRestjson1_serializeDocumentColumnGroupColumnSchemaList(v.ColumnGroupColumnSchemaList, ok); err != nil { - return err - } + if len(v.Icon) > 0 { + ok := object.Key("Icon") + ok.String(string(v.Icon)) } - if v.Name != nil { - ok := object.Key("Name") - ok.String(*v.Name) + if v.UnicodeIcon != nil { + ok := object.Key("UnicodeIcon") + ok.String(*v.UnicodeIcon) } return nil } -func awsRestjson1_serializeDocumentColumnGroupSchemaList(v []types.ColumnGroupSchema, value smithyjson.Value) error { - array := value.Array() - defer array.Close() +func awsRestjson1_serializeDocumentConditionalFormattingGradientColor(v *types.ConditionalFormattingGradientColor, value smithyjson.Value) error { + object := value.Object() + defer object.Close() - for i := range v { - av := array.Value() - if err := awsRestjson1_serializeDocumentColumnGroupSchema(&v[i], av); err != nil { + if v.Color != nil { + ok := object.Key("Color") + if err := awsRestjson1_serializeDocumentGradientColor(v.Color, ok); err != nil { return err } } + + if v.Expression != nil { + ok := object.Key("Expression") + ok.String(*v.Expression) + } + return nil } -func awsRestjson1_serializeDocumentColumnHierarchy(v *types.ColumnHierarchy, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentConditionalFormattingIcon(v *types.ConditionalFormattingIcon, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.DateTimeHierarchy != nil { - ok := object.Key("DateTimeHierarchy") - if err := awsRestjson1_serializeDocumentDateTimeHierarchy(v.DateTimeHierarchy, ok); err != nil { + if v.CustomCondition != nil { + ok := object.Key("CustomCondition") + if err := awsRestjson1_serializeDocumentConditionalFormattingCustomIconCondition(v.CustomCondition, ok); err != nil { return err } } - if v.ExplicitHierarchy != nil { - ok := object.Key("ExplicitHierarchy") - if err := awsRestjson1_serializeDocumentExplicitHierarchy(v.ExplicitHierarchy, ok); err != nil { + if v.IconSet != nil { + ok := object.Key("IconSet") + if err := awsRestjson1_serializeDocumentConditionalFormattingIconSet(v.IconSet, ok); err != nil { return err } } - if v.PredefinedHierarchy != nil { - ok := object.Key("PredefinedHierarchy") - if err := awsRestjson1_serializeDocumentPredefinedHierarchy(v.PredefinedHierarchy, ok); err != nil { - return err - } + return nil +} + +func awsRestjson1_serializeDocumentConditionalFormattingIconDisplayConfiguration(v *types.ConditionalFormattingIconDisplayConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if len(v.IconDisplayOption) > 0 { + ok := object.Key("IconDisplayOption") + ok.String(string(v.IconDisplayOption)) } return nil } -func awsRestjson1_serializeDocumentColumnHierarchyList(v []types.ColumnHierarchy, value smithyjson.Value) error { - array := value.Array() - defer array.Close() +func awsRestjson1_serializeDocumentConditionalFormattingIconSet(v *types.ConditionalFormattingIconSet, value smithyjson.Value) error { + object := value.Object() + defer object.Close() - for i := range v { - av := array.Value() - if err := awsRestjson1_serializeDocumentColumnHierarchy(&v[i], av); err != nil { - return err - } + if v.Expression != nil { + ok := object.Key("Expression") + ok.String(*v.Expression) + } + + if len(v.IconSetType) > 0 { + ok := object.Key("IconSetType") + ok.String(string(v.IconSetType)) } + return nil } -func awsRestjson1_serializeDocumentColumnIdentifier(v *types.ColumnIdentifier, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentConditionalFormattingSolidColor(v *types.ConditionalFormattingSolidColor, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.ColumnName != nil { - ok := object.Key("ColumnName") - ok.String(*v.ColumnName) + if v.Color != nil { + ok := object.Key("Color") + ok.String(*v.Color) } - if v.DataSetIdentifier != nil { - ok := object.Key("DataSetIdentifier") - ok.String(*v.DataSetIdentifier) + if v.Expression != nil { + ok := object.Key("Expression") + ok.String(*v.Expression) } return nil } -func awsRestjson1_serializeDocumentColumnLevelPermissionRule(v *types.ColumnLevelPermissionRule, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentContributionAnalysisDefault(v *types.ContributionAnalysisDefault, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.ColumnNames != nil { - ok := object.Key("ColumnNames") - if err := awsRestjson1_serializeDocumentColumnNameList(v.ColumnNames, ok); err != nil { + if v.ContributorDimensions != nil { + ok := object.Key("ContributorDimensions") + if err := awsRestjson1_serializeDocumentContributorDimensionList(v.ContributorDimensions, ok); err != nil { return err } } - if v.Principals != nil { - ok := object.Key("Principals") - if err := awsRestjson1_serializeDocumentPrincipalList(v.Principals, ok); err != nil { - return err - } + if v.MeasureFieldId != nil { + ok := object.Key("MeasureFieldId") + ok.String(*v.MeasureFieldId) } return nil } -func awsRestjson1_serializeDocumentColumnLevelPermissionRuleList(v []types.ColumnLevelPermissionRule, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentContributionAnalysisDefaultList(v []types.ContributionAnalysisDefault, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if err := awsRestjson1_serializeDocumentColumnLevelPermissionRule(&v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentContributionAnalysisDefault(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentColumnList(v []string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentContributorDimensionList(v []types.ColumnIdentifier, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - av.String(v[i]) + if err := awsRestjson1_serializeDocumentColumnIdentifier(&v[i], av); err != nil { + return err + } } return nil } -func awsRestjson1_serializeDocumentColumnNameList(v []string, value smithyjson.Value) error { - array := value.Array() - defer array.Close() +func awsRestjson1_serializeDocumentCreateColumnsOperation(v *types.CreateColumnsOperation, value smithyjson.Value) error { + object := value.Object() + defer object.Close() - for i := range v { - av := array.Value() - av.String(v[i]) + if v.Columns != nil { + ok := object.Key("Columns") + if err := awsRestjson1_serializeDocumentCalculatedColumnList(v.Columns, ok); err != nil { + return err + } } + return nil } -func awsRestjson1_serializeDocumentColumnSchema(v *types.ColumnSchema, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentCredentialPair(v *types.CredentialPair, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.DataType != nil { - ok := object.Key("DataType") - ok.String(*v.DataType) + if v.AlternateDataSourceParameters != nil { + ok := object.Key("AlternateDataSourceParameters") + if err := awsRestjson1_serializeDocumentDataSourceParametersList(v.AlternateDataSourceParameters, ok); err != nil { + return err + } } - if v.GeographicRole != nil { - ok := object.Key("GeographicRole") - ok.String(*v.GeographicRole) + if v.Password != nil { + ok := object.Key("Password") + ok.String(*v.Password) } - if v.Name != nil { - ok := object.Key("Name") - ok.String(*v.Name) + if v.Username != nil { + ok := object.Key("Username") + ok.String(*v.Username) } return nil } -func awsRestjson1_serializeDocumentColumnSchemaList(v []types.ColumnSchema, value smithyjson.Value) error { - array := value.Array() - defer array.Close() - - for i := range v { - av := array.Value() - if err := awsRestjson1_serializeDocumentColumnSchema(&v[i], av); err != nil { - return err - } - } - return nil -} - -func awsRestjson1_serializeDocumentColumnSort(v *types.ColumnSort, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentCurrencyDisplayFormatConfiguration(v *types.CurrencyDisplayFormatConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.AggregationFunction != nil { - ok := object.Key("AggregationFunction") - if err := awsRestjson1_serializeDocumentAggregationFunction(v.AggregationFunction, ok); err != nil { + if v.DecimalPlacesConfiguration != nil { + ok := object.Key("DecimalPlacesConfiguration") + if err := awsRestjson1_serializeDocumentDecimalPlacesConfiguration(v.DecimalPlacesConfiguration, ok); err != nil { return err } } - if len(v.Direction) > 0 { - ok := object.Key("Direction") - ok.String(string(v.Direction)) + if v.NegativeValueConfiguration != nil { + ok := object.Key("NegativeValueConfiguration") + if err := awsRestjson1_serializeDocumentNegativeValueConfiguration(v.NegativeValueConfiguration, ok); err != nil { + return err + } } - if v.SortBy != nil { - ok := object.Key("SortBy") - if err := awsRestjson1_serializeDocumentColumnIdentifier(v.SortBy, ok); err != nil { + if v.NullValueFormatConfiguration != nil { + ok := object.Key("NullValueFormatConfiguration") + if err := awsRestjson1_serializeDocumentNullValueFormatConfiguration(v.NullValueFormatConfiguration, ok); err != nil { return err } } - return nil -} + if len(v.NumberScale) > 0 { + ok := object.Key("NumberScale") + ok.String(string(v.NumberScale)) + } -func awsRestjson1_serializeDocumentColumnTag(v *types.ColumnTag, value smithyjson.Value) error { - object := value.Object() - defer object.Close() + if v.Prefix != nil { + ok := object.Key("Prefix") + ok.String(*v.Prefix) + } - if v.ColumnDescription != nil { - ok := object.Key("ColumnDescription") - if err := awsRestjson1_serializeDocumentColumnDescription(v.ColumnDescription, ok); err != nil { + if v.SeparatorConfiguration != nil { + ok := object.Key("SeparatorConfiguration") + if err := awsRestjson1_serializeDocumentNumericSeparatorConfiguration(v.SeparatorConfiguration, ok); err != nil { return err } } - if len(v.ColumnGeographicRole) > 0 { - ok := object.Key("ColumnGeographicRole") - ok.String(string(v.ColumnGeographicRole)) + if v.Suffix != nil { + ok := object.Key("Suffix") + ok.String(*v.Suffix) + } + + if v.Symbol != nil { + ok := object.Key("Symbol") + ok.String(*v.Symbol) } return nil } -func awsRestjson1_serializeDocumentColumnTagList(v []types.ColumnTag, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentCustomActionColumnList(v []types.ColumnIdentifier, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if err := awsRestjson1_serializeDocumentColumnTag(&v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentColumnIdentifier(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentColumnTagNames(v []types.ColumnTagName, value smithyjson.Value) error { - array := value.Array() - defer array.Close() - - for i := range v { - av := array.Value() - av.String(string(v[i])) - } - return nil -} - -func awsRestjson1_serializeDocumentColumnTooltipItem(v *types.ColumnTooltipItem, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentCustomActionFilterOperation(v *types.CustomActionFilterOperation, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Aggregation != nil { - ok := object.Key("Aggregation") - if err := awsRestjson1_serializeDocumentAggregationFunction(v.Aggregation, ok); err != nil { + if v.SelectedFieldsConfiguration != nil { + ok := object.Key("SelectedFieldsConfiguration") + if err := awsRestjson1_serializeDocumentFilterOperationSelectedFieldsConfiguration(v.SelectedFieldsConfiguration, ok); err != nil { return err } } - if v.Column != nil { - ok := object.Key("Column") - if err := awsRestjson1_serializeDocumentColumnIdentifier(v.Column, ok); err != nil { + if v.TargetVisualsConfiguration != nil { + ok := object.Key("TargetVisualsConfiguration") + if err := awsRestjson1_serializeDocumentFilterOperationTargetVisualsConfiguration(v.TargetVisualsConfiguration, ok); err != nil { return err } } - if v.Label != nil { - ok := object.Key("Label") - ok.String(*v.Label) - } - - if len(v.Visibility) > 0 { - ok := object.Key("Visibility") - ok.String(string(v.Visibility)) - } - return nil } -func awsRestjson1_serializeDocumentComboChartAggregatedFieldWells(v *types.ComboChartAggregatedFieldWells, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentCustomActionNavigationOperation(v *types.CustomActionNavigationOperation, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.BarValues != nil { - ok := object.Key("BarValues") - if err := awsRestjson1_serializeDocumentMeasureFieldList(v.BarValues, ok); err != nil { + if v.LocalNavigationConfiguration != nil { + ok := object.Key("LocalNavigationConfiguration") + if err := awsRestjson1_serializeDocumentLocalNavigationConfiguration(v.LocalNavigationConfiguration, ok); err != nil { return err } } - if v.Category != nil { - ok := object.Key("Category") - if err := awsRestjson1_serializeDocumentDimensionFieldList(v.Category, ok); err != nil { - return err - } - } + return nil +} - if v.Colors != nil { - ok := object.Key("Colors") - if err := awsRestjson1_serializeDocumentDimensionFieldList(v.Colors, ok); err != nil { - return err - } - } +func awsRestjson1_serializeDocumentCustomActionSetParametersOperation(v *types.CustomActionSetParametersOperation, value smithyjson.Value) error { + object := value.Object() + defer object.Close() - if v.LineValues != nil { - ok := object.Key("LineValues") - if err := awsRestjson1_serializeDocumentMeasureFieldList(v.LineValues, ok); err != nil { + if v.ParameterValueConfigurations != nil { + ok := object.Key("ParameterValueConfigurations") + if err := awsRestjson1_serializeDocumentSetParameterValueConfigurationList(v.ParameterValueConfigurations, ok); err != nil { return err } } @@ -13734,394 +16017,372 @@ func awsRestjson1_serializeDocumentComboChartAggregatedFieldWells(v *types.Combo return nil } -func awsRestjson1_serializeDocumentComboChartConfiguration(v *types.ComboChartConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentCustomActionURLOperation(v *types.CustomActionURLOperation, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.BarDataLabels != nil { - ok := object.Key("BarDataLabels") - if err := awsRestjson1_serializeDocumentDataLabelOptions(v.BarDataLabels, ok); err != nil { - return err - } - } - - if len(v.BarsArrangement) > 0 { - ok := object.Key("BarsArrangement") - ok.String(string(v.BarsArrangement)) + if len(v.URLTarget) > 0 { + ok := object.Key("URLTarget") + ok.String(string(v.URLTarget)) } - if v.CategoryAxis != nil { - ok := object.Key("CategoryAxis") - if err := awsRestjson1_serializeDocumentAxisDisplayOptions(v.CategoryAxis, ok); err != nil { - return err - } + if v.URLTemplate != nil { + ok := object.Key("URLTemplate") + ok.String(*v.URLTemplate) } - if v.CategoryLabelOptions != nil { - ok := object.Key("CategoryLabelOptions") - if err := awsRestjson1_serializeDocumentChartAxisLabelOptions(v.CategoryLabelOptions, ok); err != nil { - return err - } - } + return nil +} - if v.ColorLabelOptions != nil { - ok := object.Key("ColorLabelOptions") - if err := awsRestjson1_serializeDocumentChartAxisLabelOptions(v.ColorLabelOptions, ok); err != nil { - return err - } - } +func awsRestjson1_serializeDocumentCustomContentConfiguration(v *types.CustomContentConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() - if v.FieldWells != nil { - ok := object.Key("FieldWells") - if err := awsRestjson1_serializeDocumentComboChartFieldWells(v.FieldWells, ok); err != nil { - return err - } + if len(v.ContentType) > 0 { + ok := object.Key("ContentType") + ok.String(string(v.ContentType)) } - if v.Legend != nil { - ok := object.Key("Legend") - if err := awsRestjson1_serializeDocumentLegendOptions(v.Legend, ok); err != nil { - return err - } + if v.ContentUrl != nil { + ok := object.Key("ContentUrl") + ok.String(*v.ContentUrl) } - if v.LineDataLabels != nil { - ok := object.Key("LineDataLabels") - if err := awsRestjson1_serializeDocumentDataLabelOptions(v.LineDataLabels, ok); err != nil { - return err - } + if len(v.ImageScaling) > 0 { + ok := object.Key("ImageScaling") + ok.String(string(v.ImageScaling)) } - if v.PrimaryYAxisDisplayOptions != nil { - ok := object.Key("PrimaryYAxisDisplayOptions") - if err := awsRestjson1_serializeDocumentAxisDisplayOptions(v.PrimaryYAxisDisplayOptions, ok); err != nil { - return err - } - } + return nil +} - if v.PrimaryYAxisLabelOptions != nil { - ok := object.Key("PrimaryYAxisLabelOptions") - if err := awsRestjson1_serializeDocumentChartAxisLabelOptions(v.PrimaryYAxisLabelOptions, ok); err != nil { - return err - } - } +func awsRestjson1_serializeDocumentCustomContentVisual(v *types.CustomContentVisual, value smithyjson.Value) error { + object := value.Object() + defer object.Close() - if v.ReferenceLines != nil { - ok := object.Key("ReferenceLines") - if err := awsRestjson1_serializeDocumentReferenceLineList(v.ReferenceLines, ok); err != nil { + if v.Actions != nil { + ok := object.Key("Actions") + if err := awsRestjson1_serializeDocumentVisualCustomActionList(v.Actions, ok); err != nil { return err } } - if v.SecondaryYAxisDisplayOptions != nil { - ok := object.Key("SecondaryYAxisDisplayOptions") - if err := awsRestjson1_serializeDocumentAxisDisplayOptions(v.SecondaryYAxisDisplayOptions, ok); err != nil { + if v.ChartConfiguration != nil { + ok := object.Key("ChartConfiguration") + if err := awsRestjson1_serializeDocumentCustomContentConfiguration(v.ChartConfiguration, ok); err != nil { return err } } - if v.SecondaryYAxisLabelOptions != nil { - ok := object.Key("SecondaryYAxisLabelOptions") - if err := awsRestjson1_serializeDocumentChartAxisLabelOptions(v.SecondaryYAxisLabelOptions, ok); err != nil { - return err - } + if v.DataSetIdentifier != nil { + ok := object.Key("DataSetIdentifier") + ok.String(*v.DataSetIdentifier) } - if v.SortConfiguration != nil { - ok := object.Key("SortConfiguration") - if err := awsRestjson1_serializeDocumentComboChartSortConfiguration(v.SortConfiguration, ok); err != nil { + if v.Subtitle != nil { + ok := object.Key("Subtitle") + if err := awsRestjson1_serializeDocumentVisualSubtitleLabelOptions(v.Subtitle, ok); err != nil { return err } } - if v.Tooltip != nil { - ok := object.Key("Tooltip") - if err := awsRestjson1_serializeDocumentTooltipOptions(v.Tooltip, ok); err != nil { + if v.Title != nil { + ok := object.Key("Title") + if err := awsRestjson1_serializeDocumentVisualTitleLabelOptions(v.Title, ok); err != nil { return err } } - if v.VisualPalette != nil { - ok := object.Key("VisualPalette") - if err := awsRestjson1_serializeDocumentVisualPalette(v.VisualPalette, ok); err != nil { - return err - } + if v.VisualId != nil { + ok := object.Key("VisualId") + ok.String(*v.VisualId) } return nil } -func awsRestjson1_serializeDocumentComboChartFieldWells(v *types.ComboChartFieldWells, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentCustomFilterConfiguration(v *types.CustomFilterConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.ComboChartAggregatedFieldWells != nil { - ok := object.Key("ComboChartAggregatedFieldWells") - if err := awsRestjson1_serializeDocumentComboChartAggregatedFieldWells(v.ComboChartAggregatedFieldWells, ok); err != nil { - return err - } + if v.CategoryValue != nil { + ok := object.Key("CategoryValue") + ok.String(*v.CategoryValue) + } + + if len(v.MatchOperator) > 0 { + ok := object.Key("MatchOperator") + ok.String(string(v.MatchOperator)) + } + + if len(v.NullOption) > 0 { + ok := object.Key("NullOption") + ok.String(string(v.NullOption)) + } + + if v.ParameterName != nil { + ok := object.Key("ParameterName") + ok.String(*v.ParameterName) + } + + if len(v.SelectAllOptions) > 0 { + ok := object.Key("SelectAllOptions") + ok.String(string(v.SelectAllOptions)) } return nil } -func awsRestjson1_serializeDocumentComboChartSortConfiguration(v *types.ComboChartSortConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentCustomFilterListConfiguration(v *types.CustomFilterListConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.CategoryItemsLimit != nil { - ok := object.Key("CategoryItemsLimit") - if err := awsRestjson1_serializeDocumentItemsLimitConfiguration(v.CategoryItemsLimit, ok); err != nil { + if v.CategoryValues != nil { + ok := object.Key("CategoryValues") + if err := awsRestjson1_serializeDocumentCategoryValueList(v.CategoryValues, ok); err != nil { return err } } - if v.CategorySort != nil { - ok := object.Key("CategorySort") - if err := awsRestjson1_serializeDocumentFieldSortOptionsList(v.CategorySort, ok); err != nil { - return err - } + if len(v.MatchOperator) > 0 { + ok := object.Key("MatchOperator") + ok.String(string(v.MatchOperator)) } - if v.ColorItemsLimit != nil { - ok := object.Key("ColorItemsLimit") - if err := awsRestjson1_serializeDocumentItemsLimitConfiguration(v.ColorItemsLimit, ok); err != nil { - return err - } + if len(v.NullOption) > 0 { + ok := object.Key("NullOption") + ok.String(string(v.NullOption)) } - if v.ColorSort != nil { - ok := object.Key("ColorSort") - if err := awsRestjson1_serializeDocumentFieldSortOptionsList(v.ColorSort, ok); err != nil { - return err - } + if len(v.SelectAllOptions) > 0 { + ok := object.Key("SelectAllOptions") + ok.String(string(v.SelectAllOptions)) } return nil } -func awsRestjson1_serializeDocumentComboChartVisual(v *types.ComboChartVisual, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentCustomNarrativeOptions(v *types.CustomNarrativeOptions, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Actions != nil { - ok := object.Key("Actions") - if err := awsRestjson1_serializeDocumentVisualCustomActionList(v.Actions, ok); err != nil { - return err - } + if v.Narrative != nil { + ok := object.Key("Narrative") + ok.String(*v.Narrative) } - if v.ChartConfiguration != nil { - ok := object.Key("ChartConfiguration") - if err := awsRestjson1_serializeDocumentComboChartConfiguration(v.ChartConfiguration, ok); err != nil { + return nil +} + +func awsRestjson1_serializeDocumentCustomParameterValues(v *types.CustomParameterValues, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.DateTimeValues != nil { + ok := object.Key("DateTimeValues") + if err := awsRestjson1_serializeDocumentDateTimeDefaultValueList(v.DateTimeValues, ok); err != nil { return err } } - if v.ColumnHierarchies != nil { - ok := object.Key("ColumnHierarchies") - if err := awsRestjson1_serializeDocumentColumnHierarchyList(v.ColumnHierarchies, ok); err != nil { + if v.DecimalValues != nil { + ok := object.Key("DecimalValues") + if err := awsRestjson1_serializeDocumentDecimalDefaultValueList(v.DecimalValues, ok); err != nil { return err } } - if v.Subtitle != nil { - ok := object.Key("Subtitle") - if err := awsRestjson1_serializeDocumentVisualSubtitleLabelOptions(v.Subtitle, ok); err != nil { + if v.IntegerValues != nil { + ok := object.Key("IntegerValues") + if err := awsRestjson1_serializeDocumentIntegerDefaultValueList(v.IntegerValues, ok); err != nil { return err } } - if v.Title != nil { - ok := object.Key("Title") - if err := awsRestjson1_serializeDocumentVisualTitleLabelOptions(v.Title, ok); err != nil { + if v.StringValues != nil { + ok := object.Key("StringValues") + if err := awsRestjson1_serializeDocumentStringDefaultValueList(v.StringValues, ok); err != nil { return err } } - if v.VisualId != nil { - ok := object.Key("VisualId") - ok.String(*v.VisualId) - } - return nil } -func awsRestjson1_serializeDocumentComparisonConfiguration(v *types.ComparisonConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentCustomSql(v *types.CustomSql, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.ComparisonFormat != nil { - ok := object.Key("ComparisonFormat") - if err := awsRestjson1_serializeDocumentComparisonFormatConfiguration(v.ComparisonFormat, ok); err != nil { + if v.Columns != nil { + ok := object.Key("Columns") + if err := awsRestjson1_serializeDocumentInputColumnList(v.Columns, ok); err != nil { return err } } - if len(v.ComparisonMethod) > 0 { - ok := object.Key("ComparisonMethod") - ok.String(string(v.ComparisonMethod)) + if v.DataSourceArn != nil { + ok := object.Key("DataSourceArn") + ok.String(*v.DataSourceArn) + } + + if v.Name != nil { + ok := object.Key("Name") + ok.String(*v.Name) + } + + if v.SqlQuery != nil { + ok := object.Key("SqlQuery") + ok.String(*v.SqlQuery) } return nil } -func awsRestjson1_serializeDocumentComparisonFormatConfiguration(v *types.ComparisonFormatConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentCustomValuesConfiguration(v *types.CustomValuesConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.NumberDisplayFormatConfiguration != nil { - ok := object.Key("NumberDisplayFormatConfiguration") - if err := awsRestjson1_serializeDocumentNumberDisplayFormatConfiguration(v.NumberDisplayFormatConfiguration, ok); err != nil { + if v.CustomValues != nil { + ok := object.Key("CustomValues") + if err := awsRestjson1_serializeDocumentCustomParameterValues(v.CustomValues, ok); err != nil { return err } } - if v.PercentageDisplayFormatConfiguration != nil { - ok := object.Key("PercentageDisplayFormatConfiguration") - if err := awsRestjson1_serializeDocumentPercentageDisplayFormatConfiguration(v.PercentageDisplayFormatConfiguration, ok); err != nil { - return err - } + if v.IncludeNullValue != nil { + ok := object.Key("IncludeNullValue") + ok.Boolean(*v.IncludeNullValue) } return nil } -func awsRestjson1_serializeDocumentComputation(v *types.Computation, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDashboardPublishOptions(v *types.DashboardPublishOptions, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Forecast != nil { - ok := object.Key("Forecast") - if err := awsRestjson1_serializeDocumentForecastComputation(v.Forecast, ok); err != nil { + if v.AdHocFilteringOption != nil { + ok := object.Key("AdHocFilteringOption") + if err := awsRestjson1_serializeDocumentAdHocFilteringOption(v.AdHocFilteringOption, ok); err != nil { return err } } - if v.GrowthRate != nil { - ok := object.Key("GrowthRate") - if err := awsRestjson1_serializeDocumentGrowthRateComputation(v.GrowthRate, ok); err != nil { + if v.DataPointDrillUpDownOption != nil { + ok := object.Key("DataPointDrillUpDownOption") + if err := awsRestjson1_serializeDocumentDataPointDrillUpDownOption(v.DataPointDrillUpDownOption, ok); err != nil { return err } } - if v.MaximumMinimum != nil { - ok := object.Key("MaximumMinimum") - if err := awsRestjson1_serializeDocumentMaximumMinimumComputation(v.MaximumMinimum, ok); err != nil { + if v.DataPointMenuLabelOption != nil { + ok := object.Key("DataPointMenuLabelOption") + if err := awsRestjson1_serializeDocumentDataPointMenuLabelOption(v.DataPointMenuLabelOption, ok); err != nil { return err } } - if v.MetricComparison != nil { - ok := object.Key("MetricComparison") - if err := awsRestjson1_serializeDocumentMetricComparisonComputation(v.MetricComparison, ok); err != nil { + if v.DataPointTooltipOption != nil { + ok := object.Key("DataPointTooltipOption") + if err := awsRestjson1_serializeDocumentDataPointTooltipOption(v.DataPointTooltipOption, ok); err != nil { return err } } - if v.PeriodOverPeriod != nil { - ok := object.Key("PeriodOverPeriod") - if err := awsRestjson1_serializeDocumentPeriodOverPeriodComputation(v.PeriodOverPeriod, ok); err != nil { + if v.ExportToCSVOption != nil { + ok := object.Key("ExportToCSVOption") + if err := awsRestjson1_serializeDocumentExportToCSVOption(v.ExportToCSVOption, ok); err != nil { return err } } - if v.PeriodToDate != nil { - ok := object.Key("PeriodToDate") - if err := awsRestjson1_serializeDocumentPeriodToDateComputation(v.PeriodToDate, ok); err != nil { + if v.ExportWithHiddenFieldsOption != nil { + ok := object.Key("ExportWithHiddenFieldsOption") + if err := awsRestjson1_serializeDocumentExportWithHiddenFieldsOption(v.ExportWithHiddenFieldsOption, ok); err != nil { return err } } - if v.TopBottomMovers != nil { - ok := object.Key("TopBottomMovers") - if err := awsRestjson1_serializeDocumentTopBottomMoversComputation(v.TopBottomMovers, ok); err != nil { + if v.SheetControlsOption != nil { + ok := object.Key("SheetControlsOption") + if err := awsRestjson1_serializeDocumentSheetControlsOption(v.SheetControlsOption, ok); err != nil { return err } } - if v.TopBottomRanked != nil { - ok := object.Key("TopBottomRanked") - if err := awsRestjson1_serializeDocumentTopBottomRankedComputation(v.TopBottomRanked, ok); err != nil { + if v.SheetLayoutElementMaximizationOption != nil { + ok := object.Key("SheetLayoutElementMaximizationOption") + if err := awsRestjson1_serializeDocumentSheetLayoutElementMaximizationOption(v.SheetLayoutElementMaximizationOption, ok); err != nil { return err } } - if v.TotalAggregation != nil { - ok := object.Key("TotalAggregation") - if err := awsRestjson1_serializeDocumentTotalAggregationComputation(v.TotalAggregation, ok); err != nil { + if v.VisualAxisSortOption != nil { + ok := object.Key("VisualAxisSortOption") + if err := awsRestjson1_serializeDocumentVisualAxisSortOption(v.VisualAxisSortOption, ok); err != nil { return err } } - if v.UniqueValues != nil { - ok := object.Key("UniqueValues") - if err := awsRestjson1_serializeDocumentUniqueValuesComputation(v.UniqueValues, ok); err != nil { + if v.VisualMenuOption != nil { + ok := object.Key("VisualMenuOption") + if err := awsRestjson1_serializeDocumentVisualMenuOption(v.VisualMenuOption, ok); err != nil { return err } } - return nil -} - -func awsRestjson1_serializeDocumentComputationList(v []types.Computation, value smithyjson.Value) error { - array := value.Array() - defer array.Close() - - for i := range v { - av := array.Value() - if err := awsRestjson1_serializeDocumentComputation(&v[i], av); err != nil { + if v.VisualPublishOptions != nil { + ok := object.Key("VisualPublishOptions") + if err := awsRestjson1_serializeDocumentDashboardVisualPublishOptions(v.VisualPublishOptions, ok); err != nil { return err } } + return nil } -func awsRestjson1_serializeDocumentConditionalFormattingColor(v *types.ConditionalFormattingColor, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDashboardSearchFilter(v *types.DashboardSearchFilter, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Gradient != nil { - ok := object.Key("Gradient") - if err := awsRestjson1_serializeDocumentConditionalFormattingGradientColor(v.Gradient, ok); err != nil { - return err - } + if len(v.Name) > 0 { + ok := object.Key("Name") + ok.String(string(v.Name)) } - if v.Solid != nil { - ok := object.Key("Solid") - if err := awsRestjson1_serializeDocumentConditionalFormattingSolidColor(v.Solid, ok); err != nil { - return err - } + if len(v.Operator) > 0 { + ok := object.Key("Operator") + ok.String(string(v.Operator)) + } + + if v.Value != nil { + ok := object.Key("Value") + ok.String(*v.Value) } return nil } -func awsRestjson1_serializeDocumentConditionalFormattingCustomIconCondition(v *types.ConditionalFormattingCustomIconCondition, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Color != nil { - ok := object.Key("Color") - ok.String(*v.Color) - } +func awsRestjson1_serializeDocumentDashboardSearchFilterList(v []types.DashboardSearchFilter, value smithyjson.Value) error { + array := value.Array() + defer array.Close() - if v.DisplayConfiguration != nil { - ok := object.Key("DisplayConfiguration") - if err := awsRestjson1_serializeDocumentConditionalFormattingIconDisplayConfiguration(v.DisplayConfiguration, ok); err != nil { + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentDashboardSearchFilter(&v[i], av); err != nil { return err } } + return nil +} - if v.Expression != nil { - ok := object.Key("Expression") - ok.String(*v.Expression) - } +func awsRestjson1_serializeDocumentDashboardSourceEntity(v *types.DashboardSourceEntity, value smithyjson.Value) error { + object := value.Object() + defer object.Close() - if v.IconOptions != nil { - ok := object.Key("IconOptions") - if err := awsRestjson1_serializeDocumentConditionalFormattingCustomIconOptions(v.IconOptions, ok); err != nil { + if v.SourceTemplate != nil { + ok := object.Key("SourceTemplate") + if err := awsRestjson1_serializeDocumentDashboardSourceTemplate(v.SourceTemplate, ok); err != nil { return err } } @@ -14129,261 +16390,227 @@ func awsRestjson1_serializeDocumentConditionalFormattingCustomIconCondition(v *t return nil } -func awsRestjson1_serializeDocumentConditionalFormattingCustomIconOptions(v *types.ConditionalFormattingCustomIconOptions, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDashboardSourceTemplate(v *types.DashboardSourceTemplate, value smithyjson.Value) error { object := value.Object() defer object.Close() - if len(v.Icon) > 0 { - ok := object.Key("Icon") - ok.String(string(v.Icon)) + if v.Arn != nil { + ok := object.Key("Arn") + ok.String(*v.Arn) } - if v.UnicodeIcon != nil { - ok := object.Key("UnicodeIcon") - ok.String(*v.UnicodeIcon) + if v.DataSetReferences != nil { + ok := object.Key("DataSetReferences") + if err := awsRestjson1_serializeDocumentDataSetReferenceList(v.DataSetReferences, ok); err != nil { + return err + } } return nil } -func awsRestjson1_serializeDocumentConditionalFormattingGradientColor(v *types.ConditionalFormattingGradientColor, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDashboardVersionDefinition(v *types.DashboardVersionDefinition, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Color != nil { - ok := object.Key("Color") - if err := awsRestjson1_serializeDocumentGradientColor(v.Color, ok); err != nil { + if v.AnalysisDefaults != nil { + ok := object.Key("AnalysisDefaults") + if err := awsRestjson1_serializeDocumentAnalysisDefaults(v.AnalysisDefaults, ok); err != nil { return err } } - if v.Expression != nil { - ok := object.Key("Expression") - ok.String(*v.Expression) + if v.CalculatedFields != nil { + ok := object.Key("CalculatedFields") + if err := awsRestjson1_serializeDocumentCalculatedFields(v.CalculatedFields, ok); err != nil { + return err + } } - return nil -} - -func awsRestjson1_serializeDocumentConditionalFormattingIcon(v *types.ConditionalFormattingIcon, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.CustomCondition != nil { - ok := object.Key("CustomCondition") - if err := awsRestjson1_serializeDocumentConditionalFormattingCustomIconCondition(v.CustomCondition, ok); err != nil { + if v.ColumnConfigurations != nil { + ok := object.Key("ColumnConfigurations") + if err := awsRestjson1_serializeDocumentColumnConfigurationList(v.ColumnConfigurations, ok); err != nil { return err } } - if v.IconSet != nil { - ok := object.Key("IconSet") - if err := awsRestjson1_serializeDocumentConditionalFormattingIconSet(v.IconSet, ok); err != nil { + if v.DataSetIdentifierDeclarations != nil { + ok := object.Key("DataSetIdentifierDeclarations") + if err := awsRestjson1_serializeDocumentDataSetIdentifierDeclarationList(v.DataSetIdentifierDeclarations, ok); err != nil { return err } } - return nil -} + if v.FilterGroups != nil { + ok := object.Key("FilterGroups") + if err := awsRestjson1_serializeDocumentFilterGroupList(v.FilterGroups, ok); err != nil { + return err + } + } -func awsRestjson1_serializeDocumentConditionalFormattingIconDisplayConfiguration(v *types.ConditionalFormattingIconDisplayConfiguration, value smithyjson.Value) error { - object := value.Object() - defer object.Close() + if v.ParameterDeclarations != nil { + ok := object.Key("ParameterDeclarations") + if err := awsRestjson1_serializeDocumentParameterDeclarationList(v.ParameterDeclarations, ok); err != nil { + return err + } + } - if len(v.IconDisplayOption) > 0 { - ok := object.Key("IconDisplayOption") - ok.String(string(v.IconDisplayOption)) + if v.Sheets != nil { + ok := object.Key("Sheets") + if err := awsRestjson1_serializeDocumentSheetDefinitionList(v.Sheets, ok); err != nil { + return err + } } return nil } -func awsRestjson1_serializeDocumentConditionalFormattingIconSet(v *types.ConditionalFormattingIconSet, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDashboardVisualId(v *types.DashboardVisualId, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Expression != nil { - ok := object.Key("Expression") - ok.String(*v.Expression) + if v.DashboardId != nil { + ok := object.Key("DashboardId") + ok.String(*v.DashboardId) } - if len(v.IconSetType) > 0 { - ok := object.Key("IconSetType") - ok.String(string(v.IconSetType)) + if v.SheetId != nil { + ok := object.Key("SheetId") + ok.String(*v.SheetId) + } + + if v.VisualId != nil { + ok := object.Key("VisualId") + ok.String(*v.VisualId) } return nil } -func awsRestjson1_serializeDocumentConditionalFormattingSolidColor(v *types.ConditionalFormattingSolidColor, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDashboardVisualPublishOptions(v *types.DashboardVisualPublishOptions, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Color != nil { - ok := object.Key("Color") - ok.String(*v.Color) - } - - if v.Expression != nil { - ok := object.Key("Expression") - ok.String(*v.Expression) + if v.ExportHiddenFieldsOption != nil { + ok := object.Key("ExportHiddenFieldsOption") + if err := awsRestjson1_serializeDocumentExportHiddenFieldsOption(v.ExportHiddenFieldsOption, ok); err != nil { + return err + } } return nil } -func awsRestjson1_serializeDocumentContributionAnalysisDefault(v *types.ContributionAnalysisDefault, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDataAggregation(v *types.DataAggregation, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.ContributorDimensions != nil { - ok := object.Key("ContributorDimensions") - if err := awsRestjson1_serializeDocumentContributorDimensionList(v.ContributorDimensions, ok); err != nil { - return err - } + if len(v.DatasetRowDateGranularity) > 0 { + ok := object.Key("DatasetRowDateGranularity") + ok.String(string(v.DatasetRowDateGranularity)) } - if v.MeasureFieldId != nil { - ok := object.Key("MeasureFieldId") - ok.String(*v.MeasureFieldId) + if v.DefaultDateColumnName != nil { + ok := object.Key("DefaultDateColumnName") + ok.String(*v.DefaultDateColumnName) } return nil } -func awsRestjson1_serializeDocumentContributionAnalysisDefaultList(v []types.ContributionAnalysisDefault, value smithyjson.Value) error { - array := value.Array() - defer array.Close() +func awsRestjson1_serializeDocumentDataBarsOptions(v *types.DataBarsOptions, value smithyjson.Value) error { + object := value.Object() + defer object.Close() - for i := range v { - av := array.Value() - if err := awsRestjson1_serializeDocumentContributionAnalysisDefault(&v[i], av); err != nil { - return err - } + if v.FieldId != nil { + ok := object.Key("FieldId") + ok.String(*v.FieldId) } - return nil -} - -func awsRestjson1_serializeDocumentContributorDimensionList(v []types.ColumnIdentifier, value smithyjson.Value) error { - array := value.Array() - defer array.Close() - for i := range v { - av := array.Value() - if err := awsRestjson1_serializeDocumentColumnIdentifier(&v[i], av); err != nil { - return err - } + if v.NegativeColor != nil { + ok := object.Key("NegativeColor") + ok.String(*v.NegativeColor) } - return nil -} - -func awsRestjson1_serializeDocumentCreateColumnsOperation(v *types.CreateColumnsOperation, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - if v.Columns != nil { - ok := object.Key("Columns") - if err := awsRestjson1_serializeDocumentCalculatedColumnList(v.Columns, ok); err != nil { - return err - } + if v.PositiveColor != nil { + ok := object.Key("PositiveColor") + ok.String(*v.PositiveColor) } return nil } -func awsRestjson1_serializeDocumentCredentialPair(v *types.CredentialPair, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDatabricksParameters(v *types.DatabricksParameters, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.AlternateDataSourceParameters != nil { - ok := object.Key("AlternateDataSourceParameters") - if err := awsRestjson1_serializeDocumentDataSourceParametersList(v.AlternateDataSourceParameters, ok); err != nil { - return err - } + if v.Host != nil { + ok := object.Key("Host") + ok.String(*v.Host) } - if v.Password != nil { - ok := object.Key("Password") - ok.String(*v.Password) + { + ok := object.Key("Port") + ok.Integer(v.Port) } - if v.Username != nil { - ok := object.Key("Username") - ok.String(*v.Username) + if v.SqlEndpointPath != nil { + ok := object.Key("SqlEndpointPath") + ok.String(*v.SqlEndpointPath) } return nil } -func awsRestjson1_serializeDocumentCurrencyDisplayFormatConfiguration(v *types.CurrencyDisplayFormatConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDataColor(v *types.DataColor, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.DecimalPlacesConfiguration != nil { - ok := object.Key("DecimalPlacesConfiguration") - if err := awsRestjson1_serializeDocumentDecimalPlacesConfiguration(v.DecimalPlacesConfiguration, ok); err != nil { - return err - } + if v.Color != nil { + ok := object.Key("Color") + ok.String(*v.Color) } - if v.NegativeValueConfiguration != nil { - ok := object.Key("NegativeValueConfiguration") - if err := awsRestjson1_serializeDocumentNegativeValueConfiguration(v.NegativeValueConfiguration, ok); err != nil { - return err - } - } + if v.DataValue != nil { + ok := object.Key("DataValue") + switch { + case math.IsNaN(*v.DataValue): + ok.String("NaN") - if v.NullValueFormatConfiguration != nil { - ok := object.Key("NullValueFormatConfiguration") - if err := awsRestjson1_serializeDocumentNullValueFormatConfiguration(v.NullValueFormatConfiguration, ok); err != nil { - return err - } - } + case math.IsInf(*v.DataValue, 1): + ok.String("Infinity") - if len(v.NumberScale) > 0 { - ok := object.Key("NumberScale") - ok.String(string(v.NumberScale)) - } + case math.IsInf(*v.DataValue, -1): + ok.String("-Infinity") - if v.Prefix != nil { - ok := object.Key("Prefix") - ok.String(*v.Prefix) - } + default: + ok.Double(*v.DataValue) - if v.SeparatorConfiguration != nil { - ok := object.Key("SeparatorConfiguration") - if err := awsRestjson1_serializeDocumentNumericSeparatorConfiguration(v.SeparatorConfiguration, ok); err != nil { - return err } } - if v.Suffix != nil { - ok := object.Key("Suffix") - ok.String(*v.Suffix) - } - - if v.Symbol != nil { - ok := object.Key("Symbol") - ok.String(*v.Symbol) - } - return nil } -func awsRestjson1_serializeDocumentCustomActionFilterOperation(v *types.CustomActionFilterOperation, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDataColorPalette(v *types.DataColorPalette, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.SelectedFieldsConfiguration != nil { - ok := object.Key("SelectedFieldsConfiguration") - if err := awsRestjson1_serializeDocumentFilterOperationSelectedFieldsConfiguration(v.SelectedFieldsConfiguration, ok); err != nil { + if v.Colors != nil { + ok := object.Key("Colors") + if err := awsRestjson1_serializeDocumentColorList(v.Colors, ok); err != nil { return err } } - if v.TargetVisualsConfiguration != nil { - ok := object.Key("TargetVisualsConfiguration") - if err := awsRestjson1_serializeDocumentFilterOperationTargetVisualsConfiguration(v.TargetVisualsConfiguration, ok); err != nil { + if v.EmptyFillColor != nil { + ok := object.Key("EmptyFillColor") + ok.String(*v.EmptyFillColor) + } + + if v.MinMaxGradient != nil { + ok := object.Key("MinMaxGradient") + if err := awsRestjson1_serializeDocumentColorList(v.MinMaxGradient, ok); err != nil { return err } } @@ -14391,13 +16618,28 @@ func awsRestjson1_serializeDocumentCustomActionFilterOperation(v *types.CustomAc return nil } -func awsRestjson1_serializeDocumentCustomActionNavigationOperation(v *types.CustomActionNavigationOperation, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDataFieldSeriesItem(v *types.DataFieldSeriesItem, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.LocalNavigationConfiguration != nil { - ok := object.Key("LocalNavigationConfiguration") - if err := awsRestjson1_serializeDocumentLocalNavigationConfiguration(v.LocalNavigationConfiguration, ok); err != nil { + if len(v.AxisBinding) > 0 { + ok := object.Key("AxisBinding") + ok.String(string(v.AxisBinding)) + } + + if v.FieldId != nil { + ok := object.Key("FieldId") + ok.String(*v.FieldId) + } + + if v.FieldValue != nil { + ok := object.Key("FieldValue") + ok.String(*v.FieldValue) + } + + if v.Settings != nil { + ok := object.Key("Settings") + if err := awsRestjson1_serializeDocumentLineChartSeriesSettings(v.Settings, ok); err != nil { return err } } @@ -14405,205 +16647,193 @@ func awsRestjson1_serializeDocumentCustomActionNavigationOperation(v *types.Cust return nil } -func awsRestjson1_serializeDocumentCustomActionSetParametersOperation(v *types.CustomActionSetParametersOperation, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDataLabelOptions(v *types.DataLabelOptions, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.ParameterValueConfigurations != nil { - ok := object.Key("ParameterValueConfigurations") - if err := awsRestjson1_serializeDocumentSetParameterValueConfigurationList(v.ParameterValueConfigurations, ok); err != nil { + if len(v.CategoryLabelVisibility) > 0 { + ok := object.Key("CategoryLabelVisibility") + ok.String(string(v.CategoryLabelVisibility)) + } + + if v.DataLabelTypes != nil { + ok := object.Key("DataLabelTypes") + if err := awsRestjson1_serializeDocumentDataLabelTypes(v.DataLabelTypes, ok); err != nil { return err } } - return nil -} - -func awsRestjson1_serializeDocumentCustomActionURLOperation(v *types.CustomActionURLOperation, value smithyjson.Value) error { - object := value.Object() - defer object.Close() + if v.LabelColor != nil { + ok := object.Key("LabelColor") + ok.String(*v.LabelColor) + } - if len(v.URLTarget) > 0 { - ok := object.Key("URLTarget") - ok.String(string(v.URLTarget)) + if len(v.LabelContent) > 0 { + ok := object.Key("LabelContent") + ok.String(string(v.LabelContent)) } - if v.URLTemplate != nil { - ok := object.Key("URLTemplate") - ok.String(*v.URLTemplate) + if v.LabelFontConfiguration != nil { + ok := object.Key("LabelFontConfiguration") + if err := awsRestjson1_serializeDocumentFontConfiguration(v.LabelFontConfiguration, ok); err != nil { + return err + } } - return nil -} + if len(v.MeasureLabelVisibility) > 0 { + ok := object.Key("MeasureLabelVisibility") + ok.String(string(v.MeasureLabelVisibility)) + } -func awsRestjson1_serializeDocumentCustomContentConfiguration(v *types.CustomContentConfiguration, value smithyjson.Value) error { - object := value.Object() - defer object.Close() + if len(v.Overlap) > 0 { + ok := object.Key("Overlap") + ok.String(string(v.Overlap)) + } - if len(v.ContentType) > 0 { - ok := object.Key("ContentType") - ok.String(string(v.ContentType)) + if len(v.Position) > 0 { + ok := object.Key("Position") + ok.String(string(v.Position)) } - if v.ContentUrl != nil { - ok := object.Key("ContentUrl") - ok.String(*v.ContentUrl) + if len(v.TotalsVisibility) > 0 { + ok := object.Key("TotalsVisibility") + ok.String(string(v.TotalsVisibility)) } - if len(v.ImageScaling) > 0 { - ok := object.Key("ImageScaling") - ok.String(string(v.ImageScaling)) + if len(v.Visibility) > 0 { + ok := object.Key("Visibility") + ok.String(string(v.Visibility)) } return nil } -func awsRestjson1_serializeDocumentCustomContentVisual(v *types.CustomContentVisual, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDataLabelType(v *types.DataLabelType, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Actions != nil { - ok := object.Key("Actions") - if err := awsRestjson1_serializeDocumentVisualCustomActionList(v.Actions, ok); err != nil { + if v.DataPathLabelType != nil { + ok := object.Key("DataPathLabelType") + if err := awsRestjson1_serializeDocumentDataPathLabelType(v.DataPathLabelType, ok); err != nil { return err } } - if v.ChartConfiguration != nil { - ok := object.Key("ChartConfiguration") - if err := awsRestjson1_serializeDocumentCustomContentConfiguration(v.ChartConfiguration, ok); err != nil { + if v.FieldLabelType != nil { + ok := object.Key("FieldLabelType") + if err := awsRestjson1_serializeDocumentFieldLabelType(v.FieldLabelType, ok); err != nil { return err } } - if v.DataSetIdentifier != nil { - ok := object.Key("DataSetIdentifier") - ok.String(*v.DataSetIdentifier) - } - - if v.Subtitle != nil { - ok := object.Key("Subtitle") - if err := awsRestjson1_serializeDocumentVisualSubtitleLabelOptions(v.Subtitle, ok); err != nil { + if v.MaximumLabelType != nil { + ok := object.Key("MaximumLabelType") + if err := awsRestjson1_serializeDocumentMaximumLabelType(v.MaximumLabelType, ok); err != nil { return err } } - if v.Title != nil { - ok := object.Key("Title") - if err := awsRestjson1_serializeDocumentVisualTitleLabelOptions(v.Title, ok); err != nil { + if v.MinimumLabelType != nil { + ok := object.Key("MinimumLabelType") + if err := awsRestjson1_serializeDocumentMinimumLabelType(v.MinimumLabelType, ok); err != nil { return err } } - if v.VisualId != nil { - ok := object.Key("VisualId") - ok.String(*v.VisualId) + if v.RangeEndsLabelType != nil { + ok := object.Key("RangeEndsLabelType") + if err := awsRestjson1_serializeDocumentRangeEndsLabelType(v.RangeEndsLabelType, ok); err != nil { + return err + } } return nil } -func awsRestjson1_serializeDocumentCustomFilterConfiguration(v *types.CustomFilterConfiguration, value smithyjson.Value) error { - object := value.Object() - defer object.Close() +func awsRestjson1_serializeDocumentDataLabelTypes(v []types.DataLabelType, value smithyjson.Value) error { + array := value.Array() + defer array.Close() - if v.CategoryValue != nil { - ok := object.Key("CategoryValue") - ok.String(*v.CategoryValue) + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentDataLabelType(&v[i], av); err != nil { + return err + } } + return nil +} - if len(v.MatchOperator) > 0 { - ok := object.Key("MatchOperator") - ok.String(string(v.MatchOperator)) - } +func awsRestjson1_serializeDocumentDataPathColor(v *types.DataPathColor, value smithyjson.Value) error { + object := value.Object() + defer object.Close() - if len(v.NullOption) > 0 { - ok := object.Key("NullOption") - ok.String(string(v.NullOption)) + if v.Color != nil { + ok := object.Key("Color") + ok.String(*v.Color) } - if v.ParameterName != nil { - ok := object.Key("ParameterName") - ok.String(*v.ParameterName) + if v.Element != nil { + ok := object.Key("Element") + if err := awsRestjson1_serializeDocumentDataPathValue(v.Element, ok); err != nil { + return err + } } - if len(v.SelectAllOptions) > 0 { - ok := object.Key("SelectAllOptions") - ok.String(string(v.SelectAllOptions)) + if len(v.TimeGranularity) > 0 { + ok := object.Key("TimeGranularity") + ok.String(string(v.TimeGranularity)) } return nil } -func awsRestjson1_serializeDocumentCustomFilterListConfiguration(v *types.CustomFilterListConfiguration, value smithyjson.Value) error { - object := value.Object() - defer object.Close() +func awsRestjson1_serializeDocumentDataPathColorList(v []types.DataPathColor, value smithyjson.Value) error { + array := value.Array() + defer array.Close() - if v.CategoryValues != nil { - ok := object.Key("CategoryValues") - if err := awsRestjson1_serializeDocumentCategoryValueList(v.CategoryValues, ok); err != nil { + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentDataPathColor(&v[i], av); err != nil { return err } } - - if len(v.MatchOperator) > 0 { - ok := object.Key("MatchOperator") - ok.String(string(v.MatchOperator)) - } - - if len(v.NullOption) > 0 { - ok := object.Key("NullOption") - ok.String(string(v.NullOption)) - } - - if len(v.SelectAllOptions) > 0 { - ok := object.Key("SelectAllOptions") - ok.String(string(v.SelectAllOptions)) - } - return nil } -func awsRestjson1_serializeDocumentCustomNarrativeOptions(v *types.CustomNarrativeOptions, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDataPathLabelType(v *types.DataPathLabelType, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Narrative != nil { - ok := object.Key("Narrative") - ok.String(*v.Narrative) + if v.FieldId != nil { + ok := object.Key("FieldId") + ok.String(*v.FieldId) + } + + if v.FieldValue != nil { + ok := object.Key("FieldValue") + ok.String(*v.FieldValue) + } + + if len(v.Visibility) > 0 { + ok := object.Key("Visibility") + ok.String(string(v.Visibility)) } return nil } -func awsRestjson1_serializeDocumentCustomParameterValues(v *types.CustomParameterValues, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDataPathSort(v *types.DataPathSort, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.DateTimeValues != nil { - ok := object.Key("DateTimeValues") - if err := awsRestjson1_serializeDocumentDateTimeDefaultValueList(v.DateTimeValues, ok); err != nil { - return err - } - } - - if v.DecimalValues != nil { - ok := object.Key("DecimalValues") - if err := awsRestjson1_serializeDocumentDecimalDefaultValueList(v.DecimalValues, ok); err != nil { - return err - } - } - - if v.IntegerValues != nil { - ok := object.Key("IntegerValues") - if err := awsRestjson1_serializeDocumentIntegerDefaultValueList(v.IntegerValues, ok); err != nil { - return err - } + if len(v.Direction) > 0 { + ok := object.Key("Direction") + ok.String(string(v.Direction)) } - if v.StringValues != nil { - ok := object.Key("StringValues") - if err := awsRestjson1_serializeDocumentStringDefaultValueList(v.StringValues, ok); err != nil { + if v.SortPaths != nil { + ok := object.Key("SortPaths") + if err := awsRestjson1_serializeDocumentDataPathValueList(v.SortPaths, ok); err != nil { return err } } @@ -14611,199 +16841,191 @@ func awsRestjson1_serializeDocumentCustomParameterValues(v *types.CustomParamete return nil } -func awsRestjson1_serializeDocumentCustomSql(v *types.CustomSql, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDataPathValue(v *types.DataPathValue, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Columns != nil { - ok := object.Key("Columns") - if err := awsRestjson1_serializeDocumentInputColumnList(v.Columns, ok); err != nil { - return err - } - } - - if v.DataSourceArn != nil { - ok := object.Key("DataSourceArn") - ok.String(*v.DataSourceArn) - } - - if v.Name != nil { - ok := object.Key("Name") - ok.String(*v.Name) + if v.FieldId != nil { + ok := object.Key("FieldId") + ok.String(*v.FieldId) } - if v.SqlQuery != nil { - ok := object.Key("SqlQuery") - ok.String(*v.SqlQuery) + if v.FieldValue != nil { + ok := object.Key("FieldValue") + ok.String(*v.FieldValue) } return nil } -func awsRestjson1_serializeDocumentCustomValuesConfiguration(v *types.CustomValuesConfiguration, value smithyjson.Value) error { - object := value.Object() - defer object.Close() +func awsRestjson1_serializeDocumentDataPathValueList(v []types.DataPathValue, value smithyjson.Value) error { + array := value.Array() + defer array.Close() - if v.CustomValues != nil { - ok := object.Key("CustomValues") - if err := awsRestjson1_serializeDocumentCustomParameterValues(v.CustomValues, ok); err != nil { + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentDataPathValue(&v[i], av); err != nil { return err } } + return nil +} - if v.IncludeNullValue != nil { - ok := object.Key("IncludeNullValue") - ok.Boolean(*v.IncludeNullValue) +func awsRestjson1_serializeDocumentDataPointDrillUpDownOption(v *types.DataPointDrillUpDownOption, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if len(v.AvailabilityStatus) > 0 { + ok := object.Key("AvailabilityStatus") + ok.String(string(v.AvailabilityStatus)) } return nil } -func awsRestjson1_serializeDocumentDashboardPublishOptions(v *types.DashboardPublishOptions, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDataPointMenuLabelOption(v *types.DataPointMenuLabelOption, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.AdHocFilteringOption != nil { - ok := object.Key("AdHocFilteringOption") - if err := awsRestjson1_serializeDocumentAdHocFilteringOption(v.AdHocFilteringOption, ok); err != nil { - return err - } + if len(v.AvailabilityStatus) > 0 { + ok := object.Key("AvailabilityStatus") + ok.String(string(v.AvailabilityStatus)) } - if v.DataPointDrillUpDownOption != nil { - ok := object.Key("DataPointDrillUpDownOption") - if err := awsRestjson1_serializeDocumentDataPointDrillUpDownOption(v.DataPointDrillUpDownOption, ok); err != nil { - return err - } - } + return nil +} - if v.DataPointMenuLabelOption != nil { - ok := object.Key("DataPointMenuLabelOption") - if err := awsRestjson1_serializeDocumentDataPointMenuLabelOption(v.DataPointMenuLabelOption, ok); err != nil { - return err - } - } +func awsRestjson1_serializeDocumentDataPointTooltipOption(v *types.DataPointTooltipOption, value smithyjson.Value) error { + object := value.Object() + defer object.Close() - if v.DataPointTooltipOption != nil { - ok := object.Key("DataPointTooltipOption") - if err := awsRestjson1_serializeDocumentDataPointTooltipOption(v.DataPointTooltipOption, ok); err != nil { - return err - } + if len(v.AvailabilityStatus) > 0 { + ok := object.Key("AvailabilityStatus") + ok.String(string(v.AvailabilityStatus)) } - if v.ExportToCSVOption != nil { - ok := object.Key("ExportToCSVOption") - if err := awsRestjson1_serializeDocumentExportToCSVOption(v.ExportToCSVOption, ok); err != nil { - return err - } - } + return nil +} - if v.ExportWithHiddenFieldsOption != nil { - ok := object.Key("ExportWithHiddenFieldsOption") - if err := awsRestjson1_serializeDocumentExportWithHiddenFieldsOption(v.ExportWithHiddenFieldsOption, ok); err != nil { - return err - } - } +func awsRestjson1_serializeDocumentDataSetConfiguration(v *types.DataSetConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() - if v.SheetControlsOption != nil { - ok := object.Key("SheetControlsOption") - if err := awsRestjson1_serializeDocumentSheetControlsOption(v.SheetControlsOption, ok); err != nil { + if v.ColumnGroupSchemaList != nil { + ok := object.Key("ColumnGroupSchemaList") + if err := awsRestjson1_serializeDocumentColumnGroupSchemaList(v.ColumnGroupSchemaList, ok); err != nil { return err } } - if v.SheetLayoutElementMaximizationOption != nil { - ok := object.Key("SheetLayoutElementMaximizationOption") - if err := awsRestjson1_serializeDocumentSheetLayoutElementMaximizationOption(v.SheetLayoutElementMaximizationOption, ok); err != nil { + if v.DataSetSchema != nil { + ok := object.Key("DataSetSchema") + if err := awsRestjson1_serializeDocumentDataSetSchema(v.DataSetSchema, ok); err != nil { return err } } - if v.VisualAxisSortOption != nil { - ok := object.Key("VisualAxisSortOption") - if err := awsRestjson1_serializeDocumentVisualAxisSortOption(v.VisualAxisSortOption, ok); err != nil { - return err - } + if v.Placeholder != nil { + ok := object.Key("Placeholder") + ok.String(*v.Placeholder) } - if v.VisualMenuOption != nil { - ok := object.Key("VisualMenuOption") - if err := awsRestjson1_serializeDocumentVisualMenuOption(v.VisualMenuOption, ok); err != nil { - return err - } - } + return nil +} - if v.VisualPublishOptions != nil { - ok := object.Key("VisualPublishOptions") - if err := awsRestjson1_serializeDocumentDashboardVisualPublishOptions(v.VisualPublishOptions, ok); err != nil { +func awsRestjson1_serializeDocumentDataSetConfigurationList(v []types.DataSetConfiguration, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentDataSetConfiguration(&v[i], av); err != nil { return err } } - return nil } -func awsRestjson1_serializeDocumentDashboardSearchFilter(v *types.DashboardSearchFilter, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDataSetIdentifierDeclaration(v *types.DataSetIdentifierDeclaration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if len(v.Name) > 0 { - ok := object.Key("Name") - ok.String(string(v.Name)) - } - - if len(v.Operator) > 0 { - ok := object.Key("Operator") - ok.String(string(v.Operator)) + if v.DataSetArn != nil { + ok := object.Key("DataSetArn") + ok.String(*v.DataSetArn) } - if v.Value != nil { - ok := object.Key("Value") - ok.String(*v.Value) + if v.Identifier != nil { + ok := object.Key("Identifier") + ok.String(*v.Identifier) } return nil } -func awsRestjson1_serializeDocumentDashboardSearchFilterList(v []types.DashboardSearchFilter, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDataSetIdentifierDeclarationList(v []types.DataSetIdentifierDeclaration, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if err := awsRestjson1_serializeDocumentDashboardSearchFilter(&v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentDataSetIdentifierDeclaration(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentDashboardSourceEntity(v *types.DashboardSourceEntity, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDatasetMetadata(v *types.DatasetMetadata, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.SourceTemplate != nil { - ok := object.Key("SourceTemplate") - if err := awsRestjson1_serializeDocumentDashboardSourceTemplate(v.SourceTemplate, ok); err != nil { + if v.CalculatedFields != nil { + ok := object.Key("CalculatedFields") + if err := awsRestjson1_serializeDocumentTopicCalculatedFields(v.CalculatedFields, ok); err != nil { return err } } - return nil -} + if v.Columns != nil { + ok := object.Key("Columns") + if err := awsRestjson1_serializeDocumentTopicColumns(v.Columns, ok); err != nil { + return err + } + } -func awsRestjson1_serializeDocumentDashboardSourceTemplate(v *types.DashboardSourceTemplate, value smithyjson.Value) error { - object := value.Object() - defer object.Close() + if v.DataAggregation != nil { + ok := object.Key("DataAggregation") + if err := awsRestjson1_serializeDocumentDataAggregation(v.DataAggregation, ok); err != nil { + return err + } + } - if v.Arn != nil { - ok := object.Key("Arn") - ok.String(*v.Arn) + if v.DatasetArn != nil { + ok := object.Key("DatasetArn") + ok.String(*v.DatasetArn) } - if v.DataSetReferences != nil { - ok := object.Key("DataSetReferences") - if err := awsRestjson1_serializeDocumentDataSetReferenceList(v.DataSetReferences, ok); err != nil { + if v.DatasetDescription != nil { + ok := object.Key("DatasetDescription") + ok.String(*v.DatasetDescription) + } + + if v.DatasetName != nil { + ok := object.Key("DatasetName") + ok.String(*v.DatasetName) + } + + if v.Filters != nil { + ok := object.Key("Filters") + if err := awsRestjson1_serializeDocumentTopicFilters(v.Filters, ok); err != nil { + return err + } + } + + if v.NamedEntities != nil { + ok := object.Key("NamedEntities") + if err := awsRestjson1_serializeDocumentTopicNamedEntities(v.NamedEntities, ok); err != nil { return err } } @@ -14811,91 +17033,118 @@ func awsRestjson1_serializeDocumentDashboardSourceTemplate(v *types.DashboardSou return nil } -func awsRestjson1_serializeDocumentDashboardVersionDefinition(v *types.DashboardVersionDefinition, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDatasetParameter(v *types.DatasetParameter, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.AnalysisDefaults != nil { - ok := object.Key("AnalysisDefaults") - if err := awsRestjson1_serializeDocumentAnalysisDefaults(v.AnalysisDefaults, ok); err != nil { + if v.DateTimeDatasetParameter != nil { + ok := object.Key("DateTimeDatasetParameter") + if err := awsRestjson1_serializeDocumentDateTimeDatasetParameter(v.DateTimeDatasetParameter, ok); err != nil { return err } } - if v.CalculatedFields != nil { - ok := object.Key("CalculatedFields") - if err := awsRestjson1_serializeDocumentCalculatedFields(v.CalculatedFields, ok); err != nil { + if v.DecimalDatasetParameter != nil { + ok := object.Key("DecimalDatasetParameter") + if err := awsRestjson1_serializeDocumentDecimalDatasetParameter(v.DecimalDatasetParameter, ok); err != nil { return err } } - if v.ColumnConfigurations != nil { - ok := object.Key("ColumnConfigurations") - if err := awsRestjson1_serializeDocumentColumnConfigurationList(v.ColumnConfigurations, ok); err != nil { + if v.IntegerDatasetParameter != nil { + ok := object.Key("IntegerDatasetParameter") + if err := awsRestjson1_serializeDocumentIntegerDatasetParameter(v.IntegerDatasetParameter, ok); err != nil { return err } } - if v.DataSetIdentifierDeclarations != nil { - ok := object.Key("DataSetIdentifierDeclarations") - if err := awsRestjson1_serializeDocumentDataSetIdentifierDeclarationList(v.DataSetIdentifierDeclarations, ok); err != nil { + if v.StringDatasetParameter != nil { + ok := object.Key("StringDatasetParameter") + if err := awsRestjson1_serializeDocumentStringDatasetParameter(v.StringDatasetParameter, ok); err != nil { return err } } - if v.FilterGroups != nil { - ok := object.Key("FilterGroups") - if err := awsRestjson1_serializeDocumentFilterGroupList(v.FilterGroups, ok); err != nil { + return nil +} + +func awsRestjson1_serializeDocumentDatasetParameterList(v []types.DatasetParameter, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentDatasetParameter(&v[i], av); err != nil { return err } } + return nil +} - if v.ParameterDeclarations != nil { - ok := object.Key("ParameterDeclarations") - if err := awsRestjson1_serializeDocumentParameterDeclarationList(v.ParameterDeclarations, ok); err != nil { - return err - } +func awsRestjson1_serializeDocumentDataSetReference(v *types.DataSetReference, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.DataSetArn != nil { + ok := object.Key("DataSetArn") + ok.String(*v.DataSetArn) } - if v.Sheets != nil { - ok := object.Key("Sheets") - if err := awsRestjson1_serializeDocumentSheetDefinitionList(v.Sheets, ok); err != nil { + if v.DataSetPlaceholder != nil { + ok := object.Key("DataSetPlaceholder") + ok.String(*v.DataSetPlaceholder) + } + + return nil +} + +func awsRestjson1_serializeDocumentDataSetReferenceList(v []types.DataSetReference, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentDataSetReference(&v[i], av); err != nil { return err } } - return nil } -func awsRestjson1_serializeDocumentDashboardVisualId(v *types.DashboardVisualId, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDataSetRefreshProperties(v *types.DataSetRefreshProperties, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.DashboardId != nil { - ok := object.Key("DashboardId") - ok.String(*v.DashboardId) + if v.RefreshConfiguration != nil { + ok := object.Key("RefreshConfiguration") + if err := awsRestjson1_serializeDocumentRefreshConfiguration(v.RefreshConfiguration, ok); err != nil { + return err + } } - if v.SheetId != nil { - ok := object.Key("SheetId") - ok.String(*v.SheetId) - } + return nil +} - if v.VisualId != nil { - ok := object.Key("VisualId") - ok.String(*v.VisualId) - } +func awsRestjson1_serializeDocumentDatasets(v []types.DatasetMetadata, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentDatasetMetadata(&v[i], av); err != nil { + return err + } + } return nil } -func awsRestjson1_serializeDocumentDashboardVisualPublishOptions(v *types.DashboardVisualPublishOptions, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDataSetSchema(v *types.DataSetSchema, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.ExportHiddenFieldsOption != nil { - ok := object.Key("ExportHiddenFieldsOption") - if err := awsRestjson1_serializeDocumentExportHiddenFieldsOption(v.ExportHiddenFieldsOption, ok); err != nil { + if v.ColumnSchemaList != nil { + ok := object.Key("ColumnSchemaList") + if err := awsRestjson1_serializeDocumentColumnSchemaList(v.ColumnSchemaList, ok); err != nil { return err } } @@ -14903,510 +17152,517 @@ func awsRestjson1_serializeDocumentDashboardVisualPublishOptions(v *types.Dashbo return nil } -func awsRestjson1_serializeDocumentDataBarsOptions(v *types.DataBarsOptions, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDataSetSearchFilter(v *types.DataSetSearchFilter, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.FieldId != nil { - ok := object.Key("FieldId") - ok.String(*v.FieldId) + if len(v.Name) > 0 { + ok := object.Key("Name") + ok.String(string(v.Name)) } - if v.NegativeColor != nil { - ok := object.Key("NegativeColor") - ok.String(*v.NegativeColor) + if len(v.Operator) > 0 { + ok := object.Key("Operator") + ok.String(string(v.Operator)) } - if v.PositiveColor != nil { - ok := object.Key("PositiveColor") - ok.String(*v.PositiveColor) + if v.Value != nil { + ok := object.Key("Value") + ok.String(*v.Value) } return nil } -func awsRestjson1_serializeDocumentDatabricksParameters(v *types.DatabricksParameters, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Host != nil { - ok := object.Key("Host") - ok.String(*v.Host) - } - - { - ok := object.Key("Port") - ok.Integer(v.Port) - } +func awsRestjson1_serializeDocumentDataSetSearchFilterList(v []types.DataSetSearchFilter, value smithyjson.Value) error { + array := value.Array() + defer array.Close() - if v.SqlEndpointPath != nil { - ok := object.Key("SqlEndpointPath") - ok.String(*v.SqlEndpointPath) + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentDataSetSearchFilter(&v[i], av); err != nil { + return err + } } - return nil } -func awsRestjson1_serializeDocumentDataColor(v *types.DataColor, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDataSetUsageConfiguration(v *types.DataSetUsageConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Color != nil { - ok := object.Key("Color") - ok.String(*v.Color) + if v.DisableUseAsDirectQuerySource { + ok := object.Key("DisableUseAsDirectQuerySource") + ok.Boolean(v.DisableUseAsDirectQuerySource) } - if v.DataValue != nil { - ok := object.Key("DataValue") - switch { - case math.IsNaN(*v.DataValue): - ok.String("NaN") - - case math.IsInf(*v.DataValue, 1): - ok.String("Infinity") - - case math.IsInf(*v.DataValue, -1): - ok.String("-Infinity") - - default: - ok.Double(*v.DataValue) - - } + if v.DisableUseAsImportedSource { + ok := object.Key("DisableUseAsImportedSource") + ok.Boolean(v.DisableUseAsImportedSource) } return nil } -func awsRestjson1_serializeDocumentDataColorPalette(v *types.DataColorPalette, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDataSourceCredentials(v *types.DataSourceCredentials, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Colors != nil { - ok := object.Key("Colors") - if err := awsRestjson1_serializeDocumentColorList(v.Colors, ok); err != nil { - return err - } - } - - if v.EmptyFillColor != nil { - ok := object.Key("EmptyFillColor") - ok.String(*v.EmptyFillColor) + if v.CopySourceArn != nil { + ok := object.Key("CopySourceArn") + ok.String(*v.CopySourceArn) } - if v.MinMaxGradient != nil { - ok := object.Key("MinMaxGradient") - if err := awsRestjson1_serializeDocumentColorList(v.MinMaxGradient, ok); err != nil { + if v.CredentialPair != nil { + ok := object.Key("CredentialPair") + if err := awsRestjson1_serializeDocumentCredentialPair(v.CredentialPair, ok); err != nil { return err } } + if v.SecretArn != nil { + ok := object.Key("SecretArn") + ok.String(*v.SecretArn) + } + return nil } -func awsRestjson1_serializeDocumentDataFieldSeriesItem(v *types.DataFieldSeriesItem, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDataSourceParameters(v types.DataSourceParameters, value smithyjson.Value) error { object := value.Object() defer object.Close() - if len(v.AxisBinding) > 0 { - ok := object.Key("AxisBinding") - ok.String(string(v.AxisBinding)) - } + switch uv := v.(type) { + case *types.DataSourceParametersMemberAmazonElasticsearchParameters: + av := object.Key("AmazonElasticsearchParameters") + if err := awsRestjson1_serializeDocumentAmazonElasticsearchParameters(&uv.Value, av); err != nil { + return err + } - if v.FieldId != nil { - ok := object.Key("FieldId") - ok.String(*v.FieldId) - } + case *types.DataSourceParametersMemberAmazonOpenSearchParameters: + av := object.Key("AmazonOpenSearchParameters") + if err := awsRestjson1_serializeDocumentAmazonOpenSearchParameters(&uv.Value, av); err != nil { + return err + } - if v.FieldValue != nil { - ok := object.Key("FieldValue") - ok.String(*v.FieldValue) - } + case *types.DataSourceParametersMemberAthenaParameters: + av := object.Key("AthenaParameters") + if err := awsRestjson1_serializeDocumentAthenaParameters(&uv.Value, av); err != nil { + return err + } - if v.Settings != nil { - ok := object.Key("Settings") - if err := awsRestjson1_serializeDocumentLineChartSeriesSettings(v.Settings, ok); err != nil { + case *types.DataSourceParametersMemberAuroraParameters: + av := object.Key("AuroraParameters") + if err := awsRestjson1_serializeDocumentAuroraParameters(&uv.Value, av); err != nil { return err } - } - return nil -} + case *types.DataSourceParametersMemberAuroraPostgreSqlParameters: + av := object.Key("AuroraPostgreSqlParameters") + if err := awsRestjson1_serializeDocumentAuroraPostgreSqlParameters(&uv.Value, av); err != nil { + return err + } -func awsRestjson1_serializeDocumentDataLabelOptions(v *types.DataLabelOptions, value smithyjson.Value) error { - object := value.Object() - defer object.Close() + case *types.DataSourceParametersMemberAwsIotAnalyticsParameters: + av := object.Key("AwsIotAnalyticsParameters") + if err := awsRestjson1_serializeDocumentAwsIotAnalyticsParameters(&uv.Value, av); err != nil { + return err + } - if len(v.CategoryLabelVisibility) > 0 { - ok := object.Key("CategoryLabelVisibility") - ok.String(string(v.CategoryLabelVisibility)) - } + case *types.DataSourceParametersMemberDatabricksParameters: + av := object.Key("DatabricksParameters") + if err := awsRestjson1_serializeDocumentDatabricksParameters(&uv.Value, av); err != nil { + return err + } - if v.DataLabelTypes != nil { - ok := object.Key("DataLabelTypes") - if err := awsRestjson1_serializeDocumentDataLabelTypes(v.DataLabelTypes, ok); err != nil { + case *types.DataSourceParametersMemberExasolParameters: + av := object.Key("ExasolParameters") + if err := awsRestjson1_serializeDocumentExasolParameters(&uv.Value, av); err != nil { return err } - } - if v.LabelColor != nil { - ok := object.Key("LabelColor") - ok.String(*v.LabelColor) - } + case *types.DataSourceParametersMemberJiraParameters: + av := object.Key("JiraParameters") + if err := awsRestjson1_serializeDocumentJiraParameters(&uv.Value, av); err != nil { + return err + } - if len(v.LabelContent) > 0 { - ok := object.Key("LabelContent") - ok.String(string(v.LabelContent)) - } + case *types.DataSourceParametersMemberMariaDbParameters: + av := object.Key("MariaDbParameters") + if err := awsRestjson1_serializeDocumentMariaDbParameters(&uv.Value, av); err != nil { + return err + } - if v.LabelFontConfiguration != nil { - ok := object.Key("LabelFontConfiguration") - if err := awsRestjson1_serializeDocumentFontConfiguration(v.LabelFontConfiguration, ok); err != nil { + case *types.DataSourceParametersMemberMySqlParameters: + av := object.Key("MySqlParameters") + if err := awsRestjson1_serializeDocumentMySqlParameters(&uv.Value, av); err != nil { return err } - } - if len(v.MeasureLabelVisibility) > 0 { - ok := object.Key("MeasureLabelVisibility") - ok.String(string(v.MeasureLabelVisibility)) - } + case *types.DataSourceParametersMemberOracleParameters: + av := object.Key("OracleParameters") + if err := awsRestjson1_serializeDocumentOracleParameters(&uv.Value, av); err != nil { + return err + } - if len(v.Overlap) > 0 { - ok := object.Key("Overlap") - ok.String(string(v.Overlap)) - } + case *types.DataSourceParametersMemberPostgreSqlParameters: + av := object.Key("PostgreSqlParameters") + if err := awsRestjson1_serializeDocumentPostgreSqlParameters(&uv.Value, av); err != nil { + return err + } - if len(v.Position) > 0 { - ok := object.Key("Position") - ok.String(string(v.Position)) - } + case *types.DataSourceParametersMemberPrestoParameters: + av := object.Key("PrestoParameters") + if err := awsRestjson1_serializeDocumentPrestoParameters(&uv.Value, av); err != nil { + return err + } + + case *types.DataSourceParametersMemberRdsParameters: + av := object.Key("RdsParameters") + if err := awsRestjson1_serializeDocumentRdsParameters(&uv.Value, av); err != nil { + return err + } - if len(v.Visibility) > 0 { - ok := object.Key("Visibility") - ok.String(string(v.Visibility)) - } + case *types.DataSourceParametersMemberRedshiftParameters: + av := object.Key("RedshiftParameters") + if err := awsRestjson1_serializeDocumentRedshiftParameters(&uv.Value, av); err != nil { + return err + } - return nil -} + case *types.DataSourceParametersMemberS3Parameters: + av := object.Key("S3Parameters") + if err := awsRestjson1_serializeDocumentS3Parameters(&uv.Value, av); err != nil { + return err + } -func awsRestjson1_serializeDocumentDataLabelType(v *types.DataLabelType, value smithyjson.Value) error { - object := value.Object() - defer object.Close() + case *types.DataSourceParametersMemberServiceNowParameters: + av := object.Key("ServiceNowParameters") + if err := awsRestjson1_serializeDocumentServiceNowParameters(&uv.Value, av); err != nil { + return err + } - if v.DataPathLabelType != nil { - ok := object.Key("DataPathLabelType") - if err := awsRestjson1_serializeDocumentDataPathLabelType(v.DataPathLabelType, ok); err != nil { + case *types.DataSourceParametersMemberSnowflakeParameters: + av := object.Key("SnowflakeParameters") + if err := awsRestjson1_serializeDocumentSnowflakeParameters(&uv.Value, av); err != nil { return err } - } - if v.FieldLabelType != nil { - ok := object.Key("FieldLabelType") - if err := awsRestjson1_serializeDocumentFieldLabelType(v.FieldLabelType, ok); err != nil { + case *types.DataSourceParametersMemberSparkParameters: + av := object.Key("SparkParameters") + if err := awsRestjson1_serializeDocumentSparkParameters(&uv.Value, av); err != nil { return err } - } - if v.MaximumLabelType != nil { - ok := object.Key("MaximumLabelType") - if err := awsRestjson1_serializeDocumentMaximumLabelType(v.MaximumLabelType, ok); err != nil { + case *types.DataSourceParametersMemberSqlServerParameters: + av := object.Key("SqlServerParameters") + if err := awsRestjson1_serializeDocumentSqlServerParameters(&uv.Value, av); err != nil { return err } - } - if v.MinimumLabelType != nil { - ok := object.Key("MinimumLabelType") - if err := awsRestjson1_serializeDocumentMinimumLabelType(v.MinimumLabelType, ok); err != nil { + case *types.DataSourceParametersMemberTeradataParameters: + av := object.Key("TeradataParameters") + if err := awsRestjson1_serializeDocumentTeradataParameters(&uv.Value, av); err != nil { return err } - } - if v.RangeEndsLabelType != nil { - ok := object.Key("RangeEndsLabelType") - if err := awsRestjson1_serializeDocumentRangeEndsLabelType(v.RangeEndsLabelType, ok); err != nil { + case *types.DataSourceParametersMemberTwitterParameters: + av := object.Key("TwitterParameters") + if err := awsRestjson1_serializeDocumentTwitterParameters(&uv.Value, av); err != nil { return err } - } + default: + return fmt.Errorf("attempted to serialize unknown member type %T for union %T", uv, v) + + } return nil } -func awsRestjson1_serializeDocumentDataLabelTypes(v []types.DataLabelType, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDataSourceParametersList(v []types.DataSourceParameters, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if err := awsRestjson1_serializeDocumentDataLabelType(&v[i], av); err != nil { + if vv := v[i]; vv == nil { + continue + } + if err := awsRestjson1_serializeDocumentDataSourceParameters(v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentDataPathColor(v *types.DataPathColor, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDataSourceSearchFilter(v *types.DataSourceSearchFilter, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Color != nil { - ok := object.Key("Color") - ok.String(*v.Color) + if len(v.Name) > 0 { + ok := object.Key("Name") + ok.String(string(v.Name)) } - if v.Element != nil { - ok := object.Key("Element") - if err := awsRestjson1_serializeDocumentDataPathValue(v.Element, ok); err != nil { - return err - } + if len(v.Operator) > 0 { + ok := object.Key("Operator") + ok.String(string(v.Operator)) } - if len(v.TimeGranularity) > 0 { - ok := object.Key("TimeGranularity") - ok.String(string(v.TimeGranularity)) + if v.Value != nil { + ok := object.Key("Value") + ok.String(*v.Value) } return nil } -func awsRestjson1_serializeDocumentDataPathColorList(v []types.DataPathColor, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDataSourceSearchFilterList(v []types.DataSourceSearchFilter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if err := awsRestjson1_serializeDocumentDataPathColor(&v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentDataSourceSearchFilter(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentDataPathLabelType(v *types.DataPathLabelType, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDateAxisOptions(v *types.DateAxisOptions, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.FieldId != nil { - ok := object.Key("FieldId") - ok.String(*v.FieldId) - } - - if v.FieldValue != nil { - ok := object.Key("FieldValue") - ok.String(*v.FieldValue) - } - - if len(v.Visibility) > 0 { - ok := object.Key("Visibility") - ok.String(string(v.Visibility)) + if len(v.MissingDateVisibility) > 0 { + ok := object.Key("MissingDateVisibility") + ok.String(string(v.MissingDateVisibility)) } return nil } -func awsRestjson1_serializeDocumentDataPathSort(v *types.DataPathSort, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDateDimensionField(v *types.DateDimensionField, value smithyjson.Value) error { object := value.Object() defer object.Close() - if len(v.Direction) > 0 { - ok := object.Key("Direction") - ok.String(string(v.Direction)) - } - - if v.SortPaths != nil { - ok := object.Key("SortPaths") - if err := awsRestjson1_serializeDocumentDataPathValueList(v.SortPaths, ok); err != nil { + if v.Column != nil { + ok := object.Key("Column") + if err := awsRestjson1_serializeDocumentColumnIdentifier(v.Column, ok); err != nil { return err } } - return nil -} - -func awsRestjson1_serializeDocumentDataPathValue(v *types.DataPathValue, value smithyjson.Value) error { - object := value.Object() - defer object.Close() + if len(v.DateGranularity) > 0 { + ok := object.Key("DateGranularity") + ok.String(string(v.DateGranularity)) + } if v.FieldId != nil { ok := object.Key("FieldId") ok.String(*v.FieldId) } - if v.FieldValue != nil { - ok := object.Key("FieldValue") - ok.String(*v.FieldValue) - } - - return nil -} - -func awsRestjson1_serializeDocumentDataPathValueList(v []types.DataPathValue, value smithyjson.Value) error { - array := value.Array() - defer array.Close() - - for i := range v { - av := array.Value() - if err := awsRestjson1_serializeDocumentDataPathValue(&v[i], av); err != nil { + if v.FormatConfiguration != nil { + ok := object.Key("FormatConfiguration") + if err := awsRestjson1_serializeDocumentDateTimeFormatConfiguration(v.FormatConfiguration, ok); err != nil { return err } } - return nil -} - -func awsRestjson1_serializeDocumentDataPointDrillUpDownOption(v *types.DataPointDrillUpDownOption, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - if len(v.AvailabilityStatus) > 0 { - ok := object.Key("AvailabilityStatus") - ok.String(string(v.AvailabilityStatus)) + if v.HierarchyId != nil { + ok := object.Key("HierarchyId") + ok.String(*v.HierarchyId) } return nil } -func awsRestjson1_serializeDocumentDataPointMenuLabelOption(v *types.DataPointMenuLabelOption, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDateMeasureField(v *types.DateMeasureField, value smithyjson.Value) error { object := value.Object() defer object.Close() - if len(v.AvailabilityStatus) > 0 { - ok := object.Key("AvailabilityStatus") - ok.String(string(v.AvailabilityStatus)) + if len(v.AggregationFunction) > 0 { + ok := object.Key("AggregationFunction") + ok.String(string(v.AggregationFunction)) } - return nil -} + if v.Column != nil { + ok := object.Key("Column") + if err := awsRestjson1_serializeDocumentColumnIdentifier(v.Column, ok); err != nil { + return err + } + } -func awsRestjson1_serializeDocumentDataPointTooltipOption(v *types.DataPointTooltipOption, value smithyjson.Value) error { - object := value.Object() - defer object.Close() + if v.FieldId != nil { + ok := object.Key("FieldId") + ok.String(*v.FieldId) + } - if len(v.AvailabilityStatus) > 0 { - ok := object.Key("AvailabilityStatus") - ok.String(string(v.AvailabilityStatus)) + if v.FormatConfiguration != nil { + ok := object.Key("FormatConfiguration") + if err := awsRestjson1_serializeDocumentDateTimeFormatConfiguration(v.FormatConfiguration, ok); err != nil { + return err + } } return nil } -func awsRestjson1_serializeDocumentDataSetConfiguration(v *types.DataSetConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDateTimeDatasetParameter(v *types.DateTimeDatasetParameter, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.ColumnGroupSchemaList != nil { - ok := object.Key("ColumnGroupSchemaList") - if err := awsRestjson1_serializeDocumentColumnGroupSchemaList(v.ColumnGroupSchemaList, ok); err != nil { + if v.DefaultValues != nil { + ok := object.Key("DefaultValues") + if err := awsRestjson1_serializeDocumentDateTimeDatasetParameterDefaultValues(v.DefaultValues, ok); err != nil { return err } } - if v.DataSetSchema != nil { - ok := object.Key("DataSetSchema") - if err := awsRestjson1_serializeDocumentDataSetSchema(v.DataSetSchema, ok); err != nil { - return err - } + if v.Id != nil { + ok := object.Key("Id") + ok.String(*v.Id) } - if v.Placeholder != nil { - ok := object.Key("Placeholder") - ok.String(*v.Placeholder) + if v.Name != nil { + ok := object.Key("Name") + ok.String(*v.Name) + } + + if len(v.TimeGranularity) > 0 { + ok := object.Key("TimeGranularity") + ok.String(string(v.TimeGranularity)) + } + + if len(v.ValueType) > 0 { + ok := object.Key("ValueType") + ok.String(string(v.ValueType)) } return nil } -func awsRestjson1_serializeDocumentDataSetConfigurationList(v []types.DataSetConfiguration, value smithyjson.Value) error { - array := value.Array() - defer array.Close() +func awsRestjson1_serializeDocumentDateTimeDatasetParameterDefaultValues(v *types.DateTimeDatasetParameterDefaultValues, value smithyjson.Value) error { + object := value.Object() + defer object.Close() - for i := range v { - av := array.Value() - if err := awsRestjson1_serializeDocumentDataSetConfiguration(&v[i], av); err != nil { + if v.StaticValues != nil { + ok := object.Key("StaticValues") + if err := awsRestjson1_serializeDocumentDateTimeDatasetParameterValueList(v.StaticValues, ok); err != nil { return err } } + return nil } -func awsRestjson1_serializeDocumentDataSetIdentifierDeclaration(v *types.DataSetIdentifierDeclaration, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.DataSetArn != nil { - ok := object.Key("DataSetArn") - ok.String(*v.DataSetArn) - } +func awsRestjson1_serializeDocumentDateTimeDatasetParameterValueList(v []time.Time, value smithyjson.Value) error { + array := value.Array() + defer array.Close() - if v.Identifier != nil { - ok := object.Key("Identifier") - ok.String(*v.Identifier) + for i := range v { + av := array.Value() + av.Double(smithytime.FormatEpochSeconds(v[i])) } - return nil } -func awsRestjson1_serializeDocumentDataSetIdentifierDeclarationList(v []types.DataSetIdentifierDeclaration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDateTimeDefaultValueList(v []time.Time, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if err := awsRestjson1_serializeDocumentDataSetIdentifierDeclaration(&v[i], av); err != nil { - return err - } + av.Double(smithytime.FormatEpochSeconds(v[i])) } return nil } -func awsRestjson1_serializeDocumentDataSetReference(v *types.DataSetReference, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDateTimeDefaultValues(v *types.DateTimeDefaultValues, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.DataSetArn != nil { - ok := object.Key("DataSetArn") - ok.String(*v.DataSetArn) + if v.DynamicValue != nil { + ok := object.Key("DynamicValue") + if err := awsRestjson1_serializeDocumentDynamicDefaultValue(v.DynamicValue, ok); err != nil { + return err + } } - if v.DataSetPlaceholder != nil { - ok := object.Key("DataSetPlaceholder") - ok.String(*v.DataSetPlaceholder) + if v.RollingDate != nil { + ok := object.Key("RollingDate") + if err := awsRestjson1_serializeDocumentRollingDateConfiguration(v.RollingDate, ok); err != nil { + return err + } + } + + if v.StaticValues != nil { + ok := object.Key("StaticValues") + if err := awsRestjson1_serializeDocumentDateTimeDefaultValueList(v.StaticValues, ok); err != nil { + return err + } } return nil } -func awsRestjson1_serializeDocumentDataSetReferenceList(v []types.DataSetReference, value smithyjson.Value) error { - array := value.Array() - defer array.Close() +func awsRestjson1_serializeDocumentDateTimeFormatConfiguration(v *types.DateTimeFormatConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() - for i := range v { - av := array.Value() - if err := awsRestjson1_serializeDocumentDataSetReference(&v[i], av); err != nil { + if v.DateTimeFormat != nil { + ok := object.Key("DateTimeFormat") + ok.String(*v.DateTimeFormat) + } + + if v.NullValueFormatConfiguration != nil { + ok := object.Key("NullValueFormatConfiguration") + if err := awsRestjson1_serializeDocumentNullValueFormatConfiguration(v.NullValueFormatConfiguration, ok); err != nil { + return err + } + } + + if v.NumericFormatConfiguration != nil { + ok := object.Key("NumericFormatConfiguration") + if err := awsRestjson1_serializeDocumentNumericFormatConfiguration(v.NumericFormatConfiguration, ok); err != nil { return err } } + return nil } -func awsRestjson1_serializeDocumentDataSetRefreshProperties(v *types.DataSetRefreshProperties, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDateTimeHierarchy(v *types.DateTimeHierarchy, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.RefreshConfiguration != nil { - ok := object.Key("RefreshConfiguration") - if err := awsRestjson1_serializeDocumentRefreshConfiguration(v.RefreshConfiguration, ok); err != nil { + if v.DrillDownFilters != nil { + ok := object.Key("DrillDownFilters") + if err := awsRestjson1_serializeDocumentDrillDownFilterList(v.DrillDownFilters, ok); err != nil { return err } } + if v.HierarchyId != nil { + ok := object.Key("HierarchyId") + ok.String(*v.HierarchyId) + } + return nil } -func awsRestjson1_serializeDocumentDataSetSchema(v *types.DataSetSchema, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDateTimeParameter(v *types.DateTimeParameter, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.ColumnSchemaList != nil { - ok := object.Key("ColumnSchemaList") - if err := awsRestjson1_serializeDocumentColumnSchemaList(v.ColumnSchemaList, ok); err != nil { + if v.Name != nil { + ok := object.Key("Name") + ok.String(*v.Name) + } + + if v.Values != nil { + ok := object.Key("Values") + if err := awsRestjson1_serializeDocumentSensitiveTimestampList(v.Values, ok); err != nil { return err } } @@ -15414,355 +17670,343 @@ func awsRestjson1_serializeDocumentDataSetSchema(v *types.DataSetSchema, value s return nil } -func awsRestjson1_serializeDocumentDataSetSearchFilter(v *types.DataSetSearchFilter, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDateTimeParameterDeclaration(v *types.DateTimeParameterDeclaration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if len(v.Name) > 0 { + if v.DefaultValues != nil { + ok := object.Key("DefaultValues") + if err := awsRestjson1_serializeDocumentDateTimeDefaultValues(v.DefaultValues, ok); err != nil { + return err + } + } + + if v.MappedDataSetParameters != nil { + ok := object.Key("MappedDataSetParameters") + if err := awsRestjson1_serializeDocumentMappedDataSetParameters(v.MappedDataSetParameters, ok); err != nil { + return err + } + } + + if v.Name != nil { ok := object.Key("Name") - ok.String(string(v.Name)) + ok.String(*v.Name) } - if len(v.Operator) > 0 { - ok := object.Key("Operator") - ok.String(string(v.Operator)) + if len(v.TimeGranularity) > 0 { + ok := object.Key("TimeGranularity") + ok.String(string(v.TimeGranularity)) } - if v.Value != nil { - ok := object.Key("Value") - ok.String(*v.Value) + if v.ValueWhenUnset != nil { + ok := object.Key("ValueWhenUnset") + if err := awsRestjson1_serializeDocumentDateTimeValueWhenUnsetConfiguration(v.ValueWhenUnset, ok); err != nil { + return err + } } return nil } -func awsRestjson1_serializeDocumentDataSetSearchFilterList(v []types.DataSetSearchFilter, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDateTimeParameterList(v []types.DateTimeParameter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if err := awsRestjson1_serializeDocumentDataSetSearchFilter(&v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentDateTimeParameter(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentDataSetUsageConfiguration(v *types.DataSetUsageConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDateTimePickerControlDisplayOptions(v *types.DateTimePickerControlDisplayOptions, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.DisableUseAsDirectQuerySource { - ok := object.Key("DisableUseAsDirectQuerySource") - ok.Boolean(v.DisableUseAsDirectQuerySource) + if v.DateTimeFormat != nil { + ok := object.Key("DateTimeFormat") + ok.String(*v.DateTimeFormat) } - if v.DisableUseAsImportedSource { - ok := object.Key("DisableUseAsImportedSource") - ok.Boolean(v.DisableUseAsImportedSource) + if v.TitleOptions != nil { + ok := object.Key("TitleOptions") + if err := awsRestjson1_serializeDocumentLabelOptions(v.TitleOptions, ok); err != nil { + return err + } } return nil } -func awsRestjson1_serializeDocumentDataSourceCredentials(v *types.DataSourceCredentials, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDateTimeValueWhenUnsetConfiguration(v *types.DateTimeValueWhenUnsetConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.CopySourceArn != nil { - ok := object.Key("CopySourceArn") - ok.String(*v.CopySourceArn) - } - - if v.CredentialPair != nil { - ok := object.Key("CredentialPair") - if err := awsRestjson1_serializeDocumentCredentialPair(v.CredentialPair, ok); err != nil { - return err - } + if v.CustomValue != nil { + ok := object.Key("CustomValue") + ok.Double(smithytime.FormatEpochSeconds(*v.CustomValue)) } - if v.SecretArn != nil { - ok := object.Key("SecretArn") - ok.String(*v.SecretArn) + if len(v.ValueWhenUnsetOption) > 0 { + ok := object.Key("ValueWhenUnsetOption") + ok.String(string(v.ValueWhenUnsetOption)) } return nil } -func awsRestjson1_serializeDocumentDataSourceParameters(v types.DataSourceParameters, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDecimalDatasetParameter(v *types.DecimalDatasetParameter, value smithyjson.Value) error { object := value.Object() defer object.Close() - switch uv := v.(type) { - case *types.DataSourceParametersMemberAmazonElasticsearchParameters: - av := object.Key("AmazonElasticsearchParameters") - if err := awsRestjson1_serializeDocumentAmazonElasticsearchParameters(&uv.Value, av); err != nil { - return err - } - - case *types.DataSourceParametersMemberAmazonOpenSearchParameters: - av := object.Key("AmazonOpenSearchParameters") - if err := awsRestjson1_serializeDocumentAmazonOpenSearchParameters(&uv.Value, av); err != nil { - return err - } - - case *types.DataSourceParametersMemberAthenaParameters: - av := object.Key("AthenaParameters") - if err := awsRestjson1_serializeDocumentAthenaParameters(&uv.Value, av); err != nil { + if v.DefaultValues != nil { + ok := object.Key("DefaultValues") + if err := awsRestjson1_serializeDocumentDecimalDatasetParameterDefaultValues(v.DefaultValues, ok); err != nil { return err } + } - case *types.DataSourceParametersMemberAuroraParameters: - av := object.Key("AuroraParameters") - if err := awsRestjson1_serializeDocumentAuroraParameters(&uv.Value, av); err != nil { - return err - } + if v.Id != nil { + ok := object.Key("Id") + ok.String(*v.Id) + } - case *types.DataSourceParametersMemberAuroraPostgreSqlParameters: - av := object.Key("AuroraPostgreSqlParameters") - if err := awsRestjson1_serializeDocumentAuroraPostgreSqlParameters(&uv.Value, av); err != nil { - return err - } + if v.Name != nil { + ok := object.Key("Name") + ok.String(*v.Name) + } - case *types.DataSourceParametersMemberAwsIotAnalyticsParameters: - av := object.Key("AwsIotAnalyticsParameters") - if err := awsRestjson1_serializeDocumentAwsIotAnalyticsParameters(&uv.Value, av); err != nil { - return err - } + if len(v.ValueType) > 0 { + ok := object.Key("ValueType") + ok.String(string(v.ValueType)) + } - case *types.DataSourceParametersMemberDatabricksParameters: - av := object.Key("DatabricksParameters") - if err := awsRestjson1_serializeDocumentDatabricksParameters(&uv.Value, av); err != nil { - return err - } + return nil +} - case *types.DataSourceParametersMemberExasolParameters: - av := object.Key("ExasolParameters") - if err := awsRestjson1_serializeDocumentExasolParameters(&uv.Value, av); err != nil { - return err - } +func awsRestjson1_serializeDocumentDecimalDatasetParameterDefaultValues(v *types.DecimalDatasetParameterDefaultValues, value smithyjson.Value) error { + object := value.Object() + defer object.Close() - case *types.DataSourceParametersMemberJiraParameters: - av := object.Key("JiraParameters") - if err := awsRestjson1_serializeDocumentJiraParameters(&uv.Value, av); err != nil { + if v.StaticValues != nil { + ok := object.Key("StaticValues") + if err := awsRestjson1_serializeDocumentDecimalDatasetParameterValueList(v.StaticValues, ok); err != nil { return err } + } - case *types.DataSourceParametersMemberMariaDbParameters: - av := object.Key("MariaDbParameters") - if err := awsRestjson1_serializeDocumentMariaDbParameters(&uv.Value, av); err != nil { - return err - } + return nil +} - case *types.DataSourceParametersMemberMySqlParameters: - av := object.Key("MySqlParameters") - if err := awsRestjson1_serializeDocumentMySqlParameters(&uv.Value, av); err != nil { - return err - } +func awsRestjson1_serializeDocumentDecimalDatasetParameterValueList(v []float64, value smithyjson.Value) error { + array := value.Array() + defer array.Close() - case *types.DataSourceParametersMemberOracleParameters: - av := object.Key("OracleParameters") - if err := awsRestjson1_serializeDocumentOracleParameters(&uv.Value, av); err != nil { - return err - } + for i := range v { + av := array.Value() + switch { + case math.IsNaN(v[i]): + av.String("NaN") - case *types.DataSourceParametersMemberPostgreSqlParameters: - av := object.Key("PostgreSqlParameters") - if err := awsRestjson1_serializeDocumentPostgreSqlParameters(&uv.Value, av); err != nil { - return err - } + case math.IsInf(v[i], 1): + av.String("Infinity") - case *types.DataSourceParametersMemberPrestoParameters: - av := object.Key("PrestoParameters") - if err := awsRestjson1_serializeDocumentPrestoParameters(&uv.Value, av); err != nil { - return err - } + case math.IsInf(v[i], -1): + av.String("-Infinity") - case *types.DataSourceParametersMemberRdsParameters: - av := object.Key("RdsParameters") - if err := awsRestjson1_serializeDocumentRdsParameters(&uv.Value, av); err != nil { - return err - } + default: + av.Double(v[i]) - case *types.DataSourceParametersMemberRedshiftParameters: - av := object.Key("RedshiftParameters") - if err := awsRestjson1_serializeDocumentRedshiftParameters(&uv.Value, av); err != nil { - return err } + } + return nil +} - case *types.DataSourceParametersMemberS3Parameters: - av := object.Key("S3Parameters") - if err := awsRestjson1_serializeDocumentS3Parameters(&uv.Value, av); err != nil { - return err - } +func awsRestjson1_serializeDocumentDecimalDefaultValueList(v []float64, value smithyjson.Value) error { + array := value.Array() + defer array.Close() - case *types.DataSourceParametersMemberServiceNowParameters: - av := object.Key("ServiceNowParameters") - if err := awsRestjson1_serializeDocumentServiceNowParameters(&uv.Value, av); err != nil { - return err - } + for i := range v { + av := array.Value() + switch { + case math.IsNaN(v[i]): + av.String("NaN") - case *types.DataSourceParametersMemberSnowflakeParameters: - av := object.Key("SnowflakeParameters") - if err := awsRestjson1_serializeDocumentSnowflakeParameters(&uv.Value, av); err != nil { - return err - } + case math.IsInf(v[i], 1): + av.String("Infinity") - case *types.DataSourceParametersMemberSparkParameters: - av := object.Key("SparkParameters") - if err := awsRestjson1_serializeDocumentSparkParameters(&uv.Value, av); err != nil { - return err - } + case math.IsInf(v[i], -1): + av.String("-Infinity") + + default: + av.Double(v[i]) - case *types.DataSourceParametersMemberSqlServerParameters: - av := object.Key("SqlServerParameters") - if err := awsRestjson1_serializeDocumentSqlServerParameters(&uv.Value, av); err != nil { - return err } + } + return nil +} - case *types.DataSourceParametersMemberTeradataParameters: - av := object.Key("TeradataParameters") - if err := awsRestjson1_serializeDocumentTeradataParameters(&uv.Value, av); err != nil { +func awsRestjson1_serializeDocumentDecimalDefaultValues(v *types.DecimalDefaultValues, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.DynamicValue != nil { + ok := object.Key("DynamicValue") + if err := awsRestjson1_serializeDocumentDynamicDefaultValue(v.DynamicValue, ok); err != nil { return err } + } - case *types.DataSourceParametersMemberTwitterParameters: - av := object.Key("TwitterParameters") - if err := awsRestjson1_serializeDocumentTwitterParameters(&uv.Value, av); err != nil { + if v.StaticValues != nil { + ok := object.Key("StaticValues") + if err := awsRestjson1_serializeDocumentDecimalDefaultValueList(v.StaticValues, ok); err != nil { return err } - - default: - return fmt.Errorf("attempted to serialize unknown member type %T for union %T", uv, v) - } + return nil } -func awsRestjson1_serializeDocumentDataSourceParametersList(v []types.DataSourceParameters, value smithyjson.Value) error { - array := value.Array() - defer array.Close() +func awsRestjson1_serializeDocumentDecimalParameter(v *types.DecimalParameter, value smithyjson.Value) error { + object := value.Object() + defer object.Close() - for i := range v { - av := array.Value() - if vv := v[i]; vv == nil { - continue - } - if err := awsRestjson1_serializeDocumentDataSourceParameters(v[i], av); err != nil { + if v.Name != nil { + ok := object.Key("Name") + ok.String(*v.Name) + } + + if v.Values != nil { + ok := object.Key("Values") + if err := awsRestjson1_serializeDocumentSensitiveDoubleList(v.Values, ok); err != nil { return err } } + return nil } -func awsRestjson1_serializeDocumentDataSourceSearchFilter(v *types.DataSourceSearchFilter, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDecimalParameterDeclaration(v *types.DecimalParameterDeclaration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if len(v.Name) > 0 { + if v.DefaultValues != nil { + ok := object.Key("DefaultValues") + if err := awsRestjson1_serializeDocumentDecimalDefaultValues(v.DefaultValues, ok); err != nil { + return err + } + } + + if v.MappedDataSetParameters != nil { + ok := object.Key("MappedDataSetParameters") + if err := awsRestjson1_serializeDocumentMappedDataSetParameters(v.MappedDataSetParameters, ok); err != nil { + return err + } + } + + if v.Name != nil { ok := object.Key("Name") - ok.String(string(v.Name)) + ok.String(*v.Name) } - if len(v.Operator) > 0 { - ok := object.Key("Operator") - ok.String(string(v.Operator)) + if len(v.ParameterValueType) > 0 { + ok := object.Key("ParameterValueType") + ok.String(string(v.ParameterValueType)) } - if v.Value != nil { - ok := object.Key("Value") - ok.String(*v.Value) + if v.ValueWhenUnset != nil { + ok := object.Key("ValueWhenUnset") + if err := awsRestjson1_serializeDocumentDecimalValueWhenUnsetConfiguration(v.ValueWhenUnset, ok); err != nil { + return err + } } return nil } -func awsRestjson1_serializeDocumentDataSourceSearchFilterList(v []types.DataSourceSearchFilter, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDecimalParameterList(v []types.DecimalParameter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if err := awsRestjson1_serializeDocumentDataSourceSearchFilter(&v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentDecimalParameter(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentDateAxisOptions(v *types.DateAxisOptions, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDecimalPlacesConfiguration(v *types.DecimalPlacesConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if len(v.MissingDateVisibility) > 0 { - ok := object.Key("MissingDateVisibility") - ok.String(string(v.MissingDateVisibility)) + if v.DecimalPlaces != nil { + ok := object.Key("DecimalPlaces") + ok.Long(*v.DecimalPlaces) } return nil } -func awsRestjson1_serializeDocumentDateDimensionField(v *types.DateDimensionField, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDecimalValueWhenUnsetConfiguration(v *types.DecimalValueWhenUnsetConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Column != nil { - ok := object.Key("Column") - if err := awsRestjson1_serializeDocumentColumnIdentifier(v.Column, ok); err != nil { - return err - } - } + if v.CustomValue != nil { + ok := object.Key("CustomValue") + switch { + case math.IsNaN(*v.CustomValue): + ok.String("NaN") - if len(v.DateGranularity) > 0 { - ok := object.Key("DateGranularity") - ok.String(string(v.DateGranularity)) - } + case math.IsInf(*v.CustomValue, 1): + ok.String("Infinity") - if v.FieldId != nil { - ok := object.Key("FieldId") - ok.String(*v.FieldId) - } + case math.IsInf(*v.CustomValue, -1): + ok.String("-Infinity") + + default: + ok.Double(*v.CustomValue) - if v.FormatConfiguration != nil { - ok := object.Key("FormatConfiguration") - if err := awsRestjson1_serializeDocumentDateTimeFormatConfiguration(v.FormatConfiguration, ok); err != nil { - return err } } - if v.HierarchyId != nil { - ok := object.Key("HierarchyId") - ok.String(*v.HierarchyId) + if len(v.ValueWhenUnsetOption) > 0 { + ok := object.Key("ValueWhenUnsetOption") + ok.String(string(v.ValueWhenUnsetOption)) } return nil } -func awsRestjson1_serializeDocumentDateMeasureField(v *types.DateMeasureField, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDefaultFormatting(v *types.DefaultFormatting, value smithyjson.Value) error { object := value.Object() defer object.Close() - if len(v.AggregationFunction) > 0 { - ok := object.Key("AggregationFunction") - ok.String(string(v.AggregationFunction)) + if len(v.DisplayFormat) > 0 { + ok := object.Key("DisplayFormat") + ok.String(string(v.DisplayFormat)) } - if v.Column != nil { - ok := object.Key("Column") - if err := awsRestjson1_serializeDocumentColumnIdentifier(v.Column, ok); err != nil { + if v.DisplayFormatOptions != nil { + ok := object.Key("DisplayFormatOptions") + if err := awsRestjson1_serializeDocumentDisplayFormatOptions(v.DisplayFormatOptions, ok); err != nil { return err } } - if v.FieldId != nil { - ok := object.Key("FieldId") - ok.String(*v.FieldId) - } + return nil +} - if v.FormatConfiguration != nil { - ok := object.Key("FormatConfiguration") - if err := awsRestjson1_serializeDocumentDateTimeFormatConfiguration(v.FormatConfiguration, ok); err != nil { +func awsRestjson1_serializeDocumentDefaultFreeFormLayoutConfiguration(v *types.DefaultFreeFormLayoutConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.CanvasSizeOptions != nil { + ok := object.Key("CanvasSizeOptions") + if err := awsRestjson1_serializeDocumentFreeFormLayoutCanvasSizeOptions(v.CanvasSizeOptions, ok); err != nil { return err } } @@ -15770,38 +18014,34 @@ func awsRestjson1_serializeDocumentDateMeasureField(v *types.DateMeasureField, v return nil } -func awsRestjson1_serializeDocumentDateTimeDefaultValueList(v []time.Time, value smithyjson.Value) error { - array := value.Array() - defer array.Close() +func awsRestjson1_serializeDocumentDefaultGridLayoutConfiguration(v *types.DefaultGridLayoutConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() - for i := range v { - av := array.Value() - av.Double(smithytime.FormatEpochSeconds(v[i])) + if v.CanvasSizeOptions != nil { + ok := object.Key("CanvasSizeOptions") + if err := awsRestjson1_serializeDocumentGridLayoutCanvasSizeOptions(v.CanvasSizeOptions, ok); err != nil { + return err + } } + return nil } -func awsRestjson1_serializeDocumentDateTimeDefaultValues(v *types.DateTimeDefaultValues, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDefaultInteractiveLayoutConfiguration(v *types.DefaultInteractiveLayoutConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.DynamicValue != nil { - ok := object.Key("DynamicValue") - if err := awsRestjson1_serializeDocumentDynamicDefaultValue(v.DynamicValue, ok); err != nil { - return err - } - } - - if v.RollingDate != nil { - ok := object.Key("RollingDate") - if err := awsRestjson1_serializeDocumentRollingDateConfiguration(v.RollingDate, ok); err != nil { + if v.FreeForm != nil { + ok := object.Key("FreeForm") + if err := awsRestjson1_serializeDocumentDefaultFreeFormLayoutConfiguration(v.FreeForm, ok); err != nil { return err } } - if v.StaticValues != nil { - ok := object.Key("StaticValues") - if err := awsRestjson1_serializeDocumentDateTimeDefaultValueList(v.StaticValues, ok); err != nil { + if v.Grid != nil { + ok := object.Key("Grid") + if err := awsRestjson1_serializeDocumentDefaultGridLayoutConfiguration(v.Grid, ok); err != nil { return err } } @@ -15809,25 +18049,39 @@ func awsRestjson1_serializeDocumentDateTimeDefaultValues(v *types.DateTimeDefaul return nil } -func awsRestjson1_serializeDocumentDateTimeFormatConfiguration(v *types.DateTimeFormatConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDefaultNewSheetConfiguration(v *types.DefaultNewSheetConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.DateTimeFormat != nil { - ok := object.Key("DateTimeFormat") - ok.String(*v.DateTimeFormat) + if v.InteractiveLayoutConfiguration != nil { + ok := object.Key("InteractiveLayoutConfiguration") + if err := awsRestjson1_serializeDocumentDefaultInteractiveLayoutConfiguration(v.InteractiveLayoutConfiguration, ok); err != nil { + return err + } } - if v.NullValueFormatConfiguration != nil { - ok := object.Key("NullValueFormatConfiguration") - if err := awsRestjson1_serializeDocumentNullValueFormatConfiguration(v.NullValueFormatConfiguration, ok); err != nil { + if v.PaginatedLayoutConfiguration != nil { + ok := object.Key("PaginatedLayoutConfiguration") + if err := awsRestjson1_serializeDocumentDefaultPaginatedLayoutConfiguration(v.PaginatedLayoutConfiguration, ok); err != nil { return err } } - if v.NumericFormatConfiguration != nil { - ok := object.Key("NumericFormatConfiguration") - if err := awsRestjson1_serializeDocumentNumericFormatConfiguration(v.NumericFormatConfiguration, ok); err != nil { + if len(v.SheetContentType) > 0 { + ok := object.Key("SheetContentType") + ok.String(string(v.SheetContentType)) + } + + return nil +} + +func awsRestjson1_serializeDocumentDefaultPaginatedLayoutConfiguration(v *types.DefaultPaginatedLayoutConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.SectionBased != nil { + ok := object.Key("SectionBased") + if err := awsRestjson1_serializeDocumentDefaultSectionBasedLayoutConfiguration(v.SectionBased, ok); err != nil { return err } } @@ -15835,68 +18089,77 @@ func awsRestjson1_serializeDocumentDateTimeFormatConfiguration(v *types.DateTime return nil } -func awsRestjson1_serializeDocumentDateTimeHierarchy(v *types.DateTimeHierarchy, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDefaultSectionBasedLayoutConfiguration(v *types.DefaultSectionBasedLayoutConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.DrillDownFilters != nil { - ok := object.Key("DrillDownFilters") - if err := awsRestjson1_serializeDocumentDrillDownFilterList(v.DrillDownFilters, ok); err != nil { + if v.CanvasSizeOptions != nil { + ok := object.Key("CanvasSizeOptions") + if err := awsRestjson1_serializeDocumentSectionBasedLayoutCanvasSizeOptions(v.CanvasSizeOptions, ok); err != nil { return err } } - if v.HierarchyId != nil { - ok := object.Key("HierarchyId") - ok.String(*v.HierarchyId) - } - return nil } -func awsRestjson1_serializeDocumentDateTimeParameter(v *types.DateTimeParameter, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDestinationParameterValueConfiguration(v *types.DestinationParameterValueConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Name != nil { - ok := object.Key("Name") - ok.String(*v.Name) + if v.CustomValuesConfiguration != nil { + ok := object.Key("CustomValuesConfiguration") + if err := awsRestjson1_serializeDocumentCustomValuesConfiguration(v.CustomValuesConfiguration, ok); err != nil { + return err + } } - if v.Values != nil { - ok := object.Key("Values") - if err := awsRestjson1_serializeDocumentSensitiveTimestampList(v.Values, ok); err != nil { + if len(v.SelectAllValueOptions) > 0 { + ok := object.Key("SelectAllValueOptions") + ok.String(string(v.SelectAllValueOptions)) + } + + if v.SourceColumn != nil { + ok := object.Key("SourceColumn") + if err := awsRestjson1_serializeDocumentColumnIdentifier(v.SourceColumn, ok); err != nil { return err } } + if v.SourceField != nil { + ok := object.Key("SourceField") + ok.String(*v.SourceField) + } + + if v.SourceParameterName != nil { + ok := object.Key("SourceParameterName") + ok.String(*v.SourceParameterName) + } + return nil } -func awsRestjson1_serializeDocumentDateTimeParameterDeclaration(v *types.DateTimeParameterDeclaration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDimensionField(v *types.DimensionField, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.DefaultValues != nil { - ok := object.Key("DefaultValues") - if err := awsRestjson1_serializeDocumentDateTimeDefaultValues(v.DefaultValues, ok); err != nil { + if v.CategoricalDimensionField != nil { + ok := object.Key("CategoricalDimensionField") + if err := awsRestjson1_serializeDocumentCategoricalDimensionField(v.CategoricalDimensionField, ok); err != nil { return err } } - if v.Name != nil { - ok := object.Key("Name") - ok.String(*v.Name) - } - - if len(v.TimeGranularity) > 0 { - ok := object.Key("TimeGranularity") - ok.String(string(v.TimeGranularity)) + if v.DateDimensionField != nil { + ok := object.Key("DateDimensionField") + if err := awsRestjson1_serializeDocumentDateDimensionField(v.DateDimensionField, ok); err != nil { + return err + } } - if v.ValueWhenUnset != nil { - ok := object.Key("ValueWhenUnset") - if err := awsRestjson1_serializeDocumentDateTimeValueWhenUnsetConfiguration(v.ValueWhenUnset, ok); err != nil { + if v.NumericalDimensionField != nil { + ok := object.Key("NumericalDimensionField") + if err := awsRestjson1_serializeDocumentNumericalDimensionField(v.NumericalDimensionField, ok); err != nil { return err } } @@ -15904,112 +18167,125 @@ func awsRestjson1_serializeDocumentDateTimeParameterDeclaration(v *types.DateTim return nil } -func awsRestjson1_serializeDocumentDateTimeParameterList(v []types.DateTimeParameter, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDimensionFieldList(v []types.DimensionField, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if err := awsRestjson1_serializeDocumentDateTimeParameter(&v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentDimensionField(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentDateTimePickerControlDisplayOptions(v *types.DateTimePickerControlDisplayOptions, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDisplayFormatOptions(v *types.DisplayFormatOptions, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.DateTimeFormat != nil { - ok := object.Key("DateTimeFormat") - ok.String(*v.DateTimeFormat) + if v.BlankCellFormat != nil { + ok := object.Key("BlankCellFormat") + ok.String(*v.BlankCellFormat) } - if v.TitleOptions != nil { - ok := object.Key("TitleOptions") - if err := awsRestjson1_serializeDocumentLabelOptions(v.TitleOptions, ok); err != nil { + if v.CurrencySymbol != nil { + ok := object.Key("CurrencySymbol") + ok.String(*v.CurrencySymbol) + } + + if v.DateFormat != nil { + ok := object.Key("DateFormat") + ok.String(*v.DateFormat) + } + + if len(v.DecimalSeparator) > 0 { + ok := object.Key("DecimalSeparator") + ok.String(string(v.DecimalSeparator)) + } + + if v.FractionDigits != 0 { + ok := object.Key("FractionDigits") + ok.Integer(v.FractionDigits) + } + + if v.GroupingSeparator != nil { + ok := object.Key("GroupingSeparator") + ok.String(*v.GroupingSeparator) + } + + if v.NegativeFormat != nil { + ok := object.Key("NegativeFormat") + if err := awsRestjson1_serializeDocumentNegativeFormat(v.NegativeFormat, ok); err != nil { return err } } - return nil -} + if v.Prefix != nil { + ok := object.Key("Prefix") + ok.String(*v.Prefix) + } -func awsRestjson1_serializeDocumentDateTimeValueWhenUnsetConfiguration(v *types.DateTimeValueWhenUnsetConfiguration, value smithyjson.Value) error { - object := value.Object() - defer object.Close() + if v.Suffix != nil { + ok := object.Key("Suffix") + ok.String(*v.Suffix) + } - if v.CustomValue != nil { - ok := object.Key("CustomValue") - ok.Double(smithytime.FormatEpochSeconds(*v.CustomValue)) + if len(v.UnitScaler) > 0 { + ok := object.Key("UnitScaler") + ok.String(string(v.UnitScaler)) } - if len(v.ValueWhenUnsetOption) > 0 { - ok := object.Key("ValueWhenUnsetOption") - ok.String(string(v.ValueWhenUnsetOption)) + if v.UseBlankCellFormat { + ok := object.Key("UseBlankCellFormat") + ok.Boolean(v.UseBlankCellFormat) + } + + if v.UseGrouping { + ok := object.Key("UseGrouping") + ok.Boolean(v.UseGrouping) } return nil } -func awsRestjson1_serializeDocumentDecimalDefaultValueList(v []float64, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDnsResolverList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - switch { - case math.IsNaN(v[i]): - av.String("NaN") - - case math.IsInf(v[i], 1): - av.String("Infinity") - - case math.IsInf(v[i], -1): - av.String("-Infinity") - - default: - av.Double(v[i]) - - } + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentDecimalDefaultValues(v *types.DecimalDefaultValues, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDonutCenterOptions(v *types.DonutCenterOptions, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.DynamicValue != nil { - ok := object.Key("DynamicValue") - if err := awsRestjson1_serializeDocumentDynamicDefaultValue(v.DynamicValue, ok); err != nil { - return err - } - } - - if v.StaticValues != nil { - ok := object.Key("StaticValues") - if err := awsRestjson1_serializeDocumentDecimalDefaultValueList(v.StaticValues, ok); err != nil { - return err - } + if len(v.LabelVisibility) > 0 { + ok := object.Key("LabelVisibility") + ok.String(string(v.LabelVisibility)) } return nil } -func awsRestjson1_serializeDocumentDecimalParameter(v *types.DecimalParameter, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDonutOptions(v *types.DonutOptions, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Name != nil { - ok := object.Key("Name") - ok.String(*v.Name) + if v.ArcOptions != nil { + ok := object.Key("ArcOptions") + if err := awsRestjson1_serializeDocumentArcOptions(v.ArcOptions, ok); err != nil { + return err + } } - if v.Values != nil { - ok := object.Key("Values") - if err := awsRestjson1_serializeDocumentSensitiveDoubleList(v.Values, ok); err != nil { + if v.DonutCenterOptions != nil { + ok := object.Key("DonutCenterOptions") + if err := awsRestjson1_serializeDocumentDonutCenterOptions(v.DonutCenterOptions, ok); err != nil { return err } } @@ -16017,30 +18293,27 @@ func awsRestjson1_serializeDocumentDecimalParameter(v *types.DecimalParameter, v return nil } -func awsRestjson1_serializeDocumentDecimalParameterDeclaration(v *types.DecimalParameterDeclaration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDrillDownFilter(v *types.DrillDownFilter, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.DefaultValues != nil { - ok := object.Key("DefaultValues") - if err := awsRestjson1_serializeDocumentDecimalDefaultValues(v.DefaultValues, ok); err != nil { + if v.CategoryFilter != nil { + ok := object.Key("CategoryFilter") + if err := awsRestjson1_serializeDocumentCategoryDrillDownFilter(v.CategoryFilter, ok); err != nil { return err } } - if v.Name != nil { - ok := object.Key("Name") - ok.String(*v.Name) - } - - if len(v.ParameterValueType) > 0 { - ok := object.Key("ParameterValueType") - ok.String(string(v.ParameterValueType)) + if v.NumericEqualityFilter != nil { + ok := object.Key("NumericEqualityFilter") + if err := awsRestjson1_serializeDocumentNumericEqualityDrillDownFilter(v.NumericEqualityFilter, ok); err != nil { + return err + } } - if v.ValueWhenUnset != nil { - ok := object.Key("ValueWhenUnset") - if err := awsRestjson1_serializeDocumentDecimalValueWhenUnsetConfiguration(v.ValueWhenUnset, ok); err != nil { + if v.TimeRangeFilter != nil { + ok := object.Key("TimeRangeFilter") + if err := awsRestjson1_serializeDocumentTimeRangeDrillDownFilter(v.TimeRangeFilter, ok); err != nil { return err } } @@ -16048,288 +18321,346 @@ func awsRestjson1_serializeDocumentDecimalParameterDeclaration(v *types.DecimalP return nil } -func awsRestjson1_serializeDocumentDecimalParameterList(v []types.DecimalParameter, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDrillDownFilterList(v []types.DrillDownFilter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if err := awsRestjson1_serializeDocumentDecimalParameter(&v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentDrillDownFilter(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentDecimalPlacesConfiguration(v *types.DecimalPlacesConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDropDownControlDisplayOptions(v *types.DropDownControlDisplayOptions, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.DecimalPlaces != nil { - ok := object.Key("DecimalPlaces") - ok.Long(*v.DecimalPlaces) + if v.SelectAllOptions != nil { + ok := object.Key("SelectAllOptions") + if err := awsRestjson1_serializeDocumentListControlSelectAllOptions(v.SelectAllOptions, ok); err != nil { + return err + } + } + + if v.TitleOptions != nil { + ok := object.Key("TitleOptions") + if err := awsRestjson1_serializeDocumentLabelOptions(v.TitleOptions, ok); err != nil { + return err + } } return nil } -func awsRestjson1_serializeDocumentDecimalValueWhenUnsetConfiguration(v *types.DecimalValueWhenUnsetConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDynamicDefaultValue(v *types.DynamicDefaultValue, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.CustomValue != nil { - ok := object.Key("CustomValue") - switch { - case math.IsNaN(*v.CustomValue): - ok.String("NaN") + if v.DefaultValueColumn != nil { + ok := object.Key("DefaultValueColumn") + if err := awsRestjson1_serializeDocumentColumnIdentifier(v.DefaultValueColumn, ok); err != nil { + return err + } + } - case math.IsInf(*v.CustomValue, 1): - ok.String("Infinity") + if v.GroupNameColumn != nil { + ok := object.Key("GroupNameColumn") + if err := awsRestjson1_serializeDocumentColumnIdentifier(v.GroupNameColumn, ok); err != nil { + return err + } + } - case math.IsInf(*v.CustomValue, -1): - ok.String("-Infinity") + if v.UserNameColumn != nil { + ok := object.Key("UserNameColumn") + if err := awsRestjson1_serializeDocumentColumnIdentifier(v.UserNameColumn, ok); err != nil { + return err + } + } - default: - ok.Double(*v.CustomValue) + return nil +} + +func awsRestjson1_serializeDocumentEmptyVisual(v *types.EmptyVisual, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + if v.Actions != nil { + ok := object.Key("Actions") + if err := awsRestjson1_serializeDocumentVisualCustomActionList(v.Actions, ok); err != nil { + return err } } - if len(v.ValueWhenUnsetOption) > 0 { - ok := object.Key("ValueWhenUnsetOption") - ok.String(string(v.ValueWhenUnsetOption)) + if v.DataSetIdentifier != nil { + ok := object.Key("DataSetIdentifier") + ok.String(*v.DataSetIdentifier) + } + + if v.VisualId != nil { + ok := object.Key("VisualId") + ok.String(*v.VisualId) } return nil } -func awsRestjson1_serializeDocumentDefaultFreeFormLayoutConfiguration(v *types.DefaultFreeFormLayoutConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentExasolParameters(v *types.ExasolParameters, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.CanvasSizeOptions != nil { - ok := object.Key("CanvasSizeOptions") - if err := awsRestjson1_serializeDocumentFreeFormLayoutCanvasSizeOptions(v.CanvasSizeOptions, ok); err != nil { - return err - } + if v.Host != nil { + ok := object.Key("Host") + ok.String(*v.Host) + } + + { + ok := object.Key("Port") + ok.Integer(v.Port) } return nil } -func awsRestjson1_serializeDocumentDefaultGridLayoutConfiguration(v *types.DefaultGridLayoutConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentExcludePeriodConfiguration(v *types.ExcludePeriodConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.CanvasSizeOptions != nil { - ok := object.Key("CanvasSizeOptions") - if err := awsRestjson1_serializeDocumentGridLayoutCanvasSizeOptions(v.CanvasSizeOptions, ok); err != nil { - return err - } + if v.Amount != nil { + ok := object.Key("Amount") + ok.Integer(*v.Amount) + } + + if len(v.Granularity) > 0 { + ok := object.Key("Granularity") + ok.String(string(v.Granularity)) + } + + if len(v.Status) > 0 { + ok := object.Key("Status") + ok.String(string(v.Status)) } return nil } -func awsRestjson1_serializeDocumentDefaultInteractiveLayoutConfiguration(v *types.DefaultInteractiveLayoutConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentExplicitHierarchy(v *types.ExplicitHierarchy, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.FreeForm != nil { - ok := object.Key("FreeForm") - if err := awsRestjson1_serializeDocumentDefaultFreeFormLayoutConfiguration(v.FreeForm, ok); err != nil { + if v.Columns != nil { + ok := object.Key("Columns") + if err := awsRestjson1_serializeDocumentExplicitHierarchyColumnList(v.Columns, ok); err != nil { return err } } - if v.Grid != nil { - ok := object.Key("Grid") - if err := awsRestjson1_serializeDocumentDefaultGridLayoutConfiguration(v.Grid, ok); err != nil { + if v.DrillDownFilters != nil { + ok := object.Key("DrillDownFilters") + if err := awsRestjson1_serializeDocumentDrillDownFilterList(v.DrillDownFilters, ok); err != nil { return err } } + if v.HierarchyId != nil { + ok := object.Key("HierarchyId") + ok.String(*v.HierarchyId) + } + return nil } -func awsRestjson1_serializeDocumentDefaultNewSheetConfiguration(v *types.DefaultNewSheetConfiguration, value smithyjson.Value) error { - object := value.Object() - defer object.Close() +func awsRestjson1_serializeDocumentExplicitHierarchyColumnList(v []types.ColumnIdentifier, value smithyjson.Value) error { + array := value.Array() + defer array.Close() - if v.InteractiveLayoutConfiguration != nil { - ok := object.Key("InteractiveLayoutConfiguration") - if err := awsRestjson1_serializeDocumentDefaultInteractiveLayoutConfiguration(v.InteractiveLayoutConfiguration, ok); err != nil { + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentColumnIdentifier(&v[i], av); err != nil { return err } } + return nil +} - if v.PaginatedLayoutConfiguration != nil { - ok := object.Key("PaginatedLayoutConfiguration") - if err := awsRestjson1_serializeDocumentDefaultPaginatedLayoutConfiguration(v.PaginatedLayoutConfiguration, ok); err != nil { - return err - } - } +func awsRestjson1_serializeDocumentExportHiddenFieldsOption(v *types.ExportHiddenFieldsOption, value smithyjson.Value) error { + object := value.Object() + defer object.Close() - if len(v.SheetContentType) > 0 { - ok := object.Key("SheetContentType") - ok.String(string(v.SheetContentType)) + if len(v.AvailabilityStatus) > 0 { + ok := object.Key("AvailabilityStatus") + ok.String(string(v.AvailabilityStatus)) } return nil } -func awsRestjson1_serializeDocumentDefaultPaginatedLayoutConfiguration(v *types.DefaultPaginatedLayoutConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentExportToCSVOption(v *types.ExportToCSVOption, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.SectionBased != nil { - ok := object.Key("SectionBased") - if err := awsRestjson1_serializeDocumentDefaultSectionBasedLayoutConfiguration(v.SectionBased, ok); err != nil { - return err - } + if len(v.AvailabilityStatus) > 0 { + ok := object.Key("AvailabilityStatus") + ok.String(string(v.AvailabilityStatus)) } return nil } -func awsRestjson1_serializeDocumentDefaultSectionBasedLayoutConfiguration(v *types.DefaultSectionBasedLayoutConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentExportWithHiddenFieldsOption(v *types.ExportWithHiddenFieldsOption, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.CanvasSizeOptions != nil { - ok := object.Key("CanvasSizeOptions") - if err := awsRestjson1_serializeDocumentSectionBasedLayoutCanvasSizeOptions(v.CanvasSizeOptions, ok); err != nil { - return err - } + if len(v.AvailabilityStatus) > 0 { + ok := object.Key("AvailabilityStatus") + ok.String(string(v.AvailabilityStatus)) } return nil } -func awsRestjson1_serializeDocumentDestinationParameterValueConfiguration(v *types.DestinationParameterValueConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentFieldBasedTooltip(v *types.FieldBasedTooltip, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.CustomValuesConfiguration != nil { - ok := object.Key("CustomValuesConfiguration") - if err := awsRestjson1_serializeDocumentCustomValuesConfiguration(v.CustomValuesConfiguration, ok); err != nil { + if len(v.AggregationVisibility) > 0 { + ok := object.Key("AggregationVisibility") + ok.String(string(v.AggregationVisibility)) + } + + if v.TooltipFields != nil { + ok := object.Key("TooltipFields") + if err := awsRestjson1_serializeDocumentTooltipItemList(v.TooltipFields, ok); err != nil { return err } } - if len(v.SelectAllValueOptions) > 0 { - ok := object.Key("SelectAllValueOptions") - ok.String(string(v.SelectAllValueOptions)) + if len(v.TooltipTitleType) > 0 { + ok := object.Key("TooltipTitleType") + ok.String(string(v.TooltipTitleType)) } - if v.SourceField != nil { - ok := object.Key("SourceField") - ok.String(*v.SourceField) + return nil +} + +func awsRestjson1_serializeDocumentFieldFolder(v *types.FieldFolder, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Columns != nil { + ok := object.Key("columns") + if err := awsRestjson1_serializeDocumentFolderColumnList(v.Columns, ok); err != nil { + return err + } } - if v.SourceParameterName != nil { - ok := object.Key("SourceParameterName") - ok.String(*v.SourceParameterName) + if v.Description != nil { + ok := object.Key("description") + ok.String(*v.Description) } return nil } -func awsRestjson1_serializeDocumentDimensionField(v *types.DimensionField, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentFieldFolderMap(v map[string]types.FieldFolder, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.CategoricalDimensionField != nil { - ok := object.Key("CategoricalDimensionField") - if err := awsRestjson1_serializeDocumentCategoricalDimensionField(v.CategoricalDimensionField, ok); err != nil { + for key := range v { + om := object.Key(key) + mapVar := v[key] + if err := awsRestjson1_serializeDocumentFieldFolder(&mapVar, om); err != nil { return err } } + return nil +} - if v.DateDimensionField != nil { - ok := object.Key("DateDimensionField") - if err := awsRestjson1_serializeDocumentDateDimensionField(v.DateDimensionField, ok); err != nil { - return err - } +func awsRestjson1_serializeDocumentFieldLabelType(v *types.FieldLabelType, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.FieldId != nil { + ok := object.Key("FieldId") + ok.String(*v.FieldId) } - if v.NumericalDimensionField != nil { - ok := object.Key("NumericalDimensionField") - if err := awsRestjson1_serializeDocumentNumericalDimensionField(v.NumericalDimensionField, ok); err != nil { - return err - } + if len(v.Visibility) > 0 { + ok := object.Key("Visibility") + ok.String(string(v.Visibility)) } return nil } -func awsRestjson1_serializeDocumentDimensionFieldList(v []types.DimensionField, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentFieldOrderList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if err := awsRestjson1_serializeDocumentDimensionField(&v[i], av); err != nil { - return err - } + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentDonutCenterOptions(v *types.DonutCenterOptions, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentFieldSeriesItem(v *types.FieldSeriesItem, value smithyjson.Value) error { object := value.Object() defer object.Close() - if len(v.LabelVisibility) > 0 { - ok := object.Key("LabelVisibility") - ok.String(string(v.LabelVisibility)) + if len(v.AxisBinding) > 0 { + ok := object.Key("AxisBinding") + ok.String(string(v.AxisBinding)) + } + + if v.FieldId != nil { + ok := object.Key("FieldId") + ok.String(*v.FieldId) + } + + if v.Settings != nil { + ok := object.Key("Settings") + if err := awsRestjson1_serializeDocumentLineChartSeriesSettings(v.Settings, ok); err != nil { + return err + } } return nil } -func awsRestjson1_serializeDocumentDonutOptions(v *types.DonutOptions, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentFieldSort(v *types.FieldSort, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.ArcOptions != nil { - ok := object.Key("ArcOptions") - if err := awsRestjson1_serializeDocumentArcOptions(v.ArcOptions, ok); err != nil { - return err - } + if len(v.Direction) > 0 { + ok := object.Key("Direction") + ok.String(string(v.Direction)) } - if v.DonutCenterOptions != nil { - ok := object.Key("DonutCenterOptions") - if err := awsRestjson1_serializeDocumentDonutCenterOptions(v.DonutCenterOptions, ok); err != nil { - return err - } + if v.FieldId != nil { + ok := object.Key("FieldId") + ok.String(*v.FieldId) } return nil } -func awsRestjson1_serializeDocumentDrillDownFilter(v *types.DrillDownFilter, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentFieldSortOptions(v *types.FieldSortOptions, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.CategoryFilter != nil { - ok := object.Key("CategoryFilter") - if err := awsRestjson1_serializeDocumentCategoryDrillDownFilter(v.CategoryFilter, ok); err != nil { - return err - } - } - - if v.NumericEqualityFilter != nil { - ok := object.Key("NumericEqualityFilter") - if err := awsRestjson1_serializeDocumentNumericEqualityDrillDownFilter(v.NumericEqualityFilter, ok); err != nil { + if v.ColumnSort != nil { + ok := object.Key("ColumnSort") + if err := awsRestjson1_serializeDocumentColumnSort(v.ColumnSort, ok); err != nil { return err } } - if v.TimeRangeFilter != nil { - ok := object.Key("TimeRangeFilter") - if err := awsRestjson1_serializeDocumentTimeRangeDrillDownFilter(v.TimeRangeFilter, ok); err != nil { + if v.FieldSort != nil { + ok := object.Key("FieldSort") + if err := awsRestjson1_serializeDocumentFieldSort(v.FieldSort, ok); err != nil { return err } } @@ -16337,61 +18668,55 @@ func awsRestjson1_serializeDocumentDrillDownFilter(v *types.DrillDownFilter, val return nil } -func awsRestjson1_serializeDocumentDrillDownFilterList(v []types.DrillDownFilter, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentFieldSortOptionsList(v []types.FieldSortOptions, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if err := awsRestjson1_serializeDocumentDrillDownFilter(&v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentFieldSortOptions(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentDropDownControlDisplayOptions(v *types.DropDownControlDisplayOptions, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentFieldTooltipItem(v *types.FieldTooltipItem, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.SelectAllOptions != nil { - ok := object.Key("SelectAllOptions") - if err := awsRestjson1_serializeDocumentListControlSelectAllOptions(v.SelectAllOptions, ok); err != nil { - return err - } + if v.FieldId != nil { + ok := object.Key("FieldId") + ok.String(*v.FieldId) } - if v.TitleOptions != nil { - ok := object.Key("TitleOptions") - if err := awsRestjson1_serializeDocumentLabelOptions(v.TitleOptions, ok); err != nil { - return err - } + if v.Label != nil { + ok := object.Key("Label") + ok.String(*v.Label) + } + + if len(v.Visibility) > 0 { + ok := object.Key("Visibility") + ok.String(string(v.Visibility)) } return nil } -func awsRestjson1_serializeDocumentDynamicDefaultValue(v *types.DynamicDefaultValue, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentFilledMapAggregatedFieldWells(v *types.FilledMapAggregatedFieldWells, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.DefaultValueColumn != nil { - ok := object.Key("DefaultValueColumn") - if err := awsRestjson1_serializeDocumentColumnIdentifier(v.DefaultValueColumn, ok); err != nil { - return err - } - } - - if v.GroupNameColumn != nil { - ok := object.Key("GroupNameColumn") - if err := awsRestjson1_serializeDocumentColumnIdentifier(v.GroupNameColumn, ok); err != nil { + if v.Geospatial != nil { + ok := object.Key("Geospatial") + if err := awsRestjson1_serializeDocumentFilledMapDimensionFieldList(v.Geospatial, ok); err != nil { return err } } - if v.UserNameColumn != nil { - ok := object.Key("UserNameColumn") - if err := awsRestjson1_serializeDocumentColumnIdentifier(v.UserNameColumn, ok); err != nil { + if v.Values != nil { + ok := object.Key("Values") + if err := awsRestjson1_serializeDocumentFilledMapMeasureFieldList(v.Values, ok); err != nil { return err } } @@ -16399,246 +18724,272 @@ func awsRestjson1_serializeDocumentDynamicDefaultValue(v *types.DynamicDefaultVa return nil } -func awsRestjson1_serializeDocumentEmptyVisual(v *types.EmptyVisual, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentFilledMapConditionalFormatting(v *types.FilledMapConditionalFormatting, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Actions != nil { - ok := object.Key("Actions") - if err := awsRestjson1_serializeDocumentVisualCustomActionList(v.Actions, ok); err != nil { + if v.ConditionalFormattingOptions != nil { + ok := object.Key("ConditionalFormattingOptions") + if err := awsRestjson1_serializeDocumentFilledMapConditionalFormattingOptionList(v.ConditionalFormattingOptions, ok); err != nil { return err } } - if v.DataSetIdentifier != nil { - ok := object.Key("DataSetIdentifier") - ok.String(*v.DataSetIdentifier) - } - - if v.VisualId != nil { - ok := object.Key("VisualId") - ok.String(*v.VisualId) - } - return nil } -func awsRestjson1_serializeDocumentExasolParameters(v *types.ExasolParameters, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentFilledMapConditionalFormattingOption(v *types.FilledMapConditionalFormattingOption, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Host != nil { - ok := object.Key("Host") - ok.String(*v.Host) + if v.Shape != nil { + ok := object.Key("Shape") + if err := awsRestjson1_serializeDocumentFilledMapShapeConditionalFormatting(v.Shape, ok); err != nil { + return err + } } - { - ok := object.Key("Port") - ok.Integer(v.Port) - } + return nil +} + +func awsRestjson1_serializeDocumentFilledMapConditionalFormattingOptionList(v []types.FilledMapConditionalFormattingOption, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentFilledMapConditionalFormattingOption(&v[i], av); err != nil { + return err + } + } return nil } -func awsRestjson1_serializeDocumentExcludePeriodConfiguration(v *types.ExcludePeriodConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentFilledMapConfiguration(v *types.FilledMapConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Amount != nil { - ok := object.Key("Amount") - ok.Integer(*v.Amount) + if v.FieldWells != nil { + ok := object.Key("FieldWells") + if err := awsRestjson1_serializeDocumentFilledMapFieldWells(v.FieldWells, ok); err != nil { + return err + } } - if len(v.Granularity) > 0 { - ok := object.Key("Granularity") - ok.String(string(v.Granularity)) + if v.Legend != nil { + ok := object.Key("Legend") + if err := awsRestjson1_serializeDocumentLegendOptions(v.Legend, ok); err != nil { + return err + } } - if len(v.Status) > 0 { - ok := object.Key("Status") - ok.String(string(v.Status)) + if v.MapStyleOptions != nil { + ok := object.Key("MapStyleOptions") + if err := awsRestjson1_serializeDocumentGeospatialMapStyleOptions(v.MapStyleOptions, ok); err != nil { + return err + } } - return nil -} - -func awsRestjson1_serializeDocumentExplicitHierarchy(v *types.ExplicitHierarchy, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Columns != nil { - ok := object.Key("Columns") - if err := awsRestjson1_serializeDocumentExplicitHierarchyColumnList(v.Columns, ok); err != nil { + if v.SortConfiguration != nil { + ok := object.Key("SortConfiguration") + if err := awsRestjson1_serializeDocumentFilledMapSortConfiguration(v.SortConfiguration, ok); err != nil { return err } } - if v.DrillDownFilters != nil { - ok := object.Key("DrillDownFilters") - if err := awsRestjson1_serializeDocumentDrillDownFilterList(v.DrillDownFilters, ok); err != nil { + if v.Tooltip != nil { + ok := object.Key("Tooltip") + if err := awsRestjson1_serializeDocumentTooltipOptions(v.Tooltip, ok); err != nil { return err } } - if v.HierarchyId != nil { - ok := object.Key("HierarchyId") - ok.String(*v.HierarchyId) + if v.WindowOptions != nil { + ok := object.Key("WindowOptions") + if err := awsRestjson1_serializeDocumentGeospatialWindowOptions(v.WindowOptions, ok); err != nil { + return err + } } return nil } -func awsRestjson1_serializeDocumentExplicitHierarchyColumnList(v []types.ColumnIdentifier, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentFilledMapDimensionFieldList(v []types.DimensionField, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if err := awsRestjson1_serializeDocumentColumnIdentifier(&v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentDimensionField(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentExportHiddenFieldsOption(v *types.ExportHiddenFieldsOption, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentFilledMapFieldWells(v *types.FilledMapFieldWells, value smithyjson.Value) error { object := value.Object() defer object.Close() - if len(v.AvailabilityStatus) > 0 { - ok := object.Key("AvailabilityStatus") - ok.String(string(v.AvailabilityStatus)) + if v.FilledMapAggregatedFieldWells != nil { + ok := object.Key("FilledMapAggregatedFieldWells") + if err := awsRestjson1_serializeDocumentFilledMapAggregatedFieldWells(v.FilledMapAggregatedFieldWells, ok); err != nil { + return err + } } return nil } -func awsRestjson1_serializeDocumentExportToCSVOption(v *types.ExportToCSVOption, value smithyjson.Value) error { - object := value.Object() - defer object.Close() +func awsRestjson1_serializeDocumentFilledMapMeasureFieldList(v []types.MeasureField, value smithyjson.Value) error { + array := value.Array() + defer array.Close() - if len(v.AvailabilityStatus) > 0 { - ok := object.Key("AvailabilityStatus") - ok.String(string(v.AvailabilityStatus)) + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentMeasureField(&v[i], av); err != nil { + return err + } } - return nil } -func awsRestjson1_serializeDocumentExportWithHiddenFieldsOption(v *types.ExportWithHiddenFieldsOption, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentFilledMapShapeConditionalFormatting(v *types.FilledMapShapeConditionalFormatting, value smithyjson.Value) error { object := value.Object() defer object.Close() - if len(v.AvailabilityStatus) > 0 { - ok := object.Key("AvailabilityStatus") - ok.String(string(v.AvailabilityStatus)) + if v.FieldId != nil { + ok := object.Key("FieldId") + ok.String(*v.FieldId) + } + + if v.Format != nil { + ok := object.Key("Format") + if err := awsRestjson1_serializeDocumentShapeConditionalFormat(v.Format, ok); err != nil { + return err + } } return nil } -func awsRestjson1_serializeDocumentFieldBasedTooltip(v *types.FieldBasedTooltip, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentFilledMapSortConfiguration(v *types.FilledMapSortConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if len(v.AggregationVisibility) > 0 { - ok := object.Key("AggregationVisibility") - ok.String(string(v.AggregationVisibility)) - } - - if v.TooltipFields != nil { - ok := object.Key("TooltipFields") - if err := awsRestjson1_serializeDocumentTooltipItemList(v.TooltipFields, ok); err != nil { + if v.CategorySort != nil { + ok := object.Key("CategorySort") + if err := awsRestjson1_serializeDocumentFieldSortOptionsList(v.CategorySort, ok); err != nil { return err } } - if len(v.TooltipTitleType) > 0 { - ok := object.Key("TooltipTitleType") - ok.String(string(v.TooltipTitleType)) - } - return nil } -func awsRestjson1_serializeDocumentFieldFolder(v *types.FieldFolder, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentFilledMapVisual(v *types.FilledMapVisual, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Columns != nil { - ok := object.Key("columns") - if err := awsRestjson1_serializeDocumentFolderColumnList(v.Columns, ok); err != nil { + if v.Actions != nil { + ok := object.Key("Actions") + if err := awsRestjson1_serializeDocumentVisualCustomActionList(v.Actions, ok); err != nil { return err } } - if v.Description != nil { - ok := object.Key("description") - ok.String(*v.Description) + if v.ChartConfiguration != nil { + ok := object.Key("ChartConfiguration") + if err := awsRestjson1_serializeDocumentFilledMapConfiguration(v.ChartConfiguration, ok); err != nil { + return err + } } - return nil -} + if v.ColumnHierarchies != nil { + ok := object.Key("ColumnHierarchies") + if err := awsRestjson1_serializeDocumentColumnHierarchyList(v.ColumnHierarchies, ok); err != nil { + return err + } + } -func awsRestjson1_serializeDocumentFieldFolderMap(v map[string]types.FieldFolder, value smithyjson.Value) error { - object := value.Object() - defer object.Close() + if v.ConditionalFormatting != nil { + ok := object.Key("ConditionalFormatting") + if err := awsRestjson1_serializeDocumentFilledMapConditionalFormatting(v.ConditionalFormatting, ok); err != nil { + return err + } + } - for key := range v { - om := object.Key(key) - mapVar := v[key] - if err := awsRestjson1_serializeDocumentFieldFolder(&mapVar, om); err != nil { + if v.Subtitle != nil { + ok := object.Key("Subtitle") + if err := awsRestjson1_serializeDocumentVisualSubtitleLabelOptions(v.Subtitle, ok); err != nil { return err } } + + if v.Title != nil { + ok := object.Key("Title") + if err := awsRestjson1_serializeDocumentVisualTitleLabelOptions(v.Title, ok); err != nil { + return err + } + } + + if v.VisualId != nil { + ok := object.Key("VisualId") + ok.String(*v.VisualId) + } + return nil } -func awsRestjson1_serializeDocumentFieldLabelType(v *types.FieldLabelType, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentFilter(v *types.Filter, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.FieldId != nil { - ok := object.Key("FieldId") - ok.String(*v.FieldId) + if v.CategoryFilter != nil { + ok := object.Key("CategoryFilter") + if err := awsRestjson1_serializeDocumentCategoryFilter(v.CategoryFilter, ok); err != nil { + return err + } } - if len(v.Visibility) > 0 { - ok := object.Key("Visibility") - ok.String(string(v.Visibility)) + if v.NumericEqualityFilter != nil { + ok := object.Key("NumericEqualityFilter") + if err := awsRestjson1_serializeDocumentNumericEqualityFilter(v.NumericEqualityFilter, ok); err != nil { + return err + } } - return nil -} - -func awsRestjson1_serializeDocumentFieldOrderList(v []string, value smithyjson.Value) error { - array := value.Array() - defer array.Close() - - for i := range v { - av := array.Value() - av.String(v[i]) + if v.NumericRangeFilter != nil { + ok := object.Key("NumericRangeFilter") + if err := awsRestjson1_serializeDocumentNumericRangeFilter(v.NumericRangeFilter, ok); err != nil { + return err + } } - return nil -} -func awsRestjson1_serializeDocumentFieldSeriesItem(v *types.FieldSeriesItem, value smithyjson.Value) error { - object := value.Object() - defer object.Close() + if v.RelativeDatesFilter != nil { + ok := object.Key("RelativeDatesFilter") + if err := awsRestjson1_serializeDocumentRelativeDatesFilter(v.RelativeDatesFilter, ok); err != nil { + return err + } + } - if len(v.AxisBinding) > 0 { - ok := object.Key("AxisBinding") - ok.String(string(v.AxisBinding)) + if v.TimeEqualityFilter != nil { + ok := object.Key("TimeEqualityFilter") + if err := awsRestjson1_serializeDocumentTimeEqualityFilter(v.TimeEqualityFilter, ok); err != nil { + return err + } } - if v.FieldId != nil { - ok := object.Key("FieldId") - ok.String(*v.FieldId) + if v.TimeRangeFilter != nil { + ok := object.Key("TimeRangeFilter") + if err := awsRestjson1_serializeDocumentTimeRangeFilter(v.TimeRangeFilter, ok); err != nil { + return err + } } - if v.Settings != nil { - ok := object.Key("Settings") - if err := awsRestjson1_serializeDocumentLineChartSeriesSettings(v.Settings, ok); err != nil { + if v.TopBottomFilter != nil { + ok := object.Key("TopBottomFilter") + if err := awsRestjson1_serializeDocumentTopBottomFilter(v.TopBottomFilter, ok); err != nil { return err } } @@ -16646,37 +18997,55 @@ func awsRestjson1_serializeDocumentFieldSeriesItem(v *types.FieldSeriesItem, val return nil } -func awsRestjson1_serializeDocumentFieldSort(v *types.FieldSort, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentFilterControl(v *types.FilterControl, value smithyjson.Value) error { object := value.Object() defer object.Close() - if len(v.Direction) > 0 { - ok := object.Key("Direction") - ok.String(string(v.Direction)) + if v.DateTimePicker != nil { + ok := object.Key("DateTimePicker") + if err := awsRestjson1_serializeDocumentFilterDateTimePickerControl(v.DateTimePicker, ok); err != nil { + return err + } } - if v.FieldId != nil { - ok := object.Key("FieldId") - ok.String(*v.FieldId) + if v.Dropdown != nil { + ok := object.Key("Dropdown") + if err := awsRestjson1_serializeDocumentFilterDropDownControl(v.Dropdown, ok); err != nil { + return err + } } - return nil -} + if v.List != nil { + ok := object.Key("List") + if err := awsRestjson1_serializeDocumentFilterListControl(v.List, ok); err != nil { + return err + } + } -func awsRestjson1_serializeDocumentFieldSortOptions(v *types.FieldSortOptions, value smithyjson.Value) error { - object := value.Object() - defer object.Close() + if v.RelativeDateTime != nil { + ok := object.Key("RelativeDateTime") + if err := awsRestjson1_serializeDocumentFilterRelativeDateTimeControl(v.RelativeDateTime, ok); err != nil { + return err + } + } - if v.ColumnSort != nil { - ok := object.Key("ColumnSort") - if err := awsRestjson1_serializeDocumentColumnSort(v.ColumnSort, ok); err != nil { + if v.Slider != nil { + ok := object.Key("Slider") + if err := awsRestjson1_serializeDocumentFilterSliderControl(v.Slider, ok); err != nil { return err } } - if v.FieldSort != nil { - ok := object.Key("FieldSort") - if err := awsRestjson1_serializeDocumentFieldSort(v.FieldSort, ok); err != nil { + if v.TextArea != nil { + ok := object.Key("TextArea") + if err := awsRestjson1_serializeDocumentFilterTextAreaControl(v.TextArea, ok); err != nil { + return err + } + } + + if v.TextField != nil { + ok := object.Key("TextField") + if err := awsRestjson1_serializeDocumentFilterTextFieldControl(v.TextField, ok); err != nil { return err } } @@ -16684,328 +19053,334 @@ func awsRestjson1_serializeDocumentFieldSortOptions(v *types.FieldSortOptions, v return nil } -func awsRestjson1_serializeDocumentFieldSortOptionsList(v []types.FieldSortOptions, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentFilterControlList(v []types.FilterControl, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if err := awsRestjson1_serializeDocumentFieldSortOptions(&v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentFilterControl(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentFieldTooltipItem(v *types.FieldTooltipItem, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentFilterDateTimePickerControl(v *types.FilterDateTimePickerControl, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.FieldId != nil { - ok := object.Key("FieldId") - ok.String(*v.FieldId) + if v.DisplayOptions != nil { + ok := object.Key("DisplayOptions") + if err := awsRestjson1_serializeDocumentDateTimePickerControlDisplayOptions(v.DisplayOptions, ok); err != nil { + return err + } } - if v.Label != nil { - ok := object.Key("Label") - ok.String(*v.Label) + if v.FilterControlId != nil { + ok := object.Key("FilterControlId") + ok.String(*v.FilterControlId) } - if len(v.Visibility) > 0 { - ok := object.Key("Visibility") - ok.String(string(v.Visibility)) + if v.SourceFilterId != nil { + ok := object.Key("SourceFilterId") + ok.String(*v.SourceFilterId) + } + + if v.Title != nil { + ok := object.Key("Title") + ok.String(*v.Title) + } + + if len(v.Type) > 0 { + ok := object.Key("Type") + ok.String(string(v.Type)) } return nil } -func awsRestjson1_serializeDocumentFilledMapAggregatedFieldWells(v *types.FilledMapAggregatedFieldWells, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentFilterDropDownControl(v *types.FilterDropDownControl, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Geospatial != nil { - ok := object.Key("Geospatial") - if err := awsRestjson1_serializeDocumentFilledMapDimensionFieldList(v.Geospatial, ok); err != nil { + if v.CascadingControlConfiguration != nil { + ok := object.Key("CascadingControlConfiguration") + if err := awsRestjson1_serializeDocumentCascadingControlConfiguration(v.CascadingControlConfiguration, ok); err != nil { return err } } - if v.Values != nil { - ok := object.Key("Values") - if err := awsRestjson1_serializeDocumentFilledMapMeasureFieldList(v.Values, ok); err != nil { + if v.DisplayOptions != nil { + ok := object.Key("DisplayOptions") + if err := awsRestjson1_serializeDocumentDropDownControlDisplayOptions(v.DisplayOptions, ok); err != nil { return err } } - return nil -} - -func awsRestjson1_serializeDocumentFilledMapConditionalFormatting(v *types.FilledMapConditionalFormatting, value smithyjson.Value) error { - object := value.Object() - defer object.Close() + if v.FilterControlId != nil { + ok := object.Key("FilterControlId") + ok.String(*v.FilterControlId) + } - if v.ConditionalFormattingOptions != nil { - ok := object.Key("ConditionalFormattingOptions") - if err := awsRestjson1_serializeDocumentFilledMapConditionalFormattingOptionList(v.ConditionalFormattingOptions, ok); err != nil { + if v.SelectableValues != nil { + ok := object.Key("SelectableValues") + if err := awsRestjson1_serializeDocumentFilterSelectableValues(v.SelectableValues, ok); err != nil { return err } } - return nil -} + if v.SourceFilterId != nil { + ok := object.Key("SourceFilterId") + ok.String(*v.SourceFilterId) + } -func awsRestjson1_serializeDocumentFilledMapConditionalFormattingOption(v *types.FilledMapConditionalFormattingOption, value smithyjson.Value) error { - object := value.Object() - defer object.Close() + if v.Title != nil { + ok := object.Key("Title") + ok.String(*v.Title) + } - if v.Shape != nil { - ok := object.Key("Shape") - if err := awsRestjson1_serializeDocumentFilledMapShapeConditionalFormatting(v.Shape, ok); err != nil { - return err - } + if len(v.Type) > 0 { + ok := object.Key("Type") + ok.String(string(v.Type)) } return nil } -func awsRestjson1_serializeDocumentFilledMapConditionalFormattingOptionList(v []types.FilledMapConditionalFormattingOption, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentFilteredVisualsList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if err := awsRestjson1_serializeDocumentFilledMapConditionalFormattingOption(&v[i], av); err != nil { - return err - } + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentFilledMapConfiguration(v *types.FilledMapConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentFilterGroup(v *types.FilterGroup, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.FieldWells != nil { - ok := object.Key("FieldWells") - if err := awsRestjson1_serializeDocumentFilledMapFieldWells(v.FieldWells, ok); err != nil { - return err - } - } - - if v.Legend != nil { - ok := object.Key("Legend") - if err := awsRestjson1_serializeDocumentLegendOptions(v.Legend, ok); err != nil { - return err - } - } - - if v.MapStyleOptions != nil { - ok := object.Key("MapStyleOptions") - if err := awsRestjson1_serializeDocumentGeospatialMapStyleOptions(v.MapStyleOptions, ok); err != nil { - return err - } + if len(v.CrossDataset) > 0 { + ok := object.Key("CrossDataset") + ok.String(string(v.CrossDataset)) } - if v.SortConfiguration != nil { - ok := object.Key("SortConfiguration") - if err := awsRestjson1_serializeDocumentFilledMapSortConfiguration(v.SortConfiguration, ok); err != nil { - return err - } + if v.FilterGroupId != nil { + ok := object.Key("FilterGroupId") + ok.String(*v.FilterGroupId) } - if v.Tooltip != nil { - ok := object.Key("Tooltip") - if err := awsRestjson1_serializeDocumentTooltipOptions(v.Tooltip, ok); err != nil { + if v.Filters != nil { + ok := object.Key("Filters") + if err := awsRestjson1_serializeDocumentFilterList(v.Filters, ok); err != nil { return err } } - if v.WindowOptions != nil { - ok := object.Key("WindowOptions") - if err := awsRestjson1_serializeDocumentGeospatialWindowOptions(v.WindowOptions, ok); err != nil { + if v.ScopeConfiguration != nil { + ok := object.Key("ScopeConfiguration") + if err := awsRestjson1_serializeDocumentFilterScopeConfiguration(v.ScopeConfiguration, ok); err != nil { return err } } + if len(v.Status) > 0 { + ok := object.Key("Status") + ok.String(string(v.Status)) + } + return nil } -func awsRestjson1_serializeDocumentFilledMapDimensionFieldList(v []types.DimensionField, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentFilterGroupList(v []types.FilterGroup, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if err := awsRestjson1_serializeDocumentDimensionField(&v[i], av); err != nil { - return err - } - } - return nil -} - -func awsRestjson1_serializeDocumentFilledMapFieldWells(v *types.FilledMapFieldWells, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.FilledMapAggregatedFieldWells != nil { - ok := object.Key("FilledMapAggregatedFieldWells") - if err := awsRestjson1_serializeDocumentFilledMapAggregatedFieldWells(v.FilledMapAggregatedFieldWells, ok); err != nil { + if err := awsRestjson1_serializeDocumentFilterGroup(&v[i], av); err != nil { return err } } - return nil } -func awsRestjson1_serializeDocumentFilledMapMeasureFieldList(v []types.MeasureField, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentFilterList(v []types.Filter, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if err := awsRestjson1_serializeDocumentMeasureField(&v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentFilter(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentFilledMapShapeConditionalFormatting(v *types.FilledMapShapeConditionalFormatting, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentFilterListConfiguration(v *types.FilterListConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.FieldId != nil { - ok := object.Key("FieldId") - ok.String(*v.FieldId) - } - - if v.Format != nil { - ok := object.Key("Format") - if err := awsRestjson1_serializeDocumentShapeConditionalFormat(v.Format, ok); err != nil { + if v.CategoryValues != nil { + ok := object.Key("CategoryValues") + if err := awsRestjson1_serializeDocumentCategoryValueList(v.CategoryValues, ok); err != nil { return err } } - return nil -} - -func awsRestjson1_serializeDocumentFilledMapSortConfiguration(v *types.FilledMapSortConfiguration, value smithyjson.Value) error { - object := value.Object() - defer object.Close() + if len(v.MatchOperator) > 0 { + ok := object.Key("MatchOperator") + ok.String(string(v.MatchOperator)) + } - if v.CategorySort != nil { - ok := object.Key("CategorySort") - if err := awsRestjson1_serializeDocumentFieldSortOptionsList(v.CategorySort, ok); err != nil { - return err - } + if len(v.SelectAllOptions) > 0 { + ok := object.Key("SelectAllOptions") + ok.String(string(v.SelectAllOptions)) } return nil } -func awsRestjson1_serializeDocumentFilledMapVisual(v *types.FilledMapVisual, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentFilterListControl(v *types.FilterListControl, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Actions != nil { - ok := object.Key("Actions") - if err := awsRestjson1_serializeDocumentVisualCustomActionList(v.Actions, ok); err != nil { + if v.CascadingControlConfiguration != nil { + ok := object.Key("CascadingControlConfiguration") + if err := awsRestjson1_serializeDocumentCascadingControlConfiguration(v.CascadingControlConfiguration, ok); err != nil { return err } } - if v.ChartConfiguration != nil { - ok := object.Key("ChartConfiguration") - if err := awsRestjson1_serializeDocumentFilledMapConfiguration(v.ChartConfiguration, ok); err != nil { + if v.DisplayOptions != nil { + ok := object.Key("DisplayOptions") + if err := awsRestjson1_serializeDocumentListControlDisplayOptions(v.DisplayOptions, ok); err != nil { return err } } - if v.ColumnHierarchies != nil { - ok := object.Key("ColumnHierarchies") - if err := awsRestjson1_serializeDocumentColumnHierarchyList(v.ColumnHierarchies, ok); err != nil { - return err - } + if v.FilterControlId != nil { + ok := object.Key("FilterControlId") + ok.String(*v.FilterControlId) } - if v.ConditionalFormatting != nil { - ok := object.Key("ConditionalFormatting") - if err := awsRestjson1_serializeDocumentFilledMapConditionalFormatting(v.ConditionalFormatting, ok); err != nil { + if v.SelectableValues != nil { + ok := object.Key("SelectableValues") + if err := awsRestjson1_serializeDocumentFilterSelectableValues(v.SelectableValues, ok); err != nil { return err } } - if v.Subtitle != nil { - ok := object.Key("Subtitle") - if err := awsRestjson1_serializeDocumentVisualSubtitleLabelOptions(v.Subtitle, ok); err != nil { - return err - } + if v.SourceFilterId != nil { + ok := object.Key("SourceFilterId") + ok.String(*v.SourceFilterId) } if v.Title != nil { ok := object.Key("Title") - if err := awsRestjson1_serializeDocumentVisualTitleLabelOptions(v.Title, ok); err != nil { - return err - } + ok.String(*v.Title) } - if v.VisualId != nil { - ok := object.Key("VisualId") - ok.String(*v.VisualId) + if len(v.Type) > 0 { + ok := object.Key("Type") + ok.String(string(v.Type)) } return nil } -func awsRestjson1_serializeDocumentFilter(v *types.Filter, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentFilterOperation(v *types.FilterOperation, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.CategoryFilter != nil { - ok := object.Key("CategoryFilter") - if err := awsRestjson1_serializeDocumentCategoryFilter(v.CategoryFilter, ok); err != nil { - return err - } + if v.ConditionExpression != nil { + ok := object.Key("ConditionExpression") + ok.String(*v.ConditionExpression) } - if v.NumericEqualityFilter != nil { - ok := object.Key("NumericEqualityFilter") - if err := awsRestjson1_serializeDocumentNumericEqualityFilter(v.NumericEqualityFilter, ok); err != nil { + return nil +} + +func awsRestjson1_serializeDocumentFilterOperationSelectedFieldsConfiguration(v *types.FilterOperationSelectedFieldsConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.SelectedColumns != nil { + ok := object.Key("SelectedColumns") + if err := awsRestjson1_serializeDocumentCustomActionColumnList(v.SelectedColumns, ok); err != nil { return err } } - if v.NumericRangeFilter != nil { - ok := object.Key("NumericRangeFilter") - if err := awsRestjson1_serializeDocumentNumericRangeFilter(v.NumericRangeFilter, ok); err != nil { - return err - } + if len(v.SelectedFieldOptions) > 0 { + ok := object.Key("SelectedFieldOptions") + ok.String(string(v.SelectedFieldOptions)) } - if v.RelativeDatesFilter != nil { - ok := object.Key("RelativeDatesFilter") - if err := awsRestjson1_serializeDocumentRelativeDatesFilter(v.RelativeDatesFilter, ok); err != nil { + if v.SelectedFields != nil { + ok := object.Key("SelectedFields") + if err := awsRestjson1_serializeDocumentSelectedFieldList(v.SelectedFields, ok); err != nil { return err } } - if v.TimeEqualityFilter != nil { - ok := object.Key("TimeEqualityFilter") - if err := awsRestjson1_serializeDocumentTimeEqualityFilter(v.TimeEqualityFilter, ok); err != nil { + return nil +} + +func awsRestjson1_serializeDocumentFilterOperationTargetVisualsConfiguration(v *types.FilterOperationTargetVisualsConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.SameSheetTargetVisualConfiguration != nil { + ok := object.Key("SameSheetTargetVisualConfiguration") + if err := awsRestjson1_serializeDocumentSameSheetTargetVisualConfiguration(v.SameSheetTargetVisualConfiguration, ok); err != nil { return err } } - if v.TimeRangeFilter != nil { - ok := object.Key("TimeRangeFilter") - if err := awsRestjson1_serializeDocumentTimeRangeFilter(v.TimeRangeFilter, ok); err != nil { + return nil +} + +func awsRestjson1_serializeDocumentFilterRelativeDateTimeControl(v *types.FilterRelativeDateTimeControl, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.DisplayOptions != nil { + ok := object.Key("DisplayOptions") + if err := awsRestjson1_serializeDocumentRelativeDateTimeControlDisplayOptions(v.DisplayOptions, ok); err != nil { return err } } - if v.TopBottomFilter != nil { - ok := object.Key("TopBottomFilter") - if err := awsRestjson1_serializeDocumentTopBottomFilter(v.TopBottomFilter, ok); err != nil { + if v.FilterControlId != nil { + ok := object.Key("FilterControlId") + ok.String(*v.FilterControlId) + } + + if v.SourceFilterId != nil { + ok := object.Key("SourceFilterId") + ok.String(*v.SourceFilterId) + } + + if v.Title != nil { + ok := object.Key("Title") + ok.String(*v.Title) + } + + return nil +} + +func awsRestjson1_serializeDocumentFilterScopeConfiguration(v *types.FilterScopeConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.SelectedSheets != nil { + ok := object.Key("SelectedSheets") + if err := awsRestjson1_serializeDocumentSelectedSheetsFilterScopeConfiguration(v.SelectedSheets, ok); err != nil { return err } } @@ -17013,82 +19388,120 @@ func awsRestjson1_serializeDocumentFilter(v *types.Filter, value smithyjson.Valu return nil } -func awsRestjson1_serializeDocumentFilterControl(v *types.FilterControl, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentFilterSelectableValues(v *types.FilterSelectableValues, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.DateTimePicker != nil { - ok := object.Key("DateTimePicker") - if err := awsRestjson1_serializeDocumentFilterDateTimePickerControl(v.DateTimePicker, ok); err != nil { + if v.Values != nil { + ok := object.Key("Values") + if err := awsRestjson1_serializeDocumentParameterSelectableValueList(v.Values, ok); err != nil { return err } } - if v.Dropdown != nil { - ok := object.Key("Dropdown") - if err := awsRestjson1_serializeDocumentFilterDropDownControl(v.Dropdown, ok); err != nil { + return nil +} + +func awsRestjson1_serializeDocumentFilterSliderControl(v *types.FilterSliderControl, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.DisplayOptions != nil { + ok := object.Key("DisplayOptions") + if err := awsRestjson1_serializeDocumentSliderControlDisplayOptions(v.DisplayOptions, ok); err != nil { return err } } - if v.List != nil { - ok := object.Key("List") - if err := awsRestjson1_serializeDocumentFilterListControl(v.List, ok); err != nil { - return err + if v.FilterControlId != nil { + ok := object.Key("FilterControlId") + ok.String(*v.FilterControlId) + } + + { + ok := object.Key("MaximumValue") + switch { + case math.IsNaN(v.MaximumValue): + ok.String("NaN") + + case math.IsInf(v.MaximumValue, 1): + ok.String("Infinity") + + case math.IsInf(v.MaximumValue, -1): + ok.String("-Infinity") + + default: + ok.Double(v.MaximumValue) + } } - if v.RelativeDateTime != nil { - ok := object.Key("RelativeDateTime") - if err := awsRestjson1_serializeDocumentFilterRelativeDateTimeControl(v.RelativeDateTime, ok); err != nil { - return err + { + ok := object.Key("MinimumValue") + switch { + case math.IsNaN(v.MinimumValue): + ok.String("NaN") + + case math.IsInf(v.MinimumValue, 1): + ok.String("Infinity") + + case math.IsInf(v.MinimumValue, -1): + ok.String("-Infinity") + + default: + ok.Double(v.MinimumValue) + } } - if v.Slider != nil { - ok := object.Key("Slider") - if err := awsRestjson1_serializeDocumentFilterSliderControl(v.Slider, ok); err != nil { - return err - } + if v.SourceFilterId != nil { + ok := object.Key("SourceFilterId") + ok.String(*v.SourceFilterId) } - if v.TextArea != nil { - ok := object.Key("TextArea") - if err := awsRestjson1_serializeDocumentFilterTextAreaControl(v.TextArea, ok); err != nil { - return err - } - } + { + ok := object.Key("StepSize") + switch { + case math.IsNaN(v.StepSize): + ok.String("NaN") - if v.TextField != nil { - ok := object.Key("TextField") - if err := awsRestjson1_serializeDocumentFilterTextFieldControl(v.TextField, ok); err != nil { - return err - } - } + case math.IsInf(v.StepSize, 1): + ok.String("Infinity") - return nil -} + case math.IsInf(v.StepSize, -1): + ok.String("-Infinity") -func awsRestjson1_serializeDocumentFilterControlList(v []types.FilterControl, value smithyjson.Value) error { - array := value.Array() - defer array.Close() + default: + ok.Double(v.StepSize) - for i := range v { - av := array.Value() - if err := awsRestjson1_serializeDocumentFilterControl(&v[i], av); err != nil { - return err } } + + if v.Title != nil { + ok := object.Key("Title") + ok.String(*v.Title) + } + + if len(v.Type) > 0 { + ok := object.Key("Type") + ok.String(string(v.Type)) + } + return nil } -func awsRestjson1_serializeDocumentFilterDateTimePickerControl(v *types.FilterDateTimePickerControl, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentFilterTextAreaControl(v *types.FilterTextAreaControl, value smithyjson.Value) error { object := value.Object() defer object.Close() + if v.Delimiter != nil { + ok := object.Key("Delimiter") + ok.String(*v.Delimiter) + } + if v.DisplayOptions != nil { ok := object.Key("DisplayOptions") - if err := awsRestjson1_serializeDocumentDateTimePickerControlDisplayOptions(v.DisplayOptions, ok); err != nil { + if err := awsRestjson1_serializeDocumentTextAreaControlDisplayOptions(v.DisplayOptions, ok); err != nil { return err } } @@ -17108,28 +19521,16 @@ func awsRestjson1_serializeDocumentFilterDateTimePickerControl(v *types.FilterDa ok.String(*v.Title) } - if len(v.Type) > 0 { - ok := object.Key("Type") - ok.String(string(v.Type)) - } - return nil } -func awsRestjson1_serializeDocumentFilterDropDownControl(v *types.FilterDropDownControl, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentFilterTextFieldControl(v *types.FilterTextFieldControl, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.CascadingControlConfiguration != nil { - ok := object.Key("CascadingControlConfiguration") - if err := awsRestjson1_serializeDocumentCascadingControlConfiguration(v.CascadingControlConfiguration, ok); err != nil { - return err - } - } - if v.DisplayOptions != nil { ok := object.Key("DisplayOptions") - if err := awsRestjson1_serializeDocumentDropDownControlDisplayOptions(v.DisplayOptions, ok); err != nil { + if err := awsRestjson1_serializeDocumentTextFieldControlDisplayOptions(v.DisplayOptions, ok); err != nil { return err } } @@ -17139,13 +19540,6 @@ func awsRestjson1_serializeDocumentFilterDropDownControl(v *types.FilterDropDown ok.String(*v.FilterControlId) } - if v.SelectableValues != nil { - ok := object.Key("SelectableValues") - if err := awsRestjson1_serializeDocumentFilterSelectableValues(v.SelectableValues, ok); err != nil { - return err - } - } - if v.SourceFilterId != nil { ok := object.Key("SourceFilterId") ok.String(*v.SourceFilterId) @@ -17156,15 +19550,10 @@ func awsRestjson1_serializeDocumentFilterDropDownControl(v *types.FilterDropDown ok.String(*v.Title) } - if len(v.Type) > 0 { - ok := object.Key("Type") - ok.String(string(v.Type)) - } - return nil } -func awsRestjson1_serializeDocumentFilteredVisualsList(v []string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentFolderColumnList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() @@ -17175,164 +19564,232 @@ func awsRestjson1_serializeDocumentFilteredVisualsList(v []string, value smithyj return nil } -func awsRestjson1_serializeDocumentFilterGroup(v *types.FilterGroup, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentFolderSearchFilter(v *types.FolderSearchFilter, value smithyjson.Value) error { object := value.Object() defer object.Close() - if len(v.CrossDataset) > 0 { - ok := object.Key("CrossDataset") - ok.String(string(v.CrossDataset)) + if len(v.Name) > 0 { + ok := object.Key("Name") + ok.String(string(v.Name)) } - if v.FilterGroupId != nil { - ok := object.Key("FilterGroupId") - ok.String(*v.FilterGroupId) + if len(v.Operator) > 0 { + ok := object.Key("Operator") + ok.String(string(v.Operator)) } - if v.Filters != nil { - ok := object.Key("Filters") - if err := awsRestjson1_serializeDocumentFilterList(v.Filters, ok); err != nil { - return err - } + if v.Value != nil { + ok := object.Key("Value") + ok.String(*v.Value) } - if v.ScopeConfiguration != nil { - ok := object.Key("ScopeConfiguration") - if err := awsRestjson1_serializeDocumentFilterScopeConfiguration(v.ScopeConfiguration, ok); err != nil { + return nil +} + +func awsRestjson1_serializeDocumentFolderSearchFilterList(v []types.FolderSearchFilter, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentFolderSearchFilter(&v[i], av); err != nil { return err } } + return nil +} - if len(v.Status) > 0 { - ok := object.Key("Status") - ok.String(string(v.Status)) +func awsRestjson1_serializeDocumentFont(v *types.Font, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.FontFamily != nil { + ok := object.Key("FontFamily") + ok.String(*v.FontFamily) } return nil } -func awsRestjson1_serializeDocumentFilterGroupList(v []types.FilterGroup, value smithyjson.Value) error { - array := value.Array() - defer array.Close() +func awsRestjson1_serializeDocumentFontConfiguration(v *types.FontConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() - for i := range v { - av := array.Value() - if err := awsRestjson1_serializeDocumentFilterGroup(&v[i], av); err != nil { + if v.FontColor != nil { + ok := object.Key("FontColor") + ok.String(*v.FontColor) + } + + if len(v.FontDecoration) > 0 { + ok := object.Key("FontDecoration") + ok.String(string(v.FontDecoration)) + } + + if v.FontSize != nil { + ok := object.Key("FontSize") + if err := awsRestjson1_serializeDocumentFontSize(v.FontSize, ok); err != nil { + return err + } + } + + if len(v.FontStyle) > 0 { + ok := object.Key("FontStyle") + ok.String(string(v.FontStyle)) + } + + if v.FontWeight != nil { + ok := object.Key("FontWeight") + if err := awsRestjson1_serializeDocumentFontWeight(v.FontWeight, ok); err != nil { return err } } + return nil } -func awsRestjson1_serializeDocumentFilterList(v []types.Filter, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentFontList(v []types.Font, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if err := awsRestjson1_serializeDocumentFilter(&v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentFont(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentFilterListConfiguration(v *types.FilterListConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentFontSize(v *types.FontSize, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.CategoryValues != nil { - ok := object.Key("CategoryValues") - if err := awsRestjson1_serializeDocumentCategoryValueList(v.CategoryValues, ok); err != nil { - return err - } + if len(v.Relative) > 0 { + ok := object.Key("Relative") + ok.String(string(v.Relative)) } - if len(v.MatchOperator) > 0 { - ok := object.Key("MatchOperator") - ok.String(string(v.MatchOperator)) - } + return nil +} - if len(v.SelectAllOptions) > 0 { - ok := object.Key("SelectAllOptions") - ok.String(string(v.SelectAllOptions)) +func awsRestjson1_serializeDocumentFontWeight(v *types.FontWeight, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if len(v.Name) > 0 { + ok := object.Key("Name") + ok.String(string(v.Name)) } return nil } -func awsRestjson1_serializeDocumentFilterListControl(v *types.FilterListControl, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentForecastComputation(v *types.ForecastComputation, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.CascadingControlConfiguration != nil { - ok := object.Key("CascadingControlConfiguration") - if err := awsRestjson1_serializeDocumentCascadingControlConfiguration(v.CascadingControlConfiguration, ok); err != nil { - return err - } + if v.ComputationId != nil { + ok := object.Key("ComputationId") + ok.String(*v.ComputationId) } - if v.DisplayOptions != nil { - ok := object.Key("DisplayOptions") - if err := awsRestjson1_serializeDocumentListControlDisplayOptions(v.DisplayOptions, ok); err != nil { - return err + if v.CustomSeasonalityValue != nil { + ok := object.Key("CustomSeasonalityValue") + ok.Integer(*v.CustomSeasonalityValue) + } + + if v.LowerBoundary != nil { + ok := object.Key("LowerBoundary") + switch { + case math.IsNaN(*v.LowerBoundary): + ok.String("NaN") + + case math.IsInf(*v.LowerBoundary, 1): + ok.String("Infinity") + + case math.IsInf(*v.LowerBoundary, -1): + ok.String("-Infinity") + + default: + ok.Double(*v.LowerBoundary) + } } - if v.FilterControlId != nil { - ok := object.Key("FilterControlId") - ok.String(*v.FilterControlId) + if v.Name != nil { + ok := object.Key("Name") + ok.String(*v.Name) + } + + if v.PeriodsBackward != nil { + ok := object.Key("PeriodsBackward") + ok.Integer(*v.PeriodsBackward) + } + + if v.PeriodsForward != nil { + ok := object.Key("PeriodsForward") + ok.Integer(*v.PeriodsForward) + } + + if v.PredictionInterval != nil { + ok := object.Key("PredictionInterval") + ok.Integer(*v.PredictionInterval) } - if v.SelectableValues != nil { - ok := object.Key("SelectableValues") - if err := awsRestjson1_serializeDocumentFilterSelectableValues(v.SelectableValues, ok); err != nil { + if len(v.Seasonality) > 0 { + ok := object.Key("Seasonality") + ok.String(string(v.Seasonality)) + } + + if v.Time != nil { + ok := object.Key("Time") + if err := awsRestjson1_serializeDocumentDimensionField(v.Time, ok); err != nil { return err } } - if v.SourceFilterId != nil { - ok := object.Key("SourceFilterId") - ok.String(*v.SourceFilterId) - } + if v.UpperBoundary != nil { + ok := object.Key("UpperBoundary") + switch { + case math.IsNaN(*v.UpperBoundary): + ok.String("NaN") - if v.Title != nil { - ok := object.Key("Title") - ok.String(*v.Title) - } + case math.IsInf(*v.UpperBoundary, 1): + ok.String("Infinity") - if len(v.Type) > 0 { - ok := object.Key("Type") - ok.String(string(v.Type)) - } + case math.IsInf(*v.UpperBoundary, -1): + ok.String("-Infinity") - return nil -} + default: + ok.Double(*v.UpperBoundary) -func awsRestjson1_serializeDocumentFilterOperation(v *types.FilterOperation, value smithyjson.Value) error { - object := value.Object() - defer object.Close() + } + } - if v.ConditionExpression != nil { - ok := object.Key("ConditionExpression") - ok.String(*v.ConditionExpression) + if v.Value != nil { + ok := object.Key("Value") + if err := awsRestjson1_serializeDocumentMeasureField(v.Value, ok); err != nil { + return err + } } return nil } -func awsRestjson1_serializeDocumentFilterOperationSelectedFieldsConfiguration(v *types.FilterOperationSelectedFieldsConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentForecastConfiguration(v *types.ForecastConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if len(v.SelectedFieldOptions) > 0 { - ok := object.Key("SelectedFieldOptions") - ok.String(string(v.SelectedFieldOptions)) + if v.ForecastProperties != nil { + ok := object.Key("ForecastProperties") + if err := awsRestjson1_serializeDocumentTimeBasedForecastProperties(v.ForecastProperties, ok); err != nil { + return err + } } - if v.SelectedFields != nil { - ok := object.Key("SelectedFields") - if err := awsRestjson1_serializeDocumentSelectedFieldList(v.SelectedFields, ok); err != nil { + if v.Scenario != nil { + ok := object.Key("Scenario") + if err := awsRestjson1_serializeDocumentForecastScenario(v.Scenario, ok); err != nil { return err } } @@ -17340,70 +19797,61 @@ func awsRestjson1_serializeDocumentFilterOperationSelectedFieldsConfiguration(v return nil } -func awsRestjson1_serializeDocumentFilterOperationTargetVisualsConfiguration(v *types.FilterOperationTargetVisualsConfiguration, value smithyjson.Value) error { - object := value.Object() - defer object.Close() +func awsRestjson1_serializeDocumentForecastConfigurationList(v []types.ForecastConfiguration, value smithyjson.Value) error { + array := value.Array() + defer array.Close() - if v.SameSheetTargetVisualConfiguration != nil { - ok := object.Key("SameSheetTargetVisualConfiguration") - if err := awsRestjson1_serializeDocumentSameSheetTargetVisualConfiguration(v.SameSheetTargetVisualConfiguration, ok); err != nil { + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentForecastConfiguration(&v[i], av); err != nil { return err } } - return nil } -func awsRestjson1_serializeDocumentFilterRelativeDateTimeControl(v *types.FilterRelativeDateTimeControl, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentForecastScenario(v *types.ForecastScenario, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.DisplayOptions != nil { - ok := object.Key("DisplayOptions") - if err := awsRestjson1_serializeDocumentRelativeDateTimeControlDisplayOptions(v.DisplayOptions, ok); err != nil { + if v.WhatIfPointScenario != nil { + ok := object.Key("WhatIfPointScenario") + if err := awsRestjson1_serializeDocumentWhatIfPointScenario(v.WhatIfPointScenario, ok); err != nil { return err } } - if v.FilterControlId != nil { - ok := object.Key("FilterControlId") - ok.String(*v.FilterControlId) - } - - if v.SourceFilterId != nil { - ok := object.Key("SourceFilterId") - ok.String(*v.SourceFilterId) - } - - if v.Title != nil { - ok := object.Key("Title") - ok.String(*v.Title) + if v.WhatIfRangeScenario != nil { + ok := object.Key("WhatIfRangeScenario") + if err := awsRestjson1_serializeDocumentWhatIfRangeScenario(v.WhatIfRangeScenario, ok); err != nil { + return err + } } return nil } -func awsRestjson1_serializeDocumentFilterScopeConfiguration(v *types.FilterScopeConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentFormatConfiguration(v *types.FormatConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.SelectedSheets != nil { - ok := object.Key("SelectedSheets") - if err := awsRestjson1_serializeDocumentSelectedSheetsFilterScopeConfiguration(v.SelectedSheets, ok); err != nil { + if v.DateTimeFormatConfiguration != nil { + ok := object.Key("DateTimeFormatConfiguration") + if err := awsRestjson1_serializeDocumentDateTimeFormatConfiguration(v.DateTimeFormatConfiguration, ok); err != nil { return err } } - return nil -} - -func awsRestjson1_serializeDocumentFilterSelectableValues(v *types.FilterSelectableValues, value smithyjson.Value) error { - object := value.Object() - defer object.Close() + if v.NumberFormatConfiguration != nil { + ok := object.Key("NumberFormatConfiguration") + if err := awsRestjson1_serializeDocumentNumberFormatConfiguration(v.NumberFormatConfiguration, ok); err != nil { + return err + } + } - if v.Values != nil { - ok := object.Key("Values") - if err := awsRestjson1_serializeDocumentParameterSelectableValueList(v.Values, ok); err != nil { + if v.StringFormatConfiguration != nil { + ok := object.Key("StringFormatConfiguration") + if err := awsRestjson1_serializeDocumentStringFormatConfiguration(v.StringFormatConfiguration, ok); err != nil { return err } } @@ -17411,244 +19859,171 @@ func awsRestjson1_serializeDocumentFilterSelectableValues(v *types.FilterSelecta return nil } -func awsRestjson1_serializeDocumentFilterSliderControl(v *types.FilterSliderControl, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentFreeFormLayoutCanvasSizeOptions(v *types.FreeFormLayoutCanvasSizeOptions, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.DisplayOptions != nil { - ok := object.Key("DisplayOptions") - if err := awsRestjson1_serializeDocumentSliderControlDisplayOptions(v.DisplayOptions, ok); err != nil { + if v.ScreenCanvasSizeOptions != nil { + ok := object.Key("ScreenCanvasSizeOptions") + if err := awsRestjson1_serializeDocumentFreeFormLayoutScreenCanvasSizeOptions(v.ScreenCanvasSizeOptions, ok); err != nil { return err } } - if v.FilterControlId != nil { - ok := object.Key("FilterControlId") - ok.String(*v.FilterControlId) - } - - { - ok := object.Key("MaximumValue") - switch { - case math.IsNaN(v.MaximumValue): - ok.String("NaN") - - case math.IsInf(v.MaximumValue, 1): - ok.String("Infinity") - - case math.IsInf(v.MaximumValue, -1): - ok.String("-Infinity") - - default: - ok.Double(v.MaximumValue) - - } - } - - { - ok := object.Key("MinimumValue") - switch { - case math.IsNaN(v.MinimumValue): - ok.String("NaN") - - case math.IsInf(v.MinimumValue, 1): - ok.String("Infinity") - - case math.IsInf(v.MinimumValue, -1): - ok.String("-Infinity") + return nil +} - default: - ok.Double(v.MinimumValue) +func awsRestjson1_serializeDocumentFreeFormLayoutConfiguration(v *types.FreeFormLayoutConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + if v.CanvasSizeOptions != nil { + ok := object.Key("CanvasSizeOptions") + if err := awsRestjson1_serializeDocumentFreeFormLayoutCanvasSizeOptions(v.CanvasSizeOptions, ok); err != nil { + return err } } - if v.SourceFilterId != nil { - ok := object.Key("SourceFilterId") - ok.String(*v.SourceFilterId) - } - - { - ok := object.Key("StepSize") - switch { - case math.IsNaN(v.StepSize): - ok.String("NaN") - - case math.IsInf(v.StepSize, 1): - ok.String("Infinity") - - case math.IsInf(v.StepSize, -1): - ok.String("-Infinity") - - default: - ok.Double(v.StepSize) - + if v.Elements != nil { + ok := object.Key("Elements") + if err := awsRestjson1_serializeDocumentFreeFromLayoutElementList(v.Elements, ok); err != nil { + return err } } - if v.Title != nil { - ok := object.Key("Title") - ok.String(*v.Title) - } - - if len(v.Type) > 0 { - ok := object.Key("Type") - ok.String(string(v.Type)) - } - return nil } -func awsRestjson1_serializeDocumentFilterTextAreaControl(v *types.FilterTextAreaControl, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentFreeFormLayoutElement(v *types.FreeFormLayoutElement, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Delimiter != nil { - ok := object.Key("Delimiter") - ok.String(*v.Delimiter) - } - - if v.DisplayOptions != nil { - ok := object.Key("DisplayOptions") - if err := awsRestjson1_serializeDocumentTextAreaControlDisplayOptions(v.DisplayOptions, ok); err != nil { + if v.BackgroundStyle != nil { + ok := object.Key("BackgroundStyle") + if err := awsRestjson1_serializeDocumentFreeFormLayoutElementBackgroundStyle(v.BackgroundStyle, ok); err != nil { return err } } - if v.FilterControlId != nil { - ok := object.Key("FilterControlId") - ok.String(*v.FilterControlId) - } - - if v.SourceFilterId != nil { - ok := object.Key("SourceFilterId") - ok.String(*v.SourceFilterId) + if v.BorderStyle != nil { + ok := object.Key("BorderStyle") + if err := awsRestjson1_serializeDocumentFreeFormLayoutElementBorderStyle(v.BorderStyle, ok); err != nil { + return err + } } - if v.Title != nil { - ok := object.Key("Title") - ok.String(*v.Title) + if v.ElementId != nil { + ok := object.Key("ElementId") + ok.String(*v.ElementId) } - return nil -} + if len(v.ElementType) > 0 { + ok := object.Key("ElementType") + ok.String(string(v.ElementType)) + } -func awsRestjson1_serializeDocumentFilterTextFieldControl(v *types.FilterTextFieldControl, value smithyjson.Value) error { - object := value.Object() - defer object.Close() + if v.Height != nil { + ok := object.Key("Height") + ok.String(*v.Height) + } - if v.DisplayOptions != nil { - ok := object.Key("DisplayOptions") - if err := awsRestjson1_serializeDocumentTextFieldControlDisplayOptions(v.DisplayOptions, ok); err != nil { + if v.LoadingAnimation != nil { + ok := object.Key("LoadingAnimation") + if err := awsRestjson1_serializeDocumentLoadingAnimation(v.LoadingAnimation, ok); err != nil { return err } } - if v.FilterControlId != nil { - ok := object.Key("FilterControlId") - ok.String(*v.FilterControlId) + if v.RenderingRules != nil { + ok := object.Key("RenderingRules") + if err := awsRestjson1_serializeDocumentSheetElementRenderingRuleList(v.RenderingRules, ok); err != nil { + return err + } } - if v.SourceFilterId != nil { - ok := object.Key("SourceFilterId") - ok.String(*v.SourceFilterId) + if v.SelectedBorderStyle != nil { + ok := object.Key("SelectedBorderStyle") + if err := awsRestjson1_serializeDocumentFreeFormLayoutElementBorderStyle(v.SelectedBorderStyle, ok); err != nil { + return err + } } - if v.Title != nil { - ok := object.Key("Title") - ok.String(*v.Title) + if len(v.Visibility) > 0 { + ok := object.Key("Visibility") + ok.String(string(v.Visibility)) } - return nil -} + if v.Width != nil { + ok := object.Key("Width") + ok.String(*v.Width) + } -func awsRestjson1_serializeDocumentFolderColumnList(v []string, value smithyjson.Value) error { - array := value.Array() - defer array.Close() + if v.XAxisLocation != nil { + ok := object.Key("XAxisLocation") + ok.String(*v.XAxisLocation) + } - for i := range v { - av := array.Value() - av.String(v[i]) + if v.YAxisLocation != nil { + ok := object.Key("YAxisLocation") + ok.String(*v.YAxisLocation) } + return nil } -func awsRestjson1_serializeDocumentFolderSearchFilter(v *types.FolderSearchFilter, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentFreeFormLayoutElementBackgroundStyle(v *types.FreeFormLayoutElementBackgroundStyle, value smithyjson.Value) error { object := value.Object() defer object.Close() - if len(v.Name) > 0 { - ok := object.Key("Name") - ok.String(string(v.Name)) - } - - if len(v.Operator) > 0 { - ok := object.Key("Operator") - ok.String(string(v.Operator)) + if v.Color != nil { + ok := object.Key("Color") + ok.String(*v.Color) } - if v.Value != nil { - ok := object.Key("Value") - ok.String(*v.Value) + if len(v.Visibility) > 0 { + ok := object.Key("Visibility") + ok.String(string(v.Visibility)) } return nil } -func awsRestjson1_serializeDocumentFolderSearchFilterList(v []types.FolderSearchFilter, value smithyjson.Value) error { - array := value.Array() - defer array.Close() +func awsRestjson1_serializeDocumentFreeFormLayoutElementBorderStyle(v *types.FreeFormLayoutElementBorderStyle, value smithyjson.Value) error { + object := value.Object() + defer object.Close() - for i := range v { - av := array.Value() - if err := awsRestjson1_serializeDocumentFolderSearchFilter(&v[i], av); err != nil { - return err - } + if v.Color != nil { + ok := object.Key("Color") + ok.String(*v.Color) + } + + if len(v.Visibility) > 0 { + ok := object.Key("Visibility") + ok.String(string(v.Visibility)) } + return nil } -func awsRestjson1_serializeDocumentFont(v *types.Font, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentFreeFormLayoutScreenCanvasSizeOptions(v *types.FreeFormLayoutScreenCanvasSizeOptions, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.FontFamily != nil { - ok := object.Key("FontFamily") - ok.String(*v.FontFamily) + if v.OptimizedViewPortWidth != nil { + ok := object.Key("OptimizedViewPortWidth") + ok.String(*v.OptimizedViewPortWidth) } return nil } -func awsRestjson1_serializeDocumentFontConfiguration(v *types.FontConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentFreeFormSectionLayoutConfiguration(v *types.FreeFormSectionLayoutConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.FontColor != nil { - ok := object.Key("FontColor") - ok.String(*v.FontColor) - } - - if len(v.FontDecoration) > 0 { - ok := object.Key("FontDecoration") - ok.String(string(v.FontDecoration)) - } - - if v.FontSize != nil { - ok := object.Key("FontSize") - if err := awsRestjson1_serializeDocumentFontSize(v.FontSize, ok); err != nil { - return err - } - } - - if len(v.FontStyle) > 0 { - ok := object.Key("FontStyle") - ok.String(string(v.FontStyle)) - } - - if v.FontWeight != nil { - ok := object.Key("FontWeight") - if err := awsRestjson1_serializeDocumentFontWeight(v.FontWeight, ok); err != nil { + if v.Elements != nil { + ok := object.Key("Elements") + if err := awsRestjson1_serializeDocumentFreeFromLayoutElementList(v.Elements, ok); err != nil { return err } } @@ -17656,149 +20031,160 @@ func awsRestjson1_serializeDocumentFontConfiguration(v *types.FontConfiguration, return nil } -func awsRestjson1_serializeDocumentFontList(v []types.Font, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentFreeFromLayoutElementList(v []types.FreeFormLayoutElement, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if err := awsRestjson1_serializeDocumentFont(&v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentFreeFormLayoutElement(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentFontSize(v *types.FontSize, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentFunnelChartAggregatedFieldWells(v *types.FunnelChartAggregatedFieldWells, value smithyjson.Value) error { object := value.Object() defer object.Close() - if len(v.Relative) > 0 { - ok := object.Key("Relative") - ok.String(string(v.Relative)) + if v.Category != nil { + ok := object.Key("Category") + if err := awsRestjson1_serializeDocumentFunnelChartDimensionFieldList(v.Category, ok); err != nil { + return err + } } - return nil -} - -func awsRestjson1_serializeDocumentFontWeight(v *types.FontWeight, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if len(v.Name) > 0 { - ok := object.Key("Name") - ok.String(string(v.Name)) + if v.Values != nil { + ok := object.Key("Values") + if err := awsRestjson1_serializeDocumentFunnelChartMeasureFieldList(v.Values, ok); err != nil { + return err + } } return nil } -func awsRestjson1_serializeDocumentForecastComputation(v *types.ForecastComputation, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentFunnelChartConfiguration(v *types.FunnelChartConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.ComputationId != nil { - ok := object.Key("ComputationId") - ok.String(*v.ComputationId) + if v.CategoryLabelOptions != nil { + ok := object.Key("CategoryLabelOptions") + if err := awsRestjson1_serializeDocumentChartAxisLabelOptions(v.CategoryLabelOptions, ok); err != nil { + return err + } } - if v.CustomSeasonalityValue != nil { - ok := object.Key("CustomSeasonalityValue") - ok.Integer(*v.CustomSeasonalityValue) + if v.DataLabelOptions != nil { + ok := object.Key("DataLabelOptions") + if err := awsRestjson1_serializeDocumentFunnelChartDataLabelOptions(v.DataLabelOptions, ok); err != nil { + return err + } } - if v.LowerBoundary != nil { - ok := object.Key("LowerBoundary") - switch { - case math.IsNaN(*v.LowerBoundary): - ok.String("NaN") - - case math.IsInf(*v.LowerBoundary, 1): - ok.String("Infinity") - - case math.IsInf(*v.LowerBoundary, -1): - ok.String("-Infinity") - - default: - ok.Double(*v.LowerBoundary) - + if v.FieldWells != nil { + ok := object.Key("FieldWells") + if err := awsRestjson1_serializeDocumentFunnelChartFieldWells(v.FieldWells, ok); err != nil { + return err } } - if v.Name != nil { - ok := object.Key("Name") - ok.String(*v.Name) + if v.SortConfiguration != nil { + ok := object.Key("SortConfiguration") + if err := awsRestjson1_serializeDocumentFunnelChartSortConfiguration(v.SortConfiguration, ok); err != nil { + return err + } } - if v.PeriodsBackward != nil { - ok := object.Key("PeriodsBackward") - ok.Integer(*v.PeriodsBackward) + if v.Tooltip != nil { + ok := object.Key("Tooltip") + if err := awsRestjson1_serializeDocumentTooltipOptions(v.Tooltip, ok); err != nil { + return err + } } - if v.PeriodsForward != nil { - ok := object.Key("PeriodsForward") - ok.Integer(*v.PeriodsForward) + if v.ValueLabelOptions != nil { + ok := object.Key("ValueLabelOptions") + if err := awsRestjson1_serializeDocumentChartAxisLabelOptions(v.ValueLabelOptions, ok); err != nil { + return err + } } - if v.PredictionInterval != nil { - ok := object.Key("PredictionInterval") - ok.Integer(*v.PredictionInterval) + if v.VisualPalette != nil { + ok := object.Key("VisualPalette") + if err := awsRestjson1_serializeDocumentVisualPalette(v.VisualPalette, ok); err != nil { + return err + } } - if len(v.Seasonality) > 0 { - ok := object.Key("Seasonality") - ok.String(string(v.Seasonality)) + return nil +} + +func awsRestjson1_serializeDocumentFunnelChartDataLabelOptions(v *types.FunnelChartDataLabelOptions, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if len(v.CategoryLabelVisibility) > 0 { + ok := object.Key("CategoryLabelVisibility") + ok.String(string(v.CategoryLabelVisibility)) } - if v.Time != nil { - ok := object.Key("Time") - if err := awsRestjson1_serializeDocumentDimensionField(v.Time, ok); err != nil { + if v.LabelColor != nil { + ok := object.Key("LabelColor") + ok.String(*v.LabelColor) + } + + if v.LabelFontConfiguration != nil { + ok := object.Key("LabelFontConfiguration") + if err := awsRestjson1_serializeDocumentFontConfiguration(v.LabelFontConfiguration, ok); err != nil { return err } } - if v.UpperBoundary != nil { - ok := object.Key("UpperBoundary") - switch { - case math.IsNaN(*v.UpperBoundary): - ok.String("NaN") - - case math.IsInf(*v.UpperBoundary, 1): - ok.String("Infinity") - - case math.IsInf(*v.UpperBoundary, -1): - ok.String("-Infinity") + if len(v.MeasureDataLabelStyle) > 0 { + ok := object.Key("MeasureDataLabelStyle") + ok.String(string(v.MeasureDataLabelStyle)) + } - default: - ok.Double(*v.UpperBoundary) + if len(v.MeasureLabelVisibility) > 0 { + ok := object.Key("MeasureLabelVisibility") + ok.String(string(v.MeasureLabelVisibility)) + } - } + if len(v.Position) > 0 { + ok := object.Key("Position") + ok.String(string(v.Position)) } - if v.Value != nil { - ok := object.Key("Value") - if err := awsRestjson1_serializeDocumentMeasureField(v.Value, ok); err != nil { - return err - } + if len(v.Visibility) > 0 { + ok := object.Key("Visibility") + ok.String(string(v.Visibility)) } return nil } -func awsRestjson1_serializeDocumentForecastConfiguration(v *types.ForecastConfiguration, value smithyjson.Value) error { - object := value.Object() - defer object.Close() +func awsRestjson1_serializeDocumentFunnelChartDimensionFieldList(v []types.DimensionField, value smithyjson.Value) error { + array := value.Array() + defer array.Close() - if v.ForecastProperties != nil { - ok := object.Key("ForecastProperties") - if err := awsRestjson1_serializeDocumentTimeBasedForecastProperties(v.ForecastProperties, ok); err != nil { + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentDimensionField(&v[i], av); err != nil { return err } } + return nil +} - if v.Scenario != nil { - ok := object.Key("Scenario") - if err := awsRestjson1_serializeDocumentForecastScenario(v.Scenario, ok); err != nil { +func awsRestjson1_serializeDocumentFunnelChartFieldWells(v *types.FunnelChartFieldWells, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.FunnelChartAggregatedFieldWells != nil { + ok := object.Key("FunnelChartAggregatedFieldWells") + if err := awsRestjson1_serializeDocumentFunnelChartAggregatedFieldWells(v.FunnelChartAggregatedFieldWells, ok); err != nil { return err } } @@ -17806,33 +20192,33 @@ func awsRestjson1_serializeDocumentForecastConfiguration(v *types.ForecastConfig return nil } -func awsRestjson1_serializeDocumentForecastConfigurationList(v []types.ForecastConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentFunnelChartMeasureFieldList(v []types.MeasureField, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if err := awsRestjson1_serializeDocumentForecastConfiguration(&v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentMeasureField(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentForecastScenario(v *types.ForecastScenario, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentFunnelChartSortConfiguration(v *types.FunnelChartSortConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.WhatIfPointScenario != nil { - ok := object.Key("WhatIfPointScenario") - if err := awsRestjson1_serializeDocumentWhatIfPointScenario(v.WhatIfPointScenario, ok); err != nil { + if v.CategoryItemsLimit != nil { + ok := object.Key("CategoryItemsLimit") + if err := awsRestjson1_serializeDocumentItemsLimitConfiguration(v.CategoryItemsLimit, ok); err != nil { return err } } - if v.WhatIfRangeScenario != nil { - ok := object.Key("WhatIfRangeScenario") - if err := awsRestjson1_serializeDocumentWhatIfRangeScenario(v.WhatIfRangeScenario, ok); err != nil { + if v.CategorySort != nil { + ok := object.Key("CategorySort") + if err := awsRestjson1_serializeDocumentFieldSortOptionsList(v.CategorySort, ok); err != nil { return err } } @@ -17840,41 +20226,60 @@ func awsRestjson1_serializeDocumentForecastScenario(v *types.ForecastScenario, v return nil } -func awsRestjson1_serializeDocumentFormatConfiguration(v *types.FormatConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentFunnelChartVisual(v *types.FunnelChartVisual, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.DateTimeFormatConfiguration != nil { - ok := object.Key("DateTimeFormatConfiguration") - if err := awsRestjson1_serializeDocumentDateTimeFormatConfiguration(v.DateTimeFormatConfiguration, ok); err != nil { + if v.Actions != nil { + ok := object.Key("Actions") + if err := awsRestjson1_serializeDocumentVisualCustomActionList(v.Actions, ok); err != nil { return err } } - if v.NumberFormatConfiguration != nil { - ok := object.Key("NumberFormatConfiguration") - if err := awsRestjson1_serializeDocumentNumberFormatConfiguration(v.NumberFormatConfiguration, ok); err != nil { + if v.ChartConfiguration != nil { + ok := object.Key("ChartConfiguration") + if err := awsRestjson1_serializeDocumentFunnelChartConfiguration(v.ChartConfiguration, ok); err != nil { return err } } - if v.StringFormatConfiguration != nil { - ok := object.Key("StringFormatConfiguration") - if err := awsRestjson1_serializeDocumentStringFormatConfiguration(v.StringFormatConfiguration, ok); err != nil { + if v.ColumnHierarchies != nil { + ok := object.Key("ColumnHierarchies") + if err := awsRestjson1_serializeDocumentColumnHierarchyList(v.ColumnHierarchies, ok); err != nil { + return err + } + } + + if v.Subtitle != nil { + ok := object.Key("Subtitle") + if err := awsRestjson1_serializeDocumentVisualSubtitleLabelOptions(v.Subtitle, ok); err != nil { + return err + } + } + + if v.Title != nil { + ok := object.Key("Title") + if err := awsRestjson1_serializeDocumentVisualTitleLabelOptions(v.Title, ok); err != nil { return err } } + if v.VisualId != nil { + ok := object.Key("VisualId") + ok.String(*v.VisualId) + } + return nil } -func awsRestjson1_serializeDocumentFreeFormLayoutCanvasSizeOptions(v *types.FreeFormLayoutCanvasSizeOptions, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentGaugeChartArcConditionalFormatting(v *types.GaugeChartArcConditionalFormatting, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.ScreenCanvasSizeOptions != nil { - ok := object.Key("ScreenCanvasSizeOptions") - if err := awsRestjson1_serializeDocumentFreeFormLayoutScreenCanvasSizeOptions(v.ScreenCanvasSizeOptions, ok); err != nil { + if v.ForegroundColor != nil { + ok := object.Key("ForegroundColor") + if err := awsRestjson1_serializeDocumentConditionalFormattingColor(v.ForegroundColor, ok); err != nil { return err } } @@ -17882,20 +20287,13 @@ func awsRestjson1_serializeDocumentFreeFormLayoutCanvasSizeOptions(v *types.Free return nil } -func awsRestjson1_serializeDocumentFreeFormLayoutConfiguration(v *types.FreeFormLayoutConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentGaugeChartConditionalFormatting(v *types.GaugeChartConditionalFormatting, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.CanvasSizeOptions != nil { - ok := object.Key("CanvasSizeOptions") - if err := awsRestjson1_serializeDocumentFreeFormLayoutCanvasSizeOptions(v.CanvasSizeOptions, ok); err != nil { - return err - } - } - - if v.Elements != nil { - ok := object.Key("Elements") - if err := awsRestjson1_serializeDocumentFreeFromLayoutElementList(v.Elements, ok); err != nil { + if v.ConditionalFormattingOptions != nil { + ok := object.Key("ConditionalFormattingOptions") + if err := awsRestjson1_serializeDocumentGaugeChartConditionalFormattingOptionList(v.ConditionalFormattingOptions, ok); err != nil { return err } } @@ -17903,170 +20301,157 @@ func awsRestjson1_serializeDocumentFreeFormLayoutConfiguration(v *types.FreeForm return nil } -func awsRestjson1_serializeDocumentFreeFormLayoutElement(v *types.FreeFormLayoutElement, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentGaugeChartConditionalFormattingOption(v *types.GaugeChartConditionalFormattingOption, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.BackgroundStyle != nil { - ok := object.Key("BackgroundStyle") - if err := awsRestjson1_serializeDocumentFreeFormLayoutElementBackgroundStyle(v.BackgroundStyle, ok); err != nil { + if v.Arc != nil { + ok := object.Key("Arc") + if err := awsRestjson1_serializeDocumentGaugeChartArcConditionalFormatting(v.Arc, ok); err != nil { return err } } - if v.BorderStyle != nil { - ok := object.Key("BorderStyle") - if err := awsRestjson1_serializeDocumentFreeFormLayoutElementBorderStyle(v.BorderStyle, ok); err != nil { + if v.PrimaryValue != nil { + ok := object.Key("PrimaryValue") + if err := awsRestjson1_serializeDocumentGaugeChartPrimaryValueConditionalFormatting(v.PrimaryValue, ok); err != nil { return err } } - if v.ElementId != nil { - ok := object.Key("ElementId") - ok.String(*v.ElementId) - } - - if len(v.ElementType) > 0 { - ok := object.Key("ElementType") - ok.String(string(v.ElementType)) - } - - if v.Height != nil { - ok := object.Key("Height") - ok.String(*v.Height) - } - - if v.LoadingAnimation != nil { - ok := object.Key("LoadingAnimation") - if err := awsRestjson1_serializeDocumentLoadingAnimation(v.LoadingAnimation, ok); err != nil { - return err - } - } + return nil +} - if v.RenderingRules != nil { - ok := object.Key("RenderingRules") - if err := awsRestjson1_serializeDocumentSheetElementRenderingRuleList(v.RenderingRules, ok); err != nil { - return err - } - } +func awsRestjson1_serializeDocumentGaugeChartConditionalFormattingOptionList(v []types.GaugeChartConditionalFormattingOption, value smithyjson.Value) error { + array := value.Array() + defer array.Close() - if v.SelectedBorderStyle != nil { - ok := object.Key("SelectedBorderStyle") - if err := awsRestjson1_serializeDocumentFreeFormLayoutElementBorderStyle(v.SelectedBorderStyle, ok); err != nil { + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentGaugeChartConditionalFormattingOption(&v[i], av); err != nil { return err } } - - if len(v.Visibility) > 0 { - ok := object.Key("Visibility") - ok.String(string(v.Visibility)) - } - - if v.Width != nil { - ok := object.Key("Width") - ok.String(*v.Width) - } - - if v.XAxisLocation != nil { - ok := object.Key("XAxisLocation") - ok.String(*v.XAxisLocation) - } - - if v.YAxisLocation != nil { - ok := object.Key("YAxisLocation") - ok.String(*v.YAxisLocation) - } - return nil } -func awsRestjson1_serializeDocumentFreeFormLayoutElementBackgroundStyle(v *types.FreeFormLayoutElementBackgroundStyle, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentGaugeChartConfiguration(v *types.GaugeChartConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Color != nil { - ok := object.Key("Color") - ok.String(*v.Color) + if v.DataLabels != nil { + ok := object.Key("DataLabels") + if err := awsRestjson1_serializeDocumentDataLabelOptions(v.DataLabels, ok); err != nil { + return err + } } - if len(v.Visibility) > 0 { - ok := object.Key("Visibility") - ok.String(string(v.Visibility)) + if v.FieldWells != nil { + ok := object.Key("FieldWells") + if err := awsRestjson1_serializeDocumentGaugeChartFieldWells(v.FieldWells, ok); err != nil { + return err + } } - return nil -} - -func awsRestjson1_serializeDocumentFreeFormLayoutElementBorderStyle(v *types.FreeFormLayoutElementBorderStyle, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Color != nil { - ok := object.Key("Color") - ok.String(*v.Color) + if v.GaugeChartOptions != nil { + ok := object.Key("GaugeChartOptions") + if err := awsRestjson1_serializeDocumentGaugeChartOptions(v.GaugeChartOptions, ok); err != nil { + return err + } } - if len(v.Visibility) > 0 { - ok := object.Key("Visibility") - ok.String(string(v.Visibility)) + if v.TooltipOptions != nil { + ok := object.Key("TooltipOptions") + if err := awsRestjson1_serializeDocumentTooltipOptions(v.TooltipOptions, ok); err != nil { + return err + } + } + + if v.VisualPalette != nil { + ok := object.Key("VisualPalette") + if err := awsRestjson1_serializeDocumentVisualPalette(v.VisualPalette, ok); err != nil { + return err + } } return nil } -func awsRestjson1_serializeDocumentFreeFormLayoutScreenCanvasSizeOptions(v *types.FreeFormLayoutScreenCanvasSizeOptions, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentGaugeChartFieldWells(v *types.GaugeChartFieldWells, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.OptimizedViewPortWidth != nil { - ok := object.Key("OptimizedViewPortWidth") - ok.String(*v.OptimizedViewPortWidth) + if v.TargetValues != nil { + ok := object.Key("TargetValues") + if err := awsRestjson1_serializeDocumentMeasureFieldList(v.TargetValues, ok); err != nil { + return err + } + } + + if v.Values != nil { + ok := object.Key("Values") + if err := awsRestjson1_serializeDocumentMeasureFieldList(v.Values, ok); err != nil { + return err + } } return nil } -func awsRestjson1_serializeDocumentFreeFormSectionLayoutConfiguration(v *types.FreeFormSectionLayoutConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentGaugeChartOptions(v *types.GaugeChartOptions, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Elements != nil { - ok := object.Key("Elements") - if err := awsRestjson1_serializeDocumentFreeFromLayoutElementList(v.Elements, ok); err != nil { + if v.Arc != nil { + ok := object.Key("Arc") + if err := awsRestjson1_serializeDocumentArcConfiguration(v.Arc, ok); err != nil { return err } } - return nil -} + if v.ArcAxis != nil { + ok := object.Key("ArcAxis") + if err := awsRestjson1_serializeDocumentArcAxisConfiguration(v.ArcAxis, ok); err != nil { + return err + } + } -func awsRestjson1_serializeDocumentFreeFromLayoutElementList(v []types.FreeFormLayoutElement, value smithyjson.Value) error { - array := value.Array() - defer array.Close() + if v.Comparison != nil { + ok := object.Key("Comparison") + if err := awsRestjson1_serializeDocumentComparisonConfiguration(v.Comparison, ok); err != nil { + return err + } + } - for i := range v { - av := array.Value() - if err := awsRestjson1_serializeDocumentFreeFormLayoutElement(&v[i], av); err != nil { + if len(v.PrimaryValueDisplayType) > 0 { + ok := object.Key("PrimaryValueDisplayType") + ok.String(string(v.PrimaryValueDisplayType)) + } + + if v.PrimaryValueFontConfiguration != nil { + ok := object.Key("PrimaryValueFontConfiguration") + if err := awsRestjson1_serializeDocumentFontConfiguration(v.PrimaryValueFontConfiguration, ok); err != nil { return err } } + return nil } -func awsRestjson1_serializeDocumentFunnelChartAggregatedFieldWells(v *types.FunnelChartAggregatedFieldWells, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentGaugeChartPrimaryValueConditionalFormatting(v *types.GaugeChartPrimaryValueConditionalFormatting, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Category != nil { - ok := object.Key("Category") - if err := awsRestjson1_serializeDocumentFunnelChartDimensionFieldList(v.Category, ok); err != nil { + if v.Icon != nil { + ok := object.Key("Icon") + if err := awsRestjson1_serializeDocumentConditionalFormattingIcon(v.Icon, ok); err != nil { return err } } - if v.Values != nil { - ok := object.Key("Values") - if err := awsRestjson1_serializeDocumentFunnelChartMeasureFieldList(v.Values, ok); err != nil { + if v.TextColor != nil { + ok := object.Key("TextColor") + if err := awsRestjson1_serializeDocumentConditionalFormattingColor(v.TextColor, ok); err != nil { return err } } @@ -18074,126 +20459,233 @@ func awsRestjson1_serializeDocumentFunnelChartAggregatedFieldWells(v *types.Funn return nil } -func awsRestjson1_serializeDocumentFunnelChartConfiguration(v *types.FunnelChartConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentGaugeChartVisual(v *types.GaugeChartVisual, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.CategoryLabelOptions != nil { - ok := object.Key("CategoryLabelOptions") - if err := awsRestjson1_serializeDocumentChartAxisLabelOptions(v.CategoryLabelOptions, ok); err != nil { + if v.Actions != nil { + ok := object.Key("Actions") + if err := awsRestjson1_serializeDocumentVisualCustomActionList(v.Actions, ok); err != nil { return err } } - if v.DataLabelOptions != nil { - ok := object.Key("DataLabelOptions") - if err := awsRestjson1_serializeDocumentFunnelChartDataLabelOptions(v.DataLabelOptions, ok); err != nil { + if v.ChartConfiguration != nil { + ok := object.Key("ChartConfiguration") + if err := awsRestjson1_serializeDocumentGaugeChartConfiguration(v.ChartConfiguration, ok); err != nil { return err } } - if v.FieldWells != nil { - ok := object.Key("FieldWells") - if err := awsRestjson1_serializeDocumentFunnelChartFieldWells(v.FieldWells, ok); err != nil { + if v.ConditionalFormatting != nil { + ok := object.Key("ConditionalFormatting") + if err := awsRestjson1_serializeDocumentGaugeChartConditionalFormatting(v.ConditionalFormatting, ok); err != nil { return err } } - if v.SortConfiguration != nil { - ok := object.Key("SortConfiguration") - if err := awsRestjson1_serializeDocumentFunnelChartSortConfiguration(v.SortConfiguration, ok); err != nil { + if v.Subtitle != nil { + ok := object.Key("Subtitle") + if err := awsRestjson1_serializeDocumentVisualSubtitleLabelOptions(v.Subtitle, ok); err != nil { return err } } - if v.Tooltip != nil { - ok := object.Key("Tooltip") - if err := awsRestjson1_serializeDocumentTooltipOptions(v.Tooltip, ok); err != nil { + if v.Title != nil { + ok := object.Key("Title") + if err := awsRestjson1_serializeDocumentVisualTitleLabelOptions(v.Title, ok); err != nil { return err } } - if v.ValueLabelOptions != nil { - ok := object.Key("ValueLabelOptions") - if err := awsRestjson1_serializeDocumentChartAxisLabelOptions(v.ValueLabelOptions, ok); err != nil { - return err - } + if v.VisualId != nil { + ok := object.Key("VisualId") + ok.String(*v.VisualId) } - if v.VisualPalette != nil { - ok := object.Key("VisualPalette") - if err := awsRestjson1_serializeDocumentVisualPalette(v.VisualPalette, ok); err != nil { + return nil +} + +func awsRestjson1_serializeDocumentGeoSpatialColumnGroup(v *types.GeoSpatialColumnGroup, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Columns != nil { + ok := object.Key("Columns") + if err := awsRestjson1_serializeDocumentColumnList(v.Columns, ok); err != nil { return err } } + if len(v.CountryCode) > 0 { + ok := object.Key("CountryCode") + ok.String(string(v.CountryCode)) + } + + if v.Name != nil { + ok := object.Key("Name") + ok.String(*v.Name) + } + return nil } -func awsRestjson1_serializeDocumentFunnelChartDataLabelOptions(v *types.FunnelChartDataLabelOptions, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentGeospatialCoordinateBounds(v *types.GeospatialCoordinateBounds, value smithyjson.Value) error { object := value.Object() defer object.Close() - if len(v.CategoryLabelVisibility) > 0 { - ok := object.Key("CategoryLabelVisibility") - ok.String(string(v.CategoryLabelVisibility)) + if v.East != nil { + ok := object.Key("East") + switch { + case math.IsNaN(*v.East): + ok.String("NaN") + + case math.IsInf(*v.East, 1): + ok.String("Infinity") + + case math.IsInf(*v.East, -1): + ok.String("-Infinity") + + default: + ok.Double(*v.East) + + } } - if v.LabelColor != nil { - ok := object.Key("LabelColor") - ok.String(*v.LabelColor) + if v.North != nil { + ok := object.Key("North") + switch { + case math.IsNaN(*v.North): + ok.String("NaN") + + case math.IsInf(*v.North, 1): + ok.String("Infinity") + + case math.IsInf(*v.North, -1): + ok.String("-Infinity") + + default: + ok.Double(*v.North) + + } } - if v.LabelFontConfiguration != nil { - ok := object.Key("LabelFontConfiguration") - if err := awsRestjson1_serializeDocumentFontConfiguration(v.LabelFontConfiguration, ok); err != nil { + if v.South != nil { + ok := object.Key("South") + switch { + case math.IsNaN(*v.South): + ok.String("NaN") + + case math.IsInf(*v.South, 1): + ok.String("Infinity") + + case math.IsInf(*v.South, -1): + ok.String("-Infinity") + + default: + ok.Double(*v.South) + + } + } + + if v.West != nil { + ok := object.Key("West") + switch { + case math.IsNaN(*v.West): + ok.String("NaN") + + case math.IsInf(*v.West, 1): + ok.String("Infinity") + + case math.IsInf(*v.West, -1): + ok.String("-Infinity") + + default: + ok.Double(*v.West) + + } + } + + return nil +} + +func awsRestjson1_serializeDocumentGeospatialMapAggregatedFieldWells(v *types.GeospatialMapAggregatedFieldWells, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Colors != nil { + ok := object.Key("Colors") + if err := awsRestjson1_serializeDocumentDimensionFieldList(v.Colors, ok); err != nil { return err } } - if len(v.MeasureDataLabelStyle) > 0 { - ok := object.Key("MeasureDataLabelStyle") - ok.String(string(v.MeasureDataLabelStyle)) + if v.Geospatial != nil { + ok := object.Key("Geospatial") + if err := awsRestjson1_serializeDocumentDimensionFieldList(v.Geospatial, ok); err != nil { + return err + } } - if len(v.MeasureLabelVisibility) > 0 { - ok := object.Key("MeasureLabelVisibility") - ok.String(string(v.MeasureLabelVisibility)) + if v.Values != nil { + ok := object.Key("Values") + if err := awsRestjson1_serializeDocumentMeasureFieldList(v.Values, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentGeospatialMapConfiguration(v *types.GeospatialMapConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.FieldWells != nil { + ok := object.Key("FieldWells") + if err := awsRestjson1_serializeDocumentGeospatialMapFieldWells(v.FieldWells, ok); err != nil { + return err + } } - if len(v.Position) > 0 { - ok := object.Key("Position") - ok.String(string(v.Position)) + if v.Legend != nil { + ok := object.Key("Legend") + if err := awsRestjson1_serializeDocumentLegendOptions(v.Legend, ok); err != nil { + return err + } } - if len(v.Visibility) > 0 { - ok := object.Key("Visibility") - ok.String(string(v.Visibility)) + if v.MapStyleOptions != nil { + ok := object.Key("MapStyleOptions") + if err := awsRestjson1_serializeDocumentGeospatialMapStyleOptions(v.MapStyleOptions, ok); err != nil { + return err + } } - return nil -} - -func awsRestjson1_serializeDocumentFunnelChartDimensionFieldList(v []types.DimensionField, value smithyjson.Value) error { - array := value.Array() - defer array.Close() + if v.PointStyleOptions != nil { + ok := object.Key("PointStyleOptions") + if err := awsRestjson1_serializeDocumentGeospatialPointStyleOptions(v.PointStyleOptions, ok); err != nil { + return err + } + } - for i := range v { - av := array.Value() - if err := awsRestjson1_serializeDocumentDimensionField(&v[i], av); err != nil { + if v.Tooltip != nil { + ok := object.Key("Tooltip") + if err := awsRestjson1_serializeDocumentTooltipOptions(v.Tooltip, ok); err != nil { return err } } - return nil -} -func awsRestjson1_serializeDocumentFunnelChartFieldWells(v *types.FunnelChartFieldWells, value smithyjson.Value) error { - object := value.Object() - defer object.Close() + if v.VisualPalette != nil { + ok := object.Key("VisualPalette") + if err := awsRestjson1_serializeDocumentVisualPalette(v.VisualPalette, ok); err != nil { + return err + } + } - if v.FunnelChartAggregatedFieldWells != nil { - ok := object.Key("FunnelChartAggregatedFieldWells") - if err := awsRestjson1_serializeDocumentFunnelChartAggregatedFieldWells(v.FunnelChartAggregatedFieldWells, ok); err != nil { + if v.WindowOptions != nil { + ok := object.Key("WindowOptions") + if err := awsRestjson1_serializeDocumentGeospatialWindowOptions(v.WindowOptions, ok); err != nil { return err } } @@ -18201,41 +20693,33 @@ func awsRestjson1_serializeDocumentFunnelChartFieldWells(v *types.FunnelChartFie return nil } -func awsRestjson1_serializeDocumentFunnelChartMeasureFieldList(v []types.MeasureField, value smithyjson.Value) error { - array := value.Array() - defer array.Close() +func awsRestjson1_serializeDocumentGeospatialMapFieldWells(v *types.GeospatialMapFieldWells, value smithyjson.Value) error { + object := value.Object() + defer object.Close() - for i := range v { - av := array.Value() - if err := awsRestjson1_serializeDocumentMeasureField(&v[i], av); err != nil { + if v.GeospatialMapAggregatedFieldWells != nil { + ok := object.Key("GeospatialMapAggregatedFieldWells") + if err := awsRestjson1_serializeDocumentGeospatialMapAggregatedFieldWells(v.GeospatialMapAggregatedFieldWells, ok); err != nil { return err } } + return nil } -func awsRestjson1_serializeDocumentFunnelChartSortConfiguration(v *types.FunnelChartSortConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentGeospatialMapStyleOptions(v *types.GeospatialMapStyleOptions, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.CategoryItemsLimit != nil { - ok := object.Key("CategoryItemsLimit") - if err := awsRestjson1_serializeDocumentItemsLimitConfiguration(v.CategoryItemsLimit, ok); err != nil { - return err - } - } - - if v.CategorySort != nil { - ok := object.Key("CategorySort") - if err := awsRestjson1_serializeDocumentFieldSortOptionsList(v.CategorySort, ok); err != nil { - return err - } + if len(v.BaseMapStyle) > 0 { + ok := object.Key("BaseMapStyle") + ok.String(string(v.BaseMapStyle)) } return nil } -func awsRestjson1_serializeDocumentFunnelChartVisual(v *types.FunnelChartVisual, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentGeospatialMapVisual(v *types.GeospatialMapVisual, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -18248,7 +20732,7 @@ func awsRestjson1_serializeDocumentFunnelChartVisual(v *types.FunnelChartVisual, if v.ChartConfiguration != nil { ok := object.Key("ChartConfiguration") - if err := awsRestjson1_serializeDocumentFunnelChartConfiguration(v.ChartConfiguration, ok); err != nil { + if err := awsRestjson1_serializeDocumentGeospatialMapConfiguration(v.ChartConfiguration, ok); err != nil { return err } } @@ -18282,48 +20766,58 @@ func awsRestjson1_serializeDocumentFunnelChartVisual(v *types.FunnelChartVisual, return nil } -func awsRestjson1_serializeDocumentGaugeChartArcConditionalFormatting(v *types.GaugeChartArcConditionalFormatting, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentGeospatialPointStyleOptions(v *types.GeospatialPointStyleOptions, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.ForegroundColor != nil { - ok := object.Key("ForegroundColor") - if err := awsRestjson1_serializeDocumentConditionalFormattingColor(v.ForegroundColor, ok); err != nil { + if v.ClusterMarkerConfiguration != nil { + ok := object.Key("ClusterMarkerConfiguration") + if err := awsRestjson1_serializeDocumentClusterMarkerConfiguration(v.ClusterMarkerConfiguration, ok); err != nil { return err } } + if len(v.SelectedPointStyle) > 0 { + ok := object.Key("SelectedPointStyle") + ok.String(string(v.SelectedPointStyle)) + } + return nil } -func awsRestjson1_serializeDocumentGaugeChartConditionalFormatting(v *types.GaugeChartConditionalFormatting, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentGeospatialWindowOptions(v *types.GeospatialWindowOptions, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.ConditionalFormattingOptions != nil { - ok := object.Key("ConditionalFormattingOptions") - if err := awsRestjson1_serializeDocumentGaugeChartConditionalFormattingOptionList(v.ConditionalFormattingOptions, ok); err != nil { + if v.Bounds != nil { + ok := object.Key("Bounds") + if err := awsRestjson1_serializeDocumentGeospatialCoordinateBounds(v.Bounds, ok); err != nil { return err } } + if len(v.MapZoomMode) > 0 { + ok := object.Key("MapZoomMode") + ok.String(string(v.MapZoomMode)) + } + return nil } -func awsRestjson1_serializeDocumentGaugeChartConditionalFormattingOption(v *types.GaugeChartConditionalFormattingOption, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentGlobalTableBorderOptions(v *types.GlobalTableBorderOptions, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Arc != nil { - ok := object.Key("Arc") - if err := awsRestjson1_serializeDocumentGaugeChartArcConditionalFormatting(v.Arc, ok); err != nil { + if v.SideSpecificBorder != nil { + ok := object.Key("SideSpecificBorder") + if err := awsRestjson1_serializeDocumentTableSideBorderOptions(v.SideSpecificBorder, ok); err != nil { return err } } - if v.PrimaryValue != nil { - ok := object.Key("PrimaryValue") - if err := awsRestjson1_serializeDocumentGaugeChartPrimaryValueConditionalFormatting(v.PrimaryValue, ok); err != nil { + if v.UniformBorder != nil { + ok := object.Key("UniformBorder") + if err := awsRestjson1_serializeDocumentTableBorderOptions(v.UniformBorder, ok); err != nil { return err } } @@ -18331,328 +20825,372 @@ func awsRestjson1_serializeDocumentGaugeChartConditionalFormattingOption(v *type return nil } -func awsRestjson1_serializeDocumentGaugeChartConditionalFormattingOptionList(v []types.GaugeChartConditionalFormattingOption, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentGradientColor(v *types.GradientColor, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Stops != nil { + ok := object.Key("Stops") + if err := awsRestjson1_serializeDocumentGradientStopList(v.Stops, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentGradientStop(v *types.GradientStop, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Color != nil { + ok := object.Key("Color") + ok.String(*v.Color) + } + + if v.DataValue != nil { + ok := object.Key("DataValue") + switch { + case math.IsNaN(*v.DataValue): + ok.String("NaN") + + case math.IsInf(*v.DataValue, 1): + ok.String("Infinity") + + case math.IsInf(*v.DataValue, -1): + ok.String("-Infinity") + + default: + ok.Double(*v.DataValue) + + } + } + + { + ok := object.Key("GradientOffset") + switch { + case math.IsNaN(v.GradientOffset): + ok.String("NaN") + + case math.IsInf(v.GradientOffset, 1): + ok.String("Infinity") + + case math.IsInf(v.GradientOffset, -1): + ok.String("-Infinity") + + default: + ok.Double(v.GradientOffset) + + } + } + + return nil +} + +func awsRestjson1_serializeDocumentGradientStopList(v []types.GradientStop, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if err := awsRestjson1_serializeDocumentGaugeChartConditionalFormattingOption(&v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentGradientStop(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentGaugeChartConfiguration(v *types.GaugeChartConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentGridLayoutCanvasSizeOptions(v *types.GridLayoutCanvasSizeOptions, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.DataLabels != nil { - ok := object.Key("DataLabels") - if err := awsRestjson1_serializeDocumentDataLabelOptions(v.DataLabels, ok); err != nil { + if v.ScreenCanvasSizeOptions != nil { + ok := object.Key("ScreenCanvasSizeOptions") + if err := awsRestjson1_serializeDocumentGridLayoutScreenCanvasSizeOptions(v.ScreenCanvasSizeOptions, ok); err != nil { return err } } - if v.FieldWells != nil { - ok := object.Key("FieldWells") - if err := awsRestjson1_serializeDocumentGaugeChartFieldWells(v.FieldWells, ok); err != nil { + return nil +} + +func awsRestjson1_serializeDocumentGridLayoutConfiguration(v *types.GridLayoutConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.CanvasSizeOptions != nil { + ok := object.Key("CanvasSizeOptions") + if err := awsRestjson1_serializeDocumentGridLayoutCanvasSizeOptions(v.CanvasSizeOptions, ok); err != nil { return err } } - if v.GaugeChartOptions != nil { - ok := object.Key("GaugeChartOptions") - if err := awsRestjson1_serializeDocumentGaugeChartOptions(v.GaugeChartOptions, ok); err != nil { + if v.Elements != nil { + ok := object.Key("Elements") + if err := awsRestjson1_serializeDocumentGridLayoutElementList(v.Elements, ok); err != nil { return err } } - if v.TooltipOptions != nil { - ok := object.Key("TooltipOptions") - if err := awsRestjson1_serializeDocumentTooltipOptions(v.TooltipOptions, ok); err != nil { - return err - } + return nil +} + +func awsRestjson1_serializeDocumentGridLayoutElement(v *types.GridLayoutElement, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ColumnIndex != nil { + ok := object.Key("ColumnIndex") + ok.Integer(*v.ColumnIndex) + } + + if v.ColumnSpan != nil { + ok := object.Key("ColumnSpan") + ok.Integer(*v.ColumnSpan) + } + + if v.ElementId != nil { + ok := object.Key("ElementId") + ok.String(*v.ElementId) + } + + if len(v.ElementType) > 0 { + ok := object.Key("ElementType") + ok.String(string(v.ElementType)) + } + + if v.RowIndex != nil { + ok := object.Key("RowIndex") + ok.Integer(*v.RowIndex) + } + + if v.RowSpan != nil { + ok := object.Key("RowSpan") + ok.Integer(*v.RowSpan) } - if v.VisualPalette != nil { - ok := object.Key("VisualPalette") - if err := awsRestjson1_serializeDocumentVisualPalette(v.VisualPalette, ok); err != nil { + return nil +} + +func awsRestjson1_serializeDocumentGridLayoutElementList(v []types.GridLayoutElement, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentGridLayoutElement(&v[i], av); err != nil { return err } } - return nil } -func awsRestjson1_serializeDocumentGaugeChartFieldWells(v *types.GaugeChartFieldWells, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentGridLayoutScreenCanvasSizeOptions(v *types.GridLayoutScreenCanvasSizeOptions, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.TargetValues != nil { - ok := object.Key("TargetValues") - if err := awsRestjson1_serializeDocumentMeasureFieldList(v.TargetValues, ok); err != nil { - return err - } + if v.OptimizedViewPortWidth != nil { + ok := object.Key("OptimizedViewPortWidth") + ok.String(*v.OptimizedViewPortWidth) } - if v.Values != nil { - ok := object.Key("Values") - if err := awsRestjson1_serializeDocumentMeasureFieldList(v.Values, ok); err != nil { - return err - } + if len(v.ResizeOption) > 0 { + ok := object.Key("ResizeOption") + ok.String(string(v.ResizeOption)) } return nil } -func awsRestjson1_serializeDocumentGaugeChartOptions(v *types.GaugeChartOptions, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentGroupSearchFilter(v *types.GroupSearchFilter, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Arc != nil { - ok := object.Key("Arc") - if err := awsRestjson1_serializeDocumentArcConfiguration(v.Arc, ok); err != nil { - return err - } - } - - if v.ArcAxis != nil { - ok := object.Key("ArcAxis") - if err := awsRestjson1_serializeDocumentArcAxisConfiguration(v.ArcAxis, ok); err != nil { - return err - } - } - - if v.Comparison != nil { - ok := object.Key("Comparison") - if err := awsRestjson1_serializeDocumentComparisonConfiguration(v.Comparison, ok); err != nil { - return err - } + if len(v.Name) > 0 { + ok := object.Key("Name") + ok.String(string(v.Name)) } - if len(v.PrimaryValueDisplayType) > 0 { - ok := object.Key("PrimaryValueDisplayType") - ok.String(string(v.PrimaryValueDisplayType)) + if len(v.Operator) > 0 { + ok := object.Key("Operator") + ok.String(string(v.Operator)) } - if v.PrimaryValueFontConfiguration != nil { - ok := object.Key("PrimaryValueFontConfiguration") - if err := awsRestjson1_serializeDocumentFontConfiguration(v.PrimaryValueFontConfiguration, ok); err != nil { - return err - } + if v.Value != nil { + ok := object.Key("Value") + ok.String(*v.Value) } return nil } -func awsRestjson1_serializeDocumentGaugeChartPrimaryValueConditionalFormatting(v *types.GaugeChartPrimaryValueConditionalFormatting, value smithyjson.Value) error { - object := value.Object() - defer object.Close() +func awsRestjson1_serializeDocumentGroupSearchFilterList(v []types.GroupSearchFilter, value smithyjson.Value) error { + array := value.Array() + defer array.Close() - if v.Icon != nil { - ok := object.Key("Icon") - if err := awsRestjson1_serializeDocumentConditionalFormattingIcon(v.Icon, ok); err != nil { + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentGroupSearchFilter(&v[i], av); err != nil { return err } } + return nil +} - if v.TextColor != nil { - ok := object.Key("TextColor") - if err := awsRestjson1_serializeDocumentConditionalFormattingColor(v.TextColor, ok); err != nil { - return err - } - } +func awsRestjson1_serializeDocumentGroupsList(v []string, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + for i := range v { + av := array.Value() + av.String(v[i]) + } return nil } -func awsRestjson1_serializeDocumentGaugeChartVisual(v *types.GaugeChartVisual, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentGrowthRateComputation(v *types.GrowthRateComputation, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Actions != nil { - ok := object.Key("Actions") - if err := awsRestjson1_serializeDocumentVisualCustomActionList(v.Actions, ok); err != nil { - return err - } + if v.ComputationId != nil { + ok := object.Key("ComputationId") + ok.String(*v.ComputationId) } - if v.ChartConfiguration != nil { - ok := object.Key("ChartConfiguration") - if err := awsRestjson1_serializeDocumentGaugeChartConfiguration(v.ChartConfiguration, ok); err != nil { - return err - } + if v.Name != nil { + ok := object.Key("Name") + ok.String(*v.Name) } - if v.ConditionalFormatting != nil { - ok := object.Key("ConditionalFormatting") - if err := awsRestjson1_serializeDocumentGaugeChartConditionalFormatting(v.ConditionalFormatting, ok); err != nil { - return err - } + if v.PeriodSize != 0 { + ok := object.Key("PeriodSize") + ok.Integer(v.PeriodSize) } - if v.Subtitle != nil { - ok := object.Key("Subtitle") - if err := awsRestjson1_serializeDocumentVisualSubtitleLabelOptions(v.Subtitle, ok); err != nil { + if v.Time != nil { + ok := object.Key("Time") + if err := awsRestjson1_serializeDocumentDimensionField(v.Time, ok); err != nil { return err } } - if v.Title != nil { - ok := object.Key("Title") - if err := awsRestjson1_serializeDocumentVisualTitleLabelOptions(v.Title, ok); err != nil { + if v.Value != nil { + ok := object.Key("Value") + if err := awsRestjson1_serializeDocumentMeasureField(v.Value, ok); err != nil { return err } } - if v.VisualId != nil { - ok := object.Key("VisualId") - ok.String(*v.VisualId) + return nil +} + +func awsRestjson1_serializeDocumentGutterStyle(v *types.GutterStyle, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Show != nil { + ok := object.Key("Show") + ok.Boolean(*v.Show) } return nil } -func awsRestjson1_serializeDocumentGeoSpatialColumnGroup(v *types.GeoSpatialColumnGroup, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentHeaderFooterSectionConfiguration(v *types.HeaderFooterSectionConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Columns != nil { - ok := object.Key("Columns") - if err := awsRestjson1_serializeDocumentColumnList(v.Columns, ok); err != nil { + if v.Layout != nil { + ok := object.Key("Layout") + if err := awsRestjson1_serializeDocumentSectionLayoutConfiguration(v.Layout, ok); err != nil { return err } } - if len(v.CountryCode) > 0 { - ok := object.Key("CountryCode") - ok.String(string(v.CountryCode)) + if v.SectionId != nil { + ok := object.Key("SectionId") + ok.String(*v.SectionId) } - if v.Name != nil { - ok := object.Key("Name") - ok.String(*v.Name) + if v.Style != nil { + ok := object.Key("Style") + if err := awsRestjson1_serializeDocumentSectionStyle(v.Style, ok); err != nil { + return err + } } return nil } -func awsRestjson1_serializeDocumentGeospatialCoordinateBounds(v *types.GeospatialCoordinateBounds, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.East != nil { - ok := object.Key("East") - switch { - case math.IsNaN(*v.East): - ok.String("NaN") - - case math.IsInf(*v.East, 1): - ok.String("Infinity") - - case math.IsInf(*v.East, -1): - ok.String("-Infinity") - - default: - ok.Double(*v.East) +func awsRestjson1_serializeDocumentHeaderFooterSectionConfigurationList(v []types.HeaderFooterSectionConfiguration, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentHeaderFooterSectionConfiguration(&v[i], av); err != nil { + return err } } + return nil +} - if v.North != nil { - ok := object.Key("North") - switch { - case math.IsNaN(*v.North): - ok.String("NaN") - - case math.IsInf(*v.North, 1): - ok.String("Infinity") - - case math.IsInf(*v.North, -1): - ok.String("-Infinity") - - default: - ok.Double(*v.North) +func awsRestjson1_serializeDocumentHeatMapAggregatedFieldWells(v *types.HeatMapAggregatedFieldWells, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + if v.Columns != nil { + ok := object.Key("Columns") + if err := awsRestjson1_serializeDocumentHeatMapDimensionFieldList(v.Columns, ok); err != nil { + return err } } - if v.South != nil { - ok := object.Key("South") - switch { - case math.IsNaN(*v.South): - ok.String("NaN") - - case math.IsInf(*v.South, 1): - ok.String("Infinity") - - case math.IsInf(*v.South, -1): - ok.String("-Infinity") - - default: - ok.Double(*v.South) - + if v.Rows != nil { + ok := object.Key("Rows") + if err := awsRestjson1_serializeDocumentHeatMapDimensionFieldList(v.Rows, ok); err != nil { + return err } } - if v.West != nil { - ok := object.Key("West") - switch { - case math.IsNaN(*v.West): - ok.String("NaN") - - case math.IsInf(*v.West, 1): - ok.String("Infinity") - - case math.IsInf(*v.West, -1): - ok.String("-Infinity") - - default: - ok.Double(*v.West) - + if v.Values != nil { + ok := object.Key("Values") + if err := awsRestjson1_serializeDocumentHeatMapMeasureFieldList(v.Values, ok); err != nil { + return err } } return nil } -func awsRestjson1_serializeDocumentGeospatialMapAggregatedFieldWells(v *types.GeospatialMapAggregatedFieldWells, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentHeatMapConfiguration(v *types.HeatMapConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Colors != nil { - ok := object.Key("Colors") - if err := awsRestjson1_serializeDocumentDimensionFieldList(v.Colors, ok); err != nil { + if v.ColorScale != nil { + ok := object.Key("ColorScale") + if err := awsRestjson1_serializeDocumentColorScale(v.ColorScale, ok); err != nil { return err } } - if v.Geospatial != nil { - ok := object.Key("Geospatial") - if err := awsRestjson1_serializeDocumentDimensionFieldList(v.Geospatial, ok); err != nil { + if v.ColumnLabelOptions != nil { + ok := object.Key("ColumnLabelOptions") + if err := awsRestjson1_serializeDocumentChartAxisLabelOptions(v.ColumnLabelOptions, ok); err != nil { return err } } - if v.Values != nil { - ok := object.Key("Values") - if err := awsRestjson1_serializeDocumentMeasureFieldList(v.Values, ok); err != nil { + if v.DataLabels != nil { + ok := object.Key("DataLabels") + if err := awsRestjson1_serializeDocumentDataLabelOptions(v.DataLabels, ok); err != nil { return err } } - return nil -} - -func awsRestjson1_serializeDocumentGeospatialMapConfiguration(v *types.GeospatialMapConfiguration, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - if v.FieldWells != nil { ok := object.Key("FieldWells") - if err := awsRestjson1_serializeDocumentGeospatialMapFieldWells(v.FieldWells, ok); err != nil { + if err := awsRestjson1_serializeDocumentHeatMapFieldWells(v.FieldWells, ok); err != nil { return err } } @@ -18664,16 +21202,16 @@ func awsRestjson1_serializeDocumentGeospatialMapConfiguration(v *types.Geospatia } } - if v.MapStyleOptions != nil { - ok := object.Key("MapStyleOptions") - if err := awsRestjson1_serializeDocumentGeospatialMapStyleOptions(v.MapStyleOptions, ok); err != nil { + if v.RowLabelOptions != nil { + ok := object.Key("RowLabelOptions") + if err := awsRestjson1_serializeDocumentChartAxisLabelOptions(v.RowLabelOptions, ok); err != nil { return err } } - if v.PointStyleOptions != nil { - ok := object.Key("PointStyleOptions") - if err := awsRestjson1_serializeDocumentGeospatialPointStyleOptions(v.PointStyleOptions, ok); err != nil { + if v.SortConfiguration != nil { + ok := object.Key("SortConfiguration") + if err := awsRestjson1_serializeDocumentHeatMapSortConfiguration(v.SortConfiguration, ok); err != nil { return err } } @@ -18685,16 +21223,29 @@ func awsRestjson1_serializeDocumentGeospatialMapConfiguration(v *types.Geospatia } } - if v.VisualPalette != nil { - ok := object.Key("VisualPalette") - if err := awsRestjson1_serializeDocumentVisualPalette(v.VisualPalette, ok); err != nil { + return nil +} + +func awsRestjson1_serializeDocumentHeatMapDimensionFieldList(v []types.DimensionField, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentDimensionField(&v[i], av); err != nil { return err } } + return nil +} - if v.WindowOptions != nil { - ok := object.Key("WindowOptions") - if err := awsRestjson1_serializeDocumentGeospatialWindowOptions(v.WindowOptions, ok); err != nil { +func awsRestjson1_serializeDocumentHeatMapFieldWells(v *types.HeatMapFieldWells, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.HeatMapAggregatedFieldWells != nil { + ok := object.Key("HeatMapAggregatedFieldWells") + if err := awsRestjson1_serializeDocumentHeatMapAggregatedFieldWells(v.HeatMapAggregatedFieldWells, ok); err != nil { return err } } @@ -18702,33 +21253,55 @@ func awsRestjson1_serializeDocumentGeospatialMapConfiguration(v *types.Geospatia return nil } -func awsRestjson1_serializeDocumentGeospatialMapFieldWells(v *types.GeospatialMapFieldWells, value smithyjson.Value) error { - object := value.Object() - defer object.Close() +func awsRestjson1_serializeDocumentHeatMapMeasureFieldList(v []types.MeasureField, value smithyjson.Value) error { + array := value.Array() + defer array.Close() - if v.GeospatialMapAggregatedFieldWells != nil { - ok := object.Key("GeospatialMapAggregatedFieldWells") - if err := awsRestjson1_serializeDocumentGeospatialMapAggregatedFieldWells(v.GeospatialMapAggregatedFieldWells, ok); err != nil { + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentMeasureField(&v[i], av); err != nil { return err } } - return nil } -func awsRestjson1_serializeDocumentGeospatialMapStyleOptions(v *types.GeospatialMapStyleOptions, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentHeatMapSortConfiguration(v *types.HeatMapSortConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if len(v.BaseMapStyle) > 0 { - ok := object.Key("BaseMapStyle") - ok.String(string(v.BaseMapStyle)) + if v.HeatMapColumnItemsLimitConfiguration != nil { + ok := object.Key("HeatMapColumnItemsLimitConfiguration") + if err := awsRestjson1_serializeDocumentItemsLimitConfiguration(v.HeatMapColumnItemsLimitConfiguration, ok); err != nil { + return err + } + } + + if v.HeatMapColumnSort != nil { + ok := object.Key("HeatMapColumnSort") + if err := awsRestjson1_serializeDocumentFieldSortOptionsList(v.HeatMapColumnSort, ok); err != nil { + return err + } + } + + if v.HeatMapRowItemsLimitConfiguration != nil { + ok := object.Key("HeatMapRowItemsLimitConfiguration") + if err := awsRestjson1_serializeDocumentItemsLimitConfiguration(v.HeatMapRowItemsLimitConfiguration, ok); err != nil { + return err + } + } + + if v.HeatMapRowSort != nil { + ok := object.Key("HeatMapRowSort") + if err := awsRestjson1_serializeDocumentFieldSortOptionsList(v.HeatMapRowSort, ok); err != nil { + return err + } } return nil } -func awsRestjson1_serializeDocumentGeospatialMapVisual(v *types.GeospatialMapVisual, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentHeatMapVisual(v *types.HeatMapVisual, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -18741,7 +21314,7 @@ func awsRestjson1_serializeDocumentGeospatialMapVisual(v *types.GeospatialMapVis if v.ChartConfiguration != nil { ok := object.Key("ChartConfiguration") - if err := awsRestjson1_serializeDocumentGeospatialMapConfiguration(v.ChartConfiguration, ok); err != nil { + if err := awsRestjson1_serializeDocumentHeatMapConfiguration(v.ChartConfiguration, ok); err != nil { return err } } @@ -18775,396 +21348,429 @@ func awsRestjson1_serializeDocumentGeospatialMapVisual(v *types.GeospatialMapVis return nil } -func awsRestjson1_serializeDocumentGeospatialPointStyleOptions(v *types.GeospatialPointStyleOptions, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentHistogramAggregatedFieldWells(v *types.HistogramAggregatedFieldWells, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.ClusterMarkerConfiguration != nil { - ok := object.Key("ClusterMarkerConfiguration") - if err := awsRestjson1_serializeDocumentClusterMarkerConfiguration(v.ClusterMarkerConfiguration, ok); err != nil { + if v.Values != nil { + ok := object.Key("Values") + if err := awsRestjson1_serializeDocumentHistogramMeasureFieldList(v.Values, ok); err != nil { return err } } - if len(v.SelectedPointStyle) > 0 { - ok := object.Key("SelectedPointStyle") - ok.String(string(v.SelectedPointStyle)) - } - return nil } -func awsRestjson1_serializeDocumentGeospatialWindowOptions(v *types.GeospatialWindowOptions, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentHistogramBinOptions(v *types.HistogramBinOptions, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Bounds != nil { - ok := object.Key("Bounds") - if err := awsRestjson1_serializeDocumentGeospatialCoordinateBounds(v.Bounds, ok); err != nil { + if v.BinCount != nil { + ok := object.Key("BinCount") + if err := awsRestjson1_serializeDocumentBinCountOptions(v.BinCount, ok); err != nil { return err } } - if len(v.MapZoomMode) > 0 { - ok := object.Key("MapZoomMode") - ok.String(string(v.MapZoomMode)) - } - - return nil -} - -func awsRestjson1_serializeDocumentGlobalTableBorderOptions(v *types.GlobalTableBorderOptions, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.SideSpecificBorder != nil { - ok := object.Key("SideSpecificBorder") - if err := awsRestjson1_serializeDocumentTableSideBorderOptions(v.SideSpecificBorder, ok); err != nil { + if v.BinWidth != nil { + ok := object.Key("BinWidth") + if err := awsRestjson1_serializeDocumentBinWidthOptions(v.BinWidth, ok); err != nil { return err } } - if v.UniformBorder != nil { - ok := object.Key("UniformBorder") - if err := awsRestjson1_serializeDocumentTableBorderOptions(v.UniformBorder, ok); err != nil { - return err - } + if len(v.SelectedBinType) > 0 { + ok := object.Key("SelectedBinType") + ok.String(string(v.SelectedBinType)) } - return nil -} + if v.StartValue != nil { + ok := object.Key("StartValue") + switch { + case math.IsNaN(*v.StartValue): + ok.String("NaN") -func awsRestjson1_serializeDocumentGradientColor(v *types.GradientColor, value smithyjson.Value) error { - object := value.Object() - defer object.Close() + case math.IsInf(*v.StartValue, 1): + ok.String("Infinity") + + case math.IsInf(*v.StartValue, -1): + ok.String("-Infinity") + + default: + ok.Double(*v.StartValue) - if v.Stops != nil { - ok := object.Key("Stops") - if err := awsRestjson1_serializeDocumentGradientStopList(v.Stops, ok); err != nil { - return err } } return nil } -func awsRestjson1_serializeDocumentGradientStop(v *types.GradientStop, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentHistogramConfiguration(v *types.HistogramConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Color != nil { - ok := object.Key("Color") - ok.String(*v.Color) + if v.BinOptions != nil { + ok := object.Key("BinOptions") + if err := awsRestjson1_serializeDocumentHistogramBinOptions(v.BinOptions, ok); err != nil { + return err + } } - if v.DataValue != nil { - ok := object.Key("DataValue") - switch { - case math.IsNaN(*v.DataValue): - ok.String("NaN") + if v.DataLabels != nil { + ok := object.Key("DataLabels") + if err := awsRestjson1_serializeDocumentDataLabelOptions(v.DataLabels, ok); err != nil { + return err + } + } - case math.IsInf(*v.DataValue, 1): - ok.String("Infinity") + if v.FieldWells != nil { + ok := object.Key("FieldWells") + if err := awsRestjson1_serializeDocumentHistogramFieldWells(v.FieldWells, ok); err != nil { + return err + } + } - case math.IsInf(*v.DataValue, -1): - ok.String("-Infinity") + if v.Tooltip != nil { + ok := object.Key("Tooltip") + if err := awsRestjson1_serializeDocumentTooltipOptions(v.Tooltip, ok); err != nil { + return err + } + } - default: - ok.Double(*v.DataValue) + if v.VisualPalette != nil { + ok := object.Key("VisualPalette") + if err := awsRestjson1_serializeDocumentVisualPalette(v.VisualPalette, ok); err != nil { + return err + } + } + if v.XAxisDisplayOptions != nil { + ok := object.Key("XAxisDisplayOptions") + if err := awsRestjson1_serializeDocumentAxisDisplayOptions(v.XAxisDisplayOptions, ok); err != nil { + return err } } - { - ok := object.Key("GradientOffset") - switch { - case math.IsNaN(v.GradientOffset): - ok.String("NaN") + if v.XAxisLabelOptions != nil { + ok := object.Key("XAxisLabelOptions") + if err := awsRestjson1_serializeDocumentChartAxisLabelOptions(v.XAxisLabelOptions, ok); err != nil { + return err + } + } - case math.IsInf(v.GradientOffset, 1): - ok.String("Infinity") + if v.YAxisDisplayOptions != nil { + ok := object.Key("YAxisDisplayOptions") + if err := awsRestjson1_serializeDocumentAxisDisplayOptions(v.YAxisDisplayOptions, ok); err != nil { + return err + } + } - case math.IsInf(v.GradientOffset, -1): - ok.String("-Infinity") + return nil +} - default: - ok.Double(v.GradientOffset) +func awsRestjson1_serializeDocumentHistogramFieldWells(v *types.HistogramFieldWells, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + if v.HistogramAggregatedFieldWells != nil { + ok := object.Key("HistogramAggregatedFieldWells") + if err := awsRestjson1_serializeDocumentHistogramAggregatedFieldWells(v.HistogramAggregatedFieldWells, ok); err != nil { + return err } } return nil } -func awsRestjson1_serializeDocumentGradientStopList(v []types.GradientStop, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentHistogramMeasureFieldList(v []types.MeasureField, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if err := awsRestjson1_serializeDocumentGradientStop(&v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentMeasureField(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentGridLayoutCanvasSizeOptions(v *types.GridLayoutCanvasSizeOptions, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentHistogramVisual(v *types.HistogramVisual, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.ScreenCanvasSizeOptions != nil { - ok := object.Key("ScreenCanvasSizeOptions") - if err := awsRestjson1_serializeDocumentGridLayoutScreenCanvasSizeOptions(v.ScreenCanvasSizeOptions, ok); err != nil { + if v.Actions != nil { + ok := object.Key("Actions") + if err := awsRestjson1_serializeDocumentVisualCustomActionList(v.Actions, ok); err != nil { return err } } - return nil -} - -func awsRestjson1_serializeDocumentGridLayoutConfiguration(v *types.GridLayoutConfiguration, value smithyjson.Value) error { - object := value.Object() - defer object.Close() + if v.ChartConfiguration != nil { + ok := object.Key("ChartConfiguration") + if err := awsRestjson1_serializeDocumentHistogramConfiguration(v.ChartConfiguration, ok); err != nil { + return err + } + } - if v.CanvasSizeOptions != nil { - ok := object.Key("CanvasSizeOptions") - if err := awsRestjson1_serializeDocumentGridLayoutCanvasSizeOptions(v.CanvasSizeOptions, ok); err != nil { + if v.Subtitle != nil { + ok := object.Key("Subtitle") + if err := awsRestjson1_serializeDocumentVisualSubtitleLabelOptions(v.Subtitle, ok); err != nil { return err } } - if v.Elements != nil { - ok := object.Key("Elements") - if err := awsRestjson1_serializeDocumentGridLayoutElementList(v.Elements, ok); err != nil { + if v.Title != nil { + ok := object.Key("Title") + if err := awsRestjson1_serializeDocumentVisualTitleLabelOptions(v.Title, ok); err != nil { return err } } + if v.VisualId != nil { + ok := object.Key("VisualId") + ok.String(*v.VisualId) + } + return nil } -func awsRestjson1_serializeDocumentGridLayoutElement(v *types.GridLayoutElement, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentIdentityMap(v map[string][]string, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.ColumnIndex != nil { - ok := object.Key("ColumnIndex") - ok.Integer(*v.ColumnIndex) - } - - if v.ColumnSpan != nil { - ok := object.Key("ColumnSpan") - ok.Integer(*v.ColumnSpan) - } - - if v.ElementId != nil { - ok := object.Key("ElementId") - ok.String(*v.ElementId) - } - - if len(v.ElementType) > 0 { - ok := object.Key("ElementType") - ok.String(string(v.ElementType)) - } - - if v.RowIndex != nil { - ok := object.Key("RowIndex") - ok.Integer(*v.RowIndex) - } - - if v.RowSpan != nil { - ok := object.Key("RowSpan") - ok.Integer(*v.RowSpan) + for key := range v { + om := object.Key(key) + if vv := v[key]; vv == nil { + continue + } + if err := awsRestjson1_serializeDocumentIdentityNameList(v[key], om); err != nil { + return err + } } - return nil } -func awsRestjson1_serializeDocumentGridLayoutElementList(v []types.GridLayoutElement, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentIdentityNameList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if err := awsRestjson1_serializeDocumentGridLayoutElement(&v[i], av); err != nil { - return err - } + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentGridLayoutScreenCanvasSizeOptions(v *types.GridLayoutScreenCanvasSizeOptions, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentIncrementalRefresh(v *types.IncrementalRefresh, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.OptimizedViewPortWidth != nil { - ok := object.Key("OptimizedViewPortWidth") - ok.String(*v.OptimizedViewPortWidth) - } - - if len(v.ResizeOption) > 0 { - ok := object.Key("ResizeOption") - ok.String(string(v.ResizeOption)) + if v.LookbackWindow != nil { + ok := object.Key("LookbackWindow") + if err := awsRestjson1_serializeDocumentLookbackWindow(v.LookbackWindow, ok); err != nil { + return err + } } return nil } -func awsRestjson1_serializeDocumentGroupSearchFilter(v *types.GroupSearchFilter, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentInputColumn(v *types.InputColumn, value smithyjson.Value) error { object := value.Object() defer object.Close() - if len(v.Name) > 0 { + if v.Name != nil { ok := object.Key("Name") - ok.String(string(v.Name)) - } - - if len(v.Operator) > 0 { - ok := object.Key("Operator") - ok.String(string(v.Operator)) + ok.String(*v.Name) } - if v.Value != nil { - ok := object.Key("Value") - ok.String(*v.Value) + if len(v.Type) > 0 { + ok := object.Key("Type") + ok.String(string(v.Type)) } return nil } -func awsRestjson1_serializeDocumentGroupSearchFilterList(v []types.GroupSearchFilter, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentInputColumnList(v []types.InputColumn, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if err := awsRestjson1_serializeDocumentGroupSearchFilter(&v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentInputColumn(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentGroupsList(v []string, value smithyjson.Value) error { - array := value.Array() - defer array.Close() +func awsRestjson1_serializeDocumentInsightConfiguration(v *types.InsightConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() - for i := range v { - av := array.Value() - av.String(v[i]) + if v.Computations != nil { + ok := object.Key("Computations") + if err := awsRestjson1_serializeDocumentComputationList(v.Computations, ok); err != nil { + return err + } + } + + if v.CustomNarrative != nil { + ok := object.Key("CustomNarrative") + if err := awsRestjson1_serializeDocumentCustomNarrativeOptions(v.CustomNarrative, ok); err != nil { + return err + } } + return nil } -func awsRestjson1_serializeDocumentGrowthRateComputation(v *types.GrowthRateComputation, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentInsightVisual(v *types.InsightVisual, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.ComputationId != nil { - ok := object.Key("ComputationId") - ok.String(*v.ComputationId) + if v.Actions != nil { + ok := object.Key("Actions") + if err := awsRestjson1_serializeDocumentVisualCustomActionList(v.Actions, ok); err != nil { + return err + } } - if v.Name != nil { - ok := object.Key("Name") - ok.String(*v.Name) + if v.DataSetIdentifier != nil { + ok := object.Key("DataSetIdentifier") + ok.String(*v.DataSetIdentifier) } - if v.PeriodSize != 0 { - ok := object.Key("PeriodSize") - ok.Integer(v.PeriodSize) + if v.InsightConfiguration != nil { + ok := object.Key("InsightConfiguration") + if err := awsRestjson1_serializeDocumentInsightConfiguration(v.InsightConfiguration, ok); err != nil { + return err + } } - if v.Time != nil { - ok := object.Key("Time") - if err := awsRestjson1_serializeDocumentDimensionField(v.Time, ok); err != nil { + if v.Subtitle != nil { + ok := object.Key("Subtitle") + if err := awsRestjson1_serializeDocumentVisualSubtitleLabelOptions(v.Subtitle, ok); err != nil { return err } } - if v.Value != nil { - ok := object.Key("Value") - if err := awsRestjson1_serializeDocumentMeasureField(v.Value, ok); err != nil { + if v.Title != nil { + ok := object.Key("Title") + if err := awsRestjson1_serializeDocumentVisualTitleLabelOptions(v.Title, ok); err != nil { return err } } + if v.VisualId != nil { + ok := object.Key("VisualId") + ok.String(*v.VisualId) + } + return nil } -func awsRestjson1_serializeDocumentGutterStyle(v *types.GutterStyle, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentIntegerDatasetParameter(v *types.IntegerDatasetParameter, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Show != nil { - ok := object.Key("Show") - ok.Boolean(*v.Show) + if v.DefaultValues != nil { + ok := object.Key("DefaultValues") + if err := awsRestjson1_serializeDocumentIntegerDatasetParameterDefaultValues(v.DefaultValues, ok); err != nil { + return err + } + } + + if v.Id != nil { + ok := object.Key("Id") + ok.String(*v.Id) + } + + if v.Name != nil { + ok := object.Key("Name") + ok.String(*v.Name) + } + + if len(v.ValueType) > 0 { + ok := object.Key("ValueType") + ok.String(string(v.ValueType)) } return nil } -func awsRestjson1_serializeDocumentHeaderFooterSectionConfiguration(v *types.HeaderFooterSectionConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentIntegerDatasetParameterDefaultValues(v *types.IntegerDatasetParameterDefaultValues, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Layout != nil { - ok := object.Key("Layout") - if err := awsRestjson1_serializeDocumentSectionLayoutConfiguration(v.Layout, ok); err != nil { + if v.StaticValues != nil { + ok := object.Key("StaticValues") + if err := awsRestjson1_serializeDocumentIntegerDatasetParameterValueList(v.StaticValues, ok); err != nil { return err } } - if v.SectionId != nil { - ok := object.Key("SectionId") - ok.String(*v.SectionId) - } + return nil +} - if v.Style != nil { - ok := object.Key("Style") - if err := awsRestjson1_serializeDocumentSectionStyle(v.Style, ok); err != nil { - return err - } - } +func awsRestjson1_serializeDocumentIntegerDatasetParameterValueList(v []int64, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + for i := range v { + av := array.Value() + av.Long(v[i]) + } return nil } -func awsRestjson1_serializeDocumentHeaderFooterSectionConfigurationList(v []types.HeaderFooterSectionConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentIntegerDefaultValueList(v []int64, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if err := awsRestjson1_serializeDocumentHeaderFooterSectionConfiguration(&v[i], av); err != nil { - return err - } + av.Long(v[i]) } return nil } -func awsRestjson1_serializeDocumentHeatMapAggregatedFieldWells(v *types.HeatMapAggregatedFieldWells, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentIntegerDefaultValues(v *types.IntegerDefaultValues, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Columns != nil { - ok := object.Key("Columns") - if err := awsRestjson1_serializeDocumentHeatMapDimensionFieldList(v.Columns, ok); err != nil { + if v.DynamicValue != nil { + ok := object.Key("DynamicValue") + if err := awsRestjson1_serializeDocumentDynamicDefaultValue(v.DynamicValue, ok); err != nil { return err } } - if v.Rows != nil { - ok := object.Key("Rows") - if err := awsRestjson1_serializeDocumentHeatMapDimensionFieldList(v.Rows, ok); err != nil { + if v.StaticValues != nil { + ok := object.Key("StaticValues") + if err := awsRestjson1_serializeDocumentIntegerDefaultValueList(v.StaticValues, ok); err != nil { return err } } + return nil +} + +func awsRestjson1_serializeDocumentIntegerParameter(v *types.IntegerParameter, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Name != nil { + ok := object.Key("Name") + ok.String(*v.Name) + } + if v.Values != nil { ok := object.Key("Values") - if err := awsRestjson1_serializeDocumentHeatMapMeasureFieldList(v.Values, ok); err != nil { + if err := awsRestjson1_serializeDocumentSensitiveLongList(v.Values, ok); err != nil { return err } } @@ -19172,198 +21778,236 @@ func awsRestjson1_serializeDocumentHeatMapAggregatedFieldWells(v *types.HeatMapA return nil } -func awsRestjson1_serializeDocumentHeatMapConfiguration(v *types.HeatMapConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentIntegerParameterDeclaration(v *types.IntegerParameterDeclaration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.ColorScale != nil { - ok := object.Key("ColorScale") - if err := awsRestjson1_serializeDocumentColorScale(v.ColorScale, ok); err != nil { + if v.DefaultValues != nil { + ok := object.Key("DefaultValues") + if err := awsRestjson1_serializeDocumentIntegerDefaultValues(v.DefaultValues, ok); err != nil { return err } } - if v.ColumnLabelOptions != nil { - ok := object.Key("ColumnLabelOptions") - if err := awsRestjson1_serializeDocumentChartAxisLabelOptions(v.ColumnLabelOptions, ok); err != nil { + if v.MappedDataSetParameters != nil { + ok := object.Key("MappedDataSetParameters") + if err := awsRestjson1_serializeDocumentMappedDataSetParameters(v.MappedDataSetParameters, ok); err != nil { return err } } - if v.DataLabels != nil { - ok := object.Key("DataLabels") - if err := awsRestjson1_serializeDocumentDataLabelOptions(v.DataLabels, ok); err != nil { - return err - } + if v.Name != nil { + ok := object.Key("Name") + ok.String(*v.Name) } - if v.FieldWells != nil { - ok := object.Key("FieldWells") - if err := awsRestjson1_serializeDocumentHeatMapFieldWells(v.FieldWells, ok); err != nil { - return err - } + if len(v.ParameterValueType) > 0 { + ok := object.Key("ParameterValueType") + ok.String(string(v.ParameterValueType)) } - if v.Legend != nil { - ok := object.Key("Legend") - if err := awsRestjson1_serializeDocumentLegendOptions(v.Legend, ok); err != nil { + if v.ValueWhenUnset != nil { + ok := object.Key("ValueWhenUnset") + if err := awsRestjson1_serializeDocumentIntegerValueWhenUnsetConfiguration(v.ValueWhenUnset, ok); err != nil { return err } } - if v.RowLabelOptions != nil { - ok := object.Key("RowLabelOptions") - if err := awsRestjson1_serializeDocumentChartAxisLabelOptions(v.RowLabelOptions, ok); err != nil { + return nil +} + +func awsRestjson1_serializeDocumentIntegerParameterList(v []types.IntegerParameter, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentIntegerParameter(&v[i], av); err != nil { return err } } + return nil +} - if v.SortConfiguration != nil { - ok := object.Key("SortConfiguration") - if err := awsRestjson1_serializeDocumentHeatMapSortConfiguration(v.SortConfiguration, ok); err != nil { - return err - } +func awsRestjson1_serializeDocumentIntegerValueWhenUnsetConfiguration(v *types.IntegerValueWhenUnsetConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.CustomValue != nil { + ok := object.Key("CustomValue") + ok.Long(*v.CustomValue) } - if v.Tooltip != nil { - ok := object.Key("Tooltip") - if err := awsRestjson1_serializeDocumentTooltipOptions(v.Tooltip, ok); err != nil { - return err - } + if len(v.ValueWhenUnsetOption) > 0 { + ok := object.Key("ValueWhenUnsetOption") + ok.String(string(v.ValueWhenUnsetOption)) } return nil } -func awsRestjson1_serializeDocumentHeatMapDimensionFieldList(v []types.DimensionField, value smithyjson.Value) error { - array := value.Array() - defer array.Close() +func awsRestjson1_serializeDocumentIpRestrictionRuleMap(v map[string]string, value smithyjson.Value) error { + object := value.Object() + defer object.Close() - for i := range v { - av := array.Value() - if err := awsRestjson1_serializeDocumentDimensionField(&v[i], av); err != nil { - return err - } + for key := range v { + om := object.Key(key) + om.String(v[key]) } return nil } -func awsRestjson1_serializeDocumentHeatMapFieldWells(v *types.HeatMapFieldWells, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentItemsLimitConfiguration(v *types.ItemsLimitConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.HeatMapAggregatedFieldWells != nil { - ok := object.Key("HeatMapAggregatedFieldWells") - if err := awsRestjson1_serializeDocumentHeatMapAggregatedFieldWells(v.HeatMapAggregatedFieldWells, ok); err != nil { - return err - } + if v.ItemsLimit != nil { + ok := object.Key("ItemsLimit") + ok.Long(*v.ItemsLimit) + } + + if len(v.OtherCategories) > 0 { + ok := object.Key("OtherCategories") + ok.String(string(v.OtherCategories)) } return nil } -func awsRestjson1_serializeDocumentHeatMapMeasureFieldList(v []types.MeasureField, value smithyjson.Value) error { - array := value.Array() - defer array.Close() +func awsRestjson1_serializeDocumentJiraParameters(v *types.JiraParameters, value smithyjson.Value) error { + object := value.Object() + defer object.Close() - for i := range v { - av := array.Value() - if err := awsRestjson1_serializeDocumentMeasureField(&v[i], av); err != nil { - return err - } + if v.SiteBaseUrl != nil { + ok := object.Key("SiteBaseUrl") + ok.String(*v.SiteBaseUrl) } + return nil } -func awsRestjson1_serializeDocumentHeatMapSortConfiguration(v *types.HeatMapSortConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentJoinInstruction(v *types.JoinInstruction, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.HeatMapColumnItemsLimitConfiguration != nil { - ok := object.Key("HeatMapColumnItemsLimitConfiguration") - if err := awsRestjson1_serializeDocumentItemsLimitConfiguration(v.HeatMapColumnItemsLimitConfiguration, ok); err != nil { + if v.LeftJoinKeyProperties != nil { + ok := object.Key("LeftJoinKeyProperties") + if err := awsRestjson1_serializeDocumentJoinKeyProperties(v.LeftJoinKeyProperties, ok); err != nil { return err } } - if v.HeatMapColumnSort != nil { - ok := object.Key("HeatMapColumnSort") - if err := awsRestjson1_serializeDocumentFieldSortOptionsList(v.HeatMapColumnSort, ok); err != nil { - return err - } + if v.LeftOperand != nil { + ok := object.Key("LeftOperand") + ok.String(*v.LeftOperand) } - if v.HeatMapRowItemsLimitConfiguration != nil { - ok := object.Key("HeatMapRowItemsLimitConfiguration") - if err := awsRestjson1_serializeDocumentItemsLimitConfiguration(v.HeatMapRowItemsLimitConfiguration, ok); err != nil { - return err - } + if v.OnClause != nil { + ok := object.Key("OnClause") + ok.String(*v.OnClause) } - if v.HeatMapRowSort != nil { - ok := object.Key("HeatMapRowSort") - if err := awsRestjson1_serializeDocumentFieldSortOptionsList(v.HeatMapRowSort, ok); err != nil { + if v.RightJoinKeyProperties != nil { + ok := object.Key("RightJoinKeyProperties") + if err := awsRestjson1_serializeDocumentJoinKeyProperties(v.RightJoinKeyProperties, ok); err != nil { return err } } + if v.RightOperand != nil { + ok := object.Key("RightOperand") + ok.String(*v.RightOperand) + } + + if len(v.Type) > 0 { + ok := object.Key("Type") + ok.String(string(v.Type)) + } + return nil } -func awsRestjson1_serializeDocumentHeatMapVisual(v *types.HeatMapVisual, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentJoinKeyProperties(v *types.JoinKeyProperties, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Actions != nil { - ok := object.Key("Actions") - if err := awsRestjson1_serializeDocumentVisualCustomActionList(v.Actions, ok); err != nil { - return err - } + if v.UniqueKey != nil { + ok := object.Key("UniqueKey") + ok.Boolean(*v.UniqueKey) } - if v.ChartConfiguration != nil { - ok := object.Key("ChartConfiguration") - if err := awsRestjson1_serializeDocumentHeatMapConfiguration(v.ChartConfiguration, ok); err != nil { + return nil +} + +func awsRestjson1_serializeDocumentKPIConditionalFormatting(v *types.KPIConditionalFormatting, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ConditionalFormattingOptions != nil { + ok := object.Key("ConditionalFormattingOptions") + if err := awsRestjson1_serializeDocumentKPIConditionalFormattingOptionList(v.ConditionalFormattingOptions, ok); err != nil { return err } } - if v.ColumnHierarchies != nil { - ok := object.Key("ColumnHierarchies") - if err := awsRestjson1_serializeDocumentColumnHierarchyList(v.ColumnHierarchies, ok); err != nil { + return nil +} + +func awsRestjson1_serializeDocumentKPIConditionalFormattingOption(v *types.KPIConditionalFormattingOption, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.PrimaryValue != nil { + ok := object.Key("PrimaryValue") + if err := awsRestjson1_serializeDocumentKPIPrimaryValueConditionalFormatting(v.PrimaryValue, ok); err != nil { return err } } - if v.Subtitle != nil { - ok := object.Key("Subtitle") - if err := awsRestjson1_serializeDocumentVisualSubtitleLabelOptions(v.Subtitle, ok); err != nil { + if v.ProgressBar != nil { + ok := object.Key("ProgressBar") + if err := awsRestjson1_serializeDocumentKPIProgressBarConditionalFormatting(v.ProgressBar, ok); err != nil { return err } } - if v.Title != nil { - ok := object.Key("Title") - if err := awsRestjson1_serializeDocumentVisualTitleLabelOptions(v.Title, ok); err != nil { + return nil +} + +func awsRestjson1_serializeDocumentKPIConditionalFormattingOptionList(v []types.KPIConditionalFormattingOption, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentKPIConditionalFormattingOption(&v[i], av); err != nil { return err } } - - if v.VisualId != nil { - ok := object.Key("VisualId") - ok.String(*v.VisualId) - } - return nil } -func awsRestjson1_serializeDocumentHistogramAggregatedFieldWells(v *types.HistogramAggregatedFieldWells, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentKPIConfiguration(v *types.KPIConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Values != nil { - ok := object.Key("Values") - if err := awsRestjson1_serializeDocumentHistogramMeasureFieldList(v.Values, ok); err != nil { + if v.FieldWells != nil { + ok := object.Key("FieldWells") + if err := awsRestjson1_serializeDocumentKPIFieldWells(v.FieldWells, ok); err != nil { + return err + } + } + + if v.KPIOptions != nil { + ok := object.Key("KPIOptions") + if err := awsRestjson1_serializeDocumentKPIOptions(v.KPIOptions, ok); err != nil { + return err + } + } + + if v.SortConfiguration != nil { + ok := object.Key("SortConfiguration") + if err := awsRestjson1_serializeDocumentKPISortConfiguration(v.SortConfiguration, ok); err != nil { return err } } @@ -19371,106 +22015,102 @@ func awsRestjson1_serializeDocumentHistogramAggregatedFieldWells(v *types.Histog return nil } -func awsRestjson1_serializeDocumentHistogramBinOptions(v *types.HistogramBinOptions, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentKPIFieldWells(v *types.KPIFieldWells, value smithyjson.Value) error { object := value.Object() - defer object.Close() - - if v.BinCount != nil { - ok := object.Key("BinCount") - if err := awsRestjson1_serializeDocumentBinCountOptions(v.BinCount, ok); err != nil { + defer object.Close() + + if v.TargetValues != nil { + ok := object.Key("TargetValues") + if err := awsRestjson1_serializeDocumentMeasureFieldList(v.TargetValues, ok); err != nil { return err } } - if v.BinWidth != nil { - ok := object.Key("BinWidth") - if err := awsRestjson1_serializeDocumentBinWidthOptions(v.BinWidth, ok); err != nil { + if v.TrendGroups != nil { + ok := object.Key("TrendGroups") + if err := awsRestjson1_serializeDocumentDimensionFieldList(v.TrendGroups, ok); err != nil { return err } } - if len(v.SelectedBinType) > 0 { - ok := object.Key("SelectedBinType") - ok.String(string(v.SelectedBinType)) - } - - if v.StartValue != nil { - ok := object.Key("StartValue") - switch { - case math.IsNaN(*v.StartValue): - ok.String("NaN") - - case math.IsInf(*v.StartValue, 1): - ok.String("Infinity") - - case math.IsInf(*v.StartValue, -1): - ok.String("-Infinity") - - default: - ok.Double(*v.StartValue) - + if v.Values != nil { + ok := object.Key("Values") + if err := awsRestjson1_serializeDocumentMeasureFieldList(v.Values, ok); err != nil { + return err } } return nil } -func awsRestjson1_serializeDocumentHistogramConfiguration(v *types.HistogramConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentKPIOptions(v *types.KPIOptions, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.BinOptions != nil { - ok := object.Key("BinOptions") - if err := awsRestjson1_serializeDocumentHistogramBinOptions(v.BinOptions, ok); err != nil { + if v.Comparison != nil { + ok := object.Key("Comparison") + if err := awsRestjson1_serializeDocumentComparisonConfiguration(v.Comparison, ok); err != nil { return err } } - if v.DataLabels != nil { - ok := object.Key("DataLabels") - if err := awsRestjson1_serializeDocumentDataLabelOptions(v.DataLabels, ok); err != nil { + if len(v.PrimaryValueDisplayType) > 0 { + ok := object.Key("PrimaryValueDisplayType") + ok.String(string(v.PrimaryValueDisplayType)) + } + + if v.PrimaryValueFontConfiguration != nil { + ok := object.Key("PrimaryValueFontConfiguration") + if err := awsRestjson1_serializeDocumentFontConfiguration(v.PrimaryValueFontConfiguration, ok); err != nil { return err } } - if v.FieldWells != nil { - ok := object.Key("FieldWells") - if err := awsRestjson1_serializeDocumentHistogramFieldWells(v.FieldWells, ok); err != nil { + if v.ProgressBar != nil { + ok := object.Key("ProgressBar") + if err := awsRestjson1_serializeDocumentProgressBarOptions(v.ProgressBar, ok); err != nil { return err } } - if v.Tooltip != nil { - ok := object.Key("Tooltip") - if err := awsRestjson1_serializeDocumentTooltipOptions(v.Tooltip, ok); err != nil { + if v.SecondaryValue != nil { + ok := object.Key("SecondaryValue") + if err := awsRestjson1_serializeDocumentSecondaryValueOptions(v.SecondaryValue, ok); err != nil { return err } } - if v.VisualPalette != nil { - ok := object.Key("VisualPalette") - if err := awsRestjson1_serializeDocumentVisualPalette(v.VisualPalette, ok); err != nil { + if v.SecondaryValueFontConfiguration != nil { + ok := object.Key("SecondaryValueFontConfiguration") + if err := awsRestjson1_serializeDocumentFontConfiguration(v.SecondaryValueFontConfiguration, ok); err != nil { return err } } - if v.XAxisDisplayOptions != nil { - ok := object.Key("XAxisDisplayOptions") - if err := awsRestjson1_serializeDocumentAxisDisplayOptions(v.XAxisDisplayOptions, ok); err != nil { + if v.TrendArrows != nil { + ok := object.Key("TrendArrows") + if err := awsRestjson1_serializeDocumentTrendArrowOptions(v.TrendArrows, ok); err != nil { return err } } - if v.XAxisLabelOptions != nil { - ok := object.Key("XAxisLabelOptions") - if err := awsRestjson1_serializeDocumentChartAxisLabelOptions(v.XAxisLabelOptions, ok); err != nil { + return nil +} + +func awsRestjson1_serializeDocumentKPIPrimaryValueConditionalFormatting(v *types.KPIPrimaryValueConditionalFormatting, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Icon != nil { + ok := object.Key("Icon") + if err := awsRestjson1_serializeDocumentConditionalFormattingIcon(v.Icon, ok); err != nil { return err } } - if v.YAxisDisplayOptions != nil { - ok := object.Key("YAxisDisplayOptions") - if err := awsRestjson1_serializeDocumentAxisDisplayOptions(v.YAxisDisplayOptions, ok); err != nil { + if v.TextColor != nil { + ok := object.Key("TextColor") + if err := awsRestjson1_serializeDocumentConditionalFormattingColor(v.TextColor, ok); err != nil { return err } } @@ -19478,13 +22118,13 @@ func awsRestjson1_serializeDocumentHistogramConfiguration(v *types.HistogramConf return nil } -func awsRestjson1_serializeDocumentHistogramFieldWells(v *types.HistogramFieldWells, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentKPIProgressBarConditionalFormatting(v *types.KPIProgressBarConditionalFormatting, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.HistogramAggregatedFieldWells != nil { - ok := object.Key("HistogramAggregatedFieldWells") - if err := awsRestjson1_serializeDocumentHistogramAggregatedFieldWells(v.HistogramAggregatedFieldWells, ok); err != nil { + if v.ForegroundColor != nil { + ok := object.Key("ForegroundColor") + if err := awsRestjson1_serializeDocumentConditionalFormattingColor(v.ForegroundColor, ok); err != nil { return err } } @@ -19492,20 +22132,21 @@ func awsRestjson1_serializeDocumentHistogramFieldWells(v *types.HistogramFieldWe return nil } -func awsRestjson1_serializeDocumentHistogramMeasureFieldList(v []types.MeasureField, value smithyjson.Value) error { - array := value.Array() - defer array.Close() +func awsRestjson1_serializeDocumentKPISortConfiguration(v *types.KPISortConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() - for i := range v { - av := array.Value() - if err := awsRestjson1_serializeDocumentMeasureField(&v[i], av); err != nil { + if v.TrendGroupSort != nil { + ok := object.Key("TrendGroupSort") + if err := awsRestjson1_serializeDocumentFieldSortOptionsList(v.TrendGroupSort, ok); err != nil { return err } } + return nil } -func awsRestjson1_serializeDocumentHistogramVisual(v *types.HistogramVisual, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentKPIVisual(v *types.KPIVisual, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -19518,7 +22159,21 @@ func awsRestjson1_serializeDocumentHistogramVisual(v *types.HistogramVisual, val if v.ChartConfiguration != nil { ok := object.Key("ChartConfiguration") - if err := awsRestjson1_serializeDocumentHistogramConfiguration(v.ChartConfiguration, ok); err != nil { + if err := awsRestjson1_serializeDocumentKPIConfiguration(v.ChartConfiguration, ok); err != nil { + return err + } + } + + if v.ColumnHierarchies != nil { + ok := object.Key("ColumnHierarchies") + if err := awsRestjson1_serializeDocumentColumnHierarchyList(v.ColumnHierarchies, ok); err != nil { + return err + } + } + + if v.ConditionalFormatting != nil { + ok := object.Key("ConditionalFormatting") + if err := awsRestjson1_serializeDocumentKPIConditionalFormatting(v.ConditionalFormatting, ok); err != nil { return err } } @@ -19545,40 +22200,37 @@ func awsRestjson1_serializeDocumentHistogramVisual(v *types.HistogramVisual, val return nil } -func awsRestjson1_serializeDocumentIdentityMap(v map[string][]string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentLabelOptions(v *types.LabelOptions, value smithyjson.Value) error { object := value.Object() defer object.Close() - for key := range v { - om := object.Key(key) - if vv := v[key]; vv == nil { - continue - } - if err := awsRestjson1_serializeDocumentIdentityNameList(v[key], om); err != nil { + if v.CustomLabel != nil { + ok := object.Key("CustomLabel") + ok.String(*v.CustomLabel) + } + + if v.FontConfiguration != nil { + ok := object.Key("FontConfiguration") + if err := awsRestjson1_serializeDocumentFontConfiguration(v.FontConfiguration, ok); err != nil { return err } } - return nil -} - -func awsRestjson1_serializeDocumentIdentityNameList(v []string, value smithyjson.Value) error { - array := value.Array() - defer array.Close() - for i := range v { - av := array.Value() - av.String(v[i]) + if len(v.Visibility) > 0 { + ok := object.Key("Visibility") + ok.String(string(v.Visibility)) } + return nil } -func awsRestjson1_serializeDocumentIncrementalRefresh(v *types.IncrementalRefresh, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentLayout(v *types.Layout, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.LookbackWindow != nil { - ok := object.Key("LookbackWindow") - if err := awsRestjson1_serializeDocumentLookbackWindow(v.LookbackWindow, ok); err != nil { + if v.Configuration != nil { + ok := object.Key("Configuration") + if err := awsRestjson1_serializeDocumentLayoutConfiguration(v.Configuration, ok); err != nil { return err } } @@ -19586,50 +22238,109 @@ func awsRestjson1_serializeDocumentIncrementalRefresh(v *types.IncrementalRefres return nil } -func awsRestjson1_serializeDocumentInputColumn(v *types.InputColumn, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentLayoutConfiguration(v *types.LayoutConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Name != nil { - ok := object.Key("Name") - ok.String(*v.Name) + if v.FreeFormLayout != nil { + ok := object.Key("FreeFormLayout") + if err := awsRestjson1_serializeDocumentFreeFormLayoutConfiguration(v.FreeFormLayout, ok); err != nil { + return err + } } - if len(v.Type) > 0 { - ok := object.Key("Type") - ok.String(string(v.Type)) + if v.GridLayout != nil { + ok := object.Key("GridLayout") + if err := awsRestjson1_serializeDocumentGridLayoutConfiguration(v.GridLayout, ok); err != nil { + return err + } + } + + if v.SectionBasedLayout != nil { + ok := object.Key("SectionBasedLayout") + if err := awsRestjson1_serializeDocumentSectionBasedLayoutConfiguration(v.SectionBasedLayout, ok); err != nil { + return err + } } return nil } -func awsRestjson1_serializeDocumentInputColumnList(v []types.InputColumn, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentLayoutList(v []types.Layout, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if err := awsRestjson1_serializeDocumentInputColumn(&v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentLayout(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentInsightConfiguration(v *types.InsightConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentLegendOptions(v *types.LegendOptions, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Computations != nil { - ok := object.Key("Computations") - if err := awsRestjson1_serializeDocumentComputationList(v.Computations, ok); err != nil { + if v.Height != nil { + ok := object.Key("Height") + ok.String(*v.Height) + } + + if len(v.Position) > 0 { + ok := object.Key("Position") + ok.String(string(v.Position)) + } + + if v.Title != nil { + ok := object.Key("Title") + if err := awsRestjson1_serializeDocumentLabelOptions(v.Title, ok); err != nil { + return err + } + } + + if len(v.Visibility) > 0 { + ok := object.Key("Visibility") + ok.String(string(v.Visibility)) + } + + if v.Width != nil { + ok := object.Key("Width") + ok.String(*v.Width) + } + + return nil +} + +func awsRestjson1_serializeDocumentLineChartAggregatedFieldWells(v *types.LineChartAggregatedFieldWells, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Category != nil { + ok := object.Key("Category") + if err := awsRestjson1_serializeDocumentDimensionFieldList(v.Category, ok); err != nil { + return err + } + } + + if v.Colors != nil { + ok := object.Key("Colors") + if err := awsRestjson1_serializeDocumentDimensionFieldList(v.Colors, ok); err != nil { + return err + } + } + + if v.SmallMultiples != nil { + ok := object.Key("SmallMultiples") + if err := awsRestjson1_serializeDocumentSmallMultiplesDimensionFieldList(v.SmallMultiples, ok); err != nil { return err } } - if v.CustomNarrative != nil { - ok := object.Key("CustomNarrative") - if err := awsRestjson1_serializeDocumentCustomNarrativeOptions(v.CustomNarrative, ok); err != nil { + if v.Values != nil { + ok := object.Key("Values") + if err := awsRestjson1_serializeDocumentMeasureFieldList(v.Values, ok); err != nil { return err } } @@ -19637,284 +22348,252 @@ func awsRestjson1_serializeDocumentInsightConfiguration(v *types.InsightConfigur return nil } -func awsRestjson1_serializeDocumentInsightVisual(v *types.InsightVisual, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentLineChartConfiguration(v *types.LineChartConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Actions != nil { - ok := object.Key("Actions") - if err := awsRestjson1_serializeDocumentVisualCustomActionList(v.Actions, ok); err != nil { + if v.ContributionAnalysisDefaults != nil { + ok := object.Key("ContributionAnalysisDefaults") + if err := awsRestjson1_serializeDocumentContributionAnalysisDefaultList(v.ContributionAnalysisDefaults, ok); err != nil { return err } } - if v.DataSetIdentifier != nil { - ok := object.Key("DataSetIdentifier") - ok.String(*v.DataSetIdentifier) + if v.DataLabels != nil { + ok := object.Key("DataLabels") + if err := awsRestjson1_serializeDocumentDataLabelOptions(v.DataLabels, ok); err != nil { + return err + } } - if v.InsightConfiguration != nil { - ok := object.Key("InsightConfiguration") - if err := awsRestjson1_serializeDocumentInsightConfiguration(v.InsightConfiguration, ok); err != nil { + if v.DefaultSeriesSettings != nil { + ok := object.Key("DefaultSeriesSettings") + if err := awsRestjson1_serializeDocumentLineChartDefaultSeriesSettings(v.DefaultSeriesSettings, ok); err != nil { return err } } - if v.Subtitle != nil { - ok := object.Key("Subtitle") - if err := awsRestjson1_serializeDocumentVisualSubtitleLabelOptions(v.Subtitle, ok); err != nil { + if v.FieldWells != nil { + ok := object.Key("FieldWells") + if err := awsRestjson1_serializeDocumentLineChartFieldWells(v.FieldWells, ok); err != nil { return err } } - if v.Title != nil { - ok := object.Key("Title") - if err := awsRestjson1_serializeDocumentVisualTitleLabelOptions(v.Title, ok); err != nil { + if v.ForecastConfigurations != nil { + ok := object.Key("ForecastConfigurations") + if err := awsRestjson1_serializeDocumentForecastConfigurationList(v.ForecastConfigurations, ok); err != nil { return err } } - if v.VisualId != nil { - ok := object.Key("VisualId") - ok.String(*v.VisualId) + if v.Legend != nil { + ok := object.Key("Legend") + if err := awsRestjson1_serializeDocumentLegendOptions(v.Legend, ok); err != nil { + return err + } } - return nil -} - -func awsRestjson1_serializeDocumentIntegerDefaultValueList(v []int64, value smithyjson.Value) error { - array := value.Array() - defer array.Close() - - for i := range v { - av := array.Value() - av.Long(v[i]) + if v.PrimaryYAxisDisplayOptions != nil { + ok := object.Key("PrimaryYAxisDisplayOptions") + if err := awsRestjson1_serializeDocumentLineSeriesAxisDisplayOptions(v.PrimaryYAxisDisplayOptions, ok); err != nil { + return err + } } - return nil -} - -func awsRestjson1_serializeDocumentIntegerDefaultValues(v *types.IntegerDefaultValues, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - if v.DynamicValue != nil { - ok := object.Key("DynamicValue") - if err := awsRestjson1_serializeDocumentDynamicDefaultValue(v.DynamicValue, ok); err != nil { + if v.PrimaryYAxisLabelOptions != nil { + ok := object.Key("PrimaryYAxisLabelOptions") + if err := awsRestjson1_serializeDocumentChartAxisLabelOptions(v.PrimaryYAxisLabelOptions, ok); err != nil { return err } } - if v.StaticValues != nil { - ok := object.Key("StaticValues") - if err := awsRestjson1_serializeDocumentIntegerDefaultValueList(v.StaticValues, ok); err != nil { + if v.ReferenceLines != nil { + ok := object.Key("ReferenceLines") + if err := awsRestjson1_serializeDocumentReferenceLineList(v.ReferenceLines, ok); err != nil { return err } } - return nil -} - -func awsRestjson1_serializeDocumentIntegerParameter(v *types.IntegerParameter, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Name != nil { - ok := object.Key("Name") - ok.String(*v.Name) + if v.SecondaryYAxisDisplayOptions != nil { + ok := object.Key("SecondaryYAxisDisplayOptions") + if err := awsRestjson1_serializeDocumentLineSeriesAxisDisplayOptions(v.SecondaryYAxisDisplayOptions, ok); err != nil { + return err + } } - if v.Values != nil { - ok := object.Key("Values") - if err := awsRestjson1_serializeDocumentSensitiveLongList(v.Values, ok); err != nil { + if v.SecondaryYAxisLabelOptions != nil { + ok := object.Key("SecondaryYAxisLabelOptions") + if err := awsRestjson1_serializeDocumentChartAxisLabelOptions(v.SecondaryYAxisLabelOptions, ok); err != nil { return err } } - return nil -} - -func awsRestjson1_serializeDocumentIntegerParameterDeclaration(v *types.IntegerParameterDeclaration, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.DefaultValues != nil { - ok := object.Key("DefaultValues") - if err := awsRestjson1_serializeDocumentIntegerDefaultValues(v.DefaultValues, ok); err != nil { + if v.Series != nil { + ok := object.Key("Series") + if err := awsRestjson1_serializeDocumentSeriesItemList(v.Series, ok); err != nil { return err } } - if v.Name != nil { - ok := object.Key("Name") - ok.String(*v.Name) + if v.SmallMultiplesOptions != nil { + ok := object.Key("SmallMultiplesOptions") + if err := awsRestjson1_serializeDocumentSmallMultiplesOptions(v.SmallMultiplesOptions, ok); err != nil { + return err + } } - if len(v.ParameterValueType) > 0 { - ok := object.Key("ParameterValueType") - ok.String(string(v.ParameterValueType)) + if v.SortConfiguration != nil { + ok := object.Key("SortConfiguration") + if err := awsRestjson1_serializeDocumentLineChartSortConfiguration(v.SortConfiguration, ok); err != nil { + return err + } } - if v.ValueWhenUnset != nil { - ok := object.Key("ValueWhenUnset") - if err := awsRestjson1_serializeDocumentIntegerValueWhenUnsetConfiguration(v.ValueWhenUnset, ok); err != nil { + if v.Tooltip != nil { + ok := object.Key("Tooltip") + if err := awsRestjson1_serializeDocumentTooltipOptions(v.Tooltip, ok); err != nil { return err } } - return nil -} - -func awsRestjson1_serializeDocumentIntegerParameterList(v []types.IntegerParameter, value smithyjson.Value) error { - array := value.Array() - defer array.Close() + if len(v.Type) > 0 { + ok := object.Key("Type") + ok.String(string(v.Type)) + } - for i := range v { - av := array.Value() - if err := awsRestjson1_serializeDocumentIntegerParameter(&v[i], av); err != nil { + if v.VisualPalette != nil { + ok := object.Key("VisualPalette") + if err := awsRestjson1_serializeDocumentVisualPalette(v.VisualPalette, ok); err != nil { return err } } - return nil -} - -func awsRestjson1_serializeDocumentIntegerValueWhenUnsetConfiguration(v *types.IntegerValueWhenUnsetConfiguration, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - if v.CustomValue != nil { - ok := object.Key("CustomValue") - ok.Long(*v.CustomValue) + if v.XAxisDisplayOptions != nil { + ok := object.Key("XAxisDisplayOptions") + if err := awsRestjson1_serializeDocumentAxisDisplayOptions(v.XAxisDisplayOptions, ok); err != nil { + return err + } } - if len(v.ValueWhenUnsetOption) > 0 { - ok := object.Key("ValueWhenUnsetOption") - ok.String(string(v.ValueWhenUnsetOption)) + if v.XAxisLabelOptions != nil { + ok := object.Key("XAxisLabelOptions") + if err := awsRestjson1_serializeDocumentChartAxisLabelOptions(v.XAxisLabelOptions, ok); err != nil { + return err + } } return nil } -func awsRestjson1_serializeDocumentIpRestrictionRuleMap(v map[string]string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentLineChartDefaultSeriesSettings(v *types.LineChartDefaultSeriesSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() - for key := range v { - om := object.Key(key) - om.String(v[key]) + if len(v.AxisBinding) > 0 { + ok := object.Key("AxisBinding") + ok.String(string(v.AxisBinding)) } - return nil -} - -func awsRestjson1_serializeDocumentItemsLimitConfiguration(v *types.ItemsLimitConfiguration, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - if v.ItemsLimit != nil { - ok := object.Key("ItemsLimit") - ok.Long(*v.ItemsLimit) + if v.LineStyleSettings != nil { + ok := object.Key("LineStyleSettings") + if err := awsRestjson1_serializeDocumentLineChartLineStyleSettings(v.LineStyleSettings, ok); err != nil { + return err + } } - if len(v.OtherCategories) > 0 { - ok := object.Key("OtherCategories") - ok.String(string(v.OtherCategories)) + if v.MarkerStyleSettings != nil { + ok := object.Key("MarkerStyleSettings") + if err := awsRestjson1_serializeDocumentLineChartMarkerStyleSettings(v.MarkerStyleSettings, ok); err != nil { + return err + } } return nil } -func awsRestjson1_serializeDocumentJiraParameters(v *types.JiraParameters, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentLineChartFieldWells(v *types.LineChartFieldWells, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.SiteBaseUrl != nil { - ok := object.Key("SiteBaseUrl") - ok.String(*v.SiteBaseUrl) + if v.LineChartAggregatedFieldWells != nil { + ok := object.Key("LineChartAggregatedFieldWells") + if err := awsRestjson1_serializeDocumentLineChartAggregatedFieldWells(v.LineChartAggregatedFieldWells, ok); err != nil { + return err + } } return nil } -func awsRestjson1_serializeDocumentJoinInstruction(v *types.JoinInstruction, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentLineChartLineStyleSettings(v *types.LineChartLineStyleSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.LeftJoinKeyProperties != nil { - ok := object.Key("LeftJoinKeyProperties") - if err := awsRestjson1_serializeDocumentJoinKeyProperties(v.LeftJoinKeyProperties, ok); err != nil { - return err - } - } - - if v.LeftOperand != nil { - ok := object.Key("LeftOperand") - ok.String(*v.LeftOperand) - } - - if v.OnClause != nil { - ok := object.Key("OnClause") - ok.String(*v.OnClause) - } - - if v.RightJoinKeyProperties != nil { - ok := object.Key("RightJoinKeyProperties") - if err := awsRestjson1_serializeDocumentJoinKeyProperties(v.RightJoinKeyProperties, ok); err != nil { - return err - } + if len(v.LineInterpolation) > 0 { + ok := object.Key("LineInterpolation") + ok.String(string(v.LineInterpolation)) } - if v.RightOperand != nil { - ok := object.Key("RightOperand") - ok.String(*v.RightOperand) + if len(v.LineStyle) > 0 { + ok := object.Key("LineStyle") + ok.String(string(v.LineStyle)) } - if len(v.Type) > 0 { - ok := object.Key("Type") - ok.String(string(v.Type)) + if len(v.LineVisibility) > 0 { + ok := object.Key("LineVisibility") + ok.String(string(v.LineVisibility)) + } + + if v.LineWidth != nil { + ok := object.Key("LineWidth") + ok.String(*v.LineWidth) } return nil } -func awsRestjson1_serializeDocumentJoinKeyProperties(v *types.JoinKeyProperties, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentLineChartMarkerStyleSettings(v *types.LineChartMarkerStyleSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.UniqueKey != nil { - ok := object.Key("UniqueKey") - ok.Boolean(*v.UniqueKey) + if v.MarkerColor != nil { + ok := object.Key("MarkerColor") + ok.String(*v.MarkerColor) } - return nil -} + if len(v.MarkerShape) > 0 { + ok := object.Key("MarkerShape") + ok.String(string(v.MarkerShape)) + } -func awsRestjson1_serializeDocumentKPIConditionalFormatting(v *types.KPIConditionalFormatting, value smithyjson.Value) error { - object := value.Object() - defer object.Close() + if v.MarkerSize != nil { + ok := object.Key("MarkerSize") + ok.String(*v.MarkerSize) + } - if v.ConditionalFormattingOptions != nil { - ok := object.Key("ConditionalFormattingOptions") - if err := awsRestjson1_serializeDocumentKPIConditionalFormattingOptionList(v.ConditionalFormattingOptions, ok); err != nil { - return err - } + if len(v.MarkerVisibility) > 0 { + ok := object.Key("MarkerVisibility") + ok.String(string(v.MarkerVisibility)) } return nil } -func awsRestjson1_serializeDocumentKPIConditionalFormattingOption(v *types.KPIConditionalFormattingOption, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentLineChartSeriesSettings(v *types.LineChartSeriesSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.PrimaryValue != nil { - ok := object.Key("PrimaryValue") - if err := awsRestjson1_serializeDocumentKPIPrimaryValueConditionalFormatting(v.PrimaryValue, ok); err != nil { + if v.LineStyleSettings != nil { + ok := object.Key("LineStyleSettings") + if err := awsRestjson1_serializeDocumentLineChartLineStyleSettings(v.LineStyleSettings, ok); err != nil { return err } } - if v.ProgressBar != nil { - ok := object.Key("ProgressBar") - if err := awsRestjson1_serializeDocumentKPIProgressBarConditionalFormatting(v.ProgressBar, ok); err != nil { + if v.MarkerStyleSettings != nil { + ok := object.Key("MarkerStyleSettings") + if err := awsRestjson1_serializeDocumentLineChartMarkerStyleSettings(v.MarkerStyleSettings, ok); err != nil { return err } } @@ -19922,68 +22601,41 @@ func awsRestjson1_serializeDocumentKPIConditionalFormattingOption(v *types.KPICo return nil } -func awsRestjson1_serializeDocumentKPIConditionalFormattingOptionList(v []types.KPIConditionalFormattingOption, value smithyjson.Value) error { - array := value.Array() - defer array.Close() - - for i := range v { - av := array.Value() - if err := awsRestjson1_serializeDocumentKPIConditionalFormattingOption(&v[i], av); err != nil { - return err - } - } - return nil -} - -func awsRestjson1_serializeDocumentKPIConfiguration(v *types.KPIConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentLineChartSortConfiguration(v *types.LineChartSortConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.FieldWells != nil { - ok := object.Key("FieldWells") - if err := awsRestjson1_serializeDocumentKPIFieldWells(v.FieldWells, ok); err != nil { - return err - } - } - - if v.KPIOptions != nil { - ok := object.Key("KPIOptions") - if err := awsRestjson1_serializeDocumentKPIOptions(v.KPIOptions, ok); err != nil { + if v.CategoryItemsLimitConfiguration != nil { + ok := object.Key("CategoryItemsLimitConfiguration") + if err := awsRestjson1_serializeDocumentItemsLimitConfiguration(v.CategoryItemsLimitConfiguration, ok); err != nil { return err } } - if v.SortConfiguration != nil { - ok := object.Key("SortConfiguration") - if err := awsRestjson1_serializeDocumentKPISortConfiguration(v.SortConfiguration, ok); err != nil { + if v.CategorySort != nil { + ok := object.Key("CategorySort") + if err := awsRestjson1_serializeDocumentFieldSortOptionsList(v.CategorySort, ok); err != nil { return err } } - return nil -} - -func awsRestjson1_serializeDocumentKPIFieldWells(v *types.KPIFieldWells, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.TargetValues != nil { - ok := object.Key("TargetValues") - if err := awsRestjson1_serializeDocumentMeasureFieldList(v.TargetValues, ok); err != nil { + if v.ColorItemsLimitConfiguration != nil { + ok := object.Key("ColorItemsLimitConfiguration") + if err := awsRestjson1_serializeDocumentItemsLimitConfiguration(v.ColorItemsLimitConfiguration, ok); err != nil { return err } } - if v.TrendGroups != nil { - ok := object.Key("TrendGroups") - if err := awsRestjson1_serializeDocumentDimensionFieldList(v.TrendGroups, ok); err != nil { + if v.SmallMultiplesLimitConfiguration != nil { + ok := object.Key("SmallMultiplesLimitConfiguration") + if err := awsRestjson1_serializeDocumentItemsLimitConfiguration(v.SmallMultiplesLimitConfiguration, ok); err != nil { return err } } - if v.Values != nil { - ok := object.Key("Values") - if err := awsRestjson1_serializeDocumentMeasureFieldList(v.Values, ok); err != nil { + if v.SmallMultiplesSort != nil { + ok := object.Key("SmallMultiplesSort") + if err := awsRestjson1_serializeDocumentFieldSortOptionsList(v.SmallMultiplesSort, ok); err != nil { return err } } @@ -19991,74 +22643,67 @@ func awsRestjson1_serializeDocumentKPIFieldWells(v *types.KPIFieldWells, value s return nil } -func awsRestjson1_serializeDocumentKPIOptions(v *types.KPIOptions, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentLineChartVisual(v *types.LineChartVisual, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Comparison != nil { - ok := object.Key("Comparison") - if err := awsRestjson1_serializeDocumentComparisonConfiguration(v.Comparison, ok); err != nil { + if v.Actions != nil { + ok := object.Key("Actions") + if err := awsRestjson1_serializeDocumentVisualCustomActionList(v.Actions, ok); err != nil { return err } } - if len(v.PrimaryValueDisplayType) > 0 { - ok := object.Key("PrimaryValueDisplayType") - ok.String(string(v.PrimaryValueDisplayType)) - } - - if v.PrimaryValueFontConfiguration != nil { - ok := object.Key("PrimaryValueFontConfiguration") - if err := awsRestjson1_serializeDocumentFontConfiguration(v.PrimaryValueFontConfiguration, ok); err != nil { + if v.ChartConfiguration != nil { + ok := object.Key("ChartConfiguration") + if err := awsRestjson1_serializeDocumentLineChartConfiguration(v.ChartConfiguration, ok); err != nil { return err } } - if v.ProgressBar != nil { - ok := object.Key("ProgressBar") - if err := awsRestjson1_serializeDocumentProgressBarOptions(v.ProgressBar, ok); err != nil { + if v.ColumnHierarchies != nil { + ok := object.Key("ColumnHierarchies") + if err := awsRestjson1_serializeDocumentColumnHierarchyList(v.ColumnHierarchies, ok); err != nil { return err } } - if v.SecondaryValue != nil { - ok := object.Key("SecondaryValue") - if err := awsRestjson1_serializeDocumentSecondaryValueOptions(v.SecondaryValue, ok); err != nil { + if v.Subtitle != nil { + ok := object.Key("Subtitle") + if err := awsRestjson1_serializeDocumentVisualSubtitleLabelOptions(v.Subtitle, ok); err != nil { return err } } - if v.SecondaryValueFontConfiguration != nil { - ok := object.Key("SecondaryValueFontConfiguration") - if err := awsRestjson1_serializeDocumentFontConfiguration(v.SecondaryValueFontConfiguration, ok); err != nil { + if v.Title != nil { + ok := object.Key("Title") + if err := awsRestjson1_serializeDocumentVisualTitleLabelOptions(v.Title, ok); err != nil { return err } } - if v.TrendArrows != nil { - ok := object.Key("TrendArrows") - if err := awsRestjson1_serializeDocumentTrendArrowOptions(v.TrendArrows, ok); err != nil { - return err - } + if v.VisualId != nil { + ok := object.Key("VisualId") + ok.String(*v.VisualId) } return nil } -func awsRestjson1_serializeDocumentKPIPrimaryValueConditionalFormatting(v *types.KPIPrimaryValueConditionalFormatting, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentLineSeriesAxisDisplayOptions(v *types.LineSeriesAxisDisplayOptions, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Icon != nil { - ok := object.Key("Icon") - if err := awsRestjson1_serializeDocumentConditionalFormattingIcon(v.Icon, ok); err != nil { + if v.AxisOptions != nil { + ok := object.Key("AxisOptions") + if err := awsRestjson1_serializeDocumentAxisDisplayOptions(v.AxisOptions, ok); err != nil { return err } } - if v.TextColor != nil { - ok := object.Key("TextColor") - if err := awsRestjson1_serializeDocumentConditionalFormattingColor(v.TextColor, ok); err != nil { + if v.MissingDataConfigurations != nil { + ok := object.Key("MissingDataConfigurations") + if err := awsRestjson1_serializeDocumentMissingDataConfigurationList(v.MissingDataConfigurations, ok); err != nil { return err } } @@ -20066,13 +22711,27 @@ func awsRestjson1_serializeDocumentKPIPrimaryValueConditionalFormatting(v *types return nil } -func awsRestjson1_serializeDocumentKPIProgressBarConditionalFormatting(v *types.KPIProgressBarConditionalFormatting, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentListControlDisplayOptions(v *types.ListControlDisplayOptions, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.ForegroundColor != nil { - ok := object.Key("ForegroundColor") - if err := awsRestjson1_serializeDocumentConditionalFormattingColor(v.ForegroundColor, ok); err != nil { + if v.SearchOptions != nil { + ok := object.Key("SearchOptions") + if err := awsRestjson1_serializeDocumentListControlSearchOptions(v.SearchOptions, ok); err != nil { + return err + } + } + + if v.SelectAllOptions != nil { + ok := object.Key("SelectAllOptions") + if err := awsRestjson1_serializeDocumentListControlSelectAllOptions(v.SelectAllOptions, ok); err != nil { + return err + } + } + + if v.TitleOptions != nil { + ok := object.Key("TitleOptions") + if err := awsRestjson1_serializeDocumentLabelOptions(v.TitleOptions, ok); err != nil { return err } } @@ -20080,353 +22739,365 @@ func awsRestjson1_serializeDocumentKPIProgressBarConditionalFormatting(v *types. return nil } -func awsRestjson1_serializeDocumentKPISortConfiguration(v *types.KPISortConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentListControlSearchOptions(v *types.ListControlSearchOptions, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.TrendGroupSort != nil { - ok := object.Key("TrendGroupSort") - if err := awsRestjson1_serializeDocumentFieldSortOptionsList(v.TrendGroupSort, ok); err != nil { - return err - } + if len(v.Visibility) > 0 { + ok := object.Key("Visibility") + ok.String(string(v.Visibility)) } return nil } -func awsRestjson1_serializeDocumentKPIVisual(v *types.KPIVisual, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentListControlSelectAllOptions(v *types.ListControlSelectAllOptions, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Actions != nil { - ok := object.Key("Actions") - if err := awsRestjson1_serializeDocumentVisualCustomActionList(v.Actions, ok); err != nil { - return err - } + if len(v.Visibility) > 0 { + ok := object.Key("Visibility") + ok.String(string(v.Visibility)) } - if v.ChartConfiguration != nil { - ok := object.Key("ChartConfiguration") - if err := awsRestjson1_serializeDocumentKPIConfiguration(v.ChartConfiguration, ok); err != nil { - return err - } - } + return nil +} - if v.ColumnHierarchies != nil { - ok := object.Key("ColumnHierarchies") - if err := awsRestjson1_serializeDocumentColumnHierarchyList(v.ColumnHierarchies, ok); err != nil { - return err - } - } +func awsRestjson1_serializeDocumentLoadingAnimation(v *types.LoadingAnimation, value smithyjson.Value) error { + object := value.Object() + defer object.Close() - if v.ConditionalFormatting != nil { - ok := object.Key("ConditionalFormatting") - if err := awsRestjson1_serializeDocumentKPIConditionalFormatting(v.ConditionalFormatting, ok); err != nil { - return err - } + if len(v.Visibility) > 0 { + ok := object.Key("Visibility") + ok.String(string(v.Visibility)) } - if v.Subtitle != nil { - ok := object.Key("Subtitle") - if err := awsRestjson1_serializeDocumentVisualSubtitleLabelOptions(v.Subtitle, ok); err != nil { - return err - } - } + return nil +} - if v.Title != nil { - ok := object.Key("Title") - if err := awsRestjson1_serializeDocumentVisualTitleLabelOptions(v.Title, ok); err != nil { - return err - } - } +func awsRestjson1_serializeDocumentLocalNavigationConfiguration(v *types.LocalNavigationConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() - if v.VisualId != nil { - ok := object.Key("VisualId") - ok.String(*v.VisualId) + if v.TargetSheetId != nil { + ok := object.Key("TargetSheetId") + ok.String(*v.TargetSheetId) } return nil } -func awsRestjson1_serializeDocumentLabelOptions(v *types.LabelOptions, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentLogicalTable(v *types.LogicalTable, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.CustomLabel != nil { - ok := object.Key("CustomLabel") - ok.String(*v.CustomLabel) + if v.Alias != nil { + ok := object.Key("Alias") + ok.String(*v.Alias) } - if v.FontConfiguration != nil { - ok := object.Key("FontConfiguration") - if err := awsRestjson1_serializeDocumentFontConfiguration(v.FontConfiguration, ok); err != nil { + if v.DataTransforms != nil { + ok := object.Key("DataTransforms") + if err := awsRestjson1_serializeDocumentTransformOperationList(v.DataTransforms, ok); err != nil { return err } } - if len(v.Visibility) > 0 { - ok := object.Key("Visibility") - ok.String(string(v.Visibility)) + if v.Source != nil { + ok := object.Key("Source") + if err := awsRestjson1_serializeDocumentLogicalTableSource(v.Source, ok); err != nil { + return err + } } return nil } -func awsRestjson1_serializeDocumentLayout(v *types.Layout, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentLogicalTableMap(v map[string]types.LogicalTable, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Configuration != nil { - ok := object.Key("Configuration") - if err := awsRestjson1_serializeDocumentLayoutConfiguration(v.Configuration, ok); err != nil { + for key := range v { + om := object.Key(key) + mapVar := v[key] + if err := awsRestjson1_serializeDocumentLogicalTable(&mapVar, om); err != nil { return err } } - return nil } -func awsRestjson1_serializeDocumentLayoutConfiguration(v *types.LayoutConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentLogicalTableSource(v *types.LogicalTableSource, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.FreeFormLayout != nil { - ok := object.Key("FreeFormLayout") - if err := awsRestjson1_serializeDocumentFreeFormLayoutConfiguration(v.FreeFormLayout, ok); err != nil { - return err - } + if v.DataSetArn != nil { + ok := object.Key("DataSetArn") + ok.String(*v.DataSetArn) } - if v.GridLayout != nil { - ok := object.Key("GridLayout") - if err := awsRestjson1_serializeDocumentGridLayoutConfiguration(v.GridLayout, ok); err != nil { + if v.JoinInstruction != nil { + ok := object.Key("JoinInstruction") + if err := awsRestjson1_serializeDocumentJoinInstruction(v.JoinInstruction, ok); err != nil { return err } } - if v.SectionBasedLayout != nil { - ok := object.Key("SectionBasedLayout") - if err := awsRestjson1_serializeDocumentSectionBasedLayoutConfiguration(v.SectionBasedLayout, ok); err != nil { - return err - } + if v.PhysicalTableId != nil { + ok := object.Key("PhysicalTableId") + ok.String(*v.PhysicalTableId) } return nil } -func awsRestjson1_serializeDocumentLayoutList(v []types.Layout, value smithyjson.Value) error { - array := value.Array() - defer array.Close() +func awsRestjson1_serializeDocumentLongFormatText(v *types.LongFormatText, value smithyjson.Value) error { + object := value.Object() + defer object.Close() - for i := range v { - av := array.Value() - if err := awsRestjson1_serializeDocumentLayout(&v[i], av); err != nil { - return err - } + if v.PlainText != nil { + ok := object.Key("PlainText") + ok.String(*v.PlainText) + } + + if v.RichText != nil { + ok := object.Key("RichText") + ok.String(*v.RichText) } + return nil } -func awsRestjson1_serializeDocumentLegendOptions(v *types.LegendOptions, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentLookbackWindow(v *types.LookbackWindow, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Height != nil { - ok := object.Key("Height") - ok.String(*v.Height) + if v.ColumnName != nil { + ok := object.Key("ColumnName") + ok.String(*v.ColumnName) } - if len(v.Position) > 0 { - ok := object.Key("Position") - ok.String(string(v.Position)) + { + ok := object.Key("Size") + ok.Long(v.Size) } - if v.Title != nil { - ok := object.Key("Title") - if err := awsRestjson1_serializeDocumentLabelOptions(v.Title, ok); err != nil { - return err - } + if len(v.SizeUnit) > 0 { + ok := object.Key("SizeUnit") + ok.String(string(v.SizeUnit)) } - if len(v.Visibility) > 0 { - ok := object.Key("Visibility") - ok.String(string(v.Visibility)) + return nil +} + +func awsRestjson1_serializeDocumentManifestFileLocation(v *types.ManifestFileLocation, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Bucket != nil { + ok := object.Key("Bucket") + ok.String(*v.Bucket) } - if v.Width != nil { - ok := object.Key("Width") - ok.String(*v.Width) + if v.Key != nil { + ok := object.Key("Key") + ok.String(*v.Key) } return nil } -func awsRestjson1_serializeDocumentLineChartAggregatedFieldWells(v *types.LineChartAggregatedFieldWells, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentMappedDataSetParameter(v *types.MappedDataSetParameter, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Category != nil { - ok := object.Key("Category") - if err := awsRestjson1_serializeDocumentDimensionFieldList(v.Category, ok); err != nil { - return err - } + if v.DataSetIdentifier != nil { + ok := object.Key("DataSetIdentifier") + ok.String(*v.DataSetIdentifier) } - if v.Colors != nil { - ok := object.Key("Colors") - if err := awsRestjson1_serializeDocumentDimensionFieldList(v.Colors, ok); err != nil { - return err - } + if v.DataSetParameterName != nil { + ok := object.Key("DataSetParameterName") + ok.String(*v.DataSetParameterName) } - if v.SmallMultiples != nil { - ok := object.Key("SmallMultiples") - if err := awsRestjson1_serializeDocumentSmallMultiplesDimensionFieldList(v.SmallMultiples, ok); err != nil { + return nil +} + +func awsRestjson1_serializeDocumentMappedDataSetParameters(v []types.MappedDataSetParameter, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentMappedDataSetParameter(&v[i], av); err != nil { return err } } + return nil +} - if v.Values != nil { - ok := object.Key("Values") - if err := awsRestjson1_serializeDocumentMeasureFieldList(v.Values, ok); err != nil { - return err - } +func awsRestjson1_serializeDocumentMarginStyle(v *types.MarginStyle, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Show != nil { + ok := object.Key("Show") + ok.Boolean(*v.Show) } return nil } -func awsRestjson1_serializeDocumentLineChartConfiguration(v *types.LineChartConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentMariaDbParameters(v *types.MariaDbParameters, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.ContributionAnalysisDefaults != nil { - ok := object.Key("ContributionAnalysisDefaults") - if err := awsRestjson1_serializeDocumentContributionAnalysisDefaultList(v.ContributionAnalysisDefaults, ok); err != nil { - return err - } + if v.Database != nil { + ok := object.Key("Database") + ok.String(*v.Database) } - if v.DataLabels != nil { - ok := object.Key("DataLabels") - if err := awsRestjson1_serializeDocumentDataLabelOptions(v.DataLabels, ok); err != nil { - return err - } + if v.Host != nil { + ok := object.Key("Host") + ok.String(*v.Host) } - if v.DefaultSeriesSettings != nil { - ok := object.Key("DefaultSeriesSettings") - if err := awsRestjson1_serializeDocumentLineChartDefaultSeriesSettings(v.DefaultSeriesSettings, ok); err != nil { - return err - } + { + ok := object.Key("Port") + ok.Integer(v.Port) } - if v.FieldWells != nil { - ok := object.Key("FieldWells") - if err := awsRestjson1_serializeDocumentLineChartFieldWells(v.FieldWells, ok); err != nil { - return err - } - } + return nil +} - if v.ForecastConfigurations != nil { - ok := object.Key("ForecastConfigurations") - if err := awsRestjson1_serializeDocumentForecastConfigurationList(v.ForecastConfigurations, ok); err != nil { - return err - } +func awsRestjson1_serializeDocumentMaximumLabelType(v *types.MaximumLabelType, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if len(v.Visibility) > 0 { + ok := object.Key("Visibility") + ok.String(string(v.Visibility)) } - if v.Legend != nil { - ok := object.Key("Legend") - if err := awsRestjson1_serializeDocumentLegendOptions(v.Legend, ok); err != nil { - return err - } + return nil +} + +func awsRestjson1_serializeDocumentMaximumMinimumComputation(v *types.MaximumMinimumComputation, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ComputationId != nil { + ok := object.Key("ComputationId") + ok.String(*v.ComputationId) } - if v.PrimaryYAxisDisplayOptions != nil { - ok := object.Key("PrimaryYAxisDisplayOptions") - if err := awsRestjson1_serializeDocumentLineSeriesAxisDisplayOptions(v.PrimaryYAxisDisplayOptions, ok); err != nil { - return err - } + if v.Name != nil { + ok := object.Key("Name") + ok.String(*v.Name) } - if v.PrimaryYAxisLabelOptions != nil { - ok := object.Key("PrimaryYAxisLabelOptions") - if err := awsRestjson1_serializeDocumentChartAxisLabelOptions(v.PrimaryYAxisLabelOptions, ok); err != nil { + if v.Time != nil { + ok := object.Key("Time") + if err := awsRestjson1_serializeDocumentDimensionField(v.Time, ok); err != nil { return err } } - if v.ReferenceLines != nil { - ok := object.Key("ReferenceLines") - if err := awsRestjson1_serializeDocumentReferenceLineList(v.ReferenceLines, ok); err != nil { - return err - } + if len(v.Type) > 0 { + ok := object.Key("Type") + ok.String(string(v.Type)) } - if v.SecondaryYAxisDisplayOptions != nil { - ok := object.Key("SecondaryYAxisDisplayOptions") - if err := awsRestjson1_serializeDocumentLineSeriesAxisDisplayOptions(v.SecondaryYAxisDisplayOptions, ok); err != nil { + if v.Value != nil { + ok := object.Key("Value") + if err := awsRestjson1_serializeDocumentMeasureField(v.Value, ok); err != nil { return err } } - if v.SecondaryYAxisLabelOptions != nil { - ok := object.Key("SecondaryYAxisLabelOptions") - if err := awsRestjson1_serializeDocumentChartAxisLabelOptions(v.SecondaryYAxisLabelOptions, ok); err != nil { + return nil +} + +func awsRestjson1_serializeDocumentMeasureField(v *types.MeasureField, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.CalculatedMeasureField != nil { + ok := object.Key("CalculatedMeasureField") + if err := awsRestjson1_serializeDocumentCalculatedMeasureField(v.CalculatedMeasureField, ok); err != nil { return err } } - if v.Series != nil { - ok := object.Key("Series") - if err := awsRestjson1_serializeDocumentSeriesItemList(v.Series, ok); err != nil { + if v.CategoricalMeasureField != nil { + ok := object.Key("CategoricalMeasureField") + if err := awsRestjson1_serializeDocumentCategoricalMeasureField(v.CategoricalMeasureField, ok); err != nil { return err } } - if v.SmallMultiplesOptions != nil { - ok := object.Key("SmallMultiplesOptions") - if err := awsRestjson1_serializeDocumentSmallMultiplesOptions(v.SmallMultiplesOptions, ok); err != nil { + if v.DateMeasureField != nil { + ok := object.Key("DateMeasureField") + if err := awsRestjson1_serializeDocumentDateMeasureField(v.DateMeasureField, ok); err != nil { return err } } - if v.SortConfiguration != nil { - ok := object.Key("SortConfiguration") - if err := awsRestjson1_serializeDocumentLineChartSortConfiguration(v.SortConfiguration, ok); err != nil { + if v.NumericalMeasureField != nil { + ok := object.Key("NumericalMeasureField") + if err := awsRestjson1_serializeDocumentNumericalMeasureField(v.NumericalMeasureField, ok); err != nil { return err } } - if v.Tooltip != nil { - ok := object.Key("Tooltip") - if err := awsRestjson1_serializeDocumentTooltipOptions(v.Tooltip, ok); err != nil { + return nil +} + +func awsRestjson1_serializeDocumentMeasureFieldList(v []types.MeasureField, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentMeasureField(&v[i], av); err != nil { return err } } + return nil +} - if len(v.Type) > 0 { - ok := object.Key("Type") - ok.String(string(v.Type)) +func awsRestjson1_serializeDocumentMetricComparisonComputation(v *types.MetricComparisonComputation, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ComputationId != nil { + ok := object.Key("ComputationId") + ok.String(*v.ComputationId) } - if v.VisualPalette != nil { - ok := object.Key("VisualPalette") - if err := awsRestjson1_serializeDocumentVisualPalette(v.VisualPalette, ok); err != nil { + if v.FromValue != nil { + ok := object.Key("FromValue") + if err := awsRestjson1_serializeDocumentMeasureField(v.FromValue, ok); err != nil { return err } } - if v.XAxisDisplayOptions != nil { - ok := object.Key("XAxisDisplayOptions") - if err := awsRestjson1_serializeDocumentAxisDisplayOptions(v.XAxisDisplayOptions, ok); err != nil { + if v.Name != nil { + ok := object.Key("Name") + ok.String(*v.Name) + } + + if v.TargetValue != nil { + ok := object.Key("TargetValue") + if err := awsRestjson1_serializeDocumentMeasureField(v.TargetValue, ok); err != nil { return err } } - if v.XAxisLabelOptions != nil { - ok := object.Key("XAxisLabelOptions") - if err := awsRestjson1_serializeDocumentChartAxisLabelOptions(v.XAxisLabelOptions, ok); err != nil { + if v.Time != nil { + ok := object.Key("Time") + if err := awsRestjson1_serializeDocumentDimensionField(v.Time, ok); err != nil { return err } } @@ -20434,114 +23105,111 @@ func awsRestjson1_serializeDocumentLineChartConfiguration(v *types.LineChartConf return nil } -func awsRestjson1_serializeDocumentLineChartDefaultSeriesSettings(v *types.LineChartDefaultSeriesSettings, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentMinimumLabelType(v *types.MinimumLabelType, value smithyjson.Value) error { object := value.Object() defer object.Close() - if len(v.AxisBinding) > 0 { - ok := object.Key("AxisBinding") - ok.String(string(v.AxisBinding)) + if len(v.Visibility) > 0 { + ok := object.Key("Visibility") + ok.String(string(v.Visibility)) } - if v.LineStyleSettings != nil { - ok := object.Key("LineStyleSettings") - if err := awsRestjson1_serializeDocumentLineChartLineStyleSettings(v.LineStyleSettings, ok); err != nil { - return err - } - } + return nil +} - if v.MarkerStyleSettings != nil { - ok := object.Key("MarkerStyleSettings") - if err := awsRestjson1_serializeDocumentLineChartMarkerStyleSettings(v.MarkerStyleSettings, ok); err != nil { - return err - } +func awsRestjson1_serializeDocumentMissingDataConfiguration(v *types.MissingDataConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if len(v.TreatmentOption) > 0 { + ok := object.Key("TreatmentOption") + ok.String(string(v.TreatmentOption)) } return nil } -func awsRestjson1_serializeDocumentLineChartFieldWells(v *types.LineChartFieldWells, value smithyjson.Value) error { - object := value.Object() - defer object.Close() +func awsRestjson1_serializeDocumentMissingDataConfigurationList(v []types.MissingDataConfiguration, value smithyjson.Value) error { + array := value.Array() + defer array.Close() - if v.LineChartAggregatedFieldWells != nil { - ok := object.Key("LineChartAggregatedFieldWells") - if err := awsRestjson1_serializeDocumentLineChartAggregatedFieldWells(v.LineChartAggregatedFieldWells, ok); err != nil { + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentMissingDataConfiguration(&v[i], av); err != nil { return err } } - return nil } -func awsRestjson1_serializeDocumentLineChartLineStyleSettings(v *types.LineChartLineStyleSettings, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentMySqlParameters(v *types.MySqlParameters, value smithyjson.Value) error { object := value.Object() defer object.Close() - if len(v.LineInterpolation) > 0 { - ok := object.Key("LineInterpolation") - ok.String(string(v.LineInterpolation)) - } - - if len(v.LineStyle) > 0 { - ok := object.Key("LineStyle") - ok.String(string(v.LineStyle)) + if v.Database != nil { + ok := object.Key("Database") + ok.String(*v.Database) } - if len(v.LineVisibility) > 0 { - ok := object.Key("LineVisibility") - ok.String(string(v.LineVisibility)) + if v.Host != nil { + ok := object.Key("Host") + ok.String(*v.Host) } - if v.LineWidth != nil { - ok := object.Key("LineWidth") - ok.String(*v.LineWidth) + { + ok := object.Key("Port") + ok.Integer(v.Port) } return nil } -func awsRestjson1_serializeDocumentLineChartMarkerStyleSettings(v *types.LineChartMarkerStyleSettings, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentNamedEntityDefinition(v *types.NamedEntityDefinition, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.MarkerColor != nil { - ok := object.Key("MarkerColor") - ok.String(*v.MarkerColor) + if v.FieldName != nil { + ok := object.Key("FieldName") + ok.String(*v.FieldName) } - if len(v.MarkerShape) > 0 { - ok := object.Key("MarkerShape") - ok.String(string(v.MarkerShape)) + if v.Metric != nil { + ok := object.Key("Metric") + if err := awsRestjson1_serializeDocumentNamedEntityDefinitionMetric(v.Metric, ok); err != nil { + return err + } } - if v.MarkerSize != nil { - ok := object.Key("MarkerSize") - ok.String(*v.MarkerSize) + if v.PropertyName != nil { + ok := object.Key("PropertyName") + ok.String(*v.PropertyName) } - if len(v.MarkerVisibility) > 0 { - ok := object.Key("MarkerVisibility") - ok.String(string(v.MarkerVisibility)) + if len(v.PropertyRole) > 0 { + ok := object.Key("PropertyRole") + ok.String(string(v.PropertyRole)) + } + + if len(v.PropertyUsage) > 0 { + ok := object.Key("PropertyUsage") + ok.String(string(v.PropertyUsage)) } return nil } -func awsRestjson1_serializeDocumentLineChartSeriesSettings(v *types.LineChartSeriesSettings, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentNamedEntityDefinitionMetric(v *types.NamedEntityDefinitionMetric, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.LineStyleSettings != nil { - ok := object.Key("LineStyleSettings") - if err := awsRestjson1_serializeDocumentLineChartLineStyleSettings(v.LineStyleSettings, ok); err != nil { - return err - } + if len(v.Aggregation) > 0 { + ok := object.Key("Aggregation") + ok.String(string(v.Aggregation)) } - if v.MarkerStyleSettings != nil { - ok := object.Key("MarkerStyleSettings") - if err := awsRestjson1_serializeDocumentLineChartMarkerStyleSettings(v.MarkerStyleSettings, ok); err != nil { + if v.AggregationFunctionParameters != nil { + ok := object.Key("AggregationFunctionParameters") + if err := awsRestjson1_serializeDocumentAggregationFunctionParameters(v.AggregationFunctionParameters, ok); err != nil { return err } } @@ -20549,387 +23217,380 @@ func awsRestjson1_serializeDocumentLineChartSeriesSettings(v *types.LineChartSer return nil } -func awsRestjson1_serializeDocumentLineChartSortConfiguration(v *types.LineChartSortConfiguration, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.CategoryItemsLimitConfiguration != nil { - ok := object.Key("CategoryItemsLimitConfiguration") - if err := awsRestjson1_serializeDocumentItemsLimitConfiguration(v.CategoryItemsLimitConfiguration, ok); err != nil { - return err - } - } +func awsRestjson1_serializeDocumentNamedEntityDefinitions(v []types.NamedEntityDefinition, value smithyjson.Value) error { + array := value.Array() + defer array.Close() - if v.CategorySort != nil { - ok := object.Key("CategorySort") - if err := awsRestjson1_serializeDocumentFieldSortOptionsList(v.CategorySort, ok); err != nil { + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentNamedEntityDefinition(&v[i], av); err != nil { return err } } + return nil +} - if v.ColorItemsLimitConfiguration != nil { - ok := object.Key("ColorItemsLimitConfiguration") - if err := awsRestjson1_serializeDocumentItemsLimitConfiguration(v.ColorItemsLimitConfiguration, ok); err != nil { - return err - } - } +func awsRestjson1_serializeDocumentNegativeFormat(v *types.NegativeFormat, value smithyjson.Value) error { + object := value.Object() + defer object.Close() - if v.SmallMultiplesLimitConfiguration != nil { - ok := object.Key("SmallMultiplesLimitConfiguration") - if err := awsRestjson1_serializeDocumentItemsLimitConfiguration(v.SmallMultiplesLimitConfiguration, ok); err != nil { - return err - } + if v.Prefix != nil { + ok := object.Key("Prefix") + ok.String(*v.Prefix) } - if v.SmallMultiplesSort != nil { - ok := object.Key("SmallMultiplesSort") - if err := awsRestjson1_serializeDocumentFieldSortOptionsList(v.SmallMultiplesSort, ok); err != nil { - return err - } + if v.Suffix != nil { + ok := object.Key("Suffix") + ok.String(*v.Suffix) } return nil } -func awsRestjson1_serializeDocumentLineChartVisual(v *types.LineChartVisual, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentNegativeValueConfiguration(v *types.NegativeValueConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Actions != nil { - ok := object.Key("Actions") - if err := awsRestjson1_serializeDocumentVisualCustomActionList(v.Actions, ok); err != nil { - return err - } + if len(v.DisplayMode) > 0 { + ok := object.Key("DisplayMode") + ok.String(string(v.DisplayMode)) } - if v.ChartConfiguration != nil { - ok := object.Key("ChartConfiguration") - if err := awsRestjson1_serializeDocumentLineChartConfiguration(v.ChartConfiguration, ok); err != nil { + return nil +} + +func awsRestjson1_serializeDocumentNewDefaultValues(v *types.NewDefaultValues, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.DateTimeStaticValues != nil { + ok := object.Key("DateTimeStaticValues") + if err := awsRestjson1_serializeDocumentDateTimeDatasetParameterValueList(v.DateTimeStaticValues, ok); err != nil { return err } } - if v.ColumnHierarchies != nil { - ok := object.Key("ColumnHierarchies") - if err := awsRestjson1_serializeDocumentColumnHierarchyList(v.ColumnHierarchies, ok); err != nil { + if v.DecimalStaticValues != nil { + ok := object.Key("DecimalStaticValues") + if err := awsRestjson1_serializeDocumentDecimalDatasetParameterValueList(v.DecimalStaticValues, ok); err != nil { return err } } - if v.Subtitle != nil { - ok := object.Key("Subtitle") - if err := awsRestjson1_serializeDocumentVisualSubtitleLabelOptions(v.Subtitle, ok); err != nil { + if v.IntegerStaticValues != nil { + ok := object.Key("IntegerStaticValues") + if err := awsRestjson1_serializeDocumentIntegerDatasetParameterValueList(v.IntegerStaticValues, ok); err != nil { return err } } - if v.Title != nil { - ok := object.Key("Title") - if err := awsRestjson1_serializeDocumentVisualTitleLabelOptions(v.Title, ok); err != nil { + if v.StringStaticValues != nil { + ok := object.Key("StringStaticValues") + if err := awsRestjson1_serializeDocumentStringDatasetParameterValueList(v.StringStaticValues, ok); err != nil { return err } } - if v.VisualId != nil { - ok := object.Key("VisualId") - ok.String(*v.VisualId) - } - return nil } -func awsRestjson1_serializeDocumentLineSeriesAxisDisplayOptions(v *types.LineSeriesAxisDisplayOptions, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentNullValueFormatConfiguration(v *types.NullValueFormatConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.AxisOptions != nil { - ok := object.Key("AxisOptions") - if err := awsRestjson1_serializeDocumentAxisDisplayOptions(v.AxisOptions, ok); err != nil { - return err - } - } - - if v.MissingDataConfigurations != nil { - ok := object.Key("MissingDataConfigurations") - if err := awsRestjson1_serializeDocumentMissingDataConfigurationList(v.MissingDataConfigurations, ok); err != nil { - return err - } + if v.NullString != nil { + ok := object.Key("NullString") + ok.String(*v.NullString) } return nil } -func awsRestjson1_serializeDocumentListControlDisplayOptions(v *types.ListControlDisplayOptions, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentNumberDisplayFormatConfiguration(v *types.NumberDisplayFormatConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.SearchOptions != nil { - ok := object.Key("SearchOptions") - if err := awsRestjson1_serializeDocumentListControlSearchOptions(v.SearchOptions, ok); err != nil { + if v.DecimalPlacesConfiguration != nil { + ok := object.Key("DecimalPlacesConfiguration") + if err := awsRestjson1_serializeDocumentDecimalPlacesConfiguration(v.DecimalPlacesConfiguration, ok); err != nil { return err } } - if v.SelectAllOptions != nil { - ok := object.Key("SelectAllOptions") - if err := awsRestjson1_serializeDocumentListControlSelectAllOptions(v.SelectAllOptions, ok); err != nil { + if v.NegativeValueConfiguration != nil { + ok := object.Key("NegativeValueConfiguration") + if err := awsRestjson1_serializeDocumentNegativeValueConfiguration(v.NegativeValueConfiguration, ok); err != nil { return err } } - if v.TitleOptions != nil { - ok := object.Key("TitleOptions") - if err := awsRestjson1_serializeDocumentLabelOptions(v.TitleOptions, ok); err != nil { + if v.NullValueFormatConfiguration != nil { + ok := object.Key("NullValueFormatConfiguration") + if err := awsRestjson1_serializeDocumentNullValueFormatConfiguration(v.NullValueFormatConfiguration, ok); err != nil { return err } } - return nil -} - -func awsRestjson1_serializeDocumentListControlSearchOptions(v *types.ListControlSearchOptions, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if len(v.Visibility) > 0 { - ok := object.Key("Visibility") - ok.String(string(v.Visibility)) + if len(v.NumberScale) > 0 { + ok := object.Key("NumberScale") + ok.String(string(v.NumberScale)) } - return nil -} + if v.Prefix != nil { + ok := object.Key("Prefix") + ok.String(*v.Prefix) + } -func awsRestjson1_serializeDocumentListControlSelectAllOptions(v *types.ListControlSelectAllOptions, value smithyjson.Value) error { - object := value.Object() - defer object.Close() + if v.SeparatorConfiguration != nil { + ok := object.Key("SeparatorConfiguration") + if err := awsRestjson1_serializeDocumentNumericSeparatorConfiguration(v.SeparatorConfiguration, ok); err != nil { + return err + } + } - if len(v.Visibility) > 0 { - ok := object.Key("Visibility") - ok.String(string(v.Visibility)) + if v.Suffix != nil { + ok := object.Key("Suffix") + ok.String(*v.Suffix) } return nil } -func awsRestjson1_serializeDocumentLoadingAnimation(v *types.LoadingAnimation, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentNumberFormatConfiguration(v *types.NumberFormatConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if len(v.Visibility) > 0 { - ok := object.Key("Visibility") - ok.String(string(v.Visibility)) + if v.FormatConfiguration != nil { + ok := object.Key("FormatConfiguration") + if err := awsRestjson1_serializeDocumentNumericFormatConfiguration(v.FormatConfiguration, ok); err != nil { + return err + } } return nil } -func awsRestjson1_serializeDocumentLocalNavigationConfiguration(v *types.LocalNavigationConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentNumericalAggregationFunction(v *types.NumericalAggregationFunction, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.TargetSheetId != nil { - ok := object.Key("TargetSheetId") - ok.String(*v.TargetSheetId) + if v.PercentileAggregation != nil { + ok := object.Key("PercentileAggregation") + if err := awsRestjson1_serializeDocumentPercentileAggregation(v.PercentileAggregation, ok); err != nil { + return err + } + } + + if len(v.SimpleNumericalAggregation) > 0 { + ok := object.Key("SimpleNumericalAggregation") + ok.String(string(v.SimpleNumericalAggregation)) } return nil } -func awsRestjson1_serializeDocumentLogicalTable(v *types.LogicalTable, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentNumericalDimensionField(v *types.NumericalDimensionField, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Alias != nil { - ok := object.Key("Alias") - ok.String(*v.Alias) - } - - if v.DataTransforms != nil { - ok := object.Key("DataTransforms") - if err := awsRestjson1_serializeDocumentTransformOperationList(v.DataTransforms, ok); err != nil { + if v.Column != nil { + ok := object.Key("Column") + if err := awsRestjson1_serializeDocumentColumnIdentifier(v.Column, ok); err != nil { return err } } - if v.Source != nil { - ok := object.Key("Source") - if err := awsRestjson1_serializeDocumentLogicalTableSource(v.Source, ok); err != nil { + if v.FieldId != nil { + ok := object.Key("FieldId") + ok.String(*v.FieldId) + } + + if v.FormatConfiguration != nil { + ok := object.Key("FormatConfiguration") + if err := awsRestjson1_serializeDocumentNumberFormatConfiguration(v.FormatConfiguration, ok); err != nil { return err } } + if v.HierarchyId != nil { + ok := object.Key("HierarchyId") + ok.String(*v.HierarchyId) + } + return nil } -func awsRestjson1_serializeDocumentLogicalTableMap(v map[string]types.LogicalTable, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentNumericalMeasureField(v *types.NumericalMeasureField, value smithyjson.Value) error { object := value.Object() defer object.Close() - for key := range v { - om := object.Key(key) - mapVar := v[key] - if err := awsRestjson1_serializeDocumentLogicalTable(&mapVar, om); err != nil { + if v.AggregationFunction != nil { + ok := object.Key("AggregationFunction") + if err := awsRestjson1_serializeDocumentNumericalAggregationFunction(v.AggregationFunction, ok); err != nil { return err } } - return nil -} -func awsRestjson1_serializeDocumentLogicalTableSource(v *types.LogicalTableSource, value smithyjson.Value) error { - object := value.Object() - defer object.Close() + if v.Column != nil { + ok := object.Key("Column") + if err := awsRestjson1_serializeDocumentColumnIdentifier(v.Column, ok); err != nil { + return err + } + } - if v.DataSetArn != nil { - ok := object.Key("DataSetArn") - ok.String(*v.DataSetArn) + if v.FieldId != nil { + ok := object.Key("FieldId") + ok.String(*v.FieldId) } - if v.JoinInstruction != nil { - ok := object.Key("JoinInstruction") - if err := awsRestjson1_serializeDocumentJoinInstruction(v.JoinInstruction, ok); err != nil { + if v.FormatConfiguration != nil { + ok := object.Key("FormatConfiguration") + if err := awsRestjson1_serializeDocumentNumberFormatConfiguration(v.FormatConfiguration, ok); err != nil { return err } } - if v.PhysicalTableId != nil { - ok := object.Key("PhysicalTableId") - ok.String(*v.PhysicalTableId) - } - return nil } -func awsRestjson1_serializeDocumentLongFormatText(v *types.LongFormatText, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentNumericAxisOptions(v *types.NumericAxisOptions, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.PlainText != nil { - ok := object.Key("PlainText") - ok.String(*v.PlainText) + if v.Range != nil { + ok := object.Key("Range") + if err := awsRestjson1_serializeDocumentAxisDisplayRange(v.Range, ok); err != nil { + return err + } } - if v.RichText != nil { - ok := object.Key("RichText") - ok.String(*v.RichText) + if v.Scale != nil { + ok := object.Key("Scale") + if err := awsRestjson1_serializeDocumentAxisScale(v.Scale, ok); err != nil { + return err + } } return nil } -func awsRestjson1_serializeDocumentLookbackWindow(v *types.LookbackWindow, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentNumericEqualityDrillDownFilter(v *types.NumericEqualityDrillDownFilter, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.ColumnName != nil { - ok := object.Key("ColumnName") - ok.String(*v.ColumnName) + if v.Column != nil { + ok := object.Key("Column") + if err := awsRestjson1_serializeDocumentColumnIdentifier(v.Column, ok); err != nil { + return err + } } { - ok := object.Key("Size") - ok.Long(v.Size) - } - - if len(v.SizeUnit) > 0 { - ok := object.Key("SizeUnit") - ok.String(string(v.SizeUnit)) - } + ok := object.Key("Value") + switch { + case math.IsNaN(v.Value): + ok.String("NaN") - return nil -} + case math.IsInf(v.Value, 1): + ok.String("Infinity") -func awsRestjson1_serializeDocumentManifestFileLocation(v *types.ManifestFileLocation, value smithyjson.Value) error { - object := value.Object() - defer object.Close() + case math.IsInf(v.Value, -1): + ok.String("-Infinity") - if v.Bucket != nil { - ok := object.Key("Bucket") - ok.String(*v.Bucket) - } + default: + ok.Double(v.Value) - if v.Key != nil { - ok := object.Key("Key") - ok.String(*v.Key) + } } return nil } -func awsRestjson1_serializeDocumentMarginStyle(v *types.MarginStyle, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentNumericEqualityFilter(v *types.NumericEqualityFilter, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Show != nil { - ok := object.Key("Show") - ok.Boolean(*v.Show) + if v.AggregationFunction != nil { + ok := object.Key("AggregationFunction") + if err := awsRestjson1_serializeDocumentAggregationFunction(v.AggregationFunction, ok); err != nil { + return err + } } - return nil -} + if v.Column != nil { + ok := object.Key("Column") + if err := awsRestjson1_serializeDocumentColumnIdentifier(v.Column, ok); err != nil { + return err + } + } -func awsRestjson1_serializeDocumentMariaDbParameters(v *types.MariaDbParameters, value smithyjson.Value) error { - object := value.Object() - defer object.Close() + if v.FilterId != nil { + ok := object.Key("FilterId") + ok.String(*v.FilterId) + } - if v.Database != nil { - ok := object.Key("Database") - ok.String(*v.Database) + if len(v.MatchOperator) > 0 { + ok := object.Key("MatchOperator") + ok.String(string(v.MatchOperator)) } - if v.Host != nil { - ok := object.Key("Host") - ok.String(*v.Host) + if len(v.NullOption) > 0 { + ok := object.Key("NullOption") + ok.String(string(v.NullOption)) } - { - ok := object.Key("Port") - ok.Integer(v.Port) + if v.ParameterName != nil { + ok := object.Key("ParameterName") + ok.String(*v.ParameterName) + } + + if len(v.SelectAllOptions) > 0 { + ok := object.Key("SelectAllOptions") + ok.String(string(v.SelectAllOptions)) } - return nil -} + if v.Value != nil { + ok := object.Key("Value") + switch { + case math.IsNaN(*v.Value): + ok.String("NaN") + + case math.IsInf(*v.Value, 1): + ok.String("Infinity") -func awsRestjson1_serializeDocumentMaximumLabelType(v *types.MaximumLabelType, value smithyjson.Value) error { - object := value.Object() - defer object.Close() + case math.IsInf(*v.Value, -1): + ok.String("-Infinity") - if len(v.Visibility) > 0 { - ok := object.Key("Visibility") - ok.String(string(v.Visibility)) + default: + ok.Double(*v.Value) + + } } return nil } -func awsRestjson1_serializeDocumentMaximumMinimumComputation(v *types.MaximumMinimumComputation, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentNumericFormatConfiguration(v *types.NumericFormatConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.ComputationId != nil { - ok := object.Key("ComputationId") - ok.String(*v.ComputationId) - } - - if v.Name != nil { - ok := object.Key("Name") - ok.String(*v.Name) - } - - if v.Time != nil { - ok := object.Key("Time") - if err := awsRestjson1_serializeDocumentDimensionField(v.Time, ok); err != nil { + if v.CurrencyDisplayFormatConfiguration != nil { + ok := object.Key("CurrencyDisplayFormatConfiguration") + if err := awsRestjson1_serializeDocumentCurrencyDisplayFormatConfiguration(v.CurrencyDisplayFormatConfiguration, ok); err != nil { return err } } - if len(v.Type) > 0 { - ok := object.Key("Type") - ok.String(string(v.Type)) + if v.NumberDisplayFormatConfiguration != nil { + ok := object.Key("NumberDisplayFormatConfiguration") + if err := awsRestjson1_serializeDocumentNumberDisplayFormatConfiguration(v.NumberDisplayFormatConfiguration, ok); err != nil { + return err + } } - if v.Value != nil { - ok := object.Key("Value") - if err := awsRestjson1_serializeDocumentMeasureField(v.Value, ok); err != nil { + if v.PercentageDisplayFormatConfiguration != nil { + ok := object.Key("PercentageDisplayFormatConfiguration") + if err := awsRestjson1_serializeDocumentPercentageDisplayFormatConfiguration(v.PercentageDisplayFormatConfiguration, ok); err != nil { return err } } @@ -20937,232 +23598,298 @@ func awsRestjson1_serializeDocumentMaximumMinimumComputation(v *types.MaximumMin return nil } -func awsRestjson1_serializeDocumentMeasureField(v *types.MeasureField, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentNumericRangeFilter(v *types.NumericRangeFilter, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.CalculatedMeasureField != nil { - ok := object.Key("CalculatedMeasureField") - if err := awsRestjson1_serializeDocumentCalculatedMeasureField(v.CalculatedMeasureField, ok); err != nil { + if v.AggregationFunction != nil { + ok := object.Key("AggregationFunction") + if err := awsRestjson1_serializeDocumentAggregationFunction(v.AggregationFunction, ok); err != nil { return err } } - if v.CategoricalMeasureField != nil { - ok := object.Key("CategoricalMeasureField") - if err := awsRestjson1_serializeDocumentCategoricalMeasureField(v.CategoricalMeasureField, ok); err != nil { + if v.Column != nil { + ok := object.Key("Column") + if err := awsRestjson1_serializeDocumentColumnIdentifier(v.Column, ok); err != nil { return err } } - if v.DateMeasureField != nil { - ok := object.Key("DateMeasureField") - if err := awsRestjson1_serializeDocumentDateMeasureField(v.DateMeasureField, ok); err != nil { + if v.FilterId != nil { + ok := object.Key("FilterId") + ok.String(*v.FilterId) + } + + if v.IncludeMaximum != nil { + ok := object.Key("IncludeMaximum") + ok.Boolean(*v.IncludeMaximum) + } + + if v.IncludeMinimum != nil { + ok := object.Key("IncludeMinimum") + ok.Boolean(*v.IncludeMinimum) + } + + if len(v.NullOption) > 0 { + ok := object.Key("NullOption") + ok.String(string(v.NullOption)) + } + + if v.RangeMaximum != nil { + ok := object.Key("RangeMaximum") + if err := awsRestjson1_serializeDocumentNumericRangeFilterValue(v.RangeMaximum, ok); err != nil { return err } } - if v.NumericalMeasureField != nil { - ok := object.Key("NumericalMeasureField") - if err := awsRestjson1_serializeDocumentNumericalMeasureField(v.NumericalMeasureField, ok); err != nil { + if v.RangeMinimum != nil { + ok := object.Key("RangeMinimum") + if err := awsRestjson1_serializeDocumentNumericRangeFilterValue(v.RangeMinimum, ok); err != nil { return err } } + if len(v.SelectAllOptions) > 0 { + ok := object.Key("SelectAllOptions") + ok.String(string(v.SelectAllOptions)) + } + return nil } -func awsRestjson1_serializeDocumentMeasureFieldList(v []types.MeasureField, value smithyjson.Value) error { - array := value.Array() - defer array.Close() +func awsRestjson1_serializeDocumentNumericRangeFilterValue(v *types.NumericRangeFilterValue, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Parameter != nil { + ok := object.Key("Parameter") + ok.String(*v.Parameter) + } + + if v.StaticValue != nil { + ok := object.Key("StaticValue") + switch { + case math.IsNaN(*v.StaticValue): + ok.String("NaN") + + case math.IsInf(*v.StaticValue, 1): + ok.String("Infinity") + + case math.IsInf(*v.StaticValue, -1): + ok.String("-Infinity") + + default: + ok.Double(*v.StaticValue) - for i := range v { - av := array.Value() - if err := awsRestjson1_serializeDocumentMeasureField(&v[i], av); err != nil { - return err } } + return nil } -func awsRestjson1_serializeDocumentMetricComparisonComputation(v *types.MetricComparisonComputation, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentNumericSeparatorConfiguration(v *types.NumericSeparatorConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.ComputationId != nil { - ok := object.Key("ComputationId") - ok.String(*v.ComputationId) + if len(v.DecimalSeparator) > 0 { + ok := object.Key("DecimalSeparator") + ok.String(string(v.DecimalSeparator)) } - if v.FromValue != nil { - ok := object.Key("FromValue") - if err := awsRestjson1_serializeDocumentMeasureField(v.FromValue, ok); err != nil { + if v.ThousandsSeparator != nil { + ok := object.Key("ThousandsSeparator") + if err := awsRestjson1_serializeDocumentThousandSeparatorOptions(v.ThousandsSeparator, ok); err != nil { return err } } - if v.Name != nil { - ok := object.Key("Name") - ok.String(*v.Name) + return nil +} + +func awsRestjson1_serializeDocumentOracleParameters(v *types.OracleParameters, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Database != nil { + ok := object.Key("Database") + ok.String(*v.Database) } - if v.TargetValue != nil { - ok := object.Key("TargetValue") - if err := awsRestjson1_serializeDocumentMeasureField(v.TargetValue, ok); err != nil { - return err - } + if v.Host != nil { + ok := object.Key("Host") + ok.String(*v.Host) } - if v.Time != nil { - ok := object.Key("Time") - if err := awsRestjson1_serializeDocumentDimensionField(v.Time, ok); err != nil { - return err - } + { + ok := object.Key("Port") + ok.Integer(v.Port) } return nil } -func awsRestjson1_serializeDocumentMinimumLabelType(v *types.MinimumLabelType, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentOverrideDatasetParameterOperation(v *types.OverrideDatasetParameterOperation, value smithyjson.Value) error { object := value.Object() defer object.Close() - if len(v.Visibility) > 0 { - ok := object.Key("Visibility") - ok.String(string(v.Visibility)) + if v.NewDefaultValues != nil { + ok := object.Key("NewDefaultValues") + if err := awsRestjson1_serializeDocumentNewDefaultValues(v.NewDefaultValues, ok); err != nil { + return err + } + } + + if v.NewParameterName != nil { + ok := object.Key("NewParameterName") + ok.String(*v.NewParameterName) + } + + if v.ParameterName != nil { + ok := object.Key("ParameterName") + ok.String(*v.ParameterName) } return nil } -func awsRestjson1_serializeDocumentMissingDataConfiguration(v *types.MissingDataConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentPaginationConfiguration(v *types.PaginationConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if len(v.TreatmentOption) > 0 { - ok := object.Key("TreatmentOption") - ok.String(string(v.TreatmentOption)) + if v.PageNumber != nil { + ok := object.Key("PageNumber") + ok.Long(*v.PageNumber) } - return nil -} - -func awsRestjson1_serializeDocumentMissingDataConfigurationList(v []types.MissingDataConfiguration, value smithyjson.Value) error { - array := value.Array() - defer array.Close() - - for i := range v { - av := array.Value() - if err := awsRestjson1_serializeDocumentMissingDataConfiguration(&v[i], av); err != nil { - return err - } + if v.PageSize != nil { + ok := object.Key("PageSize") + ok.Long(*v.PageSize) } + return nil } -func awsRestjson1_serializeDocumentMySqlParameters(v *types.MySqlParameters, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentPanelConfiguration(v *types.PanelConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Database != nil { - ok := object.Key("Database") - ok.String(*v.Database) + if v.BackgroundColor != nil { + ok := object.Key("BackgroundColor") + ok.String(*v.BackgroundColor) } - if v.Host != nil { - ok := object.Key("Host") - ok.String(*v.Host) + if len(v.BackgroundVisibility) > 0 { + ok := object.Key("BackgroundVisibility") + ok.String(string(v.BackgroundVisibility)) } - { - ok := object.Key("Port") - ok.Integer(v.Port) + if v.BorderColor != nil { + ok := object.Key("BorderColor") + ok.String(*v.BorderColor) + } + + if len(v.BorderStyle) > 0 { + ok := object.Key("BorderStyle") + ok.String(string(v.BorderStyle)) + } + + if v.BorderThickness != nil { + ok := object.Key("BorderThickness") + ok.String(*v.BorderThickness) + } + + if len(v.BorderVisibility) > 0 { + ok := object.Key("BorderVisibility") + ok.String(string(v.BorderVisibility)) + } + + if v.GutterSpacing != nil { + ok := object.Key("GutterSpacing") + ok.String(*v.GutterSpacing) + } + + if len(v.GutterVisibility) > 0 { + ok := object.Key("GutterVisibility") + ok.String(string(v.GutterVisibility)) + } + + if v.Title != nil { + ok := object.Key("Title") + if err := awsRestjson1_serializeDocumentPanelTitleOptions(v.Title, ok); err != nil { + return err + } } return nil } -func awsRestjson1_serializeDocumentNegativeValueConfiguration(v *types.NegativeValueConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentPanelTitleOptions(v *types.PanelTitleOptions, value smithyjson.Value) error { object := value.Object() defer object.Close() - if len(v.DisplayMode) > 0 { - ok := object.Key("DisplayMode") - ok.String(string(v.DisplayMode)) + if v.FontConfiguration != nil { + ok := object.Key("FontConfiguration") + if err := awsRestjson1_serializeDocumentFontConfiguration(v.FontConfiguration, ok); err != nil { + return err + } } - return nil -} - -func awsRestjson1_serializeDocumentNullValueFormatConfiguration(v *types.NullValueFormatConfiguration, value smithyjson.Value) error { - object := value.Object() - defer object.Close() + if len(v.HorizontalTextAlignment) > 0 { + ok := object.Key("HorizontalTextAlignment") + ok.String(string(v.HorizontalTextAlignment)) + } - if v.NullString != nil { - ok := object.Key("NullString") - ok.String(*v.NullString) + if len(v.Visibility) > 0 { + ok := object.Key("Visibility") + ok.String(string(v.Visibility)) } return nil } -func awsRestjson1_serializeDocumentNumberDisplayFormatConfiguration(v *types.NumberDisplayFormatConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentParameterControl(v *types.ParameterControl, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.DecimalPlacesConfiguration != nil { - ok := object.Key("DecimalPlacesConfiguration") - if err := awsRestjson1_serializeDocumentDecimalPlacesConfiguration(v.DecimalPlacesConfiguration, ok); err != nil { + if v.DateTimePicker != nil { + ok := object.Key("DateTimePicker") + if err := awsRestjson1_serializeDocumentParameterDateTimePickerControl(v.DateTimePicker, ok); err != nil { return err } } - if v.NegativeValueConfiguration != nil { - ok := object.Key("NegativeValueConfiguration") - if err := awsRestjson1_serializeDocumentNegativeValueConfiguration(v.NegativeValueConfiguration, ok); err != nil { + if v.Dropdown != nil { + ok := object.Key("Dropdown") + if err := awsRestjson1_serializeDocumentParameterDropDownControl(v.Dropdown, ok); err != nil { return err } } - if v.NullValueFormatConfiguration != nil { - ok := object.Key("NullValueFormatConfiguration") - if err := awsRestjson1_serializeDocumentNullValueFormatConfiguration(v.NullValueFormatConfiguration, ok); err != nil { + if v.List != nil { + ok := object.Key("List") + if err := awsRestjson1_serializeDocumentParameterListControl(v.List, ok); err != nil { return err } } - if len(v.NumberScale) > 0 { - ok := object.Key("NumberScale") - ok.String(string(v.NumberScale)) - } - - if v.Prefix != nil { - ok := object.Key("Prefix") - ok.String(*v.Prefix) - } - - if v.SeparatorConfiguration != nil { - ok := object.Key("SeparatorConfiguration") - if err := awsRestjson1_serializeDocumentNumericSeparatorConfiguration(v.SeparatorConfiguration, ok); err != nil { + if v.Slider != nil { + ok := object.Key("Slider") + if err := awsRestjson1_serializeDocumentParameterSliderControl(v.Slider, ok); err != nil { return err } } - if v.Suffix != nil { - ok := object.Key("Suffix") - ok.String(*v.Suffix) + if v.TextArea != nil { + ok := object.Key("TextArea") + if err := awsRestjson1_serializeDocumentParameterTextAreaControl(v.TextArea, ok); err != nil { + return err + } } - return nil -} - -func awsRestjson1_serializeDocumentNumberFormatConfiguration(v *types.NumberFormatConfiguration, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.FormatConfiguration != nil { - ok := object.Key("FormatConfiguration") - if err := awsRestjson1_serializeDocumentNumericFormatConfiguration(v.FormatConfiguration, ok); err != nil { + if v.TextField != nil { + ok := object.Key("TextField") + if err := awsRestjson1_serializeDocumentParameterTextFieldControl(v.TextField, ok); err != nil { return err } } @@ -21170,103 +23897,76 @@ func awsRestjson1_serializeDocumentNumberFormatConfiguration(v *types.NumberForm return nil } -func awsRestjson1_serializeDocumentNumericalAggregationFunction(v *types.NumericalAggregationFunction, value smithyjson.Value) error { - object := value.Object() - defer object.Close() +func awsRestjson1_serializeDocumentParameterControlList(v []types.ParameterControl, value smithyjson.Value) error { + array := value.Array() + defer array.Close() - if v.PercentileAggregation != nil { - ok := object.Key("PercentileAggregation") - if err := awsRestjson1_serializeDocumentPercentileAggregation(v.PercentileAggregation, ok); err != nil { + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentParameterControl(&v[i], av); err != nil { return err } } - - if len(v.SimpleNumericalAggregation) > 0 { - ok := object.Key("SimpleNumericalAggregation") - ok.String(string(v.SimpleNumericalAggregation)) - } - return nil } -func awsRestjson1_serializeDocumentNumericalDimensionField(v *types.NumericalDimensionField, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentParameterDateTimePickerControl(v *types.ParameterDateTimePickerControl, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Column != nil { - ok := object.Key("Column") - if err := awsRestjson1_serializeDocumentColumnIdentifier(v.Column, ok); err != nil { + if v.DisplayOptions != nil { + ok := object.Key("DisplayOptions") + if err := awsRestjson1_serializeDocumentDateTimePickerControlDisplayOptions(v.DisplayOptions, ok); err != nil { return err } } - if v.FieldId != nil { - ok := object.Key("FieldId") - ok.String(*v.FieldId) + if v.ParameterControlId != nil { + ok := object.Key("ParameterControlId") + ok.String(*v.ParameterControlId) } - if v.FormatConfiguration != nil { - ok := object.Key("FormatConfiguration") - if err := awsRestjson1_serializeDocumentNumberFormatConfiguration(v.FormatConfiguration, ok); err != nil { - return err - } + if v.SourceParameterName != nil { + ok := object.Key("SourceParameterName") + ok.String(*v.SourceParameterName) } - if v.HierarchyId != nil { - ok := object.Key("HierarchyId") - ok.String(*v.HierarchyId) + if v.Title != nil { + ok := object.Key("Title") + ok.String(*v.Title) } return nil } -func awsRestjson1_serializeDocumentNumericalMeasureField(v *types.NumericalMeasureField, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentParameterDeclaration(v *types.ParameterDeclaration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.AggregationFunction != nil { - ok := object.Key("AggregationFunction") - if err := awsRestjson1_serializeDocumentNumericalAggregationFunction(v.AggregationFunction, ok); err != nil { - return err - } - } - - if v.Column != nil { - ok := object.Key("Column") - if err := awsRestjson1_serializeDocumentColumnIdentifier(v.Column, ok); err != nil { + if v.DateTimeParameterDeclaration != nil { + ok := object.Key("DateTimeParameterDeclaration") + if err := awsRestjson1_serializeDocumentDateTimeParameterDeclaration(v.DateTimeParameterDeclaration, ok); err != nil { return err } } - if v.FieldId != nil { - ok := object.Key("FieldId") - ok.String(*v.FieldId) - } - - if v.FormatConfiguration != nil { - ok := object.Key("FormatConfiguration") - if err := awsRestjson1_serializeDocumentNumberFormatConfiguration(v.FormatConfiguration, ok); err != nil { + if v.DecimalParameterDeclaration != nil { + ok := object.Key("DecimalParameterDeclaration") + if err := awsRestjson1_serializeDocumentDecimalParameterDeclaration(v.DecimalParameterDeclaration, ok); err != nil { return err } } - return nil -} - -func awsRestjson1_serializeDocumentNumericAxisOptions(v *types.NumericAxisOptions, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Range != nil { - ok := object.Key("Range") - if err := awsRestjson1_serializeDocumentAxisDisplayRange(v.Range, ok); err != nil { + if v.IntegerParameterDeclaration != nil { + ok := object.Key("IntegerParameterDeclaration") + if err := awsRestjson1_serializeDocumentIntegerParameterDeclaration(v.IntegerParameterDeclaration, ok); err != nil { return err } } - if v.Scale != nil { - ok := object.Key("Scale") - if err := awsRestjson1_serializeDocumentAxisScale(v.Scale, ok); err != nil { + if v.StringParameterDeclaration != nil { + ok := object.Key("StringParameterDeclaration") + if err := awsRestjson1_serializeDocumentStringParameterDeclaration(v.StringParameterDeclaration, ok); err != nil { return err } } @@ -21274,619 +23974,659 @@ func awsRestjson1_serializeDocumentNumericAxisOptions(v *types.NumericAxisOption return nil } -func awsRestjson1_serializeDocumentNumericEqualityDrillDownFilter(v *types.NumericEqualityDrillDownFilter, value smithyjson.Value) error { - object := value.Object() - defer object.Close() +func awsRestjson1_serializeDocumentParameterDeclarationList(v []types.ParameterDeclaration, value smithyjson.Value) error { + array := value.Array() + defer array.Close() - if v.Column != nil { - ok := object.Key("Column") - if err := awsRestjson1_serializeDocumentColumnIdentifier(v.Column, ok); err != nil { + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentParameterDeclaration(&v[i], av); err != nil { return err } } - - { - ok := object.Key("Value") - switch { - case math.IsNaN(v.Value): - ok.String("NaN") - - case math.IsInf(v.Value, 1): - ok.String("Infinity") - - case math.IsInf(v.Value, -1): - ok.String("-Infinity") - - default: - ok.Double(v.Value) - - } - } - return nil } -func awsRestjson1_serializeDocumentNumericEqualityFilter(v *types.NumericEqualityFilter, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentParameterDropDownControl(v *types.ParameterDropDownControl, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.AggregationFunction != nil { - ok := object.Key("AggregationFunction") - if err := awsRestjson1_serializeDocumentAggregationFunction(v.AggregationFunction, ok); err != nil { + if v.CascadingControlConfiguration != nil { + ok := object.Key("CascadingControlConfiguration") + if err := awsRestjson1_serializeDocumentCascadingControlConfiguration(v.CascadingControlConfiguration, ok); err != nil { return err } } - if v.Column != nil { - ok := object.Key("Column") - if err := awsRestjson1_serializeDocumentColumnIdentifier(v.Column, ok); err != nil { + if v.DisplayOptions != nil { + ok := object.Key("DisplayOptions") + if err := awsRestjson1_serializeDocumentDropDownControlDisplayOptions(v.DisplayOptions, ok); err != nil { return err } } - if v.FilterId != nil { - ok := object.Key("FilterId") - ok.String(*v.FilterId) - } - - if len(v.MatchOperator) > 0 { - ok := object.Key("MatchOperator") - ok.String(string(v.MatchOperator)) - } - - if len(v.NullOption) > 0 { - ok := object.Key("NullOption") - ok.String(string(v.NullOption)) - } - - if v.ParameterName != nil { - ok := object.Key("ParameterName") - ok.String(*v.ParameterName) - } - - if len(v.SelectAllOptions) > 0 { - ok := object.Key("SelectAllOptions") - ok.String(string(v.SelectAllOptions)) - } - - if v.Value != nil { - ok := object.Key("Value") - switch { - case math.IsNaN(*v.Value): - ok.String("NaN") + if v.ParameterControlId != nil { + ok := object.Key("ParameterControlId") + ok.String(*v.ParameterControlId) + } - case math.IsInf(*v.Value, 1): - ok.String("Infinity") + if v.SelectableValues != nil { + ok := object.Key("SelectableValues") + if err := awsRestjson1_serializeDocumentParameterSelectableValues(v.SelectableValues, ok); err != nil { + return err + } + } - case math.IsInf(*v.Value, -1): - ok.String("-Infinity") + if v.SourceParameterName != nil { + ok := object.Key("SourceParameterName") + ok.String(*v.SourceParameterName) + } - default: - ok.Double(*v.Value) + if v.Title != nil { + ok := object.Key("Title") + ok.String(*v.Title) + } - } + if len(v.Type) > 0 { + ok := object.Key("Type") + ok.String(string(v.Type)) } return nil } -func awsRestjson1_serializeDocumentNumericFormatConfiguration(v *types.NumericFormatConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentParameterListControl(v *types.ParameterListControl, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.CurrencyDisplayFormatConfiguration != nil { - ok := object.Key("CurrencyDisplayFormatConfiguration") - if err := awsRestjson1_serializeDocumentCurrencyDisplayFormatConfiguration(v.CurrencyDisplayFormatConfiguration, ok); err != nil { + if v.CascadingControlConfiguration != nil { + ok := object.Key("CascadingControlConfiguration") + if err := awsRestjson1_serializeDocumentCascadingControlConfiguration(v.CascadingControlConfiguration, ok); err != nil { return err } } - if v.NumberDisplayFormatConfiguration != nil { - ok := object.Key("NumberDisplayFormatConfiguration") - if err := awsRestjson1_serializeDocumentNumberDisplayFormatConfiguration(v.NumberDisplayFormatConfiguration, ok); err != nil { + if v.DisplayOptions != nil { + ok := object.Key("DisplayOptions") + if err := awsRestjson1_serializeDocumentListControlDisplayOptions(v.DisplayOptions, ok); err != nil { return err } } - if v.PercentageDisplayFormatConfiguration != nil { - ok := object.Key("PercentageDisplayFormatConfiguration") - if err := awsRestjson1_serializeDocumentPercentageDisplayFormatConfiguration(v.PercentageDisplayFormatConfiguration, ok); err != nil { + if v.ParameterControlId != nil { + ok := object.Key("ParameterControlId") + ok.String(*v.ParameterControlId) + } + + if v.SelectableValues != nil { + ok := object.Key("SelectableValues") + if err := awsRestjson1_serializeDocumentParameterSelectableValues(v.SelectableValues, ok); err != nil { return err } } + if v.SourceParameterName != nil { + ok := object.Key("SourceParameterName") + ok.String(*v.SourceParameterName) + } + + if v.Title != nil { + ok := object.Key("Title") + ok.String(*v.Title) + } + + if len(v.Type) > 0 { + ok := object.Key("Type") + ok.String(string(v.Type)) + } + return nil } -func awsRestjson1_serializeDocumentNumericRangeFilter(v *types.NumericRangeFilter, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentParameters(v *types.Parameters, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.AggregationFunction != nil { - ok := object.Key("AggregationFunction") - if err := awsRestjson1_serializeDocumentAggregationFunction(v.AggregationFunction, ok); err != nil { + if v.DateTimeParameters != nil { + ok := object.Key("DateTimeParameters") + if err := awsRestjson1_serializeDocumentDateTimeParameterList(v.DateTimeParameters, ok); err != nil { return err } } - if v.Column != nil { - ok := object.Key("Column") - if err := awsRestjson1_serializeDocumentColumnIdentifier(v.Column, ok); err != nil { + if v.DecimalParameters != nil { + ok := object.Key("DecimalParameters") + if err := awsRestjson1_serializeDocumentDecimalParameterList(v.DecimalParameters, ok); err != nil { return err } } - if v.FilterId != nil { - ok := object.Key("FilterId") - ok.String(*v.FilterId) + if v.IntegerParameters != nil { + ok := object.Key("IntegerParameters") + if err := awsRestjson1_serializeDocumentIntegerParameterList(v.IntegerParameters, ok); err != nil { + return err + } } - if v.IncludeMaximum != nil { - ok := object.Key("IncludeMaximum") - ok.Boolean(*v.IncludeMaximum) + if v.StringParameters != nil { + ok := object.Key("StringParameters") + if err := awsRestjson1_serializeDocumentStringParameterList(v.StringParameters, ok); err != nil { + return err + } } - if v.IncludeMinimum != nil { - ok := object.Key("IncludeMinimum") - ok.Boolean(*v.IncludeMinimum) - } + return nil +} - if len(v.NullOption) > 0 { - ok := object.Key("NullOption") - ok.String(string(v.NullOption)) +func awsRestjson1_serializeDocumentParameterSelectableValueList(v []string, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + av.String(v[i]) } + return nil +} - if v.RangeMaximum != nil { - ok := object.Key("RangeMaximum") - if err := awsRestjson1_serializeDocumentNumericRangeFilterValue(v.RangeMaximum, ok); err != nil { +func awsRestjson1_serializeDocumentParameterSelectableValues(v *types.ParameterSelectableValues, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.LinkToDataSetColumn != nil { + ok := object.Key("LinkToDataSetColumn") + if err := awsRestjson1_serializeDocumentColumnIdentifier(v.LinkToDataSetColumn, ok); err != nil { return err } } - if v.RangeMinimum != nil { - ok := object.Key("RangeMinimum") - if err := awsRestjson1_serializeDocumentNumericRangeFilterValue(v.RangeMinimum, ok); err != nil { + if v.Values != nil { + ok := object.Key("Values") + if err := awsRestjson1_serializeDocumentParameterSelectableValueList(v.Values, ok); err != nil { return err } } - if len(v.SelectAllOptions) > 0 { - ok := object.Key("SelectAllOptions") - ok.String(string(v.SelectAllOptions)) - } - return nil } -func awsRestjson1_serializeDocumentNumericRangeFilterValue(v *types.NumericRangeFilterValue, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentParameterSliderControl(v *types.ParameterSliderControl, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Parameter != nil { - ok := object.Key("Parameter") - ok.String(*v.Parameter) + if v.DisplayOptions != nil { + ok := object.Key("DisplayOptions") + if err := awsRestjson1_serializeDocumentSliderControlDisplayOptions(v.DisplayOptions, ok); err != nil { + return err + } } - if v.StaticValue != nil { - ok := object.Key("StaticValue") + { + ok := object.Key("MaximumValue") switch { - case math.IsNaN(*v.StaticValue): + case math.IsNaN(v.MaximumValue): ok.String("NaN") - case math.IsInf(*v.StaticValue, 1): + case math.IsInf(v.MaximumValue, 1): ok.String("Infinity") - case math.IsInf(*v.StaticValue, -1): + case math.IsInf(v.MaximumValue, -1): ok.String("-Infinity") default: - ok.Double(*v.StaticValue) + ok.Double(v.MaximumValue) } } - return nil -} + { + ok := object.Key("MinimumValue") + switch { + case math.IsNaN(v.MinimumValue): + ok.String("NaN") -func awsRestjson1_serializeDocumentNumericSeparatorConfiguration(v *types.NumericSeparatorConfiguration, value smithyjson.Value) error { - object := value.Object() - defer object.Close() + case math.IsInf(v.MinimumValue, 1): + ok.String("Infinity") - if len(v.DecimalSeparator) > 0 { - ok := object.Key("DecimalSeparator") - ok.String(string(v.DecimalSeparator)) - } + case math.IsInf(v.MinimumValue, -1): + ok.String("-Infinity") + + default: + ok.Double(v.MinimumValue) - if v.ThousandsSeparator != nil { - ok := object.Key("ThousandsSeparator") - if err := awsRestjson1_serializeDocumentThousandSeparatorOptions(v.ThousandsSeparator, ok); err != nil { - return err } } - return nil -} - -func awsRestjson1_serializeDocumentOracleParameters(v *types.OracleParameters, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Database != nil { - ok := object.Key("Database") - ok.String(*v.Database) + if v.ParameterControlId != nil { + ok := object.Key("ParameterControlId") + ok.String(*v.ParameterControlId) } - if v.Host != nil { - ok := object.Key("Host") - ok.String(*v.Host) + if v.SourceParameterName != nil { + ok := object.Key("SourceParameterName") + ok.String(*v.SourceParameterName) } { - ok := object.Key("Port") - ok.Integer(v.Port) - } - - return nil -} - -func awsRestjson1_serializeDocumentPaginationConfiguration(v *types.PaginationConfiguration, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.PageNumber != nil { - ok := object.Key("PageNumber") - ok.Long(*v.PageNumber) - } - - if v.PageSize != nil { - ok := object.Key("PageSize") - ok.Long(*v.PageSize) - } - - return nil -} + ok := object.Key("StepSize") + switch { + case math.IsNaN(v.StepSize): + ok.String("NaN") -func awsRestjson1_serializeDocumentPanelConfiguration(v *types.PanelConfiguration, value smithyjson.Value) error { - object := value.Object() - defer object.Close() + case math.IsInf(v.StepSize, 1): + ok.String("Infinity") - if v.BackgroundColor != nil { - ok := object.Key("BackgroundColor") - ok.String(*v.BackgroundColor) - } + case math.IsInf(v.StepSize, -1): + ok.String("-Infinity") - if len(v.BackgroundVisibility) > 0 { - ok := object.Key("BackgroundVisibility") - ok.String(string(v.BackgroundVisibility)) - } + default: + ok.Double(v.StepSize) - if v.BorderColor != nil { - ok := object.Key("BorderColor") - ok.String(*v.BorderColor) + } } - if len(v.BorderStyle) > 0 { - ok := object.Key("BorderStyle") - ok.String(string(v.BorderStyle)) + if v.Title != nil { + ok := object.Key("Title") + ok.String(*v.Title) } - if v.BorderThickness != nil { - ok := object.Key("BorderThickness") - ok.String(*v.BorderThickness) + return nil +} + +func awsRestjson1_serializeDocumentParameterTextAreaControl(v *types.ParameterTextAreaControl, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Delimiter != nil { + ok := object.Key("Delimiter") + ok.String(*v.Delimiter) } - if len(v.BorderVisibility) > 0 { - ok := object.Key("BorderVisibility") - ok.String(string(v.BorderVisibility)) + if v.DisplayOptions != nil { + ok := object.Key("DisplayOptions") + if err := awsRestjson1_serializeDocumentTextAreaControlDisplayOptions(v.DisplayOptions, ok); err != nil { + return err + } } - if v.GutterSpacing != nil { - ok := object.Key("GutterSpacing") - ok.String(*v.GutterSpacing) + if v.ParameterControlId != nil { + ok := object.Key("ParameterControlId") + ok.String(*v.ParameterControlId) } - if len(v.GutterVisibility) > 0 { - ok := object.Key("GutterVisibility") - ok.String(string(v.GutterVisibility)) + if v.SourceParameterName != nil { + ok := object.Key("SourceParameterName") + ok.String(*v.SourceParameterName) } if v.Title != nil { ok := object.Key("Title") - if err := awsRestjson1_serializeDocumentPanelTitleOptions(v.Title, ok); err != nil { - return err - } + ok.String(*v.Title) } return nil } -func awsRestjson1_serializeDocumentPanelTitleOptions(v *types.PanelTitleOptions, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentParameterTextFieldControl(v *types.ParameterTextFieldControl, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.FontConfiguration != nil { - ok := object.Key("FontConfiguration") - if err := awsRestjson1_serializeDocumentFontConfiguration(v.FontConfiguration, ok); err != nil { + if v.DisplayOptions != nil { + ok := object.Key("DisplayOptions") + if err := awsRestjson1_serializeDocumentTextFieldControlDisplayOptions(v.DisplayOptions, ok); err != nil { return err } } - if len(v.HorizontalTextAlignment) > 0 { - ok := object.Key("HorizontalTextAlignment") - ok.String(string(v.HorizontalTextAlignment)) + if v.ParameterControlId != nil { + ok := object.Key("ParameterControlId") + ok.String(*v.ParameterControlId) } - if len(v.Visibility) > 0 { - ok := object.Key("Visibility") - ok.String(string(v.Visibility)) + if v.SourceParameterName != nil { + ok := object.Key("SourceParameterName") + ok.String(*v.SourceParameterName) + } + + if v.Title != nil { + ok := object.Key("Title") + ok.String(*v.Title) } return nil } -func awsRestjson1_serializeDocumentParameterControl(v *types.ParameterControl, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentPercentageDisplayFormatConfiguration(v *types.PercentageDisplayFormatConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.DateTimePicker != nil { - ok := object.Key("DateTimePicker") - if err := awsRestjson1_serializeDocumentParameterDateTimePickerControl(v.DateTimePicker, ok); err != nil { + if v.DecimalPlacesConfiguration != nil { + ok := object.Key("DecimalPlacesConfiguration") + if err := awsRestjson1_serializeDocumentDecimalPlacesConfiguration(v.DecimalPlacesConfiguration, ok); err != nil { return err } } - if v.Dropdown != nil { - ok := object.Key("Dropdown") - if err := awsRestjson1_serializeDocumentParameterDropDownControl(v.Dropdown, ok); err != nil { + if v.NegativeValueConfiguration != nil { + ok := object.Key("NegativeValueConfiguration") + if err := awsRestjson1_serializeDocumentNegativeValueConfiguration(v.NegativeValueConfiguration, ok); err != nil { return err } } - if v.List != nil { - ok := object.Key("List") - if err := awsRestjson1_serializeDocumentParameterListControl(v.List, ok); err != nil { + if v.NullValueFormatConfiguration != nil { + ok := object.Key("NullValueFormatConfiguration") + if err := awsRestjson1_serializeDocumentNullValueFormatConfiguration(v.NullValueFormatConfiguration, ok); err != nil { return err } } - if v.Slider != nil { - ok := object.Key("Slider") - if err := awsRestjson1_serializeDocumentParameterSliderControl(v.Slider, ok); err != nil { - return err - } + if v.Prefix != nil { + ok := object.Key("Prefix") + ok.String(*v.Prefix) } - if v.TextArea != nil { - ok := object.Key("TextArea") - if err := awsRestjson1_serializeDocumentParameterTextAreaControl(v.TextArea, ok); err != nil { + if v.SeparatorConfiguration != nil { + ok := object.Key("SeparatorConfiguration") + if err := awsRestjson1_serializeDocumentNumericSeparatorConfiguration(v.SeparatorConfiguration, ok); err != nil { return err } } - if v.TextField != nil { - ok := object.Key("TextField") - if err := awsRestjson1_serializeDocumentParameterTextFieldControl(v.TextField, ok); err != nil { - return err - } + if v.Suffix != nil { + ok := object.Key("Suffix") + ok.String(*v.Suffix) } return nil } -func awsRestjson1_serializeDocumentParameterControlList(v []types.ParameterControl, value smithyjson.Value) error { - array := value.Array() - defer array.Close() +func awsRestjson1_serializeDocumentPercentileAggregation(v *types.PercentileAggregation, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.PercentileValue != nil { + ok := object.Key("PercentileValue") + switch { + case math.IsNaN(*v.PercentileValue): + ok.String("NaN") + + case math.IsInf(*v.PercentileValue, 1): + ok.String("Infinity") + + case math.IsInf(*v.PercentileValue, -1): + ok.String("-Infinity") + + default: + ok.Double(*v.PercentileValue) - for i := range v { - av := array.Value() - if err := awsRestjson1_serializeDocumentParameterControl(&v[i], av); err != nil { - return err } } + return nil } -func awsRestjson1_serializeDocumentParameterDateTimePickerControl(v *types.ParameterDateTimePickerControl, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentPercentVisibleRange(v *types.PercentVisibleRange, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.DisplayOptions != nil { - ok := object.Key("DisplayOptions") - if err := awsRestjson1_serializeDocumentDateTimePickerControlDisplayOptions(v.DisplayOptions, ok); err != nil { - return err + if v.From != nil { + ok := object.Key("From") + switch { + case math.IsNaN(*v.From): + ok.String("NaN") + + case math.IsInf(*v.From, 1): + ok.String("Infinity") + + case math.IsInf(*v.From, -1): + ok.String("-Infinity") + + default: + ok.Double(*v.From) + } } - if v.ParameterControlId != nil { - ok := object.Key("ParameterControlId") - ok.String(*v.ParameterControlId) + if v.To != nil { + ok := object.Key("To") + switch { + case math.IsNaN(*v.To): + ok.String("NaN") + + case math.IsInf(*v.To, 1): + ok.String("Infinity") + + case math.IsInf(*v.To, -1): + ok.String("-Infinity") + + default: + ok.Double(*v.To) + + } } - if v.SourceParameterName != nil { - ok := object.Key("SourceParameterName") - ok.String(*v.SourceParameterName) + return nil +} + +func awsRestjson1_serializeDocumentPeriodOverPeriodComputation(v *types.PeriodOverPeriodComputation, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ComputationId != nil { + ok := object.Key("ComputationId") + ok.String(*v.ComputationId) } - if v.Title != nil { - ok := object.Key("Title") - ok.String(*v.Title) + if v.Name != nil { + ok := object.Key("Name") + ok.String(*v.Name) + } + + if v.Time != nil { + ok := object.Key("Time") + if err := awsRestjson1_serializeDocumentDimensionField(v.Time, ok); err != nil { + return err + } + } + + if v.Value != nil { + ok := object.Key("Value") + if err := awsRestjson1_serializeDocumentMeasureField(v.Value, ok); err != nil { + return err + } } return nil } -func awsRestjson1_serializeDocumentParameterDeclaration(v *types.ParameterDeclaration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentPeriodToDateComputation(v *types.PeriodToDateComputation, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.DateTimeParameterDeclaration != nil { - ok := object.Key("DateTimeParameterDeclaration") - if err := awsRestjson1_serializeDocumentDateTimeParameterDeclaration(v.DateTimeParameterDeclaration, ok); err != nil { + if v.ComputationId != nil { + ok := object.Key("ComputationId") + ok.String(*v.ComputationId) + } + + if v.Name != nil { + ok := object.Key("Name") + ok.String(*v.Name) + } + + if len(v.PeriodTimeGranularity) > 0 { + ok := object.Key("PeriodTimeGranularity") + ok.String(string(v.PeriodTimeGranularity)) + } + + if v.Time != nil { + ok := object.Key("Time") + if err := awsRestjson1_serializeDocumentDimensionField(v.Time, ok); err != nil { return err } } - if v.DecimalParameterDeclaration != nil { - ok := object.Key("DecimalParameterDeclaration") - if err := awsRestjson1_serializeDocumentDecimalParameterDeclaration(v.DecimalParameterDeclaration, ok); err != nil { + if v.Value != nil { + ok := object.Key("Value") + if err := awsRestjson1_serializeDocumentMeasureField(v.Value, ok); err != nil { return err } } - if v.IntegerParameterDeclaration != nil { - ok := object.Key("IntegerParameterDeclaration") - if err := awsRestjson1_serializeDocumentIntegerParameterDeclaration(v.IntegerParameterDeclaration, ok); err != nil { + return nil +} + +func awsRestjson1_serializeDocumentPhysicalTable(v types.PhysicalTable, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + switch uv := v.(type) { + case *types.PhysicalTableMemberCustomSql: + av := object.Key("CustomSql") + if err := awsRestjson1_serializeDocumentCustomSql(&uv.Value, av); err != nil { return err } - } - if v.StringParameterDeclaration != nil { - ok := object.Key("StringParameterDeclaration") - if err := awsRestjson1_serializeDocumentStringParameterDeclaration(v.StringParameterDeclaration, ok); err != nil { + case *types.PhysicalTableMemberRelationalTable: + av := object.Key("RelationalTable") + if err := awsRestjson1_serializeDocumentRelationalTable(&uv.Value, av); err != nil { + return err + } + + case *types.PhysicalTableMemberS3Source: + av := object.Key("S3Source") + if err := awsRestjson1_serializeDocumentS3Source(&uv.Value, av); err != nil { return err } - } + default: + return fmt.Errorf("attempted to serialize unknown member type %T for union %T", uv, v) + + } return nil } -func awsRestjson1_serializeDocumentParameterDeclarationList(v []types.ParameterDeclaration, value smithyjson.Value) error { - array := value.Array() - defer array.Close() +func awsRestjson1_serializeDocumentPhysicalTableMap(v map[string]types.PhysicalTable, value smithyjson.Value) error { + object := value.Object() + defer object.Close() - for i := range v { - av := array.Value() - if err := awsRestjson1_serializeDocumentParameterDeclaration(&v[i], av); err != nil { + for key := range v { + om := object.Key(key) + if vv := v[key]; vv == nil { + continue + } + if err := awsRestjson1_serializeDocumentPhysicalTable(v[key], om); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentParameterDropDownControl(v *types.ParameterDropDownControl, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentPieChartAggregatedFieldWells(v *types.PieChartAggregatedFieldWells, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.CascadingControlConfiguration != nil { - ok := object.Key("CascadingControlConfiguration") - if err := awsRestjson1_serializeDocumentCascadingControlConfiguration(v.CascadingControlConfiguration, ok); err != nil { + if v.Category != nil { + ok := object.Key("Category") + if err := awsRestjson1_serializeDocumentDimensionFieldList(v.Category, ok); err != nil { return err } } - if v.DisplayOptions != nil { - ok := object.Key("DisplayOptions") - if err := awsRestjson1_serializeDocumentDropDownControlDisplayOptions(v.DisplayOptions, ok); err != nil { + if v.SmallMultiples != nil { + ok := object.Key("SmallMultiples") + if err := awsRestjson1_serializeDocumentSmallMultiplesDimensionFieldList(v.SmallMultiples, ok); err != nil { return err } } - if v.ParameterControlId != nil { - ok := object.Key("ParameterControlId") - ok.String(*v.ParameterControlId) - } - - if v.SelectableValues != nil { - ok := object.Key("SelectableValues") - if err := awsRestjson1_serializeDocumentParameterSelectableValues(v.SelectableValues, ok); err != nil { + if v.Values != nil { + ok := object.Key("Values") + if err := awsRestjson1_serializeDocumentMeasureFieldList(v.Values, ok); err != nil { return err } } - if v.SourceParameterName != nil { - ok := object.Key("SourceParameterName") - ok.String(*v.SourceParameterName) - } - - if v.Title != nil { - ok := object.Key("Title") - ok.String(*v.Title) - } - - if len(v.Type) > 0 { - ok := object.Key("Type") - ok.String(string(v.Type)) - } - return nil } -func awsRestjson1_serializeDocumentParameterListControl(v *types.ParameterListControl, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentPieChartConfiguration(v *types.PieChartConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.CascadingControlConfiguration != nil { - ok := object.Key("CascadingControlConfiguration") - if err := awsRestjson1_serializeDocumentCascadingControlConfiguration(v.CascadingControlConfiguration, ok); err != nil { + if v.CategoryLabelOptions != nil { + ok := object.Key("CategoryLabelOptions") + if err := awsRestjson1_serializeDocumentChartAxisLabelOptions(v.CategoryLabelOptions, ok); err != nil { return err } } - if v.DisplayOptions != nil { - ok := object.Key("DisplayOptions") - if err := awsRestjson1_serializeDocumentListControlDisplayOptions(v.DisplayOptions, ok); err != nil { + if v.ContributionAnalysisDefaults != nil { + ok := object.Key("ContributionAnalysisDefaults") + if err := awsRestjson1_serializeDocumentContributionAnalysisDefaultList(v.ContributionAnalysisDefaults, ok); err != nil { return err } } - if v.ParameterControlId != nil { - ok := object.Key("ParameterControlId") - ok.String(*v.ParameterControlId) + if v.DataLabels != nil { + ok := object.Key("DataLabels") + if err := awsRestjson1_serializeDocumentDataLabelOptions(v.DataLabels, ok); err != nil { + return err + } } - if v.SelectableValues != nil { - ok := object.Key("SelectableValues") - if err := awsRestjson1_serializeDocumentParameterSelectableValues(v.SelectableValues, ok); err != nil { + if v.DonutOptions != nil { + ok := object.Key("DonutOptions") + if err := awsRestjson1_serializeDocumentDonutOptions(v.DonutOptions, ok); err != nil { return err } } - if v.SourceParameterName != nil { - ok := object.Key("SourceParameterName") - ok.String(*v.SourceParameterName) + if v.FieldWells != nil { + ok := object.Key("FieldWells") + if err := awsRestjson1_serializeDocumentPieChartFieldWells(v.FieldWells, ok); err != nil { + return err + } } - if v.Title != nil { - ok := object.Key("Title") - ok.String(*v.Title) + if v.Legend != nil { + ok := object.Key("Legend") + if err := awsRestjson1_serializeDocumentLegendOptions(v.Legend, ok); err != nil { + return err + } } - if len(v.Type) > 0 { - ok := object.Key("Type") - ok.String(string(v.Type)) + if v.SmallMultiplesOptions != nil { + ok := object.Key("SmallMultiplesOptions") + if err := awsRestjson1_serializeDocumentSmallMultiplesOptions(v.SmallMultiplesOptions, ok); err != nil { + return err + } } - return nil -} - -func awsRestjson1_serializeDocumentParameters(v *types.Parameters, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.DateTimeParameters != nil { - ok := object.Key("DateTimeParameters") - if err := awsRestjson1_serializeDocumentDateTimeParameterList(v.DateTimeParameters, ok); err != nil { + if v.SortConfiguration != nil { + ok := object.Key("SortConfiguration") + if err := awsRestjson1_serializeDocumentPieChartSortConfiguration(v.SortConfiguration, ok); err != nil { return err } } - if v.DecimalParameters != nil { - ok := object.Key("DecimalParameters") - if err := awsRestjson1_serializeDocumentDecimalParameterList(v.DecimalParameters, ok); err != nil { + if v.Tooltip != nil { + ok := object.Key("Tooltip") + if err := awsRestjson1_serializeDocumentTooltipOptions(v.Tooltip, ok); err != nil { return err } } - if v.IntegerParameters != nil { - ok := object.Key("IntegerParameters") - if err := awsRestjson1_serializeDocumentIntegerParameterList(v.IntegerParameters, ok); err != nil { + if v.ValueLabelOptions != nil { + ok := object.Key("ValueLabelOptions") + if err := awsRestjson1_serializeDocumentChartAxisLabelOptions(v.ValueLabelOptions, ok); err != nil { return err } } - if v.StringParameters != nil { - ok := object.Key("StringParameters") - if err := awsRestjson1_serializeDocumentStringParameterList(v.StringParameters, ok); err != nil { + if v.VisualPalette != nil { + ok := object.Key("VisualPalette") + if err := awsRestjson1_serializeDocumentVisualPalette(v.VisualPalette, ok); err != nil { return err } } @@ -21894,357 +24634,397 @@ func awsRestjson1_serializeDocumentParameters(v *types.Parameters, value smithyj return nil } -func awsRestjson1_serializeDocumentParameterSelectableValueList(v []string, value smithyjson.Value) error { - array := value.Array() - defer array.Close() +func awsRestjson1_serializeDocumentPieChartFieldWells(v *types.PieChartFieldWells, value smithyjson.Value) error { + object := value.Object() + defer object.Close() - for i := range v { - av := array.Value() - av.String(v[i]) + if v.PieChartAggregatedFieldWells != nil { + ok := object.Key("PieChartAggregatedFieldWells") + if err := awsRestjson1_serializeDocumentPieChartAggregatedFieldWells(v.PieChartAggregatedFieldWells, ok); err != nil { + return err + } } + return nil } -func awsRestjson1_serializeDocumentParameterSelectableValues(v *types.ParameterSelectableValues, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentPieChartSortConfiguration(v *types.PieChartSortConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.LinkToDataSetColumn != nil { - ok := object.Key("LinkToDataSetColumn") - if err := awsRestjson1_serializeDocumentColumnIdentifier(v.LinkToDataSetColumn, ok); err != nil { + if v.CategoryItemsLimit != nil { + ok := object.Key("CategoryItemsLimit") + if err := awsRestjson1_serializeDocumentItemsLimitConfiguration(v.CategoryItemsLimit, ok); err != nil { return err } } - if v.Values != nil { - ok := object.Key("Values") - if err := awsRestjson1_serializeDocumentParameterSelectableValueList(v.Values, ok); err != nil { + if v.CategorySort != nil { + ok := object.Key("CategorySort") + if err := awsRestjson1_serializeDocumentFieldSortOptionsList(v.CategorySort, ok); err != nil { return err } } - return nil -} - -func awsRestjson1_serializeDocumentParameterSliderControl(v *types.ParameterSliderControl, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.DisplayOptions != nil { - ok := object.Key("DisplayOptions") - if err := awsRestjson1_serializeDocumentSliderControlDisplayOptions(v.DisplayOptions, ok); err != nil { + if v.SmallMultiplesLimitConfiguration != nil { + ok := object.Key("SmallMultiplesLimitConfiguration") + if err := awsRestjson1_serializeDocumentItemsLimitConfiguration(v.SmallMultiplesLimitConfiguration, ok); err != nil { return err } } - { - ok := object.Key("MaximumValue") - switch { - case math.IsNaN(v.MaximumValue): - ok.String("NaN") - - case math.IsInf(v.MaximumValue, 1): - ok.String("Infinity") - - case math.IsInf(v.MaximumValue, -1): - ok.String("-Infinity") - - default: - ok.Double(v.MaximumValue) - + if v.SmallMultiplesSort != nil { + ok := object.Key("SmallMultiplesSort") + if err := awsRestjson1_serializeDocumentFieldSortOptionsList(v.SmallMultiplesSort, ok); err != nil { + return err } } - { - ok := object.Key("MinimumValue") - switch { - case math.IsNaN(v.MinimumValue): - ok.String("NaN") - - case math.IsInf(v.MinimumValue, 1): - ok.String("Infinity") - - case math.IsInf(v.MinimumValue, -1): - ok.String("-Infinity") + return nil +} - default: - ok.Double(v.MinimumValue) +func awsRestjson1_serializeDocumentPieChartVisual(v *types.PieChartVisual, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + if v.Actions != nil { + ok := object.Key("Actions") + if err := awsRestjson1_serializeDocumentVisualCustomActionList(v.Actions, ok); err != nil { + return err } } - if v.ParameterControlId != nil { - ok := object.Key("ParameterControlId") - ok.String(*v.ParameterControlId) - } - - if v.SourceParameterName != nil { - ok := object.Key("SourceParameterName") - ok.String(*v.SourceParameterName) + if v.ChartConfiguration != nil { + ok := object.Key("ChartConfiguration") + if err := awsRestjson1_serializeDocumentPieChartConfiguration(v.ChartConfiguration, ok); err != nil { + return err + } } - { - ok := object.Key("StepSize") - switch { - case math.IsNaN(v.StepSize): - ok.String("NaN") - - case math.IsInf(v.StepSize, 1): - ok.String("Infinity") - - case math.IsInf(v.StepSize, -1): - ok.String("-Infinity") - - default: - ok.Double(v.StepSize) + if v.ColumnHierarchies != nil { + ok := object.Key("ColumnHierarchies") + if err := awsRestjson1_serializeDocumentColumnHierarchyList(v.ColumnHierarchies, ok); err != nil { + return err + } + } + if v.Subtitle != nil { + ok := object.Key("Subtitle") + if err := awsRestjson1_serializeDocumentVisualSubtitleLabelOptions(v.Subtitle, ok); err != nil { + return err } } if v.Title != nil { ok := object.Key("Title") - ok.String(*v.Title) + if err := awsRestjson1_serializeDocumentVisualTitleLabelOptions(v.Title, ok); err != nil { + return err + } + } + + if v.VisualId != nil { + ok := object.Key("VisualId") + ok.String(*v.VisualId) } return nil } -func awsRestjson1_serializeDocumentParameterTextAreaControl(v *types.ParameterTextAreaControl, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentPivotFieldSortOptions(v *types.PivotFieldSortOptions, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Delimiter != nil { - ok := object.Key("Delimiter") - ok.String(*v.Delimiter) + if v.FieldId != nil { + ok := object.Key("FieldId") + ok.String(*v.FieldId) } - if v.DisplayOptions != nil { - ok := object.Key("DisplayOptions") - if err := awsRestjson1_serializeDocumentTextAreaControlDisplayOptions(v.DisplayOptions, ok); err != nil { + if v.SortBy != nil { + ok := object.Key("SortBy") + if err := awsRestjson1_serializeDocumentPivotTableSortBy(v.SortBy, ok); err != nil { return err } } - if v.ParameterControlId != nil { - ok := object.Key("ParameterControlId") - ok.String(*v.ParameterControlId) - } + return nil +} - if v.SourceParameterName != nil { - ok := object.Key("SourceParameterName") - ok.String(*v.SourceParameterName) - } +func awsRestjson1_serializeDocumentPivotFieldSortOptionsList(v []types.PivotFieldSortOptions, value smithyjson.Value) error { + array := value.Array() + defer array.Close() - if v.Title != nil { - ok := object.Key("Title") - ok.String(*v.Title) + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentPivotFieldSortOptions(&v[i], av); err != nil { + return err + } } + return nil +} +func awsRestjson1_serializeDocumentPivotMeasureFieldList(v []types.MeasureField, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentMeasureField(&v[i], av); err != nil { + return err + } + } return nil } -func awsRestjson1_serializeDocumentParameterTextFieldControl(v *types.ParameterTextFieldControl, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentPivotTableAggregatedFieldWells(v *types.PivotTableAggregatedFieldWells, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.DisplayOptions != nil { - ok := object.Key("DisplayOptions") - if err := awsRestjson1_serializeDocumentTextFieldControlDisplayOptions(v.DisplayOptions, ok); err != nil { + if v.Columns != nil { + ok := object.Key("Columns") + if err := awsRestjson1_serializeDocumentPivotTableDimensionList(v.Columns, ok); err != nil { return err } } - if v.ParameterControlId != nil { - ok := object.Key("ParameterControlId") - ok.String(*v.ParameterControlId) - } - - if v.SourceParameterName != nil { - ok := object.Key("SourceParameterName") - ok.String(*v.SourceParameterName) + if v.Rows != nil { + ok := object.Key("Rows") + if err := awsRestjson1_serializeDocumentPivotTableDimensionList(v.Rows, ok); err != nil { + return err + } } - if v.Title != nil { - ok := object.Key("Title") - ok.String(*v.Title) + if v.Values != nil { + ok := object.Key("Values") + if err := awsRestjson1_serializeDocumentPivotMeasureFieldList(v.Values, ok); err != nil { + return err + } } return nil } -func awsRestjson1_serializeDocumentPercentageDisplayFormatConfiguration(v *types.PercentageDisplayFormatConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentPivotTableCellConditionalFormatting(v *types.PivotTableCellConditionalFormatting, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.DecimalPlacesConfiguration != nil { - ok := object.Key("DecimalPlacesConfiguration") - if err := awsRestjson1_serializeDocumentDecimalPlacesConfiguration(v.DecimalPlacesConfiguration, ok); err != nil { + if v.FieldId != nil { + ok := object.Key("FieldId") + ok.String(*v.FieldId) + } + + if v.Scope != nil { + ok := object.Key("Scope") + if err := awsRestjson1_serializeDocumentPivotTableConditionalFormattingScope(v.Scope, ok); err != nil { return err } } - if v.NegativeValueConfiguration != nil { - ok := object.Key("NegativeValueConfiguration") - if err := awsRestjson1_serializeDocumentNegativeValueConfiguration(v.NegativeValueConfiguration, ok); err != nil { + if v.TextFormat != nil { + ok := object.Key("TextFormat") + if err := awsRestjson1_serializeDocumentTextConditionalFormat(v.TextFormat, ok); err != nil { return err } } - if v.NullValueFormatConfiguration != nil { - ok := object.Key("NullValueFormatConfiguration") - if err := awsRestjson1_serializeDocumentNullValueFormatConfiguration(v.NullValueFormatConfiguration, ok); err != nil { + return nil +} + +func awsRestjson1_serializeDocumentPivotTableConditionalFormatting(v *types.PivotTableConditionalFormatting, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ConditionalFormattingOptions != nil { + ok := object.Key("ConditionalFormattingOptions") + if err := awsRestjson1_serializeDocumentPivotTableConditionalFormattingOptionList(v.ConditionalFormattingOptions, ok); err != nil { return err } } - if v.Prefix != nil { - ok := object.Key("Prefix") - ok.String(*v.Prefix) + return nil +} + +func awsRestjson1_serializeDocumentPivotTableConditionalFormattingOption(v *types.PivotTableConditionalFormattingOption, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Cell != nil { + ok := object.Key("Cell") + if err := awsRestjson1_serializeDocumentPivotTableCellConditionalFormatting(v.Cell, ok); err != nil { + return err + } } - if v.SeparatorConfiguration != nil { - ok := object.Key("SeparatorConfiguration") - if err := awsRestjson1_serializeDocumentNumericSeparatorConfiguration(v.SeparatorConfiguration, ok); err != nil { + return nil +} + +func awsRestjson1_serializeDocumentPivotTableConditionalFormattingOptionList(v []types.PivotTableConditionalFormattingOption, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentPivotTableConditionalFormattingOption(&v[i], av); err != nil { return err } } + return nil +} - if v.Suffix != nil { - ok := object.Key("Suffix") - ok.String(*v.Suffix) +func awsRestjson1_serializeDocumentPivotTableConditionalFormattingScope(v *types.PivotTableConditionalFormattingScope, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if len(v.Role) > 0 { + ok := object.Key("Role") + ok.String(string(v.Role)) } return nil } -func awsRestjson1_serializeDocumentPercentileAggregation(v *types.PercentileAggregation, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentPivotTableConfiguration(v *types.PivotTableConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.PercentileValue != nil { - ok := object.Key("PercentileValue") - switch { - case math.IsNaN(*v.PercentileValue): - ok.String("NaN") + if v.FieldOptions != nil { + ok := object.Key("FieldOptions") + if err := awsRestjson1_serializeDocumentPivotTableFieldOptions(v.FieldOptions, ok); err != nil { + return err + } + } - case math.IsInf(*v.PercentileValue, 1): - ok.String("Infinity") + if v.FieldWells != nil { + ok := object.Key("FieldWells") + if err := awsRestjson1_serializeDocumentPivotTableFieldWells(v.FieldWells, ok); err != nil { + return err + } + } - case math.IsInf(*v.PercentileValue, -1): - ok.String("-Infinity") + if v.PaginatedReportOptions != nil { + ok := object.Key("PaginatedReportOptions") + if err := awsRestjson1_serializeDocumentPivotTablePaginatedReportOptions(v.PaginatedReportOptions, ok); err != nil { + return err + } + } - default: - ok.Double(*v.PercentileValue) + if v.SortConfiguration != nil { + ok := object.Key("SortConfiguration") + if err := awsRestjson1_serializeDocumentPivotTableSortConfiguration(v.SortConfiguration, ok); err != nil { + return err + } + } + + if v.TableOptions != nil { + ok := object.Key("TableOptions") + if err := awsRestjson1_serializeDocumentPivotTableOptions(v.TableOptions, ok); err != nil { + return err + } + } + if v.TotalOptions != nil { + ok := object.Key("TotalOptions") + if err := awsRestjson1_serializeDocumentPivotTableTotalOptions(v.TotalOptions, ok); err != nil { + return err } } return nil } -func awsRestjson1_serializeDocumentPercentVisibleRange(v *types.PercentVisibleRange, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentPivotTableDataPathOption(v *types.PivotTableDataPathOption, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.From != nil { - ok := object.Key("From") - switch { - case math.IsNaN(*v.From): - ok.String("NaN") - - case math.IsInf(*v.From, 1): - ok.String("Infinity") - - case math.IsInf(*v.From, -1): - ok.String("-Infinity") - - default: - ok.Double(*v.From) - + if v.DataPathList != nil { + ok := object.Key("DataPathList") + if err := awsRestjson1_serializeDocumentDataPathValueList(v.DataPathList, ok); err != nil { + return err } } - if v.To != nil { - ok := object.Key("To") - switch { - case math.IsNaN(*v.To): - ok.String("NaN") - - case math.IsInf(*v.To, 1): - ok.String("Infinity") + if v.Width != nil { + ok := object.Key("Width") + ok.String(*v.Width) + } - case math.IsInf(*v.To, -1): - ok.String("-Infinity") + return nil +} - default: - ok.Double(*v.To) +func awsRestjson1_serializeDocumentPivotTableDataPathOptionList(v []types.PivotTableDataPathOption, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentPivotTableDataPathOption(&v[i], av); err != nil { + return err } } + return nil +} + +func awsRestjson1_serializeDocumentPivotTableDimensionList(v []types.DimensionField, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentDimensionField(&v[i], av); err != nil { + return err + } + } return nil } -func awsRestjson1_serializeDocumentPeriodOverPeriodComputation(v *types.PeriodOverPeriodComputation, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentPivotTableFieldOption(v *types.PivotTableFieldOption, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.ComputationId != nil { - ok := object.Key("ComputationId") - ok.String(*v.ComputationId) + if v.CustomLabel != nil { + ok := object.Key("CustomLabel") + ok.String(*v.CustomLabel) } - if v.Name != nil { - ok := object.Key("Name") - ok.String(*v.Name) + if v.FieldId != nil { + ok := object.Key("FieldId") + ok.String(*v.FieldId) } - if v.Time != nil { - ok := object.Key("Time") - if err := awsRestjson1_serializeDocumentDimensionField(v.Time, ok); err != nil { - return err - } + if len(v.Visibility) > 0 { + ok := object.Key("Visibility") + ok.String(string(v.Visibility)) } - if v.Value != nil { - ok := object.Key("Value") - if err := awsRestjson1_serializeDocumentMeasureField(v.Value, ok); err != nil { + return nil +} + +func awsRestjson1_serializeDocumentPivotTableFieldOptionList(v []types.PivotTableFieldOption, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentPivotTableFieldOption(&v[i], av); err != nil { return err } } - return nil } -func awsRestjson1_serializeDocumentPeriodToDateComputation(v *types.PeriodToDateComputation, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentPivotTableFieldOptions(v *types.PivotTableFieldOptions, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.ComputationId != nil { - ok := object.Key("ComputationId") - ok.String(*v.ComputationId) - } - - if v.Name != nil { - ok := object.Key("Name") - ok.String(*v.Name) - } - - if len(v.PeriodTimeGranularity) > 0 { - ok := object.Key("PeriodTimeGranularity") - ok.String(string(v.PeriodTimeGranularity)) - } - - if v.Time != nil { - ok := object.Key("Time") - if err := awsRestjson1_serializeDocumentDimensionField(v.Time, ok); err != nil { + if v.DataPathOptions != nil { + ok := object.Key("DataPathOptions") + if err := awsRestjson1_serializeDocumentPivotTableDataPathOptionList(v.DataPathOptions, ok); err != nil { return err } } - if v.Value != nil { - ok := object.Key("Value") - if err := awsRestjson1_serializeDocumentMeasureField(v.Value, ok); err != nil { + if v.SelectedFieldOptions != nil { + ok := object.Key("SelectedFieldOptions") + if err := awsRestjson1_serializeDocumentPivotTableFieldOptionList(v.SelectedFieldOptions, ok); err != nil { return err } } @@ -22252,157 +25032,150 @@ func awsRestjson1_serializeDocumentPeriodToDateComputation(v *types.PeriodToDate return nil } -func awsRestjson1_serializeDocumentPhysicalTable(v types.PhysicalTable, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentPivotTableFieldSubtotalOptions(v *types.PivotTableFieldSubtotalOptions, value smithyjson.Value) error { object := value.Object() defer object.Close() - switch uv := v.(type) { - case *types.PhysicalTableMemberCustomSql: - av := object.Key("CustomSql") - if err := awsRestjson1_serializeDocumentCustomSql(&uv.Value, av); err != nil { - return err - } + if v.FieldId != nil { + ok := object.Key("FieldId") + ok.String(*v.FieldId) + } - case *types.PhysicalTableMemberRelationalTable: - av := object.Key("RelationalTable") - if err := awsRestjson1_serializeDocumentRelationalTable(&uv.Value, av); err != nil { - return err - } + return nil +} - case *types.PhysicalTableMemberS3Source: - av := object.Key("S3Source") - if err := awsRestjson1_serializeDocumentS3Source(&uv.Value, av); err != nil { +func awsRestjson1_serializeDocumentPivotTableFieldSubtotalOptionsList(v []types.PivotTableFieldSubtotalOptions, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentPivotTableFieldSubtotalOptions(&v[i], av); err != nil { return err } - - default: - return fmt.Errorf("attempted to serialize unknown member type %T for union %T", uv, v) - } return nil } -func awsRestjson1_serializeDocumentPhysicalTableMap(v map[string]types.PhysicalTable, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentPivotTableFieldWells(v *types.PivotTableFieldWells, value smithyjson.Value) error { object := value.Object() defer object.Close() - for key := range v { - om := object.Key(key) - if vv := v[key]; vv == nil { - continue - } - if err := awsRestjson1_serializeDocumentPhysicalTable(v[key], om); err != nil { + if v.PivotTableAggregatedFieldWells != nil { + ok := object.Key("PivotTableAggregatedFieldWells") + if err := awsRestjson1_serializeDocumentPivotTableAggregatedFieldWells(v.PivotTableAggregatedFieldWells, ok); err != nil { return err } } + return nil } -func awsRestjson1_serializeDocumentPieChartAggregatedFieldWells(v *types.PieChartAggregatedFieldWells, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentPivotTableOptions(v *types.PivotTableOptions, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Category != nil { - ok := object.Key("Category") - if err := awsRestjson1_serializeDocumentDimensionFieldList(v.Category, ok); err != nil { + if v.CellStyle != nil { + ok := object.Key("CellStyle") + if err := awsRestjson1_serializeDocumentTableCellStyle(v.CellStyle, ok); err != nil { return err } } - if v.SmallMultiples != nil { - ok := object.Key("SmallMultiples") - if err := awsRestjson1_serializeDocumentSmallMultiplesDimensionFieldList(v.SmallMultiples, ok); err != nil { - return err - } + if len(v.CollapsedRowDimensionsVisibility) > 0 { + ok := object.Key("CollapsedRowDimensionsVisibility") + ok.String(string(v.CollapsedRowDimensionsVisibility)) } - if v.Values != nil { - ok := object.Key("Values") - if err := awsRestjson1_serializeDocumentMeasureFieldList(v.Values, ok); err != nil { + if v.ColumnHeaderStyle != nil { + ok := object.Key("ColumnHeaderStyle") + if err := awsRestjson1_serializeDocumentTableCellStyle(v.ColumnHeaderStyle, ok); err != nil { return err } } - return nil -} - -func awsRestjson1_serializeDocumentPieChartConfiguration(v *types.PieChartConfiguration, value smithyjson.Value) error { - object := value.Object() - defer object.Close() + if len(v.ColumnNamesVisibility) > 0 { + ok := object.Key("ColumnNamesVisibility") + ok.String(string(v.ColumnNamesVisibility)) + } - if v.CategoryLabelOptions != nil { - ok := object.Key("CategoryLabelOptions") - if err := awsRestjson1_serializeDocumentChartAxisLabelOptions(v.CategoryLabelOptions, ok); err != nil { - return err - } + if len(v.MetricPlacement) > 0 { + ok := object.Key("MetricPlacement") + ok.String(string(v.MetricPlacement)) } - if v.ContributionAnalysisDefaults != nil { - ok := object.Key("ContributionAnalysisDefaults") - if err := awsRestjson1_serializeDocumentContributionAnalysisDefaultList(v.ContributionAnalysisDefaults, ok); err != nil { + if v.RowAlternateColorOptions != nil { + ok := object.Key("RowAlternateColorOptions") + if err := awsRestjson1_serializeDocumentRowAlternateColorOptions(v.RowAlternateColorOptions, ok); err != nil { return err } } - if v.DataLabels != nil { - ok := object.Key("DataLabels") - if err := awsRestjson1_serializeDocumentDataLabelOptions(v.DataLabels, ok); err != nil { + if v.RowFieldNamesStyle != nil { + ok := object.Key("RowFieldNamesStyle") + if err := awsRestjson1_serializeDocumentTableCellStyle(v.RowFieldNamesStyle, ok); err != nil { return err } } - if v.DonutOptions != nil { - ok := object.Key("DonutOptions") - if err := awsRestjson1_serializeDocumentDonutOptions(v.DonutOptions, ok); err != nil { + if v.RowHeaderStyle != nil { + ok := object.Key("RowHeaderStyle") + if err := awsRestjson1_serializeDocumentTableCellStyle(v.RowHeaderStyle, ok); err != nil { return err } } - if v.FieldWells != nil { - ok := object.Key("FieldWells") - if err := awsRestjson1_serializeDocumentPieChartFieldWells(v.FieldWells, ok); err != nil { - return err - } + if len(v.SingleMetricVisibility) > 0 { + ok := object.Key("SingleMetricVisibility") + ok.String(string(v.SingleMetricVisibility)) } - if v.Legend != nil { - ok := object.Key("Legend") - if err := awsRestjson1_serializeDocumentLegendOptions(v.Legend, ok); err != nil { - return err - } + if len(v.ToggleButtonsVisibility) > 0 { + ok := object.Key("ToggleButtonsVisibility") + ok.String(string(v.ToggleButtonsVisibility)) } - if v.SmallMultiplesOptions != nil { - ok := object.Key("SmallMultiplesOptions") - if err := awsRestjson1_serializeDocumentSmallMultiplesOptions(v.SmallMultiplesOptions, ok); err != nil { - return err - } + return nil +} + +func awsRestjson1_serializeDocumentPivotTablePaginatedReportOptions(v *types.PivotTablePaginatedReportOptions, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if len(v.OverflowColumnHeaderVisibility) > 0 { + ok := object.Key("OverflowColumnHeaderVisibility") + ok.String(string(v.OverflowColumnHeaderVisibility)) } - if v.SortConfiguration != nil { - ok := object.Key("SortConfiguration") - if err := awsRestjson1_serializeDocumentPieChartSortConfiguration(v.SortConfiguration, ok); err != nil { - return err - } + if len(v.VerticalOverflowVisibility) > 0 { + ok := object.Key("VerticalOverflowVisibility") + ok.String(string(v.VerticalOverflowVisibility)) } - if v.Tooltip != nil { - ok := object.Key("Tooltip") - if err := awsRestjson1_serializeDocumentTooltipOptions(v.Tooltip, ok); err != nil { + return nil +} + +func awsRestjson1_serializeDocumentPivotTableSortBy(v *types.PivotTableSortBy, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Column != nil { + ok := object.Key("Column") + if err := awsRestjson1_serializeDocumentColumnSort(v.Column, ok); err != nil { return err } } - if v.ValueLabelOptions != nil { - ok := object.Key("ValueLabelOptions") - if err := awsRestjson1_serializeDocumentChartAxisLabelOptions(v.ValueLabelOptions, ok); err != nil { + if v.DataPath != nil { + ok := object.Key("DataPath") + if err := awsRestjson1_serializeDocumentDataPathSort(v.DataPath, ok); err != nil { return err } } - if v.VisualPalette != nil { - ok := object.Key("VisualPalette") - if err := awsRestjson1_serializeDocumentVisualPalette(v.VisualPalette, ok); err != nil { + if v.Field != nil { + ok := object.Key("Field") + if err := awsRestjson1_serializeDocumentFieldSort(v.Field, ok); err != nil { return err } } @@ -22410,13 +25183,13 @@ func awsRestjson1_serializeDocumentPieChartConfiguration(v *types.PieChartConfig return nil } -func awsRestjson1_serializeDocumentPieChartFieldWells(v *types.PieChartFieldWells, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentPivotTableSortConfiguration(v *types.PivotTableSortConfiguration, value smithyjson.Value) error { object := value.Object() - defer object.Close() - - if v.PieChartAggregatedFieldWells != nil { - ok := object.Key("PieChartAggregatedFieldWells") - if err := awsRestjson1_serializeDocumentPieChartAggregatedFieldWells(v.PieChartAggregatedFieldWells, ok); err != nil { + defer object.Close() + + if v.FieldSortOptions != nil { + ok := object.Key("FieldSortOptions") + if err := awsRestjson1_serializeDocumentPivotFieldSortOptionsList(v.FieldSortOptions, ok); err != nil { return err } } @@ -22424,34 +25197,34 @@ func awsRestjson1_serializeDocumentPieChartFieldWells(v *types.PieChartFieldWell return nil } -func awsRestjson1_serializeDocumentPieChartSortConfiguration(v *types.PieChartSortConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentPivotTableTotalOptions(v *types.PivotTableTotalOptions, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.CategoryItemsLimit != nil { - ok := object.Key("CategoryItemsLimit") - if err := awsRestjson1_serializeDocumentItemsLimitConfiguration(v.CategoryItemsLimit, ok); err != nil { + if v.ColumnSubtotalOptions != nil { + ok := object.Key("ColumnSubtotalOptions") + if err := awsRestjson1_serializeDocumentSubtotalOptions(v.ColumnSubtotalOptions, ok); err != nil { return err } } - if v.CategorySort != nil { - ok := object.Key("CategorySort") - if err := awsRestjson1_serializeDocumentFieldSortOptionsList(v.CategorySort, ok); err != nil { + if v.ColumnTotalOptions != nil { + ok := object.Key("ColumnTotalOptions") + if err := awsRestjson1_serializeDocumentPivotTotalOptions(v.ColumnTotalOptions, ok); err != nil { return err } } - if v.SmallMultiplesLimitConfiguration != nil { - ok := object.Key("SmallMultiplesLimitConfiguration") - if err := awsRestjson1_serializeDocumentItemsLimitConfiguration(v.SmallMultiplesLimitConfiguration, ok); err != nil { + if v.RowSubtotalOptions != nil { + ok := object.Key("RowSubtotalOptions") + if err := awsRestjson1_serializeDocumentSubtotalOptions(v.RowSubtotalOptions, ok); err != nil { return err } } - if v.SmallMultiplesSort != nil { - ok := object.Key("SmallMultiplesSort") - if err := awsRestjson1_serializeDocumentFieldSortOptionsList(v.SmallMultiplesSort, ok); err != nil { + if v.RowTotalOptions != nil { + ok := object.Key("RowTotalOptions") + if err := awsRestjson1_serializeDocumentPivotTotalOptions(v.RowTotalOptions, ok); err != nil { return err } } @@ -22459,7 +25232,7 @@ func awsRestjson1_serializeDocumentPieChartSortConfiguration(v *types.PieChartSo return nil } -func awsRestjson1_serializeDocumentPieChartVisual(v *types.PieChartVisual, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentPivotTableVisual(v *types.PivotTableVisual, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -22472,14 +25245,14 @@ func awsRestjson1_serializeDocumentPieChartVisual(v *types.PieChartVisual, value if v.ChartConfiguration != nil { ok := object.Key("ChartConfiguration") - if err := awsRestjson1_serializeDocumentPieChartConfiguration(v.ChartConfiguration, ok); err != nil { + if err := awsRestjson1_serializeDocumentPivotTableConfiguration(v.ChartConfiguration, ok); err != nil { return err } } - if v.ColumnHierarchies != nil { - ok := object.Key("ColumnHierarchies") - if err := awsRestjson1_serializeDocumentColumnHierarchyList(v.ColumnHierarchies, ok); err != nil { + if v.ConditionalFormatting != nil { + ok := object.Key("ConditionalFormatting") + if err := awsRestjson1_serializeDocumentPivotTableConditionalFormatting(v.ConditionalFormatting, ok); err != nil { return err } } @@ -22506,72 +25279,47 @@ func awsRestjson1_serializeDocumentPieChartVisual(v *types.PieChartVisual, value return nil } -func awsRestjson1_serializeDocumentPivotFieldSortOptions(v *types.PivotFieldSortOptions, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentPivotTotalOptions(v *types.PivotTotalOptions, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.FieldId != nil { - ok := object.Key("FieldId") - ok.String(*v.FieldId) + if v.CustomLabel != nil { + ok := object.Key("CustomLabel") + ok.String(*v.CustomLabel) } - if v.SortBy != nil { - ok := object.Key("SortBy") - if err := awsRestjson1_serializeDocumentPivotTableSortBy(v.SortBy, ok); err != nil { + if v.MetricHeaderCellStyle != nil { + ok := object.Key("MetricHeaderCellStyle") + if err := awsRestjson1_serializeDocumentTableCellStyle(v.MetricHeaderCellStyle, ok); err != nil { return err } } - return nil -} - -func awsRestjson1_serializeDocumentPivotFieldSortOptionsList(v []types.PivotFieldSortOptions, value smithyjson.Value) error { - array := value.Array() - defer array.Close() - - for i := range v { - av := array.Value() - if err := awsRestjson1_serializeDocumentPivotFieldSortOptions(&v[i], av); err != nil { - return err - } + if len(v.Placement) > 0 { + ok := object.Key("Placement") + ok.String(string(v.Placement)) } - return nil -} -func awsRestjson1_serializeDocumentPivotMeasureFieldList(v []types.MeasureField, value smithyjson.Value) error { - array := value.Array() - defer array.Close() - - for i := range v { - av := array.Value() - if err := awsRestjson1_serializeDocumentMeasureField(&v[i], av); err != nil { - return err - } + if len(v.ScrollStatus) > 0 { + ok := object.Key("ScrollStatus") + ok.String(string(v.ScrollStatus)) } - return nil -} - -func awsRestjson1_serializeDocumentPivotTableAggregatedFieldWells(v *types.PivotTableAggregatedFieldWells, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - if v.Columns != nil { - ok := object.Key("Columns") - if err := awsRestjson1_serializeDocumentPivotTableDimensionList(v.Columns, ok); err != nil { + if v.TotalCellStyle != nil { + ok := object.Key("TotalCellStyle") + if err := awsRestjson1_serializeDocumentTableCellStyle(v.TotalCellStyle, ok); err != nil { return err } } - if v.Rows != nil { - ok := object.Key("Rows") - if err := awsRestjson1_serializeDocumentPivotTableDimensionList(v.Rows, ok); err != nil { - return err - } + if len(v.TotalsVisibility) > 0 { + ok := object.Key("TotalsVisibility") + ok.String(string(v.TotalsVisibility)) } - if v.Values != nil { - ok := object.Key("Values") - if err := awsRestjson1_serializeDocumentPivotMeasureFieldList(v.Values, ok); err != nil { + if v.ValueCellStyle != nil { + ok := object.Key("ValueCellStyle") + if err := awsRestjson1_serializeDocumentTableCellStyle(v.ValueCellStyle, ok); err != nil { return err } } @@ -22579,193 +25327,104 @@ func awsRestjson1_serializeDocumentPivotTableAggregatedFieldWells(v *types.Pivot return nil } -func awsRestjson1_serializeDocumentPivotTableCellConditionalFormatting(v *types.PivotTableCellConditionalFormatting, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentPostgreSqlParameters(v *types.PostgreSqlParameters, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.FieldId != nil { - ok := object.Key("FieldId") - ok.String(*v.FieldId) + if v.Database != nil { + ok := object.Key("Database") + ok.String(*v.Database) } - if v.Scope != nil { - ok := object.Key("Scope") - if err := awsRestjson1_serializeDocumentPivotTableConditionalFormattingScope(v.Scope, ok); err != nil { - return err - } + if v.Host != nil { + ok := object.Key("Host") + ok.String(*v.Host) } - if v.TextFormat != nil { - ok := object.Key("TextFormat") - if err := awsRestjson1_serializeDocumentTextConditionalFormat(v.TextFormat, ok); err != nil { - return err - } + { + ok := object.Key("Port") + ok.Integer(v.Port) } return nil } -func awsRestjson1_serializeDocumentPivotTableConditionalFormatting(v *types.PivotTableConditionalFormatting, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentPredefinedHierarchy(v *types.PredefinedHierarchy, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.ConditionalFormattingOptions != nil { - ok := object.Key("ConditionalFormattingOptions") - if err := awsRestjson1_serializeDocumentPivotTableConditionalFormattingOptionList(v.ConditionalFormattingOptions, ok); err != nil { + if v.Columns != nil { + ok := object.Key("Columns") + if err := awsRestjson1_serializeDocumentPredefinedHierarchyColumnList(v.Columns, ok); err != nil { return err } } - return nil -} - -func awsRestjson1_serializeDocumentPivotTableConditionalFormattingOption(v *types.PivotTableConditionalFormattingOption, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Cell != nil { - ok := object.Key("Cell") - if err := awsRestjson1_serializeDocumentPivotTableCellConditionalFormatting(v.Cell, ok); err != nil { + if v.DrillDownFilters != nil { + ok := object.Key("DrillDownFilters") + if err := awsRestjson1_serializeDocumentDrillDownFilterList(v.DrillDownFilters, ok); err != nil { return err } } + if v.HierarchyId != nil { + ok := object.Key("HierarchyId") + ok.String(*v.HierarchyId) + } + return nil } -func awsRestjson1_serializeDocumentPivotTableConditionalFormattingOptionList(v []types.PivotTableConditionalFormattingOption, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentPredefinedHierarchyColumnList(v []types.ColumnIdentifier, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if err := awsRestjson1_serializeDocumentPivotTableConditionalFormattingOption(&v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentColumnIdentifier(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentPivotTableConditionalFormattingScope(v *types.PivotTableConditionalFormattingScope, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if len(v.Role) > 0 { - ok := object.Key("Role") - ok.String(string(v.Role)) - } - - return nil -} - -func awsRestjson1_serializeDocumentPivotTableConfiguration(v *types.PivotTableConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentPrestoParameters(v *types.PrestoParameters, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.FieldOptions != nil { - ok := object.Key("FieldOptions") - if err := awsRestjson1_serializeDocumentPivotTableFieldOptions(v.FieldOptions, ok); err != nil { - return err - } - } - - if v.FieldWells != nil { - ok := object.Key("FieldWells") - if err := awsRestjson1_serializeDocumentPivotTableFieldWells(v.FieldWells, ok); err != nil { - return err - } - } - - if v.PaginatedReportOptions != nil { - ok := object.Key("PaginatedReportOptions") - if err := awsRestjson1_serializeDocumentPivotTablePaginatedReportOptions(v.PaginatedReportOptions, ok); err != nil { - return err - } - } - - if v.SortConfiguration != nil { - ok := object.Key("SortConfiguration") - if err := awsRestjson1_serializeDocumentPivotTableSortConfiguration(v.SortConfiguration, ok); err != nil { - return err - } - } - - if v.TableOptions != nil { - ok := object.Key("TableOptions") - if err := awsRestjson1_serializeDocumentPivotTableOptions(v.TableOptions, ok); err != nil { - return err - } - } - - if v.TotalOptions != nil { - ok := object.Key("TotalOptions") - if err := awsRestjson1_serializeDocumentPivotTableTotalOptions(v.TotalOptions, ok); err != nil { - return err - } + if v.Catalog != nil { + ok := object.Key("Catalog") + ok.String(*v.Catalog) } - return nil -} - -func awsRestjson1_serializeDocumentPivotTableDataPathOption(v *types.PivotTableDataPathOption, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.DataPathList != nil { - ok := object.Key("DataPathList") - if err := awsRestjson1_serializeDocumentDataPathValueList(v.DataPathList, ok); err != nil { - return err - } + if v.Host != nil { + ok := object.Key("Host") + ok.String(*v.Host) } - if v.Width != nil { - ok := object.Key("Width") - ok.String(*v.Width) + { + ok := object.Key("Port") + ok.Integer(v.Port) } return nil } -func awsRestjson1_serializeDocumentPivotTableDataPathOptionList(v []types.PivotTableDataPathOption, value smithyjson.Value) error { - array := value.Array() - defer array.Close() - - for i := range v { - av := array.Value() - if err := awsRestjson1_serializeDocumentPivotTableDataPathOption(&v[i], av); err != nil { - return err - } - } - return nil -} - -func awsRestjson1_serializeDocumentPivotTableDimensionList(v []types.DimensionField, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentPrincipalList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if err := awsRestjson1_serializeDocumentDimensionField(&v[i], av); err != nil { - return err - } + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentPivotTableFieldOption(v *types.PivotTableFieldOption, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentProgressBarOptions(v *types.ProgressBarOptions, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.CustomLabel != nil { - ok := object.Key("CustomLabel") - ok.String(*v.CustomLabel) - } - - if v.FieldId != nil { - ok := object.Key("FieldId") - ok.String(*v.FieldId) - } - if len(v.Visibility) > 0 { ok := object.Key("Visibility") ok.String(string(v.Visibility)) @@ -22774,33 +25433,52 @@ func awsRestjson1_serializeDocumentPivotTableFieldOption(v *types.PivotTableFiel return nil } -func awsRestjson1_serializeDocumentPivotTableFieldOptionList(v []types.PivotTableFieldOption, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentProjectedColumnList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if err := awsRestjson1_serializeDocumentPivotTableFieldOption(&v[i], av); err != nil { + av.String(v[i]) + } + return nil +} + +func awsRestjson1_serializeDocumentProjectOperation(v *types.ProjectOperation, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ProjectedColumns != nil { + ok := object.Key("ProjectedColumns") + if err := awsRestjson1_serializeDocumentProjectedColumnList(v.ProjectedColumns, ok); err != nil { return err } } + return nil } -func awsRestjson1_serializeDocumentPivotTableFieldOptions(v *types.PivotTableFieldOptions, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentRadarChartAggregatedFieldWells(v *types.RadarChartAggregatedFieldWells, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.DataPathOptions != nil { - ok := object.Key("DataPathOptions") - if err := awsRestjson1_serializeDocumentPivotTableDataPathOptionList(v.DataPathOptions, ok); err != nil { + if v.Category != nil { + ok := object.Key("Category") + if err := awsRestjson1_serializeDocumentRadarChartCategoryFieldList(v.Category, ok); err != nil { return err } } - if v.SelectedFieldOptions != nil { - ok := object.Key("SelectedFieldOptions") - if err := awsRestjson1_serializeDocumentPivotTableFieldOptionList(v.SelectedFieldOptions, ok); err != nil { + if v.Color != nil { + ok := object.Key("Color") + if err := awsRestjson1_serializeDocumentRadarChartColorFieldList(v.Color, ok); err != nil { + return err + } + } + + if v.Values != nil { + ok := object.Key("Values") + if err := awsRestjson1_serializeDocumentRadarChartValuesFieldList(v.Values, ok); err != nil { return err } } @@ -22808,150 +25486,159 @@ func awsRestjson1_serializeDocumentPivotTableFieldOptions(v *types.PivotTableFie return nil } -func awsRestjson1_serializeDocumentPivotTableFieldSubtotalOptions(v *types.PivotTableFieldSubtotalOptions, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentRadarChartAreaStyleSettings(v *types.RadarChartAreaStyleSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.FieldId != nil { - ok := object.Key("FieldId") - ok.String(*v.FieldId) + if len(v.Visibility) > 0 { + ok := object.Key("Visibility") + ok.String(string(v.Visibility)) } return nil } -func awsRestjson1_serializeDocumentPivotTableFieldSubtotalOptionsList(v []types.PivotTableFieldSubtotalOptions, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentRadarChartCategoryFieldList(v []types.DimensionField, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if err := awsRestjson1_serializeDocumentPivotTableFieldSubtotalOptions(&v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentDimensionField(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentPivotTableFieldWells(v *types.PivotTableFieldWells, value smithyjson.Value) error { - object := value.Object() - defer object.Close() +func awsRestjson1_serializeDocumentRadarChartColorFieldList(v []types.DimensionField, value smithyjson.Value) error { + array := value.Array() + defer array.Close() - if v.PivotTableAggregatedFieldWells != nil { - ok := object.Key("PivotTableAggregatedFieldWells") - if err := awsRestjson1_serializeDocumentPivotTableAggregatedFieldWells(v.PivotTableAggregatedFieldWells, ok); err != nil { + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentDimensionField(&v[i], av); err != nil { return err } } - return nil } -func awsRestjson1_serializeDocumentPivotTableOptions(v *types.PivotTableOptions, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentRadarChartConfiguration(v *types.RadarChartConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.CellStyle != nil { - ok := object.Key("CellStyle") - if err := awsRestjson1_serializeDocumentTableCellStyle(v.CellStyle, ok); err != nil { - return err - } + if len(v.AlternateBandColorsVisibility) > 0 { + ok := object.Key("AlternateBandColorsVisibility") + ok.String(string(v.AlternateBandColorsVisibility)) } - if len(v.CollapsedRowDimensionsVisibility) > 0 { - ok := object.Key("CollapsedRowDimensionsVisibility") - ok.String(string(v.CollapsedRowDimensionsVisibility)) + if v.AlternateBandEvenColor != nil { + ok := object.Key("AlternateBandEvenColor") + ok.String(*v.AlternateBandEvenColor) } - if v.ColumnHeaderStyle != nil { - ok := object.Key("ColumnHeaderStyle") - if err := awsRestjson1_serializeDocumentTableCellStyle(v.ColumnHeaderStyle, ok); err != nil { + if v.AlternateBandOddColor != nil { + ok := object.Key("AlternateBandOddColor") + ok.String(*v.AlternateBandOddColor) + } + + if v.BaseSeriesSettings != nil { + ok := object.Key("BaseSeriesSettings") + if err := awsRestjson1_serializeDocumentRadarChartSeriesSettings(v.BaseSeriesSettings, ok); err != nil { return err } } - if len(v.ColumnNamesVisibility) > 0 { - ok := object.Key("ColumnNamesVisibility") - ok.String(string(v.ColumnNamesVisibility)) + if v.CategoryAxis != nil { + ok := object.Key("CategoryAxis") + if err := awsRestjson1_serializeDocumentAxisDisplayOptions(v.CategoryAxis, ok); err != nil { + return err + } } - if len(v.MetricPlacement) > 0 { - ok := object.Key("MetricPlacement") - ok.String(string(v.MetricPlacement)) + if v.CategoryLabelOptions != nil { + ok := object.Key("CategoryLabelOptions") + if err := awsRestjson1_serializeDocumentChartAxisLabelOptions(v.CategoryLabelOptions, ok); err != nil { + return err + } } - if v.RowAlternateColorOptions != nil { - ok := object.Key("RowAlternateColorOptions") - if err := awsRestjson1_serializeDocumentRowAlternateColorOptions(v.RowAlternateColorOptions, ok); err != nil { + if v.ColorAxis != nil { + ok := object.Key("ColorAxis") + if err := awsRestjson1_serializeDocumentAxisDisplayOptions(v.ColorAxis, ok); err != nil { return err } } - if v.RowFieldNamesStyle != nil { - ok := object.Key("RowFieldNamesStyle") - if err := awsRestjson1_serializeDocumentTableCellStyle(v.RowFieldNamesStyle, ok); err != nil { + if v.ColorLabelOptions != nil { + ok := object.Key("ColorLabelOptions") + if err := awsRestjson1_serializeDocumentChartAxisLabelOptions(v.ColorLabelOptions, ok); err != nil { return err } } - if v.RowHeaderStyle != nil { - ok := object.Key("RowHeaderStyle") - if err := awsRestjson1_serializeDocumentTableCellStyle(v.RowHeaderStyle, ok); err != nil { + if v.FieldWells != nil { + ok := object.Key("FieldWells") + if err := awsRestjson1_serializeDocumentRadarChartFieldWells(v.FieldWells, ok); err != nil { return err } } - if len(v.SingleMetricVisibility) > 0 { - ok := object.Key("SingleMetricVisibility") - ok.String(string(v.SingleMetricVisibility)) + if v.Legend != nil { + ok := object.Key("Legend") + if err := awsRestjson1_serializeDocumentLegendOptions(v.Legend, ok); err != nil { + return err + } } - if len(v.ToggleButtonsVisibility) > 0 { - ok := object.Key("ToggleButtonsVisibility") - ok.String(string(v.ToggleButtonsVisibility)) + if len(v.Shape) > 0 { + ok := object.Key("Shape") + ok.String(string(v.Shape)) } - return nil -} - -func awsRestjson1_serializeDocumentPivotTablePaginatedReportOptions(v *types.PivotTablePaginatedReportOptions, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if len(v.OverflowColumnHeaderVisibility) > 0 { - ok := object.Key("OverflowColumnHeaderVisibility") - ok.String(string(v.OverflowColumnHeaderVisibility)) + if v.SortConfiguration != nil { + ok := object.Key("SortConfiguration") + if err := awsRestjson1_serializeDocumentRadarChartSortConfiguration(v.SortConfiguration, ok); err != nil { + return err + } } - if len(v.VerticalOverflowVisibility) > 0 { - ok := object.Key("VerticalOverflowVisibility") - ok.String(string(v.VerticalOverflowVisibility)) - } + if v.StartAngle != nil { + ok := object.Key("StartAngle") + switch { + case math.IsNaN(*v.StartAngle): + ok.String("NaN") - return nil -} + case math.IsInf(*v.StartAngle, 1): + ok.String("Infinity") -func awsRestjson1_serializeDocumentPivotTableSortBy(v *types.PivotTableSortBy, value smithyjson.Value) error { - object := value.Object() - defer object.Close() + case math.IsInf(*v.StartAngle, -1): + ok.String("-Infinity") + + default: + ok.Double(*v.StartAngle) - if v.Column != nil { - ok := object.Key("Column") - if err := awsRestjson1_serializeDocumentColumnSort(v.Column, ok); err != nil { - return err } } - if v.DataPath != nil { - ok := object.Key("DataPath") - if err := awsRestjson1_serializeDocumentDataPathSort(v.DataPath, ok); err != nil { + if v.VisualPalette != nil { + ok := object.Key("VisualPalette") + if err := awsRestjson1_serializeDocumentVisualPalette(v.VisualPalette, ok); err != nil { return err } } - if v.Field != nil { - ok := object.Key("Field") - if err := awsRestjson1_serializeDocumentFieldSort(v.Field, ok); err != nil { + return nil +} + +func awsRestjson1_serializeDocumentRadarChartFieldWells(v *types.RadarChartFieldWells, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.RadarChartAggregatedFieldWells != nil { + ok := object.Key("RadarChartAggregatedFieldWells") + if err := awsRestjson1_serializeDocumentRadarChartAggregatedFieldWells(v.RadarChartAggregatedFieldWells, ok); err != nil { return err } } @@ -22959,13 +25646,13 @@ func awsRestjson1_serializeDocumentPivotTableSortBy(v *types.PivotTableSortBy, v return nil } -func awsRestjson1_serializeDocumentPivotTableSortConfiguration(v *types.PivotTableSortConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentRadarChartSeriesSettings(v *types.RadarChartSeriesSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.FieldSortOptions != nil { - ok := object.Key("FieldSortOptions") - if err := awsRestjson1_serializeDocumentPivotFieldSortOptionsList(v.FieldSortOptions, ok); err != nil { + if v.AreaStyleSettings != nil { + ok := object.Key("AreaStyleSettings") + if err := awsRestjson1_serializeDocumentRadarChartAreaStyleSettings(v.AreaStyleSettings, ok); err != nil { return err } } @@ -22973,42 +25660,55 @@ func awsRestjson1_serializeDocumentPivotTableSortConfiguration(v *types.PivotTab return nil } -func awsRestjson1_serializeDocumentPivotTableTotalOptions(v *types.PivotTableTotalOptions, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentRadarChartSortConfiguration(v *types.RadarChartSortConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.ColumnSubtotalOptions != nil { - ok := object.Key("ColumnSubtotalOptions") - if err := awsRestjson1_serializeDocumentSubtotalOptions(v.ColumnSubtotalOptions, ok); err != nil { + if v.CategoryItemsLimit != nil { + ok := object.Key("CategoryItemsLimit") + if err := awsRestjson1_serializeDocumentItemsLimitConfiguration(v.CategoryItemsLimit, ok); err != nil { return err } } - if v.ColumnTotalOptions != nil { - ok := object.Key("ColumnTotalOptions") - if err := awsRestjson1_serializeDocumentPivotTotalOptions(v.ColumnTotalOptions, ok); err != nil { + if v.CategorySort != nil { + ok := object.Key("CategorySort") + if err := awsRestjson1_serializeDocumentFieldSortOptionsList(v.CategorySort, ok); err != nil { return err } } - if v.RowSubtotalOptions != nil { - ok := object.Key("RowSubtotalOptions") - if err := awsRestjson1_serializeDocumentSubtotalOptions(v.RowSubtotalOptions, ok); err != nil { + if v.ColorItemsLimit != nil { + ok := object.Key("ColorItemsLimit") + if err := awsRestjson1_serializeDocumentItemsLimitConfiguration(v.ColorItemsLimit, ok); err != nil { return err } } - if v.RowTotalOptions != nil { - ok := object.Key("RowTotalOptions") - if err := awsRestjson1_serializeDocumentPivotTotalOptions(v.RowTotalOptions, ok); err != nil { + if v.ColorSort != nil { + ok := object.Key("ColorSort") + if err := awsRestjson1_serializeDocumentFieldSortOptionsList(v.ColorSort, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentRadarChartValuesFieldList(v []types.MeasureField, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentMeasureField(&v[i], av); err != nil { return err } } - return nil } -func awsRestjson1_serializeDocumentPivotTableVisual(v *types.PivotTableVisual, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentRadarChartVisual(v *types.RadarChartVisual, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -23021,14 +25721,14 @@ func awsRestjson1_serializeDocumentPivotTableVisual(v *types.PivotTableVisual, v if v.ChartConfiguration != nil { ok := object.Key("ChartConfiguration") - if err := awsRestjson1_serializeDocumentPivotTableConfiguration(v.ChartConfiguration, ok); err != nil { + if err := awsRestjson1_serializeDocumentRadarChartConfiguration(v.ChartConfiguration, ok); err != nil { return err } } - if v.ConditionalFormatting != nil { - ok := object.Key("ConditionalFormatting") - if err := awsRestjson1_serializeDocumentPivotTableConditionalFormatting(v.ConditionalFormatting, ok); err != nil { + if v.ColumnHierarchies != nil { + ok := object.Key("ColumnHierarchies") + if err := awsRestjson1_serializeDocumentColumnHierarchyList(v.ColumnHierarchies, ok); err != nil { return err } } @@ -23055,58 +25755,61 @@ func awsRestjson1_serializeDocumentPivotTableVisual(v *types.PivotTableVisual, v return nil } -func awsRestjson1_serializeDocumentPivotTotalOptions(v *types.PivotTotalOptions, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentRangeConstant(v *types.RangeConstant, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.CustomLabel != nil { - ok := object.Key("CustomLabel") - ok.String(*v.CustomLabel) + if v.Maximum != nil { + ok := object.Key("Maximum") + ok.String(*v.Maximum) } - if v.MetricHeaderCellStyle != nil { - ok := object.Key("MetricHeaderCellStyle") - if err := awsRestjson1_serializeDocumentTableCellStyle(v.MetricHeaderCellStyle, ok); err != nil { - return err - } + if v.Minimum != nil { + ok := object.Key("Minimum") + ok.String(*v.Minimum) } - if len(v.Placement) > 0 { - ok := object.Key("Placement") - ok.String(string(v.Placement)) - } + return nil +} - if len(v.ScrollStatus) > 0 { - ok := object.Key("ScrollStatus") - ok.String(string(v.ScrollStatus)) - } +func awsRestjson1_serializeDocumentRangeEndsLabelType(v *types.RangeEndsLabelType, value smithyjson.Value) error { + object := value.Object() + defer object.Close() - if v.TotalCellStyle != nil { - ok := object.Key("TotalCellStyle") - if err := awsRestjson1_serializeDocumentTableCellStyle(v.TotalCellStyle, ok); err != nil { - return err - } + if len(v.Visibility) > 0 { + ok := object.Key("Visibility") + ok.String(string(v.Visibility)) } - if len(v.TotalsVisibility) > 0 { - ok := object.Key("TotalsVisibility") - ok.String(string(v.TotalsVisibility)) + return nil +} + +func awsRestjson1_serializeDocumentRdsParameters(v *types.RdsParameters, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Database != nil { + ok := object.Key("Database") + ok.String(*v.Database) } - if v.ValueCellStyle != nil { - ok := object.Key("ValueCellStyle") - if err := awsRestjson1_serializeDocumentTableCellStyle(v.ValueCellStyle, ok); err != nil { - return err - } + if v.InstanceId != nil { + ok := object.Key("InstanceId") + ok.String(*v.InstanceId) } return nil } -func awsRestjson1_serializeDocumentPostgreSqlParameters(v *types.PostgreSqlParameters, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentRedshiftParameters(v *types.RedshiftParameters, value smithyjson.Value) error { object := value.Object() defer object.Close() + if v.ClusterId != nil { + ok := object.Key("ClusterId") + ok.String(*v.ClusterId) + } + if v.Database != nil { ok := object.Key("Database") ok.String(*v.Database) @@ -23117,7 +25820,7 @@ func awsRestjson1_serializeDocumentPostgreSqlParameters(v *types.PostgreSqlParam ok.String(*v.Host) } - { + if v.Port != 0 { ok := object.Key("Port") ok.Integer(v.Port) } @@ -23125,482 +25828,633 @@ func awsRestjson1_serializeDocumentPostgreSqlParameters(v *types.PostgreSqlParam return nil } -func awsRestjson1_serializeDocumentPredefinedHierarchy(v *types.PredefinedHierarchy, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentReferenceLine(v *types.ReferenceLine, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Columns != nil { - ok := object.Key("Columns") - if err := awsRestjson1_serializeDocumentPredefinedHierarchyColumnList(v.Columns, ok); err != nil { + if v.DataConfiguration != nil { + ok := object.Key("DataConfiguration") + if err := awsRestjson1_serializeDocumentReferenceLineDataConfiguration(v.DataConfiguration, ok); err != nil { return err } } - if v.DrillDownFilters != nil { - ok := object.Key("DrillDownFilters") - if err := awsRestjson1_serializeDocumentDrillDownFilterList(v.DrillDownFilters, ok); err != nil { + if v.LabelConfiguration != nil { + ok := object.Key("LabelConfiguration") + if err := awsRestjson1_serializeDocumentReferenceLineLabelConfiguration(v.LabelConfiguration, ok); err != nil { return err } } - if v.HierarchyId != nil { - ok := object.Key("HierarchyId") - ok.String(*v.HierarchyId) + if len(v.Status) > 0 { + ok := object.Key("Status") + ok.String(string(v.Status)) + } + + if v.StyleConfiguration != nil { + ok := object.Key("StyleConfiguration") + if err := awsRestjson1_serializeDocumentReferenceLineStyleConfiguration(v.StyleConfiguration, ok); err != nil { + return err + } } return nil } -func awsRestjson1_serializeDocumentPredefinedHierarchyColumnList(v []types.ColumnIdentifier, value smithyjson.Value) error { - array := value.Array() - defer array.Close() +func awsRestjson1_serializeDocumentReferenceLineCustomLabelConfiguration(v *types.ReferenceLineCustomLabelConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() - for i := range v { - av := array.Value() - if err := awsRestjson1_serializeDocumentColumnIdentifier(&v[i], av); err != nil { + if v.CustomLabel != nil { + ok := object.Key("CustomLabel") + ok.String(*v.CustomLabel) + } + + return nil +} + +func awsRestjson1_serializeDocumentReferenceLineDataConfiguration(v *types.ReferenceLineDataConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if len(v.AxisBinding) > 0 { + ok := object.Key("AxisBinding") + ok.String(string(v.AxisBinding)) + } + + if v.DynamicConfiguration != nil { + ok := object.Key("DynamicConfiguration") + if err := awsRestjson1_serializeDocumentReferenceLineDynamicDataConfiguration(v.DynamicConfiguration, ok); err != nil { return err } } + + if v.StaticConfiguration != nil { + ok := object.Key("StaticConfiguration") + if err := awsRestjson1_serializeDocumentReferenceLineStaticDataConfiguration(v.StaticConfiguration, ok); err != nil { + return err + } + } + return nil } -func awsRestjson1_serializeDocumentPrestoParameters(v *types.PrestoParameters, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentReferenceLineDynamicDataConfiguration(v *types.ReferenceLineDynamicDataConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Catalog != nil { - ok := object.Key("Catalog") - ok.String(*v.Catalog) + if v.Calculation != nil { + ok := object.Key("Calculation") + if err := awsRestjson1_serializeDocumentNumericalAggregationFunction(v.Calculation, ok); err != nil { + return err + } } - if v.Host != nil { - ok := object.Key("Host") - ok.String(*v.Host) + if v.Column != nil { + ok := object.Key("Column") + if err := awsRestjson1_serializeDocumentColumnIdentifier(v.Column, ok); err != nil { + return err + } } - { - ok := object.Key("Port") - ok.Integer(v.Port) + if v.MeasureAggregationFunction != nil { + ok := object.Key("MeasureAggregationFunction") + if err := awsRestjson1_serializeDocumentAggregationFunction(v.MeasureAggregationFunction, ok); err != nil { + return err + } } return nil } -func awsRestjson1_serializeDocumentPrincipalList(v []string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentReferenceLineLabelConfiguration(v *types.ReferenceLineLabelConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.CustomLabelConfiguration != nil { + ok := object.Key("CustomLabelConfiguration") + if err := awsRestjson1_serializeDocumentReferenceLineCustomLabelConfiguration(v.CustomLabelConfiguration, ok); err != nil { + return err + } + } + + if v.FontColor != nil { + ok := object.Key("FontColor") + ok.String(*v.FontColor) + } + + if v.FontConfiguration != nil { + ok := object.Key("FontConfiguration") + if err := awsRestjson1_serializeDocumentFontConfiguration(v.FontConfiguration, ok); err != nil { + return err + } + } + + if len(v.HorizontalPosition) > 0 { + ok := object.Key("HorizontalPosition") + ok.String(string(v.HorizontalPosition)) + } + + if v.ValueLabelConfiguration != nil { + ok := object.Key("ValueLabelConfiguration") + if err := awsRestjson1_serializeDocumentReferenceLineValueLabelConfiguration(v.ValueLabelConfiguration, ok); err != nil { + return err + } + } + + if len(v.VerticalPosition) > 0 { + ok := object.Key("VerticalPosition") + ok.String(string(v.VerticalPosition)) + } + + return nil +} + +func awsRestjson1_serializeDocumentReferenceLineList(v []types.ReferenceLine, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - av.String(v[i]) + if err := awsRestjson1_serializeDocumentReferenceLine(&v[i], av); err != nil { + return err + } } return nil } -func awsRestjson1_serializeDocumentProgressBarOptions(v *types.ProgressBarOptions, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentReferenceLineStaticDataConfiguration(v *types.ReferenceLineStaticDataConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if len(v.Visibility) > 0 { - ok := object.Key("Visibility") - ok.String(string(v.Visibility)) + { + ok := object.Key("Value") + switch { + case math.IsNaN(v.Value): + ok.String("NaN") + + case math.IsInf(v.Value, 1): + ok.String("Infinity") + + case math.IsInf(v.Value, -1): + ok.String("-Infinity") + + default: + ok.Double(v.Value) + + } } return nil } -func awsRestjson1_serializeDocumentProjectedColumnList(v []string, value smithyjson.Value) error { - array := value.Array() - defer array.Close() +func awsRestjson1_serializeDocumentReferenceLineStyleConfiguration(v *types.ReferenceLineStyleConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() - for i := range v { - av := array.Value() - av.String(v[i]) + if v.Color != nil { + ok := object.Key("Color") + ok.String(*v.Color) + } + + if len(v.Pattern) > 0 { + ok := object.Key("Pattern") + ok.String(string(v.Pattern)) } + return nil } -func awsRestjson1_serializeDocumentProjectOperation(v *types.ProjectOperation, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentReferenceLineValueLabelConfiguration(v *types.ReferenceLineValueLabelConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.ProjectedColumns != nil { - ok := object.Key("ProjectedColumns") - if err := awsRestjson1_serializeDocumentProjectedColumnList(v.ProjectedColumns, ok); err != nil { + if v.FormatConfiguration != nil { + ok := object.Key("FormatConfiguration") + if err := awsRestjson1_serializeDocumentNumericFormatConfiguration(v.FormatConfiguration, ok); err != nil { return err } } + if len(v.RelativePosition) > 0 { + ok := object.Key("RelativePosition") + ok.String(string(v.RelativePosition)) + } + return nil } -func awsRestjson1_serializeDocumentRadarChartAggregatedFieldWells(v *types.RadarChartAggregatedFieldWells, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentRefreshConfiguration(v *types.RefreshConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Category != nil { - ok := object.Key("Category") - if err := awsRestjson1_serializeDocumentRadarChartCategoryFieldList(v.Category, ok); err != nil { + if v.IncrementalRefresh != nil { + ok := object.Key("IncrementalRefresh") + if err := awsRestjson1_serializeDocumentIncrementalRefresh(v.IncrementalRefresh, ok); err != nil { return err } } - if v.Color != nil { - ok := object.Key("Color") - if err := awsRestjson1_serializeDocumentRadarChartColorFieldList(v.Color, ok); err != nil { - return err - } + return nil +} + +func awsRestjson1_serializeDocumentRefreshFrequency(v *types.RefreshFrequency, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if len(v.Interval) > 0 { + ok := object.Key("Interval") + ok.String(string(v.Interval)) } - if v.Values != nil { - ok := object.Key("Values") - if err := awsRestjson1_serializeDocumentRadarChartValuesFieldList(v.Values, ok); err != nil { + if v.RefreshOnDay != nil { + ok := object.Key("RefreshOnDay") + if err := awsRestjson1_serializeDocumentScheduleRefreshOnEntity(v.RefreshOnDay, ok); err != nil { return err } } + if v.TimeOfTheDay != nil { + ok := object.Key("TimeOfTheDay") + ok.String(*v.TimeOfTheDay) + } + + if v.Timezone != nil { + ok := object.Key("Timezone") + ok.String(*v.Timezone) + } + return nil } -func awsRestjson1_serializeDocumentRadarChartAreaStyleSettings(v *types.RadarChartAreaStyleSettings, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentRefreshSchedule(v *types.RefreshSchedule, value smithyjson.Value) error { object := value.Object() defer object.Close() - if len(v.Visibility) > 0 { - ok := object.Key("Visibility") - ok.String(string(v.Visibility)) + if v.Arn != nil { + ok := object.Key("Arn") + ok.String(*v.Arn) } - return nil -} - -func awsRestjson1_serializeDocumentRadarChartCategoryFieldList(v []types.DimensionField, value smithyjson.Value) error { - array := value.Array() - defer array.Close() + if len(v.RefreshType) > 0 { + ok := object.Key("RefreshType") + ok.String(string(v.RefreshType)) + } - for i := range v { - av := array.Value() - if err := awsRestjson1_serializeDocumentDimensionField(&v[i], av); err != nil { + if v.ScheduleFrequency != nil { + ok := object.Key("ScheduleFrequency") + if err := awsRestjson1_serializeDocumentRefreshFrequency(v.ScheduleFrequency, ok); err != nil { return err } } + + if v.ScheduleId != nil { + ok := object.Key("ScheduleId") + ok.String(*v.ScheduleId) + } + + if v.StartAfterDateTime != nil { + ok := object.Key("StartAfterDateTime") + ok.Double(smithytime.FormatEpochSeconds(*v.StartAfterDateTime)) + } + return nil } -func awsRestjson1_serializeDocumentRadarChartColorFieldList(v []types.DimensionField, value smithyjson.Value) error { - array := value.Array() - defer array.Close() +func awsRestjson1_serializeDocumentRegisteredUserConsoleFeatureConfigurations(v *types.RegisteredUserConsoleFeatureConfigurations, value smithyjson.Value) error { + object := value.Object() + defer object.Close() - for i := range v { - av := array.Value() - if err := awsRestjson1_serializeDocumentDimensionField(&v[i], av); err != nil { + if v.StatePersistence != nil { + ok := object.Key("StatePersistence") + if err := awsRestjson1_serializeDocumentStatePersistenceConfigurations(v.StatePersistence, ok); err != nil { return err } } + return nil } -func awsRestjson1_serializeDocumentRadarChartConfiguration(v *types.RadarChartConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentRegisteredUserDashboardEmbeddingConfiguration(v *types.RegisteredUserDashboardEmbeddingConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if len(v.AlternateBandColorsVisibility) > 0 { - ok := object.Key("AlternateBandColorsVisibility") - ok.String(string(v.AlternateBandColorsVisibility)) + if v.FeatureConfigurations != nil { + ok := object.Key("FeatureConfigurations") + if err := awsRestjson1_serializeDocumentRegisteredUserDashboardFeatureConfigurations(v.FeatureConfigurations, ok); err != nil { + return err + } } - if v.AlternateBandEvenColor != nil { - ok := object.Key("AlternateBandEvenColor") - ok.String(*v.AlternateBandEvenColor) + if v.InitialDashboardId != nil { + ok := object.Key("InitialDashboardId") + ok.String(*v.InitialDashboardId) } - if v.AlternateBandOddColor != nil { - ok := object.Key("AlternateBandOddColor") - ok.String(*v.AlternateBandOddColor) - } + return nil +} - if v.BaseSeriesSettings != nil { - ok := object.Key("BaseSeriesSettings") - if err := awsRestjson1_serializeDocumentRadarChartSeriesSettings(v.BaseSeriesSettings, ok); err != nil { - return err - } - } +func awsRestjson1_serializeDocumentRegisteredUserDashboardFeatureConfigurations(v *types.RegisteredUserDashboardFeatureConfigurations, value smithyjson.Value) error { + object := value.Object() + defer object.Close() - if v.CategoryAxis != nil { - ok := object.Key("CategoryAxis") - if err := awsRestjson1_serializeDocumentAxisDisplayOptions(v.CategoryAxis, ok); err != nil { + if v.Bookmarks != nil { + ok := object.Key("Bookmarks") + if err := awsRestjson1_serializeDocumentBookmarksConfigurations(v.Bookmarks, ok); err != nil { return err } } - if v.CategoryLabelOptions != nil { - ok := object.Key("CategoryLabelOptions") - if err := awsRestjson1_serializeDocumentChartAxisLabelOptions(v.CategoryLabelOptions, ok); err != nil { + if v.StatePersistence != nil { + ok := object.Key("StatePersistence") + if err := awsRestjson1_serializeDocumentStatePersistenceConfigurations(v.StatePersistence, ok); err != nil { return err } } - if v.ColorAxis != nil { - ok := object.Key("ColorAxis") - if err := awsRestjson1_serializeDocumentAxisDisplayOptions(v.ColorAxis, ok); err != nil { + return nil +} + +func awsRestjson1_serializeDocumentRegisteredUserDashboardVisualEmbeddingConfiguration(v *types.RegisteredUserDashboardVisualEmbeddingConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.InitialDashboardVisualId != nil { + ok := object.Key("InitialDashboardVisualId") + if err := awsRestjson1_serializeDocumentDashboardVisualId(v.InitialDashboardVisualId, ok); err != nil { return err } } - if v.ColorLabelOptions != nil { - ok := object.Key("ColorLabelOptions") - if err := awsRestjson1_serializeDocumentChartAxisLabelOptions(v.ColorLabelOptions, ok); err != nil { + return nil +} + +func awsRestjson1_serializeDocumentRegisteredUserEmbeddingExperienceConfiguration(v *types.RegisteredUserEmbeddingExperienceConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Dashboard != nil { + ok := object.Key("Dashboard") + if err := awsRestjson1_serializeDocumentRegisteredUserDashboardEmbeddingConfiguration(v.Dashboard, ok); err != nil { return err } } - if v.FieldWells != nil { - ok := object.Key("FieldWells") - if err := awsRestjson1_serializeDocumentRadarChartFieldWells(v.FieldWells, ok); err != nil { + if v.DashboardVisual != nil { + ok := object.Key("DashboardVisual") + if err := awsRestjson1_serializeDocumentRegisteredUserDashboardVisualEmbeddingConfiguration(v.DashboardVisual, ok); err != nil { return err } } - if v.Legend != nil { - ok := object.Key("Legend") - if err := awsRestjson1_serializeDocumentLegendOptions(v.Legend, ok); err != nil { + if v.QSearchBar != nil { + ok := object.Key("QSearchBar") + if err := awsRestjson1_serializeDocumentRegisteredUserQSearchBarEmbeddingConfiguration(v.QSearchBar, ok); err != nil { return err } } - if len(v.Shape) > 0 { - ok := object.Key("Shape") - ok.String(string(v.Shape)) - } - - if v.SortConfiguration != nil { - ok := object.Key("SortConfiguration") - if err := awsRestjson1_serializeDocumentRadarChartSortConfiguration(v.SortConfiguration, ok); err != nil { + if v.QuickSightConsole != nil { + ok := object.Key("QuickSightConsole") + if err := awsRestjson1_serializeDocumentRegisteredUserQuickSightConsoleEmbeddingConfiguration(v.QuickSightConsole, ok); err != nil { return err } } - if v.StartAngle != nil { - ok := object.Key("StartAngle") - switch { - case math.IsNaN(*v.StartAngle): - ok.String("NaN") - - case math.IsInf(*v.StartAngle, 1): - ok.String("Infinity") - - case math.IsInf(*v.StartAngle, -1): - ok.String("-Infinity") - - default: - ok.Double(*v.StartAngle) + return nil +} - } - } +func awsRestjson1_serializeDocumentRegisteredUserQSearchBarEmbeddingConfiguration(v *types.RegisteredUserQSearchBarEmbeddingConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() - if v.VisualPalette != nil { - ok := object.Key("VisualPalette") - if err := awsRestjson1_serializeDocumentVisualPalette(v.VisualPalette, ok); err != nil { - return err - } + if v.InitialTopicId != nil { + ok := object.Key("InitialTopicId") + ok.String(*v.InitialTopicId) } return nil } -func awsRestjson1_serializeDocumentRadarChartFieldWells(v *types.RadarChartFieldWells, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentRegisteredUserQuickSightConsoleEmbeddingConfiguration(v *types.RegisteredUserQuickSightConsoleEmbeddingConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.RadarChartAggregatedFieldWells != nil { - ok := object.Key("RadarChartAggregatedFieldWells") - if err := awsRestjson1_serializeDocumentRadarChartAggregatedFieldWells(v.RadarChartAggregatedFieldWells, ok); err != nil { + if v.FeatureConfigurations != nil { + ok := object.Key("FeatureConfigurations") + if err := awsRestjson1_serializeDocumentRegisteredUserConsoleFeatureConfigurations(v.FeatureConfigurations, ok); err != nil { return err } } + if v.InitialPath != nil { + ok := object.Key("InitialPath") + ok.String(*v.InitialPath) + } + return nil } -func awsRestjson1_serializeDocumentRadarChartSeriesSettings(v *types.RadarChartSeriesSettings, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentRelationalTable(v *types.RelationalTable, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.AreaStyleSettings != nil { - ok := object.Key("AreaStyleSettings") - if err := awsRestjson1_serializeDocumentRadarChartAreaStyleSettings(v.AreaStyleSettings, ok); err != nil { - return err - } + if v.Catalog != nil { + ok := object.Key("Catalog") + ok.String(*v.Catalog) + } + + if v.DataSourceArn != nil { + ok := object.Key("DataSourceArn") + ok.String(*v.DataSourceArn) + } + + if v.InputColumns != nil { + ok := object.Key("InputColumns") + if err := awsRestjson1_serializeDocumentInputColumnList(v.InputColumns, ok); err != nil { + return err + } + } + + if v.Name != nil { + ok := object.Key("Name") + ok.String(*v.Name) + } + + if v.Schema != nil { + ok := object.Key("Schema") + ok.String(*v.Schema) } return nil } -func awsRestjson1_serializeDocumentRadarChartSortConfiguration(v *types.RadarChartSortConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentRelativeDatesFilter(v *types.RelativeDatesFilter, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.CategoryItemsLimit != nil { - ok := object.Key("CategoryItemsLimit") - if err := awsRestjson1_serializeDocumentItemsLimitConfiguration(v.CategoryItemsLimit, ok); err != nil { + if v.AnchorDateConfiguration != nil { + ok := object.Key("AnchorDateConfiguration") + if err := awsRestjson1_serializeDocumentAnchorDateConfiguration(v.AnchorDateConfiguration, ok); err != nil { return err } } - if v.CategorySort != nil { - ok := object.Key("CategorySort") - if err := awsRestjson1_serializeDocumentFieldSortOptionsList(v.CategorySort, ok); err != nil { + if v.Column != nil { + ok := object.Key("Column") + if err := awsRestjson1_serializeDocumentColumnIdentifier(v.Column, ok); err != nil { return err } } - if v.ColorItemsLimit != nil { - ok := object.Key("ColorItemsLimit") - if err := awsRestjson1_serializeDocumentItemsLimitConfiguration(v.ColorItemsLimit, ok); err != nil { + if v.ExcludePeriodConfiguration != nil { + ok := object.Key("ExcludePeriodConfiguration") + if err := awsRestjson1_serializeDocumentExcludePeriodConfiguration(v.ExcludePeriodConfiguration, ok); err != nil { return err } } - if v.ColorSort != nil { - ok := object.Key("ColorSort") - if err := awsRestjson1_serializeDocumentFieldSortOptionsList(v.ColorSort, ok); err != nil { - return err - } + if v.FilterId != nil { + ok := object.Key("FilterId") + ok.String(*v.FilterId) } - return nil -} - -func awsRestjson1_serializeDocumentRadarChartValuesFieldList(v []types.MeasureField, value smithyjson.Value) error { - array := value.Array() - defer array.Close() + if len(v.MinimumGranularity) > 0 { + ok := object.Key("MinimumGranularity") + ok.String(string(v.MinimumGranularity)) + } - for i := range v { - av := array.Value() - if err := awsRestjson1_serializeDocumentMeasureField(&v[i], av); err != nil { - return err - } + if len(v.NullOption) > 0 { + ok := object.Key("NullOption") + ok.String(string(v.NullOption)) } - return nil -} -func awsRestjson1_serializeDocumentRadarChartVisual(v *types.RadarChartVisual, value smithyjson.Value) error { - object := value.Object() - defer object.Close() + if v.ParameterName != nil { + ok := object.Key("ParameterName") + ok.String(*v.ParameterName) + } - if v.Actions != nil { - ok := object.Key("Actions") - if err := awsRestjson1_serializeDocumentVisualCustomActionList(v.Actions, ok); err != nil { - return err - } + if len(v.RelativeDateType) > 0 { + ok := object.Key("RelativeDateType") + ok.String(string(v.RelativeDateType)) } - if v.ChartConfiguration != nil { - ok := object.Key("ChartConfiguration") - if err := awsRestjson1_serializeDocumentRadarChartConfiguration(v.ChartConfiguration, ok); err != nil { - return err - } + if v.RelativeDateValue != nil { + ok := object.Key("RelativeDateValue") + ok.Integer(*v.RelativeDateValue) } - if v.ColumnHierarchies != nil { - ok := object.Key("ColumnHierarchies") - if err := awsRestjson1_serializeDocumentColumnHierarchyList(v.ColumnHierarchies, ok); err != nil { - return err - } + if len(v.TimeGranularity) > 0 { + ok := object.Key("TimeGranularity") + ok.String(string(v.TimeGranularity)) } - if v.Subtitle != nil { - ok := object.Key("Subtitle") - if err := awsRestjson1_serializeDocumentVisualSubtitleLabelOptions(v.Subtitle, ok); err != nil { - return err - } + return nil +} + +func awsRestjson1_serializeDocumentRelativeDateTimeControlDisplayOptions(v *types.RelativeDateTimeControlDisplayOptions, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.DateTimeFormat != nil { + ok := object.Key("DateTimeFormat") + ok.String(*v.DateTimeFormat) } - if v.Title != nil { - ok := object.Key("Title") - if err := awsRestjson1_serializeDocumentVisualTitleLabelOptions(v.Title, ok); err != nil { + if v.TitleOptions != nil { + ok := object.Key("TitleOptions") + if err := awsRestjson1_serializeDocumentLabelOptions(v.TitleOptions, ok); err != nil { return err } } - if v.VisualId != nil { - ok := object.Key("VisualId") - ok.String(*v.VisualId) - } - return nil } -func awsRestjson1_serializeDocumentRangeEndsLabelType(v *types.RangeEndsLabelType, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentRenameColumnOperation(v *types.RenameColumnOperation, value smithyjson.Value) error { object := value.Object() defer object.Close() - if len(v.Visibility) > 0 { - ok := object.Key("Visibility") - ok.String(string(v.Visibility)) + if v.ColumnName != nil { + ok := object.Key("ColumnName") + ok.String(*v.ColumnName) + } + + if v.NewColumnName != nil { + ok := object.Key("NewColumnName") + ok.String(*v.NewColumnName) } return nil } -func awsRestjson1_serializeDocumentRdsParameters(v *types.RdsParameters, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentResourcePermission(v *types.ResourcePermission, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Database != nil { - ok := object.Key("Database") - ok.String(*v.Database) + if v.Actions != nil { + ok := object.Key("Actions") + if err := awsRestjson1_serializeDocumentActionList(v.Actions, ok); err != nil { + return err + } } - if v.InstanceId != nil { - ok := object.Key("InstanceId") - ok.String(*v.InstanceId) + if v.Principal != nil { + ok := object.Key("Principal") + ok.String(*v.Principal) } return nil } -func awsRestjson1_serializeDocumentRedshiftParameters(v *types.RedshiftParameters, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentResourcePermissionList(v []types.ResourcePermission, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentResourcePermission(&v[i], av); err != nil { + return err + } + } + return nil +} + +func awsRestjson1_serializeDocumentRollingDateConfiguration(v *types.RollingDateConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.ClusterId != nil { - ok := object.Key("ClusterId") - ok.String(*v.ClusterId) + if v.DataSetIdentifier != nil { + ok := object.Key("DataSetIdentifier") + ok.String(*v.DataSetIdentifier) } - if v.Database != nil { - ok := object.Key("Database") - ok.String(*v.Database) + if v.Expression != nil { + ok := object.Key("Expression") + ok.String(*v.Expression) } - if v.Host != nil { - ok := object.Key("Host") - ok.String(*v.Host) - } + return nil +} - if v.Port != 0 { - ok := object.Key("Port") - ok.Integer(v.Port) - } +func awsRestjson1_serializeDocumentRowAlternateColorList(v []string, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + for i := range v { + av := array.Value() + av.String(v[i]) + } return nil } -func awsRestjson1_serializeDocumentReferenceLine(v *types.ReferenceLine, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentRowAlternateColorOptions(v *types.RowAlternateColorOptions, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.DataConfiguration != nil { - ok := object.Key("DataConfiguration") - if err := awsRestjson1_serializeDocumentReferenceLineDataConfiguration(v.DataConfiguration, ok); err != nil { - return err - } - } - - if v.LabelConfiguration != nil { - ok := object.Key("LabelConfiguration") - if err := awsRestjson1_serializeDocumentReferenceLineLabelConfiguration(v.LabelConfiguration, ok); err != nil { + if v.RowAlternateColors != nil { + ok := object.Key("RowAlternateColors") + if err := awsRestjson1_serializeDocumentRowAlternateColorList(v.RowAlternateColors, ok); err != nil { return err } } @@ -23610,75 +26464,60 @@ func awsRestjson1_serializeDocumentReferenceLine(v *types.ReferenceLine, value s ok.String(string(v.Status)) } - if v.StyleConfiguration != nil { - ok := object.Key("StyleConfiguration") - if err := awsRestjson1_serializeDocumentReferenceLineStyleConfiguration(v.StyleConfiguration, ok); err != nil { - return err - } - } - return nil } -func awsRestjson1_serializeDocumentReferenceLineCustomLabelConfiguration(v *types.ReferenceLineCustomLabelConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentRowLevelPermissionDataSet(v *types.RowLevelPermissionDataSet, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.CustomLabel != nil { - ok := object.Key("CustomLabel") - ok.String(*v.CustomLabel) + if v.Arn != nil { + ok := object.Key("Arn") + ok.String(*v.Arn) } - return nil -} - -func awsRestjson1_serializeDocumentReferenceLineDataConfiguration(v *types.ReferenceLineDataConfiguration, value smithyjson.Value) error { - object := value.Object() - defer object.Close() + if len(v.FormatVersion) > 0 { + ok := object.Key("FormatVersion") + ok.String(string(v.FormatVersion)) + } - if len(v.AxisBinding) > 0 { - ok := object.Key("AxisBinding") - ok.String(string(v.AxisBinding)) + if v.Namespace != nil { + ok := object.Key("Namespace") + ok.String(*v.Namespace) } - if v.DynamicConfiguration != nil { - ok := object.Key("DynamicConfiguration") - if err := awsRestjson1_serializeDocumentReferenceLineDynamicDataConfiguration(v.DynamicConfiguration, ok); err != nil { - return err - } + if len(v.PermissionPolicy) > 0 { + ok := object.Key("PermissionPolicy") + ok.String(string(v.PermissionPolicy)) } - if v.StaticConfiguration != nil { - ok := object.Key("StaticConfiguration") - if err := awsRestjson1_serializeDocumentReferenceLineStaticDataConfiguration(v.StaticConfiguration, ok); err != nil { - return err - } + if len(v.Status) > 0 { + ok := object.Key("Status") + ok.String(string(v.Status)) } return nil } -func awsRestjson1_serializeDocumentReferenceLineDynamicDataConfiguration(v *types.ReferenceLineDynamicDataConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentRowLevelPermissionTagConfiguration(v *types.RowLevelPermissionTagConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Calculation != nil { - ok := object.Key("Calculation") - if err := awsRestjson1_serializeDocumentNumericalAggregationFunction(v.Calculation, ok); err != nil { - return err - } + if len(v.Status) > 0 { + ok := object.Key("Status") + ok.String(string(v.Status)) } - if v.Column != nil { - ok := object.Key("Column") - if err := awsRestjson1_serializeDocumentColumnIdentifier(v.Column, ok); err != nil { + if v.TagRuleConfigurations != nil { + ok := object.Key("TagRuleConfigurations") + if err := awsRestjson1_serializeDocumentRowLevelPermissionTagRuleConfigurationList(v.TagRuleConfigurations, ok); err != nil { return err } } - if v.MeasureAggregationFunction != nil { - ok := object.Key("MeasureAggregationFunction") - if err := awsRestjson1_serializeDocumentAggregationFunction(v.MeasureAggregationFunction, ok); err != nil { + if v.TagRules != nil { + ok := object.Key("TagRules") + if err := awsRestjson1_serializeDocumentRowLevelPermissionTagRuleList(v.TagRules, ok); err != nil { return err } } @@ -23686,130 +26525,124 @@ func awsRestjson1_serializeDocumentReferenceLineDynamicDataConfiguration(v *type return nil } -func awsRestjson1_serializeDocumentReferenceLineLabelConfiguration(v *types.ReferenceLineLabelConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentRowLevelPermissionTagRule(v *types.RowLevelPermissionTagRule, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.CustomLabelConfiguration != nil { - ok := object.Key("CustomLabelConfiguration") - if err := awsRestjson1_serializeDocumentReferenceLineCustomLabelConfiguration(v.CustomLabelConfiguration, ok); err != nil { - return err - } + if v.ColumnName != nil { + ok := object.Key("ColumnName") + ok.String(*v.ColumnName) } - if v.FontColor != nil { - ok := object.Key("FontColor") - ok.String(*v.FontColor) + if v.MatchAllValue != nil { + ok := object.Key("MatchAllValue") + ok.String(*v.MatchAllValue) } - if v.FontConfiguration != nil { - ok := object.Key("FontConfiguration") - if err := awsRestjson1_serializeDocumentFontConfiguration(v.FontConfiguration, ok); err != nil { - return err - } + if v.TagKey != nil { + ok := object.Key("TagKey") + ok.String(*v.TagKey) } - if len(v.HorizontalPosition) > 0 { - ok := object.Key("HorizontalPosition") - ok.String(string(v.HorizontalPosition)) + if v.TagMultiValueDelimiter != nil { + ok := object.Key("TagMultiValueDelimiter") + ok.String(*v.TagMultiValueDelimiter) } - if v.ValueLabelConfiguration != nil { - ok := object.Key("ValueLabelConfiguration") - if err := awsRestjson1_serializeDocumentReferenceLineValueLabelConfiguration(v.ValueLabelConfiguration, ok); err != nil { - return err - } - } + return nil +} - if len(v.VerticalPosition) > 0 { - ok := object.Key("VerticalPosition") - ok.String(string(v.VerticalPosition)) - } +func awsRestjson1_serializeDocumentRowLevelPermissionTagRuleConfiguration(v []string, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + for i := range v { + av := array.Value() + av.String(v[i]) + } return nil } -func awsRestjson1_serializeDocumentReferenceLineList(v []types.ReferenceLine, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentRowLevelPermissionTagRuleConfigurationList(v [][]string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if err := awsRestjson1_serializeDocumentReferenceLine(&v[i], av); err != nil { + if vv := v[i]; vv == nil { + continue + } + if err := awsRestjson1_serializeDocumentRowLevelPermissionTagRuleConfiguration(v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentReferenceLineStaticDataConfiguration(v *types.ReferenceLineStaticDataConfiguration, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - { - ok := object.Key("Value") - switch { - case math.IsNaN(v.Value): - ok.String("NaN") - - case math.IsInf(v.Value, 1): - ok.String("Infinity") - - case math.IsInf(v.Value, -1): - ok.String("-Infinity") - - default: - ok.Double(v.Value) +func awsRestjson1_serializeDocumentRowLevelPermissionTagRuleList(v []types.RowLevelPermissionTagRule, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentRowLevelPermissionTagRule(&v[i], av); err != nil { + return err } } - return nil } -func awsRestjson1_serializeDocumentReferenceLineStyleConfiguration(v *types.ReferenceLineStyleConfiguration, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Color != nil { - ok := object.Key("Color") - ok.String(*v.Color) - } +func awsRestjson1_serializeDocumentRowSortList(v []types.FieldSortOptions, value smithyjson.Value) error { + array := value.Array() + defer array.Close() - if len(v.Pattern) > 0 { - ok := object.Key("Pattern") - ok.String(string(v.Pattern)) + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentFieldSortOptions(&v[i], av); err != nil { + return err + } } - return nil } -func awsRestjson1_serializeDocumentReferenceLineValueLabelConfiguration(v *types.ReferenceLineValueLabelConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentS3Parameters(v *types.S3Parameters, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.FormatConfiguration != nil { - ok := object.Key("FormatConfiguration") - if err := awsRestjson1_serializeDocumentNumericFormatConfiguration(v.FormatConfiguration, ok); err != nil { + if v.ManifestFileLocation != nil { + ok := object.Key("ManifestFileLocation") + if err := awsRestjson1_serializeDocumentManifestFileLocation(v.ManifestFileLocation, ok); err != nil { return err } } - if len(v.RelativePosition) > 0 { - ok := object.Key("RelativePosition") - ok.String(string(v.RelativePosition)) + if v.RoleArn != nil { + ok := object.Key("RoleArn") + ok.String(*v.RoleArn) } return nil } -func awsRestjson1_serializeDocumentRefreshConfiguration(v *types.RefreshConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentS3Source(v *types.S3Source, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.IncrementalRefresh != nil { - ok := object.Key("IncrementalRefresh") - if err := awsRestjson1_serializeDocumentIncrementalRefresh(v.IncrementalRefresh, ok); err != nil { + if v.DataSourceArn != nil { + ok := object.Key("DataSourceArn") + ok.String(*v.DataSourceArn) + } + + if v.InputColumns != nil { + ok := object.Key("InputColumns") + if err := awsRestjson1_serializeDocumentInputColumnList(v.InputColumns, ok); err != nil { + return err + } + } + + if v.UploadSettings != nil { + ok := object.Key("UploadSettings") + if err := awsRestjson1_serializeDocumentUploadSettings(v.UploadSettings, ok); err != nil { return err } } @@ -23817,76 +26650,46 @@ func awsRestjson1_serializeDocumentRefreshConfiguration(v *types.RefreshConfigur return nil } -func awsRestjson1_serializeDocumentRefreshFrequency(v *types.RefreshFrequency, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSameSheetTargetVisualConfiguration(v *types.SameSheetTargetVisualConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if len(v.Interval) > 0 { - ok := object.Key("Interval") - ok.String(string(v.Interval)) + if len(v.TargetVisualOptions) > 0 { + ok := object.Key("TargetVisualOptions") + ok.String(string(v.TargetVisualOptions)) } - if v.RefreshOnDay != nil { - ok := object.Key("RefreshOnDay") - if err := awsRestjson1_serializeDocumentScheduleRefreshOnEntity(v.RefreshOnDay, ok); err != nil { + if v.TargetVisuals != nil { + ok := object.Key("TargetVisuals") + if err := awsRestjson1_serializeDocumentTargetVisualList(v.TargetVisuals, ok); err != nil { return err } } - if v.TimeOfTheDay != nil { - ok := object.Key("TimeOfTheDay") - ok.String(*v.TimeOfTheDay) - } - - if v.Timezone != nil { - ok := object.Key("Timezone") - ok.String(*v.Timezone) - } - return nil } -func awsRestjson1_serializeDocumentRefreshSchedule(v *types.RefreshSchedule, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSankeyDiagramAggregatedFieldWells(v *types.SankeyDiagramAggregatedFieldWells, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Arn != nil { - ok := object.Key("Arn") - ok.String(*v.Arn) - } - - if len(v.RefreshType) > 0 { - ok := object.Key("RefreshType") - ok.String(string(v.RefreshType)) - } - - if v.ScheduleFrequency != nil { - ok := object.Key("ScheduleFrequency") - if err := awsRestjson1_serializeDocumentRefreshFrequency(v.ScheduleFrequency, ok); err != nil { + if v.Destination != nil { + ok := object.Key("Destination") + if err := awsRestjson1_serializeDocumentDimensionFieldList(v.Destination, ok); err != nil { return err } } - if v.ScheduleId != nil { - ok := object.Key("ScheduleId") - ok.String(*v.ScheduleId) - } - - if v.StartAfterDateTime != nil { - ok := object.Key("StartAfterDateTime") - ok.Double(smithytime.FormatEpochSeconds(*v.StartAfterDateTime)) + if v.Source != nil { + ok := object.Key("Source") + if err := awsRestjson1_serializeDocumentDimensionFieldList(v.Source, ok); err != nil { + return err + } } - return nil -} - -func awsRestjson1_serializeDocumentRegisteredUserConsoleFeatureConfigurations(v *types.RegisteredUserConsoleFeatureConfigurations, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.StatePersistence != nil { - ok := object.Key("StatePersistence") - if err := awsRestjson1_serializeDocumentStatePersistenceConfigurations(v.StatePersistence, ok); err != nil { + if v.Weight != nil { + ok := object.Key("Weight") + if err := awsRestjson1_serializeDocumentMeasureFieldList(v.Weight, ok); err != nil { return err } } @@ -23894,32 +26697,27 @@ func awsRestjson1_serializeDocumentRegisteredUserConsoleFeatureConfigurations(v return nil } -func awsRestjson1_serializeDocumentRegisteredUserDashboardEmbeddingConfiguration(v *types.RegisteredUserDashboardEmbeddingConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSankeyDiagramChartConfiguration(v *types.SankeyDiagramChartConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.FeatureConfigurations != nil { - ok := object.Key("FeatureConfigurations") - if err := awsRestjson1_serializeDocumentRegisteredUserDashboardFeatureConfigurations(v.FeatureConfigurations, ok); err != nil { + if v.DataLabels != nil { + ok := object.Key("DataLabels") + if err := awsRestjson1_serializeDocumentDataLabelOptions(v.DataLabels, ok); err != nil { return err } } - if v.InitialDashboardId != nil { - ok := object.Key("InitialDashboardId") - ok.String(*v.InitialDashboardId) + if v.FieldWells != nil { + ok := object.Key("FieldWells") + if err := awsRestjson1_serializeDocumentSankeyDiagramFieldWells(v.FieldWells, ok); err != nil { + return err + } } - return nil -} - -func awsRestjson1_serializeDocumentRegisteredUserDashboardFeatureConfigurations(v *types.RegisteredUserDashboardFeatureConfigurations, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.StatePersistence != nil { - ok := object.Key("StatePersistence") - if err := awsRestjson1_serializeDocumentStatePersistenceConfigurations(v.StatePersistence, ok); err != nil { + if v.SortConfiguration != nil { + ok := object.Key("SortConfiguration") + if err := awsRestjson1_serializeDocumentSankeyDiagramSortConfiguration(v.SortConfiguration, ok); err != nil { return err } } @@ -23927,13 +26725,13 @@ func awsRestjson1_serializeDocumentRegisteredUserDashboardFeatureConfigurations( return nil } -func awsRestjson1_serializeDocumentRegisteredUserDashboardVisualEmbeddingConfiguration(v *types.RegisteredUserDashboardVisualEmbeddingConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSankeyDiagramFieldWells(v *types.SankeyDiagramFieldWells, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.InitialDashboardVisualId != nil { - ok := object.Key("InitialDashboardVisualId") - if err := awsRestjson1_serializeDocumentDashboardVisualId(v.InitialDashboardVisualId, ok); err != nil { + if v.SankeyDiagramAggregatedFieldWells != nil { + ok := object.Key("SankeyDiagramAggregatedFieldWells") + if err := awsRestjson1_serializeDocumentSankeyDiagramAggregatedFieldWells(v.SankeyDiagramAggregatedFieldWells, ok); err != nil { return err } } @@ -23941,34 +26739,27 @@ func awsRestjson1_serializeDocumentRegisteredUserDashboardVisualEmbeddingConfigu return nil } -func awsRestjson1_serializeDocumentRegisteredUserEmbeddingExperienceConfiguration(v *types.RegisteredUserEmbeddingExperienceConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSankeyDiagramSortConfiguration(v *types.SankeyDiagramSortConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Dashboard != nil { - ok := object.Key("Dashboard") - if err := awsRestjson1_serializeDocumentRegisteredUserDashboardEmbeddingConfiguration(v.Dashboard, ok); err != nil { - return err - } - } - - if v.DashboardVisual != nil { - ok := object.Key("DashboardVisual") - if err := awsRestjson1_serializeDocumentRegisteredUserDashboardVisualEmbeddingConfiguration(v.DashboardVisual, ok); err != nil { + if v.DestinationItemsLimit != nil { + ok := object.Key("DestinationItemsLimit") + if err := awsRestjson1_serializeDocumentItemsLimitConfiguration(v.DestinationItemsLimit, ok); err != nil { return err } } - if v.QSearchBar != nil { - ok := object.Key("QSearchBar") - if err := awsRestjson1_serializeDocumentRegisteredUserQSearchBarEmbeddingConfiguration(v.QSearchBar, ok); err != nil { + if v.SourceItemsLimit != nil { + ok := object.Key("SourceItemsLimit") + if err := awsRestjson1_serializeDocumentItemsLimitConfiguration(v.SourceItemsLimit, ok); err != nil { return err } } - if v.QuickSightConsole != nil { - ok := object.Key("QuickSightConsole") - if err := awsRestjson1_serializeDocumentRegisteredUserQuickSightConsoleEmbeddingConfiguration(v.QuickSightConsole, ok); err != nil { + if v.WeightSort != nil { + ok := object.Key("WeightSort") + if err := awsRestjson1_serializeDocumentFieldSortOptionsList(v.WeightSort, ok); err != nil { return err } } @@ -23976,146 +26767,172 @@ func awsRestjson1_serializeDocumentRegisteredUserEmbeddingExperienceConfiguratio return nil } -func awsRestjson1_serializeDocumentRegisteredUserQSearchBarEmbeddingConfiguration(v *types.RegisteredUserQSearchBarEmbeddingConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSankeyDiagramVisual(v *types.SankeyDiagramVisual, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.InitialTopicId != nil { - ok := object.Key("InitialTopicId") - ok.String(*v.InitialTopicId) + if v.Actions != nil { + ok := object.Key("Actions") + if err := awsRestjson1_serializeDocumentVisualCustomActionList(v.Actions, ok); err != nil { + return err + } } - return nil -} + if v.ChartConfiguration != nil { + ok := object.Key("ChartConfiguration") + if err := awsRestjson1_serializeDocumentSankeyDiagramChartConfiguration(v.ChartConfiguration, ok); err != nil { + return err + } + } -func awsRestjson1_serializeDocumentRegisteredUserQuickSightConsoleEmbeddingConfiguration(v *types.RegisteredUserQuickSightConsoleEmbeddingConfiguration, value smithyjson.Value) error { - object := value.Object() - defer object.Close() + if v.Subtitle != nil { + ok := object.Key("Subtitle") + if err := awsRestjson1_serializeDocumentVisualSubtitleLabelOptions(v.Subtitle, ok); err != nil { + return err + } + } - if v.FeatureConfigurations != nil { - ok := object.Key("FeatureConfigurations") - if err := awsRestjson1_serializeDocumentRegisteredUserConsoleFeatureConfigurations(v.FeatureConfigurations, ok); err != nil { + if v.Title != nil { + ok := object.Key("Title") + if err := awsRestjson1_serializeDocumentVisualTitleLabelOptions(v.Title, ok); err != nil { return err } } - if v.InitialPath != nil { - ok := object.Key("InitialPath") - ok.String(*v.InitialPath) + if v.VisualId != nil { + ok := object.Key("VisualId") + ok.String(*v.VisualId) } return nil } -func awsRestjson1_serializeDocumentRelationalTable(v *types.RelationalTable, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentScatterPlotCategoricallyAggregatedFieldWells(v *types.ScatterPlotCategoricallyAggregatedFieldWells, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Catalog != nil { - ok := object.Key("Catalog") - ok.String(*v.Catalog) + if v.Category != nil { + ok := object.Key("Category") + if err := awsRestjson1_serializeDocumentDimensionFieldList(v.Category, ok); err != nil { + return err + } } - if v.DataSourceArn != nil { - ok := object.Key("DataSourceArn") - ok.String(*v.DataSourceArn) + if v.Label != nil { + ok := object.Key("Label") + if err := awsRestjson1_serializeDocumentDimensionFieldList(v.Label, ok); err != nil { + return err + } } - if v.InputColumns != nil { - ok := object.Key("InputColumns") - if err := awsRestjson1_serializeDocumentInputColumnList(v.InputColumns, ok); err != nil { + if v.Size != nil { + ok := object.Key("Size") + if err := awsRestjson1_serializeDocumentMeasureFieldList(v.Size, ok); err != nil { return err } } - if v.Name != nil { - ok := object.Key("Name") - ok.String(*v.Name) + if v.XAxis != nil { + ok := object.Key("XAxis") + if err := awsRestjson1_serializeDocumentMeasureFieldList(v.XAxis, ok); err != nil { + return err + } } - if v.Schema != nil { - ok := object.Key("Schema") - ok.String(*v.Schema) + if v.YAxis != nil { + ok := object.Key("YAxis") + if err := awsRestjson1_serializeDocumentMeasureFieldList(v.YAxis, ok); err != nil { + return err + } } return nil } -func awsRestjson1_serializeDocumentRelativeDatesFilter(v *types.RelativeDatesFilter, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentScatterPlotConfiguration(v *types.ScatterPlotConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.AnchorDateConfiguration != nil { - ok := object.Key("AnchorDateConfiguration") - if err := awsRestjson1_serializeDocumentAnchorDateConfiguration(v.AnchorDateConfiguration, ok); err != nil { + if v.DataLabels != nil { + ok := object.Key("DataLabels") + if err := awsRestjson1_serializeDocumentDataLabelOptions(v.DataLabels, ok); err != nil { return err } } - if v.Column != nil { - ok := object.Key("Column") - if err := awsRestjson1_serializeDocumentColumnIdentifier(v.Column, ok); err != nil { + if v.FieldWells != nil { + ok := object.Key("FieldWells") + if err := awsRestjson1_serializeDocumentScatterPlotFieldWells(v.FieldWells, ok); err != nil { return err } } - if v.ExcludePeriodConfiguration != nil { - ok := object.Key("ExcludePeriodConfiguration") - if err := awsRestjson1_serializeDocumentExcludePeriodConfiguration(v.ExcludePeriodConfiguration, ok); err != nil { + if v.Legend != nil { + ok := object.Key("Legend") + if err := awsRestjson1_serializeDocumentLegendOptions(v.Legend, ok); err != nil { return err } } - if v.FilterId != nil { - ok := object.Key("FilterId") - ok.String(*v.FilterId) - } - - if len(v.MinimumGranularity) > 0 { - ok := object.Key("MinimumGranularity") - ok.String(string(v.MinimumGranularity)) + if v.Tooltip != nil { + ok := object.Key("Tooltip") + if err := awsRestjson1_serializeDocumentTooltipOptions(v.Tooltip, ok); err != nil { + return err + } } - if len(v.NullOption) > 0 { - ok := object.Key("NullOption") - ok.String(string(v.NullOption)) + if v.VisualPalette != nil { + ok := object.Key("VisualPalette") + if err := awsRestjson1_serializeDocumentVisualPalette(v.VisualPalette, ok); err != nil { + return err + } } - if v.ParameterName != nil { - ok := object.Key("ParameterName") - ok.String(*v.ParameterName) + if v.XAxisDisplayOptions != nil { + ok := object.Key("XAxisDisplayOptions") + if err := awsRestjson1_serializeDocumentAxisDisplayOptions(v.XAxisDisplayOptions, ok); err != nil { + return err + } } - if len(v.RelativeDateType) > 0 { - ok := object.Key("RelativeDateType") - ok.String(string(v.RelativeDateType)) + if v.XAxisLabelOptions != nil { + ok := object.Key("XAxisLabelOptions") + if err := awsRestjson1_serializeDocumentChartAxisLabelOptions(v.XAxisLabelOptions, ok); err != nil { + return err + } } - if v.RelativeDateValue != nil { - ok := object.Key("RelativeDateValue") - ok.Integer(*v.RelativeDateValue) + if v.YAxisDisplayOptions != nil { + ok := object.Key("YAxisDisplayOptions") + if err := awsRestjson1_serializeDocumentAxisDisplayOptions(v.YAxisDisplayOptions, ok); err != nil { + return err + } } - if len(v.TimeGranularity) > 0 { - ok := object.Key("TimeGranularity") - ok.String(string(v.TimeGranularity)) + if v.YAxisLabelOptions != nil { + ok := object.Key("YAxisLabelOptions") + if err := awsRestjson1_serializeDocumentChartAxisLabelOptions(v.YAxisLabelOptions, ok); err != nil { + return err + } } return nil } -func awsRestjson1_serializeDocumentRelativeDateTimeControlDisplayOptions(v *types.RelativeDateTimeControlDisplayOptions, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentScatterPlotFieldWells(v *types.ScatterPlotFieldWells, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.DateTimeFormat != nil { - ok := object.Key("DateTimeFormat") - ok.String(*v.DateTimeFormat) + if v.ScatterPlotCategoricallyAggregatedFieldWells != nil { + ok := object.Key("ScatterPlotCategoricallyAggregatedFieldWells") + if err := awsRestjson1_serializeDocumentScatterPlotCategoricallyAggregatedFieldWells(v.ScatterPlotCategoricallyAggregatedFieldWells, ok); err != nil { + return err + } } - if v.TitleOptions != nil { - ok := object.Key("TitleOptions") - if err := awsRestjson1_serializeDocumentLabelOptions(v.TitleOptions, ok); err != nil { + if v.ScatterPlotUnaggregatedFieldWells != nil { + ok := object.Key("ScatterPlotUnaggregatedFieldWells") + if err := awsRestjson1_serializeDocumentScatterPlotUnaggregatedFieldWells(v.ScatterPlotUnaggregatedFieldWells, ok); err != nil { return err } } @@ -24123,125 +26940,146 @@ func awsRestjson1_serializeDocumentRelativeDateTimeControlDisplayOptions(v *type return nil } -func awsRestjson1_serializeDocumentRenameColumnOperation(v *types.RenameColumnOperation, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentScatterPlotUnaggregatedFieldWells(v *types.ScatterPlotUnaggregatedFieldWells, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.ColumnName != nil { - ok := object.Key("ColumnName") - ok.String(*v.ColumnName) + if v.Category != nil { + ok := object.Key("Category") + if err := awsRestjson1_serializeDocumentDimensionFieldList(v.Category, ok); err != nil { + return err + } } - if v.NewColumnName != nil { - ok := object.Key("NewColumnName") - ok.String(*v.NewColumnName) + if v.Label != nil { + ok := object.Key("Label") + if err := awsRestjson1_serializeDocumentDimensionFieldList(v.Label, ok); err != nil { + return err + } + } + + if v.Size != nil { + ok := object.Key("Size") + if err := awsRestjson1_serializeDocumentMeasureFieldList(v.Size, ok); err != nil { + return err + } + } + + if v.XAxis != nil { + ok := object.Key("XAxis") + if err := awsRestjson1_serializeDocumentDimensionFieldList(v.XAxis, ok); err != nil { + return err + } + } + + if v.YAxis != nil { + ok := object.Key("YAxis") + if err := awsRestjson1_serializeDocumentDimensionFieldList(v.YAxis, ok); err != nil { + return err + } } return nil } -func awsRestjson1_serializeDocumentResourcePermission(v *types.ResourcePermission, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentScatterPlotVisual(v *types.ScatterPlotVisual, value smithyjson.Value) error { object := value.Object() defer object.Close() if v.Actions != nil { ok := object.Key("Actions") - if err := awsRestjson1_serializeDocumentActionList(v.Actions, ok); err != nil { + if err := awsRestjson1_serializeDocumentVisualCustomActionList(v.Actions, ok); err != nil { return err } } - if v.Principal != nil { - ok := object.Key("Principal") - ok.String(*v.Principal) + if v.ChartConfiguration != nil { + ok := object.Key("ChartConfiguration") + if err := awsRestjson1_serializeDocumentScatterPlotConfiguration(v.ChartConfiguration, ok); err != nil { + return err + } } - return nil -} + if v.ColumnHierarchies != nil { + ok := object.Key("ColumnHierarchies") + if err := awsRestjson1_serializeDocumentColumnHierarchyList(v.ColumnHierarchies, ok); err != nil { + return err + } + } -func awsRestjson1_serializeDocumentResourcePermissionList(v []types.ResourcePermission, value smithyjson.Value) error { - array := value.Array() - defer array.Close() + if v.Subtitle != nil { + ok := object.Key("Subtitle") + if err := awsRestjson1_serializeDocumentVisualSubtitleLabelOptions(v.Subtitle, ok); err != nil { + return err + } + } - for i := range v { - av := array.Value() - if err := awsRestjson1_serializeDocumentResourcePermission(&v[i], av); err != nil { + if v.Title != nil { + ok := object.Key("Title") + if err := awsRestjson1_serializeDocumentVisualTitleLabelOptions(v.Title, ok); err != nil { return err } } + + if v.VisualId != nil { + ok := object.Key("VisualId") + ok.String(*v.VisualId) + } + return nil } -func awsRestjson1_serializeDocumentRollingDateConfiguration(v *types.RollingDateConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentScheduleRefreshOnEntity(v *types.ScheduleRefreshOnEntity, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.DataSetIdentifier != nil { - ok := object.Key("DataSetIdentifier") - ok.String(*v.DataSetIdentifier) + if v.DayOfMonth != nil { + ok := object.Key("DayOfMonth") + ok.String(*v.DayOfMonth) } - if v.Expression != nil { - ok := object.Key("Expression") - ok.String(*v.Expression) + if len(v.DayOfWeek) > 0 { + ok := object.Key("DayOfWeek") + ok.String(string(v.DayOfWeek)) } return nil } -func awsRestjson1_serializeDocumentRowAlternateColorList(v []string, value smithyjson.Value) error { - array := value.Array() - defer array.Close() - - for i := range v { - av := array.Value() - av.String(v[i]) - } - return nil -} - -func awsRestjson1_serializeDocumentRowAlternateColorOptions(v *types.RowAlternateColorOptions, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentScrollBarOptions(v *types.ScrollBarOptions, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.RowAlternateColors != nil { - ok := object.Key("RowAlternateColors") - if err := awsRestjson1_serializeDocumentRowAlternateColorList(v.RowAlternateColors, ok); err != nil { - return err - } + if len(v.Visibility) > 0 { + ok := object.Key("Visibility") + ok.String(string(v.Visibility)) } - if len(v.Status) > 0 { - ok := object.Key("Status") - ok.String(string(v.Status)) + if v.VisibleRange != nil { + ok := object.Key("VisibleRange") + if err := awsRestjson1_serializeDocumentVisibleRangeOptions(v.VisibleRange, ok); err != nil { + return err + } } return nil } -func awsRestjson1_serializeDocumentRowLevelPermissionDataSet(v *types.RowLevelPermissionDataSet, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSecondaryValueOptions(v *types.SecondaryValueOptions, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Arn != nil { - ok := object.Key("Arn") - ok.String(*v.Arn) - } - - if len(v.FormatVersion) > 0 { - ok := object.Key("FormatVersion") - ok.String(string(v.FormatVersion)) + if len(v.Visibility) > 0 { + ok := object.Key("Visibility") + ok.String(string(v.Visibility)) } - if v.Namespace != nil { - ok := object.Key("Namespace") - ok.String(*v.Namespace) - } + return nil +} - if len(v.PermissionPolicy) > 0 { - ok := object.Key("PermissionPolicy") - ok.String(string(v.PermissionPolicy)) - } +func awsRestjson1_serializeDocumentSectionAfterPageBreak(v *types.SectionAfterPageBreak, value smithyjson.Value) error { + object := value.Object() + defer object.Close() if len(v.Status) > 0 { ok := object.Key("Status") @@ -24251,25 +27089,13 @@ func awsRestjson1_serializeDocumentRowLevelPermissionDataSet(v *types.RowLevelPe return nil } -func awsRestjson1_serializeDocumentRowLevelPermissionTagConfiguration(v *types.RowLevelPermissionTagConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSectionBasedLayoutCanvasSizeOptions(v *types.SectionBasedLayoutCanvasSizeOptions, value smithyjson.Value) error { object := value.Object() defer object.Close() - if len(v.Status) > 0 { - ok := object.Key("Status") - ok.String(string(v.Status)) - } - - if v.TagRuleConfigurations != nil { - ok := object.Key("TagRuleConfigurations") - if err := awsRestjson1_serializeDocumentRowLevelPermissionTagRuleConfigurationList(v.TagRuleConfigurations, ok); err != nil { - return err - } - } - - if v.TagRules != nil { - ok := object.Key("TagRules") - if err := awsRestjson1_serializeDocumentRowLevelPermissionTagRuleList(v.TagRules, ok); err != nil { + if v.PaperCanvasSizeOptions != nil { + ok := object.Key("PaperCanvasSizeOptions") + if err := awsRestjson1_serializeDocumentSectionBasedLayoutPaperCanvasSizeOptions(v.PaperCanvasSizeOptions, ok); err != nil { return err } } @@ -24277,124 +27103,105 @@ func awsRestjson1_serializeDocumentRowLevelPermissionTagConfiguration(v *types.R return nil } -func awsRestjson1_serializeDocumentRowLevelPermissionTagRule(v *types.RowLevelPermissionTagRule, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSectionBasedLayoutConfiguration(v *types.SectionBasedLayoutConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.ColumnName != nil { - ok := object.Key("ColumnName") - ok.String(*v.ColumnName) + if v.BodySections != nil { + ok := object.Key("BodySections") + if err := awsRestjson1_serializeDocumentBodySectionConfigurationList(v.BodySections, ok); err != nil { + return err + } } - if v.MatchAllValue != nil { - ok := object.Key("MatchAllValue") - ok.String(*v.MatchAllValue) + if v.CanvasSizeOptions != nil { + ok := object.Key("CanvasSizeOptions") + if err := awsRestjson1_serializeDocumentSectionBasedLayoutCanvasSizeOptions(v.CanvasSizeOptions, ok); err != nil { + return err + } } - if v.TagKey != nil { - ok := object.Key("TagKey") - ok.String(*v.TagKey) + if v.FooterSections != nil { + ok := object.Key("FooterSections") + if err := awsRestjson1_serializeDocumentHeaderFooterSectionConfigurationList(v.FooterSections, ok); err != nil { + return err + } } - if v.TagMultiValueDelimiter != nil { - ok := object.Key("TagMultiValueDelimiter") - ok.String(*v.TagMultiValueDelimiter) + if v.HeaderSections != nil { + ok := object.Key("HeaderSections") + if err := awsRestjson1_serializeDocumentHeaderFooterSectionConfigurationList(v.HeaderSections, ok); err != nil { + return err + } } return nil } -func awsRestjson1_serializeDocumentRowLevelPermissionTagRuleConfiguration(v []string, value smithyjson.Value) error { - array := value.Array() - defer array.Close() - - for i := range v { - av := array.Value() - av.String(v[i]) - } - return nil -} - -func awsRestjson1_serializeDocumentRowLevelPermissionTagRuleConfigurationList(v [][]string, value smithyjson.Value) error { - array := value.Array() - defer array.Close() +func awsRestjson1_serializeDocumentSectionBasedLayoutPaperCanvasSizeOptions(v *types.SectionBasedLayoutPaperCanvasSizeOptions, value smithyjson.Value) error { + object := value.Object() + defer object.Close() - for i := range v { - av := array.Value() - if vv := v[i]; vv == nil { - continue - } - if err := awsRestjson1_serializeDocumentRowLevelPermissionTagRuleConfiguration(v[i], av); err != nil { + if v.PaperMargin != nil { + ok := object.Key("PaperMargin") + if err := awsRestjson1_serializeDocumentSpacing(v.PaperMargin, ok); err != nil { return err } } - return nil -} -func awsRestjson1_serializeDocumentRowLevelPermissionTagRuleList(v []types.RowLevelPermissionTagRule, value smithyjson.Value) error { - array := value.Array() - defer array.Close() + if len(v.PaperOrientation) > 0 { + ok := object.Key("PaperOrientation") + ok.String(string(v.PaperOrientation)) + } - for i := range v { - av := array.Value() - if err := awsRestjson1_serializeDocumentRowLevelPermissionTagRule(&v[i], av); err != nil { - return err - } + if len(v.PaperSize) > 0 { + ok := object.Key("PaperSize") + ok.String(string(v.PaperSize)) } + return nil } -func awsRestjson1_serializeDocumentRowSortList(v []types.FieldSortOptions, value smithyjson.Value) error { - array := value.Array() - defer array.Close() +func awsRestjson1_serializeDocumentSectionLayoutConfiguration(v *types.SectionLayoutConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() - for i := range v { - av := array.Value() - if err := awsRestjson1_serializeDocumentFieldSortOptions(&v[i], av); err != nil { + if v.FreeFormLayout != nil { + ok := object.Key("FreeFormLayout") + if err := awsRestjson1_serializeDocumentFreeFormSectionLayoutConfiguration(v.FreeFormLayout, ok); err != nil { return err } } + return nil } -func awsRestjson1_serializeDocumentS3Parameters(v *types.S3Parameters, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSectionPageBreakConfiguration(v *types.SectionPageBreakConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.ManifestFileLocation != nil { - ok := object.Key("ManifestFileLocation") - if err := awsRestjson1_serializeDocumentManifestFileLocation(v.ManifestFileLocation, ok); err != nil { + if v.After != nil { + ok := object.Key("After") + if err := awsRestjson1_serializeDocumentSectionAfterPageBreak(v.After, ok); err != nil { return err } } - if v.RoleArn != nil { - ok := object.Key("RoleArn") - ok.String(*v.RoleArn) - } - return nil } -func awsRestjson1_serializeDocumentS3Source(v *types.S3Source, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSectionStyle(v *types.SectionStyle, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.DataSourceArn != nil { - ok := object.Key("DataSourceArn") - ok.String(*v.DataSourceArn) - } - - if v.InputColumns != nil { - ok := object.Key("InputColumns") - if err := awsRestjson1_serializeDocumentInputColumnList(v.InputColumns, ok); err != nil { - return err - } + if v.Height != nil { + ok := object.Key("Height") + ok.String(*v.Height) } - if v.UploadSettings != nil { - ok := object.Key("UploadSettings") - if err := awsRestjson1_serializeDocumentUploadSettings(v.UploadSettings, ok); err != nil { + if v.Padding != nil { + ok := object.Key("Padding") + if err := awsRestjson1_serializeDocumentSpacing(v.Padding, ok); err != nil { return err } } @@ -24402,46 +27209,35 @@ func awsRestjson1_serializeDocumentS3Source(v *types.S3Source, value smithyjson. return nil } -func awsRestjson1_serializeDocumentSameSheetTargetVisualConfiguration(v *types.SameSheetTargetVisualConfiguration, value smithyjson.Value) error { - object := value.Object() - defer object.Close() +func awsRestjson1_serializeDocumentSecurityGroupIdList(v []string, value smithyjson.Value) error { + array := value.Array() + defer array.Close() - if len(v.TargetVisualOptions) > 0 { - ok := object.Key("TargetVisualOptions") - ok.String(string(v.TargetVisualOptions)) + for i := range v { + av := array.Value() + av.String(v[i]) } + return nil +} - if v.TargetVisuals != nil { - ok := object.Key("TargetVisuals") - if err := awsRestjson1_serializeDocumentTargetVisualList(v.TargetVisuals, ok); err != nil { - return err - } +func awsRestjson1_serializeDocumentSelectedFieldList(v []string, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + av.String(v[i]) } - return nil } -func awsRestjson1_serializeDocumentSankeyDiagramAggregatedFieldWells(v *types.SankeyDiagramAggregatedFieldWells, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSelectedSheetsFilterScopeConfiguration(v *types.SelectedSheetsFilterScopeConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Destination != nil { - ok := object.Key("Destination") - if err := awsRestjson1_serializeDocumentDimensionFieldList(v.Destination, ok); err != nil { - return err - } - } - - if v.Source != nil { - ok := object.Key("Source") - if err := awsRestjson1_serializeDocumentDimensionFieldList(v.Source, ok); err != nil { - return err - } - } - - if v.Weight != nil { - ok := object.Key("Weight") - if err := awsRestjson1_serializeDocumentMeasureFieldList(v.Weight, ok); err != nil { + if v.SheetVisualScopingConfigurations != nil { + ok := object.Key("SheetVisualScopingConfigurations") + if err := awsRestjson1_serializeDocumentSheetVisualScopingConfigurations(v.SheetVisualScopingConfigurations, ok); err != nil { return err } } @@ -24449,27 +27245,23 @@ func awsRestjson1_serializeDocumentSankeyDiagramAggregatedFieldWells(v *types.Sa return nil } -func awsRestjson1_serializeDocumentSankeyDiagramChartConfiguration(v *types.SankeyDiagramChartConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSemanticEntityType(v *types.SemanticEntityType, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.DataLabels != nil { - ok := object.Key("DataLabels") - if err := awsRestjson1_serializeDocumentDataLabelOptions(v.DataLabels, ok); err != nil { - return err - } + if v.SubTypeName != nil { + ok := object.Key("SubTypeName") + ok.String(*v.SubTypeName) } - if v.FieldWells != nil { - ok := object.Key("FieldWells") - if err := awsRestjson1_serializeDocumentSankeyDiagramFieldWells(v.FieldWells, ok); err != nil { - return err - } + if v.TypeName != nil { + ok := object.Key("TypeName") + ok.String(*v.TypeName) } - if v.SortConfiguration != nil { - ok := object.Key("SortConfiguration") - if err := awsRestjson1_serializeDocumentSankeyDiagramSortConfiguration(v.SortConfiguration, ok); err != nil { + if v.TypeParameters != nil { + ok := object.Key("TypeParameters") + if err := awsRestjson1_serializeDocumentTypeParameters(v.TypeParameters, ok); err != nil { return err } } @@ -24477,41 +27269,47 @@ func awsRestjson1_serializeDocumentSankeyDiagramChartConfiguration(v *types.Sank return nil } -func awsRestjson1_serializeDocumentSankeyDiagramFieldWells(v *types.SankeyDiagramFieldWells, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSemanticType(v *types.SemanticType, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.SankeyDiagramAggregatedFieldWells != nil { - ok := object.Key("SankeyDiagramAggregatedFieldWells") - if err := awsRestjson1_serializeDocumentSankeyDiagramAggregatedFieldWells(v.SankeyDiagramAggregatedFieldWells, ok); err != nil { + if v.FalseyCellValue != nil { + ok := object.Key("FalseyCellValue") + ok.String(*v.FalseyCellValue) + } + + if v.FalseyCellValueSynonyms != nil { + ok := object.Key("FalseyCellValueSynonyms") + if err := awsRestjson1_serializeDocumentSensitiveStringList(v.FalseyCellValueSynonyms, ok); err != nil { return err } } - return nil -} + if v.SubTypeName != nil { + ok := object.Key("SubTypeName") + ok.String(*v.SubTypeName) + } -func awsRestjson1_serializeDocumentSankeyDiagramSortConfiguration(v *types.SankeyDiagramSortConfiguration, value smithyjson.Value) error { - object := value.Object() - defer object.Close() + if v.TruthyCellValue != nil { + ok := object.Key("TruthyCellValue") + ok.String(*v.TruthyCellValue) + } - if v.DestinationItemsLimit != nil { - ok := object.Key("DestinationItemsLimit") - if err := awsRestjson1_serializeDocumentItemsLimitConfiguration(v.DestinationItemsLimit, ok); err != nil { + if v.TruthyCellValueSynonyms != nil { + ok := object.Key("TruthyCellValueSynonyms") + if err := awsRestjson1_serializeDocumentSensitiveStringList(v.TruthyCellValueSynonyms, ok); err != nil { return err } } - if v.SourceItemsLimit != nil { - ok := object.Key("SourceItemsLimit") - if err := awsRestjson1_serializeDocumentItemsLimitConfiguration(v.SourceItemsLimit, ok); err != nil { - return err - } + if v.TypeName != nil { + ok := object.Key("TypeName") + ok.String(*v.TypeName) } - if v.WeightSort != nil { - ok := object.Key("WeightSort") - if err := awsRestjson1_serializeDocumentFieldSortOptionsList(v.WeightSort, ok); err != nil { + if v.TypeParameters != nil { + ok := object.Key("TypeParameters") + if err := awsRestjson1_serializeDocumentTypeParameters(v.TypeParameters, ok); err != nil { return err } } @@ -24519,144 +27317,178 @@ func awsRestjson1_serializeDocumentSankeyDiagramSortConfiguration(v *types.Sanke return nil } -func awsRestjson1_serializeDocumentSankeyDiagramVisual(v *types.SankeyDiagramVisual, value smithyjson.Value) error { - object := value.Object() - defer object.Close() +func awsRestjson1_serializeDocumentSensitiveDoubleList(v []float64, value smithyjson.Value) error { + array := value.Array() + defer array.Close() - if v.Actions != nil { - ok := object.Key("Actions") - if err := awsRestjson1_serializeDocumentVisualCustomActionList(v.Actions, ok); err != nil { - return err - } - } + for i := range v { + av := array.Value() + switch { + case math.IsNaN(v[i]): + av.String("NaN") - if v.ChartConfiguration != nil { - ok := object.Key("ChartConfiguration") - if err := awsRestjson1_serializeDocumentSankeyDiagramChartConfiguration(v.ChartConfiguration, ok); err != nil { - return err - } - } + case math.IsInf(v[i], 1): + av.String("Infinity") + + case math.IsInf(v[i], -1): + av.String("-Infinity") + + default: + av.Double(v[i]) - if v.Subtitle != nil { - ok := object.Key("Subtitle") - if err := awsRestjson1_serializeDocumentVisualSubtitleLabelOptions(v.Subtitle, ok); err != nil { - return err } } + return nil +} - if v.Title != nil { - ok := object.Key("Title") - if err := awsRestjson1_serializeDocumentVisualTitleLabelOptions(v.Title, ok); err != nil { - return err - } +func awsRestjson1_serializeDocumentSensitiveLongList(v []int64, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + av.Long(v[i]) } + return nil +} - if v.VisualId != nil { - ok := object.Key("VisualId") - ok.String(*v.VisualId) +func awsRestjson1_serializeDocumentSensitiveStringList(v []string, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + av.String(v[i]) } + return nil +} + +func awsRestjson1_serializeDocumentSensitiveTimestampList(v []time.Time, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + for i := range v { + av := array.Value() + av.Double(smithytime.FormatEpochSeconds(v[i])) + } return nil } -func awsRestjson1_serializeDocumentScatterPlotCategoricallyAggregatedFieldWells(v *types.ScatterPlotCategoricallyAggregatedFieldWells, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSeriesItem(v *types.SeriesItem, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Category != nil { - ok := object.Key("Category") - if err := awsRestjson1_serializeDocumentDimensionFieldList(v.Category, ok); err != nil { + if v.DataFieldSeriesItem != nil { + ok := object.Key("DataFieldSeriesItem") + if err := awsRestjson1_serializeDocumentDataFieldSeriesItem(v.DataFieldSeriesItem, ok); err != nil { return err } } - if v.Size != nil { - ok := object.Key("Size") - if err := awsRestjson1_serializeDocumentMeasureFieldList(v.Size, ok); err != nil { + if v.FieldSeriesItem != nil { + ok := object.Key("FieldSeriesItem") + if err := awsRestjson1_serializeDocumentFieldSeriesItem(v.FieldSeriesItem, ok); err != nil { return err } } - if v.XAxis != nil { - ok := object.Key("XAxis") - if err := awsRestjson1_serializeDocumentMeasureFieldList(v.XAxis, ok); err != nil { + return nil +} + +func awsRestjson1_serializeDocumentSeriesItemList(v []types.SeriesItem, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentSeriesItem(&v[i], av); err != nil { return err } } + return nil +} - if v.YAxis != nil { - ok := object.Key("YAxis") - if err := awsRestjson1_serializeDocumentMeasureFieldList(v.YAxis, ok); err != nil { - return err - } +func awsRestjson1_serializeDocumentServiceNowParameters(v *types.ServiceNowParameters, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.SiteBaseUrl != nil { + ok := object.Key("SiteBaseUrl") + ok.String(*v.SiteBaseUrl) } return nil } -func awsRestjson1_serializeDocumentScatterPlotConfiguration(v *types.ScatterPlotConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSessionTag(v *types.SessionTag, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.DataLabels != nil { - ok := object.Key("DataLabels") - if err := awsRestjson1_serializeDocumentDataLabelOptions(v.DataLabels, ok); err != nil { - return err - } + if v.Key != nil { + ok := object.Key("Key") + ok.String(*v.Key) } - if v.FieldWells != nil { - ok := object.Key("FieldWells") - if err := awsRestjson1_serializeDocumentScatterPlotFieldWells(v.FieldWells, ok); err != nil { - return err - } + if v.Value != nil { + ok := object.Key("Value") + ok.String(*v.Value) } - if v.Legend != nil { - ok := object.Key("Legend") - if err := awsRestjson1_serializeDocumentLegendOptions(v.Legend, ok); err != nil { - return err - } - } + return nil +} - if v.Tooltip != nil { - ok := object.Key("Tooltip") - if err := awsRestjson1_serializeDocumentTooltipOptions(v.Tooltip, ok); err != nil { - return err - } - } +func awsRestjson1_serializeDocumentSessionTagList(v []types.SessionTag, value smithyjson.Value) error { + array := value.Array() + defer array.Close() - if v.VisualPalette != nil { - ok := object.Key("VisualPalette") - if err := awsRestjson1_serializeDocumentVisualPalette(v.VisualPalette, ok); err != nil { + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentSessionTag(&v[i], av); err != nil { return err } } + return nil +} - if v.XAxisDisplayOptions != nil { - ok := object.Key("XAxisDisplayOptions") - if err := awsRestjson1_serializeDocumentAxisDisplayOptions(v.XAxisDisplayOptions, ok); err != nil { - return err - } +func awsRestjson1_serializeDocumentSetParameterValueConfiguration(v *types.SetParameterValueConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.DestinationParameterName != nil { + ok := object.Key("DestinationParameterName") + ok.String(*v.DestinationParameterName) } - if v.XAxisLabelOptions != nil { - ok := object.Key("XAxisLabelOptions") - if err := awsRestjson1_serializeDocumentChartAxisLabelOptions(v.XAxisLabelOptions, ok); err != nil { + if v.Value != nil { + ok := object.Key("Value") + if err := awsRestjson1_serializeDocumentDestinationParameterValueConfiguration(v.Value, ok); err != nil { return err } } - if v.YAxisDisplayOptions != nil { - ok := object.Key("YAxisDisplayOptions") - if err := awsRestjson1_serializeDocumentAxisDisplayOptions(v.YAxisDisplayOptions, ok); err != nil { + return nil +} + +func awsRestjson1_serializeDocumentSetParameterValueConfigurationList(v []types.SetParameterValueConfiguration, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentSetParameterValueConfiguration(&v[i], av); err != nil { return err } } + return nil +} - if v.YAxisLabelOptions != nil { - ok := object.Key("YAxisLabelOptions") - if err := awsRestjson1_serializeDocumentChartAxisLabelOptions(v.YAxisLabelOptions, ok); err != nil { +func awsRestjson1_serializeDocumentShapeConditionalFormat(v *types.ShapeConditionalFormat, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.BackgroundColor != nil { + ok := object.Key("BackgroundColor") + if err := awsRestjson1_serializeDocumentConditionalFormattingColor(v.BackgroundColor, ok); err != nil { return err } } @@ -24664,20 +27496,13 @@ func awsRestjson1_serializeDocumentScatterPlotConfiguration(v *types.ScatterPlot return nil } -func awsRestjson1_serializeDocumentScatterPlotFieldWells(v *types.ScatterPlotFieldWells, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSheetControlLayout(v *types.SheetControlLayout, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.ScatterPlotCategoricallyAggregatedFieldWells != nil { - ok := object.Key("ScatterPlotCategoricallyAggregatedFieldWells") - if err := awsRestjson1_serializeDocumentScatterPlotCategoricallyAggregatedFieldWells(v.ScatterPlotCategoricallyAggregatedFieldWells, ok); err != nil { - return err - } - } - - if v.ScatterPlotUnaggregatedFieldWells != nil { - ok := object.Key("ScatterPlotUnaggregatedFieldWells") - if err := awsRestjson1_serializeDocumentScatterPlotUnaggregatedFieldWells(v.ScatterPlotUnaggregatedFieldWells, ok); err != nil { + if v.Configuration != nil { + ok := object.Key("Configuration") + if err := awsRestjson1_serializeDocumentSheetControlLayoutConfiguration(v.Configuration, ok); err != nil { return err } } @@ -24685,99 +27510,133 @@ func awsRestjson1_serializeDocumentScatterPlotFieldWells(v *types.ScatterPlotFie return nil } -func awsRestjson1_serializeDocumentScatterPlotUnaggregatedFieldWells(v *types.ScatterPlotUnaggregatedFieldWells, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSheetControlLayoutConfiguration(v *types.SheetControlLayoutConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Size != nil { - ok := object.Key("Size") - if err := awsRestjson1_serializeDocumentMeasureFieldList(v.Size, ok); err != nil { + if v.GridLayout != nil { + ok := object.Key("GridLayout") + if err := awsRestjson1_serializeDocumentGridLayoutConfiguration(v.GridLayout, ok); err != nil { return err } } - if v.XAxis != nil { - ok := object.Key("XAxis") - if err := awsRestjson1_serializeDocumentDimensionFieldList(v.XAxis, ok); err != nil { + return nil +} + +func awsRestjson1_serializeDocumentSheetControlLayoutList(v []types.SheetControlLayout, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentSheetControlLayout(&v[i], av); err != nil { return err } } + return nil +} - if v.YAxis != nil { - ok := object.Key("YAxis") - if err := awsRestjson1_serializeDocumentDimensionFieldList(v.YAxis, ok); err != nil { - return err - } +func awsRestjson1_serializeDocumentSheetControlsOption(v *types.SheetControlsOption, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if len(v.VisibilityState) > 0 { + ok := object.Key("VisibilityState") + ok.String(string(v.VisibilityState)) } return nil } -func awsRestjson1_serializeDocumentScatterPlotVisual(v *types.ScatterPlotVisual, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSheetDefinition(v *types.SheetDefinition, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Actions != nil { - ok := object.Key("Actions") - if err := awsRestjson1_serializeDocumentVisualCustomActionList(v.Actions, ok); err != nil { + if len(v.ContentType) > 0 { + ok := object.Key("ContentType") + ok.String(string(v.ContentType)) + } + + if v.Description != nil { + ok := object.Key("Description") + ok.String(*v.Description) + } + + if v.FilterControls != nil { + ok := object.Key("FilterControls") + if err := awsRestjson1_serializeDocumentFilterControlList(v.FilterControls, ok); err != nil { return err } } - if v.ChartConfiguration != nil { - ok := object.Key("ChartConfiguration") - if err := awsRestjson1_serializeDocumentScatterPlotConfiguration(v.ChartConfiguration, ok); err != nil { + if v.Layouts != nil { + ok := object.Key("Layouts") + if err := awsRestjson1_serializeDocumentLayoutList(v.Layouts, ok); err != nil { return err } } - if v.ColumnHierarchies != nil { - ok := object.Key("ColumnHierarchies") - if err := awsRestjson1_serializeDocumentColumnHierarchyList(v.ColumnHierarchies, ok); err != nil { + if v.Name != nil { + ok := object.Key("Name") + ok.String(*v.Name) + } + + if v.ParameterControls != nil { + ok := object.Key("ParameterControls") + if err := awsRestjson1_serializeDocumentParameterControlList(v.ParameterControls, ok); err != nil { return err } } - if v.Subtitle != nil { - ok := object.Key("Subtitle") - if err := awsRestjson1_serializeDocumentVisualSubtitleLabelOptions(v.Subtitle, ok); err != nil { + if v.SheetControlLayouts != nil { + ok := object.Key("SheetControlLayouts") + if err := awsRestjson1_serializeDocumentSheetControlLayoutList(v.SheetControlLayouts, ok); err != nil { return err } } - if v.Title != nil { - ok := object.Key("Title") - if err := awsRestjson1_serializeDocumentVisualTitleLabelOptions(v.Title, ok); err != nil { + if v.SheetId != nil { + ok := object.Key("SheetId") + ok.String(*v.SheetId) + } + + if v.TextBoxes != nil { + ok := object.Key("TextBoxes") + if err := awsRestjson1_serializeDocumentSheetTextBoxList(v.TextBoxes, ok); err != nil { return err } } - if v.VisualId != nil { - ok := object.Key("VisualId") - ok.String(*v.VisualId) + if v.Title != nil { + ok := object.Key("Title") + ok.String(*v.Title) + } + + if v.Visuals != nil { + ok := object.Key("Visuals") + if err := awsRestjson1_serializeDocumentVisualList(v.Visuals, ok); err != nil { + return err + } } return nil } -func awsRestjson1_serializeDocumentScheduleRefreshOnEntity(v *types.ScheduleRefreshOnEntity, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.DayOfMonth != nil { - ok := object.Key("DayOfMonth") - ok.String(*v.DayOfMonth) - } +func awsRestjson1_serializeDocumentSheetDefinitionList(v []types.SheetDefinition, value smithyjson.Value) error { + array := value.Array() + defer array.Close() - if len(v.DayOfWeek) > 0 { - ok := object.Key("DayOfWeek") - ok.String(string(v.DayOfWeek)) + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentSheetDefinition(&v[i], av); err != nil { + return err + } } - return nil } -func awsRestjson1_serializeDocumentScrollBarOptions(v *types.ScrollBarOptions, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSheetElementConfigurationOverrides(v *types.SheetElementConfigurationOverrides, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -24786,47 +27645,67 @@ func awsRestjson1_serializeDocumentScrollBarOptions(v *types.ScrollBarOptions, v ok.String(string(v.Visibility)) } - if v.VisibleRange != nil { - ok := object.Key("VisibleRange") - if err := awsRestjson1_serializeDocumentVisibleRangeOptions(v.VisibleRange, ok); err != nil { + return nil +} + +func awsRestjson1_serializeDocumentSheetElementRenderingRule(v *types.SheetElementRenderingRule, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ConfigurationOverrides != nil { + ok := object.Key("ConfigurationOverrides") + if err := awsRestjson1_serializeDocumentSheetElementConfigurationOverrides(v.ConfigurationOverrides, ok); err != nil { return err } } + if v.Expression != nil { + ok := object.Key("Expression") + ok.String(*v.Expression) + } + return nil } -func awsRestjson1_serializeDocumentSecondaryValueOptions(v *types.SecondaryValueOptions, value smithyjson.Value) error { - object := value.Object() - defer object.Close() +func awsRestjson1_serializeDocumentSheetElementRenderingRuleList(v []types.SheetElementRenderingRule, value smithyjson.Value) error { + array := value.Array() + defer array.Close() - if len(v.Visibility) > 0 { - ok := object.Key("Visibility") - ok.String(string(v.Visibility)) + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentSheetElementRenderingRule(&v[i], av); err != nil { + return err + } } - return nil } -func awsRestjson1_serializeDocumentSectionAfterPageBreak(v *types.SectionAfterPageBreak, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSheetLayoutElementMaximizationOption(v *types.SheetLayoutElementMaximizationOption, value smithyjson.Value) error { object := value.Object() defer object.Close() - if len(v.Status) > 0 { - ok := object.Key("Status") - ok.String(string(v.Status)) + if len(v.AvailabilityStatus) > 0 { + ok := object.Key("AvailabilityStatus") + ok.String(string(v.AvailabilityStatus)) } return nil } -func awsRestjson1_serializeDocumentSectionBasedLayoutCanvasSizeOptions(v *types.SectionBasedLayoutCanvasSizeOptions, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSheetStyle(v *types.SheetStyle, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.PaperCanvasSizeOptions != nil { - ok := object.Key("PaperCanvasSizeOptions") - if err := awsRestjson1_serializeDocumentSectionBasedLayoutPaperCanvasSizeOptions(v.PaperCanvasSizeOptions, ok); err != nil { + if v.Tile != nil { + ok := object.Key("Tile") + if err := awsRestjson1_serializeDocumentTileStyle(v.Tile, ok); err != nil { + return err + } + } + + if v.TileLayout != nil { + ok := object.Key("TileLayout") + if err := awsRestjson1_serializeDocumentTileLayoutStyle(v.TileLayout, ok); err != nil { return err } } @@ -24834,105 +27713,109 @@ func awsRestjson1_serializeDocumentSectionBasedLayoutCanvasSizeOptions(v *types. return nil } -func awsRestjson1_serializeDocumentSectionBasedLayoutConfiguration(v *types.SectionBasedLayoutConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSheetTextBox(v *types.SheetTextBox, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.BodySections != nil { - ok := object.Key("BodySections") - if err := awsRestjson1_serializeDocumentBodySectionConfigurationList(v.BodySections, ok); err != nil { - return err - } + if v.Content != nil { + ok := object.Key("Content") + ok.String(*v.Content) } - if v.CanvasSizeOptions != nil { - ok := object.Key("CanvasSizeOptions") - if err := awsRestjson1_serializeDocumentSectionBasedLayoutCanvasSizeOptions(v.CanvasSizeOptions, ok); err != nil { - return err - } + if v.SheetTextBoxId != nil { + ok := object.Key("SheetTextBoxId") + ok.String(*v.SheetTextBoxId) } - if v.FooterSections != nil { - ok := object.Key("FooterSections") - if err := awsRestjson1_serializeDocumentHeaderFooterSectionConfigurationList(v.FooterSections, ok); err != nil { - return err - } - } + return nil +} - if v.HeaderSections != nil { - ok := object.Key("HeaderSections") - if err := awsRestjson1_serializeDocumentHeaderFooterSectionConfigurationList(v.HeaderSections, ok); err != nil { +func awsRestjson1_serializeDocumentSheetTextBoxList(v []types.SheetTextBox, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentSheetTextBox(&v[i], av); err != nil { return err } } - return nil } -func awsRestjson1_serializeDocumentSectionBasedLayoutPaperCanvasSizeOptions(v *types.SectionBasedLayoutPaperCanvasSizeOptions, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSheetVisualScopingConfiguration(v *types.SheetVisualScopingConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.PaperMargin != nil { - ok := object.Key("PaperMargin") - if err := awsRestjson1_serializeDocumentSpacing(v.PaperMargin, ok); err != nil { - return err - } + if len(v.Scope) > 0 { + ok := object.Key("Scope") + ok.String(string(v.Scope)) } - if len(v.PaperOrientation) > 0 { - ok := object.Key("PaperOrientation") - ok.String(string(v.PaperOrientation)) + if v.SheetId != nil { + ok := object.Key("SheetId") + ok.String(*v.SheetId) } - if len(v.PaperSize) > 0 { - ok := object.Key("PaperSize") - ok.String(string(v.PaperSize)) + if v.VisualIds != nil { + ok := object.Key("VisualIds") + if err := awsRestjson1_serializeDocumentFilteredVisualsList(v.VisualIds, ok); err != nil { + return err + } } return nil } -func awsRestjson1_serializeDocumentSectionLayoutConfiguration(v *types.SectionLayoutConfiguration, value smithyjson.Value) error { - object := value.Object() - defer object.Close() +func awsRestjson1_serializeDocumentSheetVisualScopingConfigurations(v []types.SheetVisualScopingConfiguration, value smithyjson.Value) error { + array := value.Array() + defer array.Close() - if v.FreeFormLayout != nil { - ok := object.Key("FreeFormLayout") - if err := awsRestjson1_serializeDocumentFreeFormSectionLayoutConfiguration(v.FreeFormLayout, ok); err != nil { + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentSheetVisualScopingConfiguration(&v[i], av); err != nil { return err } } - return nil } -func awsRestjson1_serializeDocumentSectionPageBreakConfiguration(v *types.SectionPageBreakConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentShortFormatText(v *types.ShortFormatText, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.After != nil { - ok := object.Key("After") - if err := awsRestjson1_serializeDocumentSectionAfterPageBreak(v.After, ok); err != nil { - return err - } + if v.PlainText != nil { + ok := object.Key("PlainText") + ok.String(*v.PlainText) + } + + if v.RichText != nil { + ok := object.Key("RichText") + ok.String(*v.RichText) } return nil } -func awsRestjson1_serializeDocumentSectionStyle(v *types.SectionStyle, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSimpleClusterMarker(v *types.SimpleClusterMarker, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Height != nil { - ok := object.Key("Height") - ok.String(*v.Height) + if v.Color != nil { + ok := object.Key("Color") + ok.String(*v.Color) } - if v.Padding != nil { - ok := object.Key("Padding") - if err := awsRestjson1_serializeDocumentSpacing(v.Padding, ok); err != nil { + return nil +} + +func awsRestjson1_serializeDocumentSliderControlDisplayOptions(v *types.SliderControlDisplayOptions, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.TitleOptions != nil { + ok := object.Key("TitleOptions") + if err := awsRestjson1_serializeDocumentLabelOptions(v.TitleOptions, ok); err != nil { return err } } @@ -24940,24 +27823,36 @@ func awsRestjson1_serializeDocumentSectionStyle(v *types.SectionStyle, value smi return nil } -func awsRestjson1_serializeDocumentSelectedFieldList(v []string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSmallMultiplesDimensionFieldList(v []types.DimensionField, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - av.String(v[i]) + if err := awsRestjson1_serializeDocumentDimensionField(&v[i], av); err != nil { + return err + } } return nil } -func awsRestjson1_serializeDocumentSelectedSheetsFilterScopeConfiguration(v *types.SelectedSheetsFilterScopeConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSmallMultiplesOptions(v *types.SmallMultiplesOptions, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.SheetVisualScopingConfigurations != nil { - ok := object.Key("SheetVisualScopingConfigurations") - if err := awsRestjson1_serializeDocumentSheetVisualScopingConfigurations(v.SheetVisualScopingConfigurations, ok); err != nil { + if v.MaxVisibleColumns != nil { + ok := object.Key("MaxVisibleColumns") + ok.Long(*v.MaxVisibleColumns) + } + + if v.MaxVisibleRows != nil { + ok := object.Key("MaxVisibleRows") + ok.Long(*v.MaxVisibleRows) + } + + if v.PanelConfiguration != nil { + ok := object.Key("PanelConfiguration") + if err := awsRestjson1_serializeDocumentPanelConfiguration(v.PanelConfiguration, ok); err != nil { return err } } @@ -24965,151 +27860,154 @@ func awsRestjson1_serializeDocumentSelectedSheetsFilterScopeConfiguration(v *typ return nil } -func awsRestjson1_serializeDocumentSensitiveDoubleList(v []float64, value smithyjson.Value) error { - array := value.Array() - defer array.Close() - - for i := range v { - av := array.Value() - switch { - case math.IsNaN(v[i]): - av.String("NaN") - - case math.IsInf(v[i], 1): - av.String("Infinity") +func awsRestjson1_serializeDocumentSnowflakeParameters(v *types.SnowflakeParameters, value smithyjson.Value) error { + object := value.Object() + defer object.Close() - case math.IsInf(v[i], -1): - av.String("-Infinity") + if v.Database != nil { + ok := object.Key("Database") + ok.String(*v.Database) + } - default: - av.Double(v[i]) + if v.Host != nil { + ok := object.Key("Host") + ok.String(*v.Host) + } - } + if v.Warehouse != nil { + ok := object.Key("Warehouse") + ok.String(*v.Warehouse) } + return nil } -func awsRestjson1_serializeDocumentSensitiveLongList(v []int64, value smithyjson.Value) error { - array := value.Array() - defer array.Close() +func awsRestjson1_serializeDocumentSpacing(v *types.Spacing, value smithyjson.Value) error { + object := value.Object() + defer object.Close() - for i := range v { - av := array.Value() - av.Long(v[i]) + if v.Bottom != nil { + ok := object.Key("Bottom") + ok.String(*v.Bottom) } - return nil -} -func awsRestjson1_serializeDocumentSensitiveStringList(v []string, value smithyjson.Value) error { - array := value.Array() - defer array.Close() - - for i := range v { - av := array.Value() - av.String(v[i]) + if v.Left != nil { + ok := object.Key("Left") + ok.String(*v.Left) } - return nil -} -func awsRestjson1_serializeDocumentSensitiveTimestampList(v []time.Time, value smithyjson.Value) error { - array := value.Array() - defer array.Close() + if v.Right != nil { + ok := object.Key("Right") + ok.String(*v.Right) + } - for i := range v { - av := array.Value() - av.Double(smithytime.FormatEpochSeconds(v[i])) + if v.Top != nil { + ok := object.Key("Top") + ok.String(*v.Top) } + return nil } -func awsRestjson1_serializeDocumentSeriesItem(v *types.SeriesItem, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSparkParameters(v *types.SparkParameters, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.DataFieldSeriesItem != nil { - ok := object.Key("DataFieldSeriesItem") - if err := awsRestjson1_serializeDocumentDataFieldSeriesItem(v.DataFieldSeriesItem, ok); err != nil { - return err - } + if v.Host != nil { + ok := object.Key("Host") + ok.String(*v.Host) } - if v.FieldSeriesItem != nil { - ok := object.Key("FieldSeriesItem") - if err := awsRestjson1_serializeDocumentFieldSeriesItem(v.FieldSeriesItem, ok); err != nil { - return err - } + { + ok := object.Key("Port") + ok.Integer(v.Port) } return nil } -func awsRestjson1_serializeDocumentSeriesItemList(v []types.SeriesItem, value smithyjson.Value) error { - array := value.Array() - defer array.Close() +func awsRestjson1_serializeDocumentSqlServerParameters(v *types.SqlServerParameters, value smithyjson.Value) error { + object := value.Object() + defer object.Close() - for i := range v { - av := array.Value() - if err := awsRestjson1_serializeDocumentSeriesItem(&v[i], av); err != nil { - return err - } + if v.Database != nil { + ok := object.Key("Database") + ok.String(*v.Database) + } + + if v.Host != nil { + ok := object.Key("Host") + ok.String(*v.Host) + } + + { + ok := object.Key("Port") + ok.Integer(v.Port) } + return nil } -func awsRestjson1_serializeDocumentServiceNowParameters(v *types.ServiceNowParameters, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSslProperties(v *types.SslProperties, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.SiteBaseUrl != nil { - ok := object.Key("SiteBaseUrl") - ok.String(*v.SiteBaseUrl) + if v.DisableSsl { + ok := object.Key("DisableSsl") + ok.Boolean(v.DisableSsl) } return nil } -func awsRestjson1_serializeDocumentSessionTag(v *types.SessionTag, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentStatePersistenceConfigurations(v *types.StatePersistenceConfigurations, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Key != nil { - ok := object.Key("Key") - ok.String(*v.Key) - } - - if v.Value != nil { - ok := object.Key("Value") - ok.String(*v.Value) + { + ok := object.Key("Enabled") + ok.Boolean(v.Enabled) } return nil } -func awsRestjson1_serializeDocumentSessionTagList(v []types.SessionTag, value smithyjson.Value) error { - array := value.Array() - defer array.Close() +func awsRestjson1_serializeDocumentStringDatasetParameter(v *types.StringDatasetParameter, value smithyjson.Value) error { + object := value.Object() + defer object.Close() - for i := range v { - av := array.Value() - if err := awsRestjson1_serializeDocumentSessionTag(&v[i], av); err != nil { + if v.DefaultValues != nil { + ok := object.Key("DefaultValues") + if err := awsRestjson1_serializeDocumentStringDatasetParameterDefaultValues(v.DefaultValues, ok); err != nil { return err } } + + if v.Id != nil { + ok := object.Key("Id") + ok.String(*v.Id) + } + + if v.Name != nil { + ok := object.Key("Name") + ok.String(*v.Name) + } + + if len(v.ValueType) > 0 { + ok := object.Key("ValueType") + ok.String(string(v.ValueType)) + } + return nil } -func awsRestjson1_serializeDocumentSetParameterValueConfiguration(v *types.SetParameterValueConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentStringDatasetParameterDefaultValues(v *types.StringDatasetParameterDefaultValues, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.DestinationParameterName != nil { - ok := object.Key("DestinationParameterName") - ok.String(*v.DestinationParameterName) - } - - if v.Value != nil { - ok := object.Key("Value") - if err := awsRestjson1_serializeDocumentDestinationParameterValueConfiguration(v.Value, ok); err != nil { + if v.StaticValues != nil { + ok := object.Key("StaticValues") + if err := awsRestjson1_serializeDocumentStringDatasetParameterValueList(v.StaticValues, ok); err != nil { return err } } @@ -25117,40 +28015,42 @@ func awsRestjson1_serializeDocumentSetParameterValueConfiguration(v *types.SetPa return nil } -func awsRestjson1_serializeDocumentSetParameterValueConfigurationList(v []types.SetParameterValueConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentStringDatasetParameterValueList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if err := awsRestjson1_serializeDocumentSetParameterValueConfiguration(&v[i], av); err != nil { - return err - } + av.String(v[i]) + } + return nil +} + +func awsRestjson1_serializeDocumentStringDefaultValueList(v []string, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentShapeConditionalFormat(v *types.ShapeConditionalFormat, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentStringDefaultValues(v *types.StringDefaultValues, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.BackgroundColor != nil { - ok := object.Key("BackgroundColor") - if err := awsRestjson1_serializeDocumentConditionalFormattingColor(v.BackgroundColor, ok); err != nil { + if v.DynamicValue != nil { + ok := object.Key("DynamicValue") + if err := awsRestjson1_serializeDocumentDynamicDefaultValue(v.DynamicValue, ok); err != nil { return err } } - return nil -} - -func awsRestjson1_serializeDocumentSheetControlLayout(v *types.SheetControlLayout, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Configuration != nil { - ok := object.Key("Configuration") - if err := awsRestjson1_serializeDocumentSheetControlLayoutConfiguration(v.Configuration, ok); err != nil { + if v.StaticValues != nil { + ok := object.Key("StaticValues") + if err := awsRestjson1_serializeDocumentStringDefaultValueList(v.StaticValues, ok); err != nil { return err } } @@ -25158,13 +28058,20 @@ func awsRestjson1_serializeDocumentSheetControlLayout(v *types.SheetControlLayou return nil } -func awsRestjson1_serializeDocumentSheetControlLayoutConfiguration(v *types.SheetControlLayoutConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentStringFormatConfiguration(v *types.StringFormatConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.GridLayout != nil { - ok := object.Key("GridLayout") - if err := awsRestjson1_serializeDocumentGridLayoutConfiguration(v.GridLayout, ok); err != nil { + if v.NullValueFormatConfiguration != nil { + ok := object.Key("NullValueFormatConfiguration") + if err := awsRestjson1_serializeDocumentNullValueFormatConfiguration(v.NullValueFormatConfiguration, ok); err != nil { + return err + } + } + + if v.NumericFormatConfiguration != nil { + ok := object.Key("NumericFormatConfiguration") + if err := awsRestjson1_serializeDocumentNumericFormatConfiguration(v.NumericFormatConfiguration, ok); err != nil { return err } } @@ -25172,55 +28079,50 @@ func awsRestjson1_serializeDocumentSheetControlLayoutConfiguration(v *types.Shee return nil } -func awsRestjson1_serializeDocumentSheetControlLayoutList(v []types.SheetControlLayout, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentStringList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if err := awsRestjson1_serializeDocumentSheetControlLayout(&v[i], av); err != nil { - return err - } + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentSheetControlsOption(v *types.SheetControlsOption, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentStringParameter(v *types.StringParameter, value smithyjson.Value) error { object := value.Object() defer object.Close() - if len(v.VisibilityState) > 0 { - ok := object.Key("VisibilityState") - ok.String(string(v.VisibilityState)) + if v.Name != nil { + ok := object.Key("Name") + ok.String(*v.Name) + } + + if v.Values != nil { + ok := object.Key("Values") + if err := awsRestjson1_serializeDocumentSensitiveStringList(v.Values, ok); err != nil { + return err + } } return nil } -func awsRestjson1_serializeDocumentSheetDefinition(v *types.SheetDefinition, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentStringParameterDeclaration(v *types.StringParameterDeclaration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if len(v.ContentType) > 0 { - ok := object.Key("ContentType") - ok.String(string(v.ContentType)) - } - - if v.Description != nil { - ok := object.Key("Description") - ok.String(*v.Description) - } - - if v.FilterControls != nil { - ok := object.Key("FilterControls") - if err := awsRestjson1_serializeDocumentFilterControlList(v.FilterControls, ok); err != nil { + if v.DefaultValues != nil { + ok := object.Key("DefaultValues") + if err := awsRestjson1_serializeDocumentStringDefaultValues(v.DefaultValues, ok); err != nil { return err } } - if v.Layouts != nil { - ok := object.Key("Layouts") - if err := awsRestjson1_serializeDocumentLayoutList(v.Layouts, ok); err != nil { + if v.MappedDataSetParameters != nil { + ok := object.Key("MappedDataSetParameters") + if err := awsRestjson1_serializeDocumentMappedDataSetParameters(v.MappedDataSetParameters, ok); err != nil { return err } } @@ -25230,240 +28132,276 @@ func awsRestjson1_serializeDocumentSheetDefinition(v *types.SheetDefinition, val ok.String(*v.Name) } - if v.ParameterControls != nil { - ok := object.Key("ParameterControls") - if err := awsRestjson1_serializeDocumentParameterControlList(v.ParameterControls, ok); err != nil { - return err - } + if len(v.ParameterValueType) > 0 { + ok := object.Key("ParameterValueType") + ok.String(string(v.ParameterValueType)) } - if v.SheetControlLayouts != nil { - ok := object.Key("SheetControlLayouts") - if err := awsRestjson1_serializeDocumentSheetControlLayoutList(v.SheetControlLayouts, ok); err != nil { + if v.ValueWhenUnset != nil { + ok := object.Key("ValueWhenUnset") + if err := awsRestjson1_serializeDocumentStringValueWhenUnsetConfiguration(v.ValueWhenUnset, ok); err != nil { return err } } - if v.SheetId != nil { - ok := object.Key("SheetId") - ok.String(*v.SheetId) - } + return nil +} - if v.TextBoxes != nil { - ok := object.Key("TextBoxes") - if err := awsRestjson1_serializeDocumentSheetTextBoxList(v.TextBoxes, ok); err != nil { +func awsRestjson1_serializeDocumentStringParameterList(v []types.StringParameter, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentStringParameter(&v[i], av); err != nil { return err } } + return nil +} - if v.Title != nil { - ok := object.Key("Title") - ok.String(*v.Title) +func awsRestjson1_serializeDocumentStringValueWhenUnsetConfiguration(v *types.StringValueWhenUnsetConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.CustomValue != nil { + ok := object.Key("CustomValue") + ok.String(*v.CustomValue) } - if v.Visuals != nil { - ok := object.Key("Visuals") - if err := awsRestjson1_serializeDocumentVisualList(v.Visuals, ok); err != nil { - return err - } + if len(v.ValueWhenUnsetOption) > 0 { + ok := object.Key("ValueWhenUnsetOption") + ok.String(string(v.ValueWhenUnsetOption)) } return nil } -func awsRestjson1_serializeDocumentSheetDefinitionList(v []types.SheetDefinition, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSubnetIdList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if err := awsRestjson1_serializeDocumentSheetDefinition(&v[i], av); err != nil { - return err - } + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentSheetElementConfigurationOverrides(v *types.SheetElementConfigurationOverrides, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSubtotalOptions(v *types.SubtotalOptions, value smithyjson.Value) error { object := value.Object() defer object.Close() - if len(v.Visibility) > 0 { - ok := object.Key("Visibility") - ok.String(string(v.Visibility)) + if v.CustomLabel != nil { + ok := object.Key("CustomLabel") + ok.String(*v.CustomLabel) } - return nil -} + if len(v.FieldLevel) > 0 { + ok := object.Key("FieldLevel") + ok.String(string(v.FieldLevel)) + } -func awsRestjson1_serializeDocumentSheetElementRenderingRule(v *types.SheetElementRenderingRule, value smithyjson.Value) error { - object := value.Object() - defer object.Close() + if v.FieldLevelOptions != nil { + ok := object.Key("FieldLevelOptions") + if err := awsRestjson1_serializeDocumentPivotTableFieldSubtotalOptionsList(v.FieldLevelOptions, ok); err != nil { + return err + } + } - if v.ConfigurationOverrides != nil { - ok := object.Key("ConfigurationOverrides") - if err := awsRestjson1_serializeDocumentSheetElementConfigurationOverrides(v.ConfigurationOverrides, ok); err != nil { + if v.MetricHeaderCellStyle != nil { + ok := object.Key("MetricHeaderCellStyle") + if err := awsRestjson1_serializeDocumentTableCellStyle(v.MetricHeaderCellStyle, ok); err != nil { return err } } - if v.Expression != nil { - ok := object.Key("Expression") - ok.String(*v.Expression) + if v.TotalCellStyle != nil { + ok := object.Key("TotalCellStyle") + if err := awsRestjson1_serializeDocumentTableCellStyle(v.TotalCellStyle, ok); err != nil { + return err + } + } + + if len(v.TotalsVisibility) > 0 { + ok := object.Key("TotalsVisibility") + ok.String(string(v.TotalsVisibility)) + } + + if v.ValueCellStyle != nil { + ok := object.Key("ValueCellStyle") + if err := awsRestjson1_serializeDocumentTableCellStyle(v.ValueCellStyle, ok); err != nil { + return err + } } return nil } -func awsRestjson1_serializeDocumentSheetElementRenderingRuleList(v []types.SheetElementRenderingRule, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentSynonyms(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if err := awsRestjson1_serializeDocumentSheetElementRenderingRule(&v[i], av); err != nil { - return err - } + av.String(v[i]) } return nil } -func awsRestjson1_serializeDocumentSheetLayoutElementMaximizationOption(v *types.SheetLayoutElementMaximizationOption, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTableAggregatedFieldWells(v *types.TableAggregatedFieldWells, value smithyjson.Value) error { object := value.Object() defer object.Close() - if len(v.AvailabilityStatus) > 0 { - ok := object.Key("AvailabilityStatus") - ok.String(string(v.AvailabilityStatus)) + if v.GroupBy != nil { + ok := object.Key("GroupBy") + if err := awsRestjson1_serializeDocumentDimensionFieldList(v.GroupBy, ok); err != nil { + return err + } + } + + if v.Values != nil { + ok := object.Key("Values") + if err := awsRestjson1_serializeDocumentMeasureFieldList(v.Values, ok); err != nil { + return err + } } return nil } -func awsRestjson1_serializeDocumentSheetStyle(v *types.SheetStyle, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTableBorderOptions(v *types.TableBorderOptions, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Tile != nil { - ok := object.Key("Tile") - if err := awsRestjson1_serializeDocumentTileStyle(v.Tile, ok); err != nil { - return err - } + if v.Color != nil { + ok := object.Key("Color") + ok.String(*v.Color) } - if v.TileLayout != nil { - ok := object.Key("TileLayout") - if err := awsRestjson1_serializeDocumentTileLayoutStyle(v.TileLayout, ok); err != nil { - return err - } + if len(v.Style) > 0 { + ok := object.Key("Style") + ok.String(string(v.Style)) + } + + if v.Thickness != nil { + ok := object.Key("Thickness") + ok.Integer(*v.Thickness) } return nil } -func awsRestjson1_serializeDocumentSheetTextBox(v *types.SheetTextBox, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTableCellConditionalFormatting(v *types.TableCellConditionalFormatting, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Content != nil { - ok := object.Key("Content") - ok.String(*v.Content) + if v.FieldId != nil { + ok := object.Key("FieldId") + ok.String(*v.FieldId) } - if v.SheetTextBoxId != nil { - ok := object.Key("SheetTextBoxId") - ok.String(*v.SheetTextBoxId) + if v.TextFormat != nil { + ok := object.Key("TextFormat") + if err := awsRestjson1_serializeDocumentTextConditionalFormat(v.TextFormat, ok); err != nil { + return err + } } return nil } -func awsRestjson1_serializeDocumentSheetTextBoxList(v []types.SheetTextBox, value smithyjson.Value) error { - array := value.Array() - defer array.Close() +func awsRestjson1_serializeDocumentTableCellImageSizingConfiguration(v *types.TableCellImageSizingConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() - for i := range v { - av := array.Value() - if err := awsRestjson1_serializeDocumentSheetTextBox(&v[i], av); err != nil { - return err - } + if len(v.TableCellImageScalingConfiguration) > 0 { + ok := object.Key("TableCellImageScalingConfiguration") + ok.String(string(v.TableCellImageScalingConfiguration)) } + return nil } -func awsRestjson1_serializeDocumentSheetVisualScopingConfiguration(v *types.SheetVisualScopingConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTableCellStyle(v *types.TableCellStyle, value smithyjson.Value) error { object := value.Object() defer object.Close() - if len(v.Scope) > 0 { - ok := object.Key("Scope") - ok.String(string(v.Scope)) + if v.BackgroundColor != nil { + ok := object.Key("BackgroundColor") + ok.String(*v.BackgroundColor) } - if v.SheetId != nil { - ok := object.Key("SheetId") - ok.String(*v.SheetId) + if v.Border != nil { + ok := object.Key("Border") + if err := awsRestjson1_serializeDocumentGlobalTableBorderOptions(v.Border, ok); err != nil { + return err + } } - if v.VisualIds != nil { - ok := object.Key("VisualIds") - if err := awsRestjson1_serializeDocumentFilteredVisualsList(v.VisualIds, ok); err != nil { + if v.FontConfiguration != nil { + ok := object.Key("FontConfiguration") + if err := awsRestjson1_serializeDocumentFontConfiguration(v.FontConfiguration, ok); err != nil { return err } } - return nil -} - -func awsRestjson1_serializeDocumentSheetVisualScopingConfigurations(v []types.SheetVisualScopingConfiguration, value smithyjson.Value) error { - array := value.Array() - defer array.Close() + if v.Height != nil { + ok := object.Key("Height") + ok.Integer(*v.Height) + } - for i := range v { - av := array.Value() - if err := awsRestjson1_serializeDocumentSheetVisualScopingConfiguration(&v[i], av); err != nil { - return err - } + if len(v.HorizontalTextAlignment) > 0 { + ok := object.Key("HorizontalTextAlignment") + ok.String(string(v.HorizontalTextAlignment)) } - return nil -} -func awsRestjson1_serializeDocumentShortFormatText(v *types.ShortFormatText, value smithyjson.Value) error { - object := value.Object() - defer object.Close() + if len(v.TextWrap) > 0 { + ok := object.Key("TextWrap") + ok.String(string(v.TextWrap)) + } - if v.PlainText != nil { - ok := object.Key("PlainText") - ok.String(*v.PlainText) + if len(v.VerticalTextAlignment) > 0 { + ok := object.Key("VerticalTextAlignment") + ok.String(string(v.VerticalTextAlignment)) } - if v.RichText != nil { - ok := object.Key("RichText") - ok.String(*v.RichText) + if len(v.Visibility) > 0 { + ok := object.Key("Visibility") + ok.String(string(v.Visibility)) } return nil } -func awsRestjson1_serializeDocumentSimpleClusterMarker(v *types.SimpleClusterMarker, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTableConditionalFormatting(v *types.TableConditionalFormatting, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Color != nil { - ok := object.Key("Color") - ok.String(*v.Color) + if v.ConditionalFormattingOptions != nil { + ok := object.Key("ConditionalFormattingOptions") + if err := awsRestjson1_serializeDocumentTableConditionalFormattingOptionList(v.ConditionalFormattingOptions, ok); err != nil { + return err + } } return nil } -func awsRestjson1_serializeDocumentSliderControlDisplayOptions(v *types.SliderControlDisplayOptions, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTableConditionalFormattingOption(v *types.TableConditionalFormattingOption, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.TitleOptions != nil { - ok := object.Key("TitleOptions") - if err := awsRestjson1_serializeDocumentLabelOptions(v.TitleOptions, ok); err != nil { + if v.Cell != nil { + ok := object.Key("Cell") + if err := awsRestjson1_serializeDocumentTableCellConditionalFormatting(v.Cell, ok); err != nil { + return err + } + } + + if v.Row != nil { + ok := object.Key("Row") + if err := awsRestjson1_serializeDocumentTableRowConditionalFormatting(v.Row, ok); err != nil { return err } } @@ -25471,180 +28409,221 @@ func awsRestjson1_serializeDocumentSliderControlDisplayOptions(v *types.SliderCo return nil } -func awsRestjson1_serializeDocumentSmallMultiplesDimensionFieldList(v []types.DimensionField, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTableConditionalFormattingOptionList(v []types.TableConditionalFormattingOption, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if err := awsRestjson1_serializeDocumentDimensionField(&v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentTableConditionalFormattingOption(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentSmallMultiplesOptions(v *types.SmallMultiplesOptions, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTableConfiguration(v *types.TableConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.MaxVisibleColumns != nil { - ok := object.Key("MaxVisibleColumns") - ok.Long(*v.MaxVisibleColumns) + if v.FieldOptions != nil { + ok := object.Key("FieldOptions") + if err := awsRestjson1_serializeDocumentTableFieldOptions(v.FieldOptions, ok); err != nil { + return err + } } - if v.MaxVisibleRows != nil { - ok := object.Key("MaxVisibleRows") - ok.Long(*v.MaxVisibleRows) + if v.FieldWells != nil { + ok := object.Key("FieldWells") + if err := awsRestjson1_serializeDocumentTableFieldWells(v.FieldWells, ok); err != nil { + return err + } } - if v.PanelConfiguration != nil { - ok := object.Key("PanelConfiguration") - if err := awsRestjson1_serializeDocumentPanelConfiguration(v.PanelConfiguration, ok); err != nil { + if v.PaginatedReportOptions != nil { + ok := object.Key("PaginatedReportOptions") + if err := awsRestjson1_serializeDocumentTablePaginatedReportOptions(v.PaginatedReportOptions, ok); err != nil { return err } } - return nil -} - -func awsRestjson1_serializeDocumentSnowflakeParameters(v *types.SnowflakeParameters, value smithyjson.Value) error { - object := value.Object() - defer object.Close() + if v.SortConfiguration != nil { + ok := object.Key("SortConfiguration") + if err := awsRestjson1_serializeDocumentTableSortConfiguration(v.SortConfiguration, ok); err != nil { + return err + } + } - if v.Database != nil { - ok := object.Key("Database") - ok.String(*v.Database) + if v.TableInlineVisualizations != nil { + ok := object.Key("TableInlineVisualizations") + if err := awsRestjson1_serializeDocumentTableInlineVisualizationList(v.TableInlineVisualizations, ok); err != nil { + return err + } } - if v.Host != nil { - ok := object.Key("Host") - ok.String(*v.Host) + if v.TableOptions != nil { + ok := object.Key("TableOptions") + if err := awsRestjson1_serializeDocumentTableOptions(v.TableOptions, ok); err != nil { + return err + } } - if v.Warehouse != nil { - ok := object.Key("Warehouse") - ok.String(*v.Warehouse) + if v.TotalOptions != nil { + ok := object.Key("TotalOptions") + if err := awsRestjson1_serializeDocumentTotalOptions(v.TotalOptions, ok); err != nil { + return err + } } return nil } -func awsRestjson1_serializeDocumentSpacing(v *types.Spacing, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTableFieldCustomIconContent(v *types.TableFieldCustomIconContent, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Bottom != nil { - ok := object.Key("Bottom") - ok.String(*v.Bottom) + if len(v.Icon) > 0 { + ok := object.Key("Icon") + ok.String(string(v.Icon)) } - if v.Left != nil { - ok := object.Key("Left") - ok.String(*v.Left) + return nil +} + +func awsRestjson1_serializeDocumentTableFieldCustomTextContent(v *types.TableFieldCustomTextContent, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.FontConfiguration != nil { + ok := object.Key("FontConfiguration") + if err := awsRestjson1_serializeDocumentFontConfiguration(v.FontConfiguration, ok); err != nil { + return err + } } - if v.Right != nil { - ok := object.Key("Right") - ok.String(*v.Right) + if v.Value != nil { + ok := object.Key("Value") + ok.String(*v.Value) } - if v.Top != nil { - ok := object.Key("Top") - ok.String(*v.Top) + return nil +} + +func awsRestjson1_serializeDocumentTableFieldImageConfiguration(v *types.TableFieldImageConfiguration, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.SizingOptions != nil { + ok := object.Key("SizingOptions") + if err := awsRestjson1_serializeDocumentTableCellImageSizingConfiguration(v.SizingOptions, ok); err != nil { + return err + } } return nil } -func awsRestjson1_serializeDocumentSparkParameters(v *types.SparkParameters, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTableFieldLinkConfiguration(v *types.TableFieldLinkConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Host != nil { - ok := object.Key("Host") - ok.String(*v.Host) + if v.Content != nil { + ok := object.Key("Content") + if err := awsRestjson1_serializeDocumentTableFieldLinkContentConfiguration(v.Content, ok); err != nil { + return err + } } - { - ok := object.Key("Port") - ok.Integer(v.Port) + if len(v.Target) > 0 { + ok := object.Key("Target") + ok.String(string(v.Target)) } return nil } -func awsRestjson1_serializeDocumentSqlServerParameters(v *types.SqlServerParameters, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTableFieldLinkContentConfiguration(v *types.TableFieldLinkContentConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Database != nil { - ok := object.Key("Database") - ok.String(*v.Database) - } - - if v.Host != nil { - ok := object.Key("Host") - ok.String(*v.Host) + if v.CustomIconContent != nil { + ok := object.Key("CustomIconContent") + if err := awsRestjson1_serializeDocumentTableFieldCustomIconContent(v.CustomIconContent, ok); err != nil { + return err + } } - { - ok := object.Key("Port") - ok.Integer(v.Port) + if v.CustomTextContent != nil { + ok := object.Key("CustomTextContent") + if err := awsRestjson1_serializeDocumentTableFieldCustomTextContent(v.CustomTextContent, ok); err != nil { + return err + } } return nil } -func awsRestjson1_serializeDocumentSslProperties(v *types.SslProperties, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTableFieldOption(v *types.TableFieldOption, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.DisableSsl { - ok := object.Key("DisableSsl") - ok.Boolean(v.DisableSsl) + if v.CustomLabel != nil { + ok := object.Key("CustomLabel") + ok.String(*v.CustomLabel) } - return nil -} + if v.FieldId != nil { + ok := object.Key("FieldId") + ok.String(*v.FieldId) + } + + if v.URLStyling != nil { + ok := object.Key("URLStyling") + if err := awsRestjson1_serializeDocumentTableFieldURLConfiguration(v.URLStyling, ok); err != nil { + return err + } + } -func awsRestjson1_serializeDocumentStatePersistenceConfigurations(v *types.StatePersistenceConfigurations, value smithyjson.Value) error { - object := value.Object() - defer object.Close() + if len(v.Visibility) > 0 { + ok := object.Key("Visibility") + ok.String(string(v.Visibility)) + } - { - ok := object.Key("Enabled") - ok.Boolean(v.Enabled) + if v.Width != nil { + ok := object.Key("Width") + ok.String(*v.Width) } return nil } -func awsRestjson1_serializeDocumentStringDefaultValueList(v []string, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTableFieldOptionList(v []types.TableFieldOption, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - av.String(v[i]) + if err := awsRestjson1_serializeDocumentTableFieldOption(&v[i], av); err != nil { + return err + } } return nil } -func awsRestjson1_serializeDocumentStringDefaultValues(v *types.StringDefaultValues, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTableFieldOptions(v *types.TableFieldOptions, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.DynamicValue != nil { - ok := object.Key("DynamicValue") - if err := awsRestjson1_serializeDocumentDynamicDefaultValue(v.DynamicValue, ok); err != nil { + if v.Order != nil { + ok := object.Key("Order") + if err := awsRestjson1_serializeDocumentFieldOrderList(v.Order, ok); err != nil { return err } } - if v.StaticValues != nil { - ok := object.Key("StaticValues") - if err := awsRestjson1_serializeDocumentStringDefaultValueList(v.StaticValues, ok); err != nil { + if v.SelectedFieldOptions != nil { + ok := object.Key("SelectedFieldOptions") + if err := awsRestjson1_serializeDocumentTableFieldOptionList(v.SelectedFieldOptions, ok); err != nil { return err } } @@ -25652,20 +28631,20 @@ func awsRestjson1_serializeDocumentStringDefaultValues(v *types.StringDefaultVal return nil } -func awsRestjson1_serializeDocumentStringFormatConfiguration(v *types.StringFormatConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTableFieldURLConfiguration(v *types.TableFieldURLConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.NullValueFormatConfiguration != nil { - ok := object.Key("NullValueFormatConfiguration") - if err := awsRestjson1_serializeDocumentNullValueFormatConfiguration(v.NullValueFormatConfiguration, ok); err != nil { + if v.ImageConfiguration != nil { + ok := object.Key("ImageConfiguration") + if err := awsRestjson1_serializeDocumentTableFieldImageConfiguration(v.ImageConfiguration, ok); err != nil { return err } } - if v.NumericFormatConfiguration != nil { - ok := object.Key("NumericFormatConfiguration") - if err := awsRestjson1_serializeDocumentNumericFormatConfiguration(v.NumericFormatConfiguration, ok); err != nil { + if v.LinkConfiguration != nil { + ok := object.Key("LinkConfiguration") + if err := awsRestjson1_serializeDocumentTableFieldLinkConfiguration(v.LinkConfiguration, ok); err != nil { return err } } @@ -25673,60 +28652,80 @@ func awsRestjson1_serializeDocumentStringFormatConfiguration(v *types.StringForm return nil } -func awsRestjson1_serializeDocumentStringList(v []string, value smithyjson.Value) error { - array := value.Array() - defer array.Close() +func awsRestjson1_serializeDocumentTableFieldWells(v *types.TableFieldWells, value smithyjson.Value) error { + object := value.Object() + defer object.Close() - for i := range v { - av := array.Value() - av.String(v[i]) + if v.TableAggregatedFieldWells != nil { + ok := object.Key("TableAggregatedFieldWells") + if err := awsRestjson1_serializeDocumentTableAggregatedFieldWells(v.TableAggregatedFieldWells, ok); err != nil { + return err + } + } + + if v.TableUnaggregatedFieldWells != nil { + ok := object.Key("TableUnaggregatedFieldWells") + if err := awsRestjson1_serializeDocumentTableUnaggregatedFieldWells(v.TableUnaggregatedFieldWells, ok); err != nil { + return err + } } + return nil } -func awsRestjson1_serializeDocumentStringParameter(v *types.StringParameter, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTableInlineVisualization(v *types.TableInlineVisualization, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Name != nil { - ok := object.Key("Name") - ok.String(*v.Name) + if v.DataBars != nil { + ok := object.Key("DataBars") + if err := awsRestjson1_serializeDocumentDataBarsOptions(v.DataBars, ok); err != nil { + return err + } } - if v.Values != nil { - ok := object.Key("Values") - if err := awsRestjson1_serializeDocumentSensitiveStringList(v.Values, ok); err != nil { + return nil +} + +func awsRestjson1_serializeDocumentTableInlineVisualizationList(v []types.TableInlineVisualization, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentTableInlineVisualization(&v[i], av); err != nil { return err } } - return nil } -func awsRestjson1_serializeDocumentStringParameterDeclaration(v *types.StringParameterDeclaration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTableOptions(v *types.TableOptions, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.DefaultValues != nil { - ok := object.Key("DefaultValues") - if err := awsRestjson1_serializeDocumentStringDefaultValues(v.DefaultValues, ok); err != nil { + if v.CellStyle != nil { + ok := object.Key("CellStyle") + if err := awsRestjson1_serializeDocumentTableCellStyle(v.CellStyle, ok); err != nil { return err } } - if v.Name != nil { - ok := object.Key("Name") - ok.String(*v.Name) + if v.HeaderStyle != nil { + ok := object.Key("HeaderStyle") + if err := awsRestjson1_serializeDocumentTableCellStyle(v.HeaderStyle, ok); err != nil { + return err + } } - if len(v.ParameterValueType) > 0 { - ok := object.Key("ParameterValueType") - ok.String(string(v.ParameterValueType)) + if len(v.Orientation) > 0 { + ok := object.Key("Orientation") + ok.String(string(v.Orientation)) } - if v.ValueWhenUnset != nil { - ok := object.Key("ValueWhenUnset") - if err := awsRestjson1_serializeDocumentStringValueWhenUnsetConfiguration(v.ValueWhenUnset, ok); err != nil { + if v.RowAlternateColorOptions != nil { + ok := object.Key("RowAlternateColorOptions") + if err := awsRestjson1_serializeDocumentRowAlternateColorOptions(v.RowAlternateColorOptions, ok); err != nil { return err } } @@ -25734,79 +28733,86 @@ func awsRestjson1_serializeDocumentStringParameterDeclaration(v *types.StringPar return nil } -func awsRestjson1_serializeDocumentStringParameterList(v []types.StringParameter, value smithyjson.Value) error { - array := value.Array() - defer array.Close() +func awsRestjson1_serializeDocumentTablePaginatedReportOptions(v *types.TablePaginatedReportOptions, value smithyjson.Value) error { + object := value.Object() + defer object.Close() - for i := range v { - av := array.Value() - if err := awsRestjson1_serializeDocumentStringParameter(&v[i], av); err != nil { - return err - } + if len(v.OverflowColumnHeaderVisibility) > 0 { + ok := object.Key("OverflowColumnHeaderVisibility") + ok.String(string(v.OverflowColumnHeaderVisibility)) } + + if len(v.VerticalOverflowVisibility) > 0 { + ok := object.Key("VerticalOverflowVisibility") + ok.String(string(v.VerticalOverflowVisibility)) + } + return nil } -func awsRestjson1_serializeDocumentStringValueWhenUnsetConfiguration(v *types.StringValueWhenUnsetConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTableRowConditionalFormatting(v *types.TableRowConditionalFormatting, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.CustomValue != nil { - ok := object.Key("CustomValue") - ok.String(*v.CustomValue) + if v.BackgroundColor != nil { + ok := object.Key("BackgroundColor") + if err := awsRestjson1_serializeDocumentConditionalFormattingColor(v.BackgroundColor, ok); err != nil { + return err + } } - if len(v.ValueWhenUnsetOption) > 0 { - ok := object.Key("ValueWhenUnsetOption") - ok.String(string(v.ValueWhenUnsetOption)) + if v.TextColor != nil { + ok := object.Key("TextColor") + if err := awsRestjson1_serializeDocumentConditionalFormattingColor(v.TextColor, ok); err != nil { + return err + } } return nil } -func awsRestjson1_serializeDocumentSubtotalOptions(v *types.SubtotalOptions, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTableSideBorderOptions(v *types.TableSideBorderOptions, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.CustomLabel != nil { - ok := object.Key("CustomLabel") - ok.String(*v.CustomLabel) - } - - if len(v.FieldLevel) > 0 { - ok := object.Key("FieldLevel") - ok.String(string(v.FieldLevel)) + if v.Bottom != nil { + ok := object.Key("Bottom") + if err := awsRestjson1_serializeDocumentTableBorderOptions(v.Bottom, ok); err != nil { + return err + } } - if v.FieldLevelOptions != nil { - ok := object.Key("FieldLevelOptions") - if err := awsRestjson1_serializeDocumentPivotTableFieldSubtotalOptionsList(v.FieldLevelOptions, ok); err != nil { + if v.InnerHorizontal != nil { + ok := object.Key("InnerHorizontal") + if err := awsRestjson1_serializeDocumentTableBorderOptions(v.InnerHorizontal, ok); err != nil { return err } } - if v.MetricHeaderCellStyle != nil { - ok := object.Key("MetricHeaderCellStyle") - if err := awsRestjson1_serializeDocumentTableCellStyle(v.MetricHeaderCellStyle, ok); err != nil { + if v.InnerVertical != nil { + ok := object.Key("InnerVertical") + if err := awsRestjson1_serializeDocumentTableBorderOptions(v.InnerVertical, ok); err != nil { return err } } - if v.TotalCellStyle != nil { - ok := object.Key("TotalCellStyle") - if err := awsRestjson1_serializeDocumentTableCellStyle(v.TotalCellStyle, ok); err != nil { + if v.Left != nil { + ok := object.Key("Left") + if err := awsRestjson1_serializeDocumentTableBorderOptions(v.Left, ok); err != nil { return err } } - if len(v.TotalsVisibility) > 0 { - ok := object.Key("TotalsVisibility") - ok.String(string(v.TotalsVisibility)) + if v.Right != nil { + ok := object.Key("Right") + if err := awsRestjson1_serializeDocumentTableBorderOptions(v.Right, ok); err != nil { + return err + } } - if v.ValueCellStyle != nil { - ok := object.Key("ValueCellStyle") - if err := awsRestjson1_serializeDocumentTableCellStyle(v.ValueCellStyle, ok); err != nil { + if v.Top != nil { + ok := object.Key("Top") + if err := awsRestjson1_serializeDocumentTableBorderOptions(v.Top, ok); err != nil { return err } } @@ -25814,20 +28820,34 @@ func awsRestjson1_serializeDocumentSubtotalOptions(v *types.SubtotalOptions, val return nil } -func awsRestjson1_serializeDocumentTableAggregatedFieldWells(v *types.TableAggregatedFieldWells, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTableSortConfiguration(v *types.TableSortConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.GroupBy != nil { - ok := object.Key("GroupBy") - if err := awsRestjson1_serializeDocumentDimensionFieldList(v.GroupBy, ok); err != nil { + if v.PaginationConfiguration != nil { + ok := object.Key("PaginationConfiguration") + if err := awsRestjson1_serializeDocumentPaginationConfiguration(v.PaginationConfiguration, ok); err != nil { + return err + } + } + + if v.RowSort != nil { + ok := object.Key("RowSort") + if err := awsRestjson1_serializeDocumentRowSortList(v.RowSort, ok); err != nil { return err } } + return nil +} + +func awsRestjson1_serializeDocumentTableUnaggregatedFieldWells(v *types.TableUnaggregatedFieldWells, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + if v.Values != nil { ok := object.Key("Values") - if err := awsRestjson1_serializeDocumentMeasureFieldList(v.Values, ok); err != nil { + if err := awsRestjson1_serializeDocumentUnaggregatedFieldList(v.Values, ok); err != nil { return err } } @@ -25835,117 +28855,125 @@ func awsRestjson1_serializeDocumentTableAggregatedFieldWells(v *types.TableAggre return nil } -func awsRestjson1_serializeDocumentTableBorderOptions(v *types.TableBorderOptions, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTableVisual(v *types.TableVisual, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Color != nil { - ok := object.Key("Color") - ok.String(*v.Color) + if v.Actions != nil { + ok := object.Key("Actions") + if err := awsRestjson1_serializeDocumentVisualCustomActionList(v.Actions, ok); err != nil { + return err + } } - if len(v.Style) > 0 { - ok := object.Key("Style") - ok.String(string(v.Style)) + if v.ChartConfiguration != nil { + ok := object.Key("ChartConfiguration") + if err := awsRestjson1_serializeDocumentTableConfiguration(v.ChartConfiguration, ok); err != nil { + return err + } } - if v.Thickness != nil { - ok := object.Key("Thickness") - ok.Integer(*v.Thickness) + if v.ConditionalFormatting != nil { + ok := object.Key("ConditionalFormatting") + if err := awsRestjson1_serializeDocumentTableConditionalFormatting(v.ConditionalFormatting, ok); err != nil { + return err + } } - return nil -} - -func awsRestjson1_serializeDocumentTableCellConditionalFormatting(v *types.TableCellConditionalFormatting, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.FieldId != nil { - ok := object.Key("FieldId") - ok.String(*v.FieldId) + if v.Subtitle != nil { + ok := object.Key("Subtitle") + if err := awsRestjson1_serializeDocumentVisualSubtitleLabelOptions(v.Subtitle, ok); err != nil { + return err + } } - if v.TextFormat != nil { - ok := object.Key("TextFormat") - if err := awsRestjson1_serializeDocumentTextConditionalFormat(v.TextFormat, ok); err != nil { + if v.Title != nil { + ok := object.Key("Title") + if err := awsRestjson1_serializeDocumentVisualTitleLabelOptions(v.Title, ok); err != nil { return err } } + if v.VisualId != nil { + ok := object.Key("VisualId") + ok.String(*v.VisualId) + } + return nil } -func awsRestjson1_serializeDocumentTableCellImageSizingConfiguration(v *types.TableCellImageSizingConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTag(v *types.Tag, value smithyjson.Value) error { object := value.Object() defer object.Close() - if len(v.TableCellImageScalingConfiguration) > 0 { - ok := object.Key("TableCellImageScalingConfiguration") - ok.String(string(v.TableCellImageScalingConfiguration)) + if v.Key != nil { + ok := object.Key("Key") + ok.String(*v.Key) + } + + if v.Value != nil { + ok := object.Key("Value") + ok.String(*v.Value) } return nil } -func awsRestjson1_serializeDocumentTableCellStyle(v *types.TableCellStyle, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTagColumnOperation(v *types.TagColumnOperation, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.BackgroundColor != nil { - ok := object.Key("BackgroundColor") - ok.String(*v.BackgroundColor) - } - - if v.Border != nil { - ok := object.Key("Border") - if err := awsRestjson1_serializeDocumentGlobalTableBorderOptions(v.Border, ok); err != nil { - return err - } + if v.ColumnName != nil { + ok := object.Key("ColumnName") + ok.String(*v.ColumnName) } - if v.FontConfiguration != nil { - ok := object.Key("FontConfiguration") - if err := awsRestjson1_serializeDocumentFontConfiguration(v.FontConfiguration, ok); err != nil { + if v.Tags != nil { + ok := object.Key("Tags") + if err := awsRestjson1_serializeDocumentColumnTagList(v.Tags, ok); err != nil { return err } } - if v.Height != nil { - ok := object.Key("Height") - ok.Integer(*v.Height) - } + return nil +} - if len(v.HorizontalTextAlignment) > 0 { - ok := object.Key("HorizontalTextAlignment") - ok.String(string(v.HorizontalTextAlignment)) - } +func awsRestjson1_serializeDocumentTagList(v []types.Tag, value smithyjson.Value) error { + array := value.Array() + defer array.Close() - if len(v.TextWrap) > 0 { - ok := object.Key("TextWrap") - ok.String(string(v.TextWrap)) + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentTag(&v[i], av); err != nil { + return err + } } + return nil +} - if len(v.VerticalTextAlignment) > 0 { - ok := object.Key("VerticalTextAlignment") - ok.String(string(v.VerticalTextAlignment)) - } +func awsRestjson1_serializeDocumentTargetVisualList(v []string, value smithyjson.Value) error { + array := value.Array() + defer array.Close() - if len(v.Visibility) > 0 { - ok := object.Key("Visibility") - ok.String(string(v.Visibility)) + for i := range v { + av := array.Value() + av.String(v[i]) } - return nil } -func awsRestjson1_serializeDocumentTableConditionalFormatting(v *types.TableConditionalFormatting, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTemplateSourceAnalysis(v *types.TemplateSourceAnalysis, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.ConditionalFormattingOptions != nil { - ok := object.Key("ConditionalFormattingOptions") - if err := awsRestjson1_serializeDocumentTableConditionalFormattingOptionList(v.ConditionalFormattingOptions, ok); err != nil { + if v.Arn != nil { + ok := object.Key("Arn") + ok.String(*v.Arn) + } + + if v.DataSetReferences != nil { + ok := object.Key("DataSetReferences") + if err := awsRestjson1_serializeDocumentDataSetReferenceList(v.DataSetReferences, ok); err != nil { return err } } @@ -25953,20 +28981,20 @@ func awsRestjson1_serializeDocumentTableConditionalFormatting(v *types.TableCond return nil } -func awsRestjson1_serializeDocumentTableConditionalFormattingOption(v *types.TableConditionalFormattingOption, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTemplateSourceEntity(v *types.TemplateSourceEntity, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Cell != nil { - ok := object.Key("Cell") - if err := awsRestjson1_serializeDocumentTableCellConditionalFormatting(v.Cell, ok); err != nil { + if v.SourceAnalysis != nil { + ok := object.Key("SourceAnalysis") + if err := awsRestjson1_serializeDocumentTemplateSourceAnalysis(v.SourceAnalysis, ok); err != nil { return err } } - if v.Row != nil { - ok := object.Key("Row") - if err := awsRestjson1_serializeDocumentTableRowConditionalFormatting(v.Row, ok); err != nil { + if v.SourceTemplate != nil { + ok := object.Key("SourceTemplate") + if err := awsRestjson1_serializeDocumentTemplateSourceTemplate(v.SourceTemplate, ok); err != nil { return err } } @@ -25974,68 +29002,67 @@ func awsRestjson1_serializeDocumentTableConditionalFormattingOption(v *types.Tab return nil } -func awsRestjson1_serializeDocumentTableConditionalFormattingOptionList(v []types.TableConditionalFormattingOption, value smithyjson.Value) error { - array := value.Array() - defer array.Close() +func awsRestjson1_serializeDocumentTemplateSourceTemplate(v *types.TemplateSourceTemplate, value smithyjson.Value) error { + object := value.Object() + defer object.Close() - for i := range v { - av := array.Value() - if err := awsRestjson1_serializeDocumentTableConditionalFormattingOption(&v[i], av); err != nil { - return err - } + if v.Arn != nil { + ok := object.Key("Arn") + ok.String(*v.Arn) } + return nil } -func awsRestjson1_serializeDocumentTableConfiguration(v *types.TableConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTemplateVersionDefinition(v *types.TemplateVersionDefinition, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.FieldOptions != nil { - ok := object.Key("FieldOptions") - if err := awsRestjson1_serializeDocumentTableFieldOptions(v.FieldOptions, ok); err != nil { + if v.AnalysisDefaults != nil { + ok := object.Key("AnalysisDefaults") + if err := awsRestjson1_serializeDocumentAnalysisDefaults(v.AnalysisDefaults, ok); err != nil { return err } } - if v.FieldWells != nil { - ok := object.Key("FieldWells") - if err := awsRestjson1_serializeDocumentTableFieldWells(v.FieldWells, ok); err != nil { + if v.CalculatedFields != nil { + ok := object.Key("CalculatedFields") + if err := awsRestjson1_serializeDocumentCalculatedFields(v.CalculatedFields, ok); err != nil { return err } } - if v.PaginatedReportOptions != nil { - ok := object.Key("PaginatedReportOptions") - if err := awsRestjson1_serializeDocumentTablePaginatedReportOptions(v.PaginatedReportOptions, ok); err != nil { + if v.ColumnConfigurations != nil { + ok := object.Key("ColumnConfigurations") + if err := awsRestjson1_serializeDocumentColumnConfigurationList(v.ColumnConfigurations, ok); err != nil { return err } } - if v.SortConfiguration != nil { - ok := object.Key("SortConfiguration") - if err := awsRestjson1_serializeDocumentTableSortConfiguration(v.SortConfiguration, ok); err != nil { + if v.DataSetConfigurations != nil { + ok := object.Key("DataSetConfigurations") + if err := awsRestjson1_serializeDocumentDataSetConfigurationList(v.DataSetConfigurations, ok); err != nil { return err } } - if v.TableInlineVisualizations != nil { - ok := object.Key("TableInlineVisualizations") - if err := awsRestjson1_serializeDocumentTableInlineVisualizationList(v.TableInlineVisualizations, ok); err != nil { + if v.FilterGroups != nil { + ok := object.Key("FilterGroups") + if err := awsRestjson1_serializeDocumentFilterGroupList(v.FilterGroups, ok); err != nil { return err } } - if v.TableOptions != nil { - ok := object.Key("TableOptions") - if err := awsRestjson1_serializeDocumentTableOptions(v.TableOptions, ok); err != nil { + if v.ParameterDeclarations != nil { + ok := object.Key("ParameterDeclarations") + if err := awsRestjson1_serializeDocumentParameterDeclarationList(v.ParameterDeclarations, ok); err != nil { return err } } - if v.TotalOptions != nil { - ok := object.Key("TotalOptions") - if err := awsRestjson1_serializeDocumentTotalOptions(v.TotalOptions, ok); err != nil { + if v.Sheets != nil { + ok := object.Key("Sheets") + if err := awsRestjson1_serializeDocumentSheetDefinitionList(v.Sheets, ok); err != nil { return err } } @@ -26043,44 +29070,70 @@ func awsRestjson1_serializeDocumentTableConfiguration(v *types.TableConfiguratio return nil } -func awsRestjson1_serializeDocumentTableFieldCustomIconContent(v *types.TableFieldCustomIconContent, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTeradataParameters(v *types.TeradataParameters, value smithyjson.Value) error { object := value.Object() defer object.Close() - if len(v.Icon) > 0 { - ok := object.Key("Icon") - ok.String(string(v.Icon)) + if v.Database != nil { + ok := object.Key("Database") + ok.String(*v.Database) + } + + if v.Host != nil { + ok := object.Key("Host") + ok.String(*v.Host) + } + + { + ok := object.Key("Port") + ok.Integer(v.Port) } return nil } -func awsRestjson1_serializeDocumentTableFieldCustomTextContent(v *types.TableFieldCustomTextContent, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTextAreaControlDisplayOptions(v *types.TextAreaControlDisplayOptions, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.FontConfiguration != nil { - ok := object.Key("FontConfiguration") - if err := awsRestjson1_serializeDocumentFontConfiguration(v.FontConfiguration, ok); err != nil { + if v.PlaceholderOptions != nil { + ok := object.Key("PlaceholderOptions") + if err := awsRestjson1_serializeDocumentTextControlPlaceholderOptions(v.PlaceholderOptions, ok); err != nil { return err } } - if v.Value != nil { - ok := object.Key("Value") - ok.String(*v.Value) + if v.TitleOptions != nil { + ok := object.Key("TitleOptions") + if err := awsRestjson1_serializeDocumentLabelOptions(v.TitleOptions, ok); err != nil { + return err + } } return nil } -func awsRestjson1_serializeDocumentTableFieldImageConfiguration(v *types.TableFieldImageConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTextConditionalFormat(v *types.TextConditionalFormat, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.SizingOptions != nil { - ok := object.Key("SizingOptions") - if err := awsRestjson1_serializeDocumentTableCellImageSizingConfiguration(v.SizingOptions, ok); err != nil { + if v.BackgroundColor != nil { + ok := object.Key("BackgroundColor") + if err := awsRestjson1_serializeDocumentConditionalFormattingColor(v.BackgroundColor, ok); err != nil { + return err + } + } + + if v.Icon != nil { + ok := object.Key("Icon") + if err := awsRestjson1_serializeDocumentConditionalFormattingIcon(v.Icon, ok); err != nil { + return err + } + } + + if v.TextColor != nil { + ok := object.Key("TextColor") + if err := awsRestjson1_serializeDocumentConditionalFormattingColor(v.TextColor, ok); err != nil { return err } } @@ -26088,39 +29141,32 @@ func awsRestjson1_serializeDocumentTableFieldImageConfiguration(v *types.TableFi return nil } -func awsRestjson1_serializeDocumentTableFieldLinkConfiguration(v *types.TableFieldLinkConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTextControlPlaceholderOptions(v *types.TextControlPlaceholderOptions, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Content != nil { - ok := object.Key("Content") - if err := awsRestjson1_serializeDocumentTableFieldLinkContentConfiguration(v.Content, ok); err != nil { - return err - } - } - - if len(v.Target) > 0 { - ok := object.Key("Target") - ok.String(string(v.Target)) + if len(v.Visibility) > 0 { + ok := object.Key("Visibility") + ok.String(string(v.Visibility)) } return nil } -func awsRestjson1_serializeDocumentTableFieldLinkContentConfiguration(v *types.TableFieldLinkContentConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTextFieldControlDisplayOptions(v *types.TextFieldControlDisplayOptions, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.CustomIconContent != nil { - ok := object.Key("CustomIconContent") - if err := awsRestjson1_serializeDocumentTableFieldCustomIconContent(v.CustomIconContent, ok); err != nil { + if v.PlaceholderOptions != nil { + ok := object.Key("PlaceholderOptions") + if err := awsRestjson1_serializeDocumentTextControlPlaceholderOptions(v.PlaceholderOptions, ok); err != nil { return err } } - if v.CustomTextContent != nil { - ok := object.Key("CustomTextContent") - if err := awsRestjson1_serializeDocumentTableFieldCustomTextContent(v.CustomTextContent, ok); err != nil { + if v.TitleOptions != nil { + ok := object.Key("TitleOptions") + if err := awsRestjson1_serializeDocumentLabelOptions(v.TitleOptions, ok); err != nil { return err } } @@ -26128,67 +29174,72 @@ func awsRestjson1_serializeDocumentTableFieldLinkContentConfiguration(v *types.T return nil } -func awsRestjson1_serializeDocumentTableFieldOption(v *types.TableFieldOption, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentThemeConfiguration(v *types.ThemeConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.CustomLabel != nil { - ok := object.Key("CustomLabel") - ok.String(*v.CustomLabel) - } - - if v.FieldId != nil { - ok := object.Key("FieldId") - ok.String(*v.FieldId) + if v.DataColorPalette != nil { + ok := object.Key("DataColorPalette") + if err := awsRestjson1_serializeDocumentDataColorPalette(v.DataColorPalette, ok); err != nil { + return err + } } - if v.URLStyling != nil { - ok := object.Key("URLStyling") - if err := awsRestjson1_serializeDocumentTableFieldURLConfiguration(v.URLStyling, ok); err != nil { + if v.Sheet != nil { + ok := object.Key("Sheet") + if err := awsRestjson1_serializeDocumentSheetStyle(v.Sheet, ok); err != nil { return err } } - if len(v.Visibility) > 0 { - ok := object.Key("Visibility") - ok.String(string(v.Visibility)) + if v.Typography != nil { + ok := object.Key("Typography") + if err := awsRestjson1_serializeDocumentTypography(v.Typography, ok); err != nil { + return err + } } - if v.Width != nil { - ok := object.Key("Width") - ok.String(*v.Width) + if v.UIColorPalette != nil { + ok := object.Key("UIColorPalette") + if err := awsRestjson1_serializeDocumentUIColorPalette(v.UIColorPalette, ok); err != nil { + return err + } } return nil } -func awsRestjson1_serializeDocumentTableFieldOptionList(v []types.TableFieldOption, value smithyjson.Value) error { - array := value.Array() - defer array.Close() +func awsRestjson1_serializeDocumentThousandSeparatorOptions(v *types.ThousandSeparatorOptions, value smithyjson.Value) error { + object := value.Object() + defer object.Close() - for i := range v { - av := array.Value() - if err := awsRestjson1_serializeDocumentTableFieldOption(&v[i], av); err != nil { - return err - } + if len(v.Symbol) > 0 { + ok := object.Key("Symbol") + ok.String(string(v.Symbol)) } + + if len(v.Visibility) > 0 { + ok := object.Key("Visibility") + ok.String(string(v.Visibility)) + } + return nil } -func awsRestjson1_serializeDocumentTableFieldOptions(v *types.TableFieldOptions, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTileLayoutStyle(v *types.TileLayoutStyle, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Order != nil { - ok := object.Key("Order") - if err := awsRestjson1_serializeDocumentFieldOrderList(v.Order, ok); err != nil { + if v.Gutter != nil { + ok := object.Key("Gutter") + if err := awsRestjson1_serializeDocumentGutterStyle(v.Gutter, ok); err != nil { return err } } - if v.SelectedFieldOptions != nil { - ok := object.Key("SelectedFieldOptions") - if err := awsRestjson1_serializeDocumentTableFieldOptionList(v.SelectedFieldOptions, ok); err != nil { + if v.Margin != nil { + ok := object.Key("Margin") + if err := awsRestjson1_serializeDocumentMarginStyle(v.Margin, ok); err != nil { return err } } @@ -26196,20 +29247,13 @@ func awsRestjson1_serializeDocumentTableFieldOptions(v *types.TableFieldOptions, return nil } -func awsRestjson1_serializeDocumentTableFieldURLConfiguration(v *types.TableFieldURLConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTileStyle(v *types.TileStyle, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.ImageConfiguration != nil { - ok := object.Key("ImageConfiguration") - if err := awsRestjson1_serializeDocumentTableFieldImageConfiguration(v.ImageConfiguration, ok); err != nil { - return err - } - } - - if v.LinkConfiguration != nil { - ok := object.Key("LinkConfiguration") - if err := awsRestjson1_serializeDocumentTableFieldLinkConfiguration(v.LinkConfiguration, ok); err != nil { + if v.Border != nil { + ok := object.Key("Border") + if err := awsRestjson1_serializeDocumentBorderStyle(v.Border, ok); err != nil { return err } } @@ -26217,167 +29261,230 @@ func awsRestjson1_serializeDocumentTableFieldURLConfiguration(v *types.TableFiel return nil } -func awsRestjson1_serializeDocumentTableFieldWells(v *types.TableFieldWells, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTimeBasedForecastProperties(v *types.TimeBasedForecastProperties, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.TableAggregatedFieldWells != nil { - ok := object.Key("TableAggregatedFieldWells") - if err := awsRestjson1_serializeDocumentTableAggregatedFieldWells(v.TableAggregatedFieldWells, ok); err != nil { - return err + if v.LowerBoundary != nil { + ok := object.Key("LowerBoundary") + switch { + case math.IsNaN(*v.LowerBoundary): + ok.String("NaN") + + case math.IsInf(*v.LowerBoundary, 1): + ok.String("Infinity") + + case math.IsInf(*v.LowerBoundary, -1): + ok.String("-Infinity") + + default: + ok.Double(*v.LowerBoundary) + } } - if v.TableUnaggregatedFieldWells != nil { - ok := object.Key("TableUnaggregatedFieldWells") - if err := awsRestjson1_serializeDocumentTableUnaggregatedFieldWells(v.TableUnaggregatedFieldWells, ok); err != nil { - return err + if v.PeriodsBackward != nil { + ok := object.Key("PeriodsBackward") + ok.Integer(*v.PeriodsBackward) + } + + if v.PeriodsForward != nil { + ok := object.Key("PeriodsForward") + ok.Integer(*v.PeriodsForward) + } + + if v.PredictionInterval != nil { + ok := object.Key("PredictionInterval") + ok.Integer(*v.PredictionInterval) + } + + if v.Seasonality != nil { + ok := object.Key("Seasonality") + ok.Integer(*v.Seasonality) + } + + if v.UpperBoundary != nil { + ok := object.Key("UpperBoundary") + switch { + case math.IsNaN(*v.UpperBoundary): + ok.String("NaN") + + case math.IsInf(*v.UpperBoundary, 1): + ok.String("Infinity") + + case math.IsInf(*v.UpperBoundary, -1): + ok.String("-Infinity") + + default: + ok.Double(*v.UpperBoundary) + } } return nil } -func awsRestjson1_serializeDocumentTableInlineVisualization(v *types.TableInlineVisualization, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTimeEqualityFilter(v *types.TimeEqualityFilter, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.DataBars != nil { - ok := object.Key("DataBars") - if err := awsRestjson1_serializeDocumentDataBarsOptions(v.DataBars, ok); err != nil { + if v.Column != nil { + ok := object.Key("Column") + if err := awsRestjson1_serializeDocumentColumnIdentifier(v.Column, ok); err != nil { return err } } - return nil -} + if v.FilterId != nil { + ok := object.Key("FilterId") + ok.String(*v.FilterId) + } -func awsRestjson1_serializeDocumentTableInlineVisualizationList(v []types.TableInlineVisualization, value smithyjson.Value) error { - array := value.Array() - defer array.Close() + if v.ParameterName != nil { + ok := object.Key("ParameterName") + ok.String(*v.ParameterName) + } - for i := range v { - av := array.Value() - if err := awsRestjson1_serializeDocumentTableInlineVisualization(&v[i], av); err != nil { - return err - } + if len(v.TimeGranularity) > 0 { + ok := object.Key("TimeGranularity") + ok.String(string(v.TimeGranularity)) + } + + if v.Value != nil { + ok := object.Key("Value") + ok.Double(smithytime.FormatEpochSeconds(*v.Value)) } + return nil } -func awsRestjson1_serializeDocumentTableOptions(v *types.TableOptions, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTimeRangeDrillDownFilter(v *types.TimeRangeDrillDownFilter, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.CellStyle != nil { - ok := object.Key("CellStyle") - if err := awsRestjson1_serializeDocumentTableCellStyle(v.CellStyle, ok); err != nil { + if v.Column != nil { + ok := object.Key("Column") + if err := awsRestjson1_serializeDocumentColumnIdentifier(v.Column, ok); err != nil { return err } } - if v.HeaderStyle != nil { - ok := object.Key("HeaderStyle") - if err := awsRestjson1_serializeDocumentTableCellStyle(v.HeaderStyle, ok); err != nil { - return err - } + if v.RangeMaximum != nil { + ok := object.Key("RangeMaximum") + ok.Double(smithytime.FormatEpochSeconds(*v.RangeMaximum)) } - if len(v.Orientation) > 0 { - ok := object.Key("Orientation") - ok.String(string(v.Orientation)) + if v.RangeMinimum != nil { + ok := object.Key("RangeMinimum") + ok.Double(smithytime.FormatEpochSeconds(*v.RangeMinimum)) } - if v.RowAlternateColorOptions != nil { - ok := object.Key("RowAlternateColorOptions") - if err := awsRestjson1_serializeDocumentRowAlternateColorOptions(v.RowAlternateColorOptions, ok); err != nil { - return err - } + if len(v.TimeGranularity) > 0 { + ok := object.Key("TimeGranularity") + ok.String(string(v.TimeGranularity)) } return nil } -func awsRestjson1_serializeDocumentTablePaginatedReportOptions(v *types.TablePaginatedReportOptions, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTimeRangeFilter(v *types.TimeRangeFilter, value smithyjson.Value) error { object := value.Object() defer object.Close() - if len(v.OverflowColumnHeaderVisibility) > 0 { - ok := object.Key("OverflowColumnHeaderVisibility") - ok.String(string(v.OverflowColumnHeaderVisibility)) + if v.Column != nil { + ok := object.Key("Column") + if err := awsRestjson1_serializeDocumentColumnIdentifier(v.Column, ok); err != nil { + return err + } } - if len(v.VerticalOverflowVisibility) > 0 { - ok := object.Key("VerticalOverflowVisibility") - ok.String(string(v.VerticalOverflowVisibility)) + if v.ExcludePeriodConfiguration != nil { + ok := object.Key("ExcludePeriodConfiguration") + if err := awsRestjson1_serializeDocumentExcludePeriodConfiguration(v.ExcludePeriodConfiguration, ok); err != nil { + return err + } } - return nil -} + if v.FilterId != nil { + ok := object.Key("FilterId") + ok.String(*v.FilterId) + } + + if v.IncludeMaximum != nil { + ok := object.Key("IncludeMaximum") + ok.Boolean(*v.IncludeMaximum) + } + + if v.IncludeMinimum != nil { + ok := object.Key("IncludeMinimum") + ok.Boolean(*v.IncludeMinimum) + } -func awsRestjson1_serializeDocumentTableRowConditionalFormatting(v *types.TableRowConditionalFormatting, value smithyjson.Value) error { - object := value.Object() - defer object.Close() + if len(v.NullOption) > 0 { + ok := object.Key("NullOption") + ok.String(string(v.NullOption)) + } - if v.BackgroundColor != nil { - ok := object.Key("BackgroundColor") - if err := awsRestjson1_serializeDocumentConditionalFormattingColor(v.BackgroundColor, ok); err != nil { + if v.RangeMaximumValue != nil { + ok := object.Key("RangeMaximumValue") + if err := awsRestjson1_serializeDocumentTimeRangeFilterValue(v.RangeMaximumValue, ok); err != nil { return err } } - if v.TextColor != nil { - ok := object.Key("TextColor") - if err := awsRestjson1_serializeDocumentConditionalFormattingColor(v.TextColor, ok); err != nil { + if v.RangeMinimumValue != nil { + ok := object.Key("RangeMinimumValue") + if err := awsRestjson1_serializeDocumentTimeRangeFilterValue(v.RangeMinimumValue, ok); err != nil { return err } } + if len(v.TimeGranularity) > 0 { + ok := object.Key("TimeGranularity") + ok.String(string(v.TimeGranularity)) + } + return nil } -func awsRestjson1_serializeDocumentTableSideBorderOptions(v *types.TableSideBorderOptions, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTimeRangeFilterValue(v *types.TimeRangeFilterValue, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Bottom != nil { - ok := object.Key("Bottom") - if err := awsRestjson1_serializeDocumentTableBorderOptions(v.Bottom, ok); err != nil { - return err - } + if v.Parameter != nil { + ok := object.Key("Parameter") + ok.String(*v.Parameter) } - if v.InnerHorizontal != nil { - ok := object.Key("InnerHorizontal") - if err := awsRestjson1_serializeDocumentTableBorderOptions(v.InnerHorizontal, ok); err != nil { + if v.RollingDate != nil { + ok := object.Key("RollingDate") + if err := awsRestjson1_serializeDocumentRollingDateConfiguration(v.RollingDate, ok); err != nil { return err } } - if v.InnerVertical != nil { - ok := object.Key("InnerVertical") - if err := awsRestjson1_serializeDocumentTableBorderOptions(v.InnerVertical, ok); err != nil { - return err - } + if v.StaticValue != nil { + ok := object.Key("StaticValue") + ok.Double(smithytime.FormatEpochSeconds(*v.StaticValue)) } - if v.Left != nil { - ok := object.Key("Left") - if err := awsRestjson1_serializeDocumentTableBorderOptions(v.Left, ok); err != nil { - return err - } - } + return nil +} - if v.Right != nil { - ok := object.Key("Right") - if err := awsRestjson1_serializeDocumentTableBorderOptions(v.Right, ok); err != nil { +func awsRestjson1_serializeDocumentTooltipItem(v *types.TooltipItem, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ColumnTooltipItem != nil { + ok := object.Key("ColumnTooltipItem") + if err := awsRestjson1_serializeDocumentColumnTooltipItem(v.ColumnTooltipItem, ok); err != nil { return err } } - if v.Top != nil { - ok := object.Key("Top") - if err := awsRestjson1_serializeDocumentTableBorderOptions(v.Top, ok); err != nil { + if v.FieldTooltipItem != nil { + ok := object.Key("FieldTooltipItem") + if err := awsRestjson1_serializeDocumentFieldTooltipItem(v.FieldTooltipItem, ok); err != nil { return err } } @@ -26385,117 +29492,130 @@ func awsRestjson1_serializeDocumentTableSideBorderOptions(v *types.TableSideBord return nil } -func awsRestjson1_serializeDocumentTableSortConfiguration(v *types.TableSortConfiguration, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.PaginationConfiguration != nil { - ok := object.Key("PaginationConfiguration") - if err := awsRestjson1_serializeDocumentPaginationConfiguration(v.PaginationConfiguration, ok); err != nil { - return err - } - } +func awsRestjson1_serializeDocumentTooltipItemList(v []types.TooltipItem, value smithyjson.Value) error { + array := value.Array() + defer array.Close() - if v.RowSort != nil { - ok := object.Key("RowSort") - if err := awsRestjson1_serializeDocumentRowSortList(v.RowSort, ok); err != nil { + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentTooltipItem(&v[i], av); err != nil { return err } } - return nil } -func awsRestjson1_serializeDocumentTableUnaggregatedFieldWells(v *types.TableUnaggregatedFieldWells, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTooltipOptions(v *types.TooltipOptions, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Values != nil { - ok := object.Key("Values") - if err := awsRestjson1_serializeDocumentUnaggregatedFieldList(v.Values, ok); err != nil { + if v.FieldBasedTooltip != nil { + ok := object.Key("FieldBasedTooltip") + if err := awsRestjson1_serializeDocumentFieldBasedTooltip(v.FieldBasedTooltip, ok); err != nil { return err } } + if len(v.SelectedTooltipType) > 0 { + ok := object.Key("SelectedTooltipType") + ok.String(string(v.SelectedTooltipType)) + } + + if len(v.TooltipVisibility) > 0 { + ok := object.Key("TooltipVisibility") + ok.String(string(v.TooltipVisibility)) + } + return nil } -func awsRestjson1_serializeDocumentTableVisual(v *types.TableVisual, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTopBottomFilter(v *types.TopBottomFilter, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Actions != nil { - ok := object.Key("Actions") - if err := awsRestjson1_serializeDocumentVisualCustomActionList(v.Actions, ok); err != nil { + if v.AggregationSortConfigurations != nil { + ok := object.Key("AggregationSortConfigurations") + if err := awsRestjson1_serializeDocumentAggregationSortConfigurationList(v.AggregationSortConfigurations, ok); err != nil { return err } } - if v.ChartConfiguration != nil { - ok := object.Key("ChartConfiguration") - if err := awsRestjson1_serializeDocumentTableConfiguration(v.ChartConfiguration, ok); err != nil { + if v.Column != nil { + ok := object.Key("Column") + if err := awsRestjson1_serializeDocumentColumnIdentifier(v.Column, ok); err != nil { return err } } - if v.ConditionalFormatting != nil { - ok := object.Key("ConditionalFormatting") - if err := awsRestjson1_serializeDocumentTableConditionalFormatting(v.ConditionalFormatting, ok); err != nil { - return err - } + if v.FilterId != nil { + ok := object.Key("FilterId") + ok.String(*v.FilterId) } - if v.Subtitle != nil { - ok := object.Key("Subtitle") - if err := awsRestjson1_serializeDocumentVisualSubtitleLabelOptions(v.Subtitle, ok); err != nil { - return err - } + if v.Limit != nil { + ok := object.Key("Limit") + ok.Integer(*v.Limit) } - if v.Title != nil { - ok := object.Key("Title") - if err := awsRestjson1_serializeDocumentVisualTitleLabelOptions(v.Title, ok); err != nil { - return err - } + if v.ParameterName != nil { + ok := object.Key("ParameterName") + ok.String(*v.ParameterName) } - if v.VisualId != nil { - ok := object.Key("VisualId") - ok.String(*v.VisualId) + if len(v.TimeGranularity) > 0 { + ok := object.Key("TimeGranularity") + ok.String(string(v.TimeGranularity)) } return nil } -func awsRestjson1_serializeDocumentTag(v *types.Tag, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTopBottomMoversComputation(v *types.TopBottomMoversComputation, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Key != nil { - ok := object.Key("Key") - ok.String(*v.Key) + if v.Category != nil { + ok := object.Key("Category") + if err := awsRestjson1_serializeDocumentDimensionField(v.Category, ok); err != nil { + return err + } } - if v.Value != nil { - ok := object.Key("Value") - ok.String(*v.Value) + if v.ComputationId != nil { + ok := object.Key("ComputationId") + ok.String(*v.ComputationId) } - return nil -} + if v.MoverSize != 0 { + ok := object.Key("MoverSize") + ok.Integer(v.MoverSize) + } -func awsRestjson1_serializeDocumentTagColumnOperation(v *types.TagColumnOperation, value smithyjson.Value) error { - object := value.Object() - defer object.Close() + if v.Name != nil { + ok := object.Key("Name") + ok.String(*v.Name) + } - if v.ColumnName != nil { - ok := object.Key("ColumnName") - ok.String(*v.ColumnName) + if len(v.SortOrder) > 0 { + ok := object.Key("SortOrder") + ok.String(string(v.SortOrder)) } - if v.Tags != nil { - ok := object.Key("Tags") - if err := awsRestjson1_serializeDocumentColumnTagList(v.Tags, ok); err != nil { + if v.Time != nil { + ok := object.Key("Time") + if err := awsRestjson1_serializeDocumentDimensionField(v.Time, ok); err != nil { + return err + } + } + + if len(v.Type) > 0 { + ok := object.Key("Type") + ok.String(string(v.Type)) + } + + if v.Value != nil { + ok := object.Key("Value") + if err := awsRestjson1_serializeDocumentMeasureField(v.Value, ok); err != nil { return err } } @@ -26503,42 +29623,40 @@ func awsRestjson1_serializeDocumentTagColumnOperation(v *types.TagColumnOperatio return nil } -func awsRestjson1_serializeDocumentTagList(v []types.Tag, value smithyjson.Value) error { - array := value.Array() - defer array.Close() +func awsRestjson1_serializeDocumentTopBottomRankedComputation(v *types.TopBottomRankedComputation, value smithyjson.Value) error { + object := value.Object() + defer object.Close() - for i := range v { - av := array.Value() - if err := awsRestjson1_serializeDocumentTag(&v[i], av); err != nil { + if v.Category != nil { + ok := object.Key("Category") + if err := awsRestjson1_serializeDocumentDimensionField(v.Category, ok); err != nil { return err } } - return nil -} -func awsRestjson1_serializeDocumentTargetVisualList(v []string, value smithyjson.Value) error { - array := value.Array() - defer array.Close() + if v.ComputationId != nil { + ok := object.Key("ComputationId") + ok.String(*v.ComputationId) + } - for i := range v { - av := array.Value() - av.String(v[i]) + if v.Name != nil { + ok := object.Key("Name") + ok.String(*v.Name) } - return nil -} -func awsRestjson1_serializeDocumentTemplateSourceAnalysis(v *types.TemplateSourceAnalysis, value smithyjson.Value) error { - object := value.Object() - defer object.Close() + if v.ResultSize != 0 { + ok := object.Key("ResultSize") + ok.Integer(v.ResultSize) + } - if v.Arn != nil { - ok := object.Key("Arn") - ok.String(*v.Arn) + if len(v.Type) > 0 { + ok := object.Key("Type") + ok.String(string(v.Type)) } - if v.DataSetReferences != nil { - ok := object.Key("DataSetReferences") - if err := awsRestjson1_serializeDocumentDataSetReferenceList(v.DataSetReferences, ok); err != nil { + if v.Value != nil { + ok := object.Key("Value") + if err := awsRestjson1_serializeDocumentMeasureField(v.Value, ok); err != nil { return err } } @@ -26546,684 +29664,603 @@ func awsRestjson1_serializeDocumentTemplateSourceAnalysis(v *types.TemplateSourc return nil } -func awsRestjson1_serializeDocumentTemplateSourceEntity(v *types.TemplateSourceEntity, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTopicCalculatedField(v *types.TopicCalculatedField, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.SourceAnalysis != nil { - ok := object.Key("SourceAnalysis") - if err := awsRestjson1_serializeDocumentTemplateSourceAnalysis(v.SourceAnalysis, ok); err != nil { - return err - } + if len(v.Aggregation) > 0 { + ok := object.Key("Aggregation") + ok.String(string(v.Aggregation)) } - if v.SourceTemplate != nil { - ok := object.Key("SourceTemplate") - if err := awsRestjson1_serializeDocumentTemplateSourceTemplate(v.SourceTemplate, ok); err != nil { + if v.AllowedAggregations != nil { + ok := object.Key("AllowedAggregations") + if err := awsRestjson1_serializeDocumentAuthorSpecifiedAggregations(v.AllowedAggregations, ok); err != nil { return err } } - return nil -} - -func awsRestjson1_serializeDocumentTemplateSourceTemplate(v *types.TemplateSourceTemplate, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Arn != nil { - ok := object.Key("Arn") - ok.String(*v.Arn) + if v.CalculatedFieldDescription != nil { + ok := object.Key("CalculatedFieldDescription") + ok.String(*v.CalculatedFieldDescription) } - return nil -} - -func awsRestjson1_serializeDocumentTemplateVersionDefinition(v *types.TemplateVersionDefinition, value smithyjson.Value) error { - object := value.Object() - defer object.Close() + if v.CalculatedFieldName != nil { + ok := object.Key("CalculatedFieldName") + ok.String(*v.CalculatedFieldName) + } - if v.AnalysisDefaults != nil { - ok := object.Key("AnalysisDefaults") - if err := awsRestjson1_serializeDocumentAnalysisDefaults(v.AnalysisDefaults, ok); err != nil { + if v.CalculatedFieldSynonyms != nil { + ok := object.Key("CalculatedFieldSynonyms") + if err := awsRestjson1_serializeDocumentSynonyms(v.CalculatedFieldSynonyms, ok); err != nil { return err } } - if v.CalculatedFields != nil { - ok := object.Key("CalculatedFields") - if err := awsRestjson1_serializeDocumentCalculatedFields(v.CalculatedFields, ok); err != nil { + if v.CellValueSynonyms != nil { + ok := object.Key("CellValueSynonyms") + if err := awsRestjson1_serializeDocumentCellValueSynonyms(v.CellValueSynonyms, ok); err != nil { return err } } - if v.ColumnConfigurations != nil { - ok := object.Key("ColumnConfigurations") - if err := awsRestjson1_serializeDocumentColumnConfigurationList(v.ColumnConfigurations, ok); err != nil { - return err - } + if len(v.ColumnDataRole) > 0 { + ok := object.Key("ColumnDataRole") + ok.String(string(v.ColumnDataRole)) } - if v.DataSetConfigurations != nil { - ok := object.Key("DataSetConfigurations") - if err := awsRestjson1_serializeDocumentDataSetConfigurationList(v.DataSetConfigurations, ok); err != nil { + if v.ComparativeOrder != nil { + ok := object.Key("ComparativeOrder") + if err := awsRestjson1_serializeDocumentComparativeOrder(v.ComparativeOrder, ok); err != nil { return err } } - if v.FilterGroups != nil { - ok := object.Key("FilterGroups") - if err := awsRestjson1_serializeDocumentFilterGroupList(v.FilterGroups, ok); err != nil { + if v.DefaultFormatting != nil { + ok := object.Key("DefaultFormatting") + if err := awsRestjson1_serializeDocumentDefaultFormatting(v.DefaultFormatting, ok); err != nil { return err } } - if v.ParameterDeclarations != nil { - ok := object.Key("ParameterDeclarations") - if err := awsRestjson1_serializeDocumentParameterDeclarationList(v.ParameterDeclarations, ok); err != nil { - return err - } + if v.DisableIndexing != nil { + ok := object.Key("DisableIndexing") + ok.Boolean(*v.DisableIndexing) } - if v.Sheets != nil { - ok := object.Key("Sheets") - if err := awsRestjson1_serializeDocumentSheetDefinitionList(v.Sheets, ok); err != nil { - return err - } + if v.Expression != nil { + ok := object.Key("Expression") + ok.String(*v.Expression) } - return nil -} + if v.IsIncludedInTopic { + ok := object.Key("IsIncludedInTopic") + ok.Boolean(v.IsIncludedInTopic) + } -func awsRestjson1_serializeDocumentTeradataParameters(v *types.TeradataParameters, value smithyjson.Value) error { - object := value.Object() - defer object.Close() + if v.NeverAggregateInFilter { + ok := object.Key("NeverAggregateInFilter") + ok.Boolean(v.NeverAggregateInFilter) + } - if v.Database != nil { - ok := object.Key("Database") - ok.String(*v.Database) + if v.NotAllowedAggregations != nil { + ok := object.Key("NotAllowedAggregations") + if err := awsRestjson1_serializeDocumentAuthorSpecifiedAggregations(v.NotAllowedAggregations, ok); err != nil { + return err + } } - if v.Host != nil { - ok := object.Key("Host") - ok.String(*v.Host) + if v.SemanticType != nil { + ok := object.Key("SemanticType") + if err := awsRestjson1_serializeDocumentSemanticType(v.SemanticType, ok); err != nil { + return err + } } - { - ok := object.Key("Port") - ok.Integer(v.Port) + if len(v.TimeGranularity) > 0 { + ok := object.Key("TimeGranularity") + ok.String(string(v.TimeGranularity)) } return nil } -func awsRestjson1_serializeDocumentTextAreaControlDisplayOptions(v *types.TextAreaControlDisplayOptions, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.PlaceholderOptions != nil { - ok := object.Key("PlaceholderOptions") - if err := awsRestjson1_serializeDocumentTextControlPlaceholderOptions(v.PlaceholderOptions, ok); err != nil { - return err - } - } +func awsRestjson1_serializeDocumentTopicCalculatedFields(v []types.TopicCalculatedField, value smithyjson.Value) error { + array := value.Array() + defer array.Close() - if v.TitleOptions != nil { - ok := object.Key("TitleOptions") - if err := awsRestjson1_serializeDocumentLabelOptions(v.TitleOptions, ok); err != nil { + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentTopicCalculatedField(&v[i], av); err != nil { return err } } - return nil } -func awsRestjson1_serializeDocumentTextConditionalFormat(v *types.TextConditionalFormat, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTopicCategoryFilter(v *types.TopicCategoryFilter, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.BackgroundColor != nil { - ok := object.Key("BackgroundColor") - if err := awsRestjson1_serializeDocumentConditionalFormattingColor(v.BackgroundColor, ok); err != nil { - return err - } + if len(v.CategoryFilterFunction) > 0 { + ok := object.Key("CategoryFilterFunction") + ok.String(string(v.CategoryFilterFunction)) } - if v.Icon != nil { - ok := object.Key("Icon") - if err := awsRestjson1_serializeDocumentConditionalFormattingIcon(v.Icon, ok); err != nil { - return err - } + if len(v.CategoryFilterType) > 0 { + ok := object.Key("CategoryFilterType") + ok.String(string(v.CategoryFilterType)) } - if v.TextColor != nil { - ok := object.Key("TextColor") - if err := awsRestjson1_serializeDocumentConditionalFormattingColor(v.TextColor, ok); err != nil { + if v.Constant != nil { + ok := object.Key("Constant") + if err := awsRestjson1_serializeDocumentTopicCategoryFilterConstant(v.Constant, ok); err != nil { return err } } - return nil -} - -func awsRestjson1_serializeDocumentTextControlPlaceholderOptions(v *types.TextControlPlaceholderOptions, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if len(v.Visibility) > 0 { - ok := object.Key("Visibility") - ok.String(string(v.Visibility)) + if v.Inverse { + ok := object.Key("Inverse") + ok.Boolean(v.Inverse) } return nil } -func awsRestjson1_serializeDocumentTextFieldControlDisplayOptions(v *types.TextFieldControlDisplayOptions, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTopicCategoryFilterConstant(v *types.TopicCategoryFilterConstant, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.PlaceholderOptions != nil { - ok := object.Key("PlaceholderOptions") - if err := awsRestjson1_serializeDocumentTextControlPlaceholderOptions(v.PlaceholderOptions, ok); err != nil { + if v.CollectiveConstant != nil { + ok := object.Key("CollectiveConstant") + if err := awsRestjson1_serializeDocumentCollectiveConstant(v.CollectiveConstant, ok); err != nil { return err } } - if v.TitleOptions != nil { - ok := object.Key("TitleOptions") - if err := awsRestjson1_serializeDocumentLabelOptions(v.TitleOptions, ok); err != nil { - return err - } + if len(v.ConstantType) > 0 { + ok := object.Key("ConstantType") + ok.String(string(v.ConstantType)) + } + + if v.SingularConstant != nil { + ok := object.Key("SingularConstant") + ok.String(*v.SingularConstant) } return nil } -func awsRestjson1_serializeDocumentThemeConfiguration(v *types.ThemeConfiguration, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTopicColumn(v *types.TopicColumn, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.DataColorPalette != nil { - ok := object.Key("DataColorPalette") - if err := awsRestjson1_serializeDocumentDataColorPalette(v.DataColorPalette, ok); err != nil { - return err - } + if len(v.Aggregation) > 0 { + ok := object.Key("Aggregation") + ok.String(string(v.Aggregation)) } - if v.Sheet != nil { - ok := object.Key("Sheet") - if err := awsRestjson1_serializeDocumentSheetStyle(v.Sheet, ok); err != nil { + if v.AllowedAggregations != nil { + ok := object.Key("AllowedAggregations") + if err := awsRestjson1_serializeDocumentAuthorSpecifiedAggregations(v.AllowedAggregations, ok); err != nil { return err } } - if v.Typography != nil { - ok := object.Key("Typography") - if err := awsRestjson1_serializeDocumentTypography(v.Typography, ok); err != nil { + if v.CellValueSynonyms != nil { + ok := object.Key("CellValueSynonyms") + if err := awsRestjson1_serializeDocumentCellValueSynonyms(v.CellValueSynonyms, ok); err != nil { return err } } - if v.UIColorPalette != nil { - ok := object.Key("UIColorPalette") - if err := awsRestjson1_serializeDocumentUIColorPalette(v.UIColorPalette, ok); err != nil { - return err - } + if len(v.ColumnDataRole) > 0 { + ok := object.Key("ColumnDataRole") + ok.String(string(v.ColumnDataRole)) } - return nil -} - -func awsRestjson1_serializeDocumentThousandSeparatorOptions(v *types.ThousandSeparatorOptions, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if len(v.Symbol) > 0 { - ok := object.Key("Symbol") - ok.String(string(v.Symbol)) + if v.ColumnDescription != nil { + ok := object.Key("ColumnDescription") + ok.String(*v.ColumnDescription) } - if len(v.Visibility) > 0 { - ok := object.Key("Visibility") - ok.String(string(v.Visibility)) + if v.ColumnFriendlyName != nil { + ok := object.Key("ColumnFriendlyName") + ok.String(*v.ColumnFriendlyName) } - return nil -} - -func awsRestjson1_serializeDocumentTileLayoutStyle(v *types.TileLayoutStyle, value smithyjson.Value) error { - object := value.Object() - defer object.Close() + if v.ColumnName != nil { + ok := object.Key("ColumnName") + ok.String(*v.ColumnName) + } - if v.Gutter != nil { - ok := object.Key("Gutter") - if err := awsRestjson1_serializeDocumentGutterStyle(v.Gutter, ok); err != nil { + if v.ColumnSynonyms != nil { + ok := object.Key("ColumnSynonyms") + if err := awsRestjson1_serializeDocumentSynonyms(v.ColumnSynonyms, ok); err != nil { return err } } - if v.Margin != nil { - ok := object.Key("Margin") - if err := awsRestjson1_serializeDocumentMarginStyle(v.Margin, ok); err != nil { + if v.ComparativeOrder != nil { + ok := object.Key("ComparativeOrder") + if err := awsRestjson1_serializeDocumentComparativeOrder(v.ComparativeOrder, ok); err != nil { return err } } - return nil -} - -func awsRestjson1_serializeDocumentTileStyle(v *types.TileStyle, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Border != nil { - ok := object.Key("Border") - if err := awsRestjson1_serializeDocumentBorderStyle(v.Border, ok); err != nil { + if v.DefaultFormatting != nil { + ok := object.Key("DefaultFormatting") + if err := awsRestjson1_serializeDocumentDefaultFormatting(v.DefaultFormatting, ok); err != nil { return err } } - return nil -} - -func awsRestjson1_serializeDocumentTimeBasedForecastProperties(v *types.TimeBasedForecastProperties, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.LowerBoundary != nil { - ok := object.Key("LowerBoundary") - switch { - case math.IsNaN(*v.LowerBoundary): - ok.String("NaN") - - case math.IsInf(*v.LowerBoundary, 1): - ok.String("Infinity") - - case math.IsInf(*v.LowerBoundary, -1): - ok.String("-Infinity") - - default: - ok.Double(*v.LowerBoundary) - - } + if v.DisableIndexing != nil { + ok := object.Key("DisableIndexing") + ok.Boolean(*v.DisableIndexing) } - if v.PeriodsBackward != nil { - ok := object.Key("PeriodsBackward") - ok.Integer(*v.PeriodsBackward) + if v.IsIncludedInTopic { + ok := object.Key("IsIncludedInTopic") + ok.Boolean(v.IsIncludedInTopic) } - if v.PeriodsForward != nil { - ok := object.Key("PeriodsForward") - ok.Integer(*v.PeriodsForward) + if v.NeverAggregateInFilter { + ok := object.Key("NeverAggregateInFilter") + ok.Boolean(v.NeverAggregateInFilter) } - if v.PredictionInterval != nil { - ok := object.Key("PredictionInterval") - ok.Integer(*v.PredictionInterval) + if v.NotAllowedAggregations != nil { + ok := object.Key("NotAllowedAggregations") + if err := awsRestjson1_serializeDocumentAuthorSpecifiedAggregations(v.NotAllowedAggregations, ok); err != nil { + return err + } } - if v.Seasonality != nil { - ok := object.Key("Seasonality") - ok.Integer(*v.Seasonality) + if v.SemanticType != nil { + ok := object.Key("SemanticType") + if err := awsRestjson1_serializeDocumentSemanticType(v.SemanticType, ok); err != nil { + return err + } } - if v.UpperBoundary != nil { - ok := object.Key("UpperBoundary") - switch { - case math.IsNaN(*v.UpperBoundary): - ok.String("NaN") - - case math.IsInf(*v.UpperBoundary, 1): - ok.String("Infinity") + if len(v.TimeGranularity) > 0 { + ok := object.Key("TimeGranularity") + ok.String(string(v.TimeGranularity)) + } - case math.IsInf(*v.UpperBoundary, -1): - ok.String("-Infinity") + return nil +} - default: - ok.Double(*v.UpperBoundary) +func awsRestjson1_serializeDocumentTopicColumns(v []types.TopicColumn, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentTopicColumn(&v[i], av); err != nil { + return err } } - return nil } -func awsRestjson1_serializeDocumentTimeEqualityFilter(v *types.TimeEqualityFilter, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTopicDateRangeFilter(v *types.TopicDateRangeFilter, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Column != nil { - ok := object.Key("Column") - if err := awsRestjson1_serializeDocumentColumnIdentifier(v.Column, ok); err != nil { + if v.Constant != nil { + ok := object.Key("Constant") + if err := awsRestjson1_serializeDocumentTopicRangeFilterConstant(v.Constant, ok); err != nil { return err } } - if v.FilterId != nil { - ok := object.Key("FilterId") - ok.String(*v.FilterId) - } - - if v.ParameterName != nil { - ok := object.Key("ParameterName") - ok.String(*v.ParameterName) - } - - if len(v.TimeGranularity) > 0 { - ok := object.Key("TimeGranularity") - ok.String(string(v.TimeGranularity)) - } - - if v.Value != nil { - ok := object.Key("Value") - ok.Double(smithytime.FormatEpochSeconds(*v.Value)) + if v.Inclusive { + ok := object.Key("Inclusive") + ok.Boolean(v.Inclusive) } return nil } -func awsRestjson1_serializeDocumentTimeRangeDrillDownFilter(v *types.TimeRangeDrillDownFilter, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTopicDetails(v *types.TopicDetails, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Column != nil { - ok := object.Key("Column") - if err := awsRestjson1_serializeDocumentColumnIdentifier(v.Column, ok); err != nil { + if v.DataSets != nil { + ok := object.Key("DataSets") + if err := awsRestjson1_serializeDocumentDatasets(v.DataSets, ok); err != nil { return err } } - if v.RangeMaximum != nil { - ok := object.Key("RangeMaximum") - ok.Double(smithytime.FormatEpochSeconds(*v.RangeMaximum)) - } - - if v.RangeMinimum != nil { - ok := object.Key("RangeMinimum") - ok.Double(smithytime.FormatEpochSeconds(*v.RangeMinimum)) + if v.Description != nil { + ok := object.Key("Description") + ok.String(*v.Description) } - if len(v.TimeGranularity) > 0 { - ok := object.Key("TimeGranularity") - ok.String(string(v.TimeGranularity)) + if v.Name != nil { + ok := object.Key("Name") + ok.String(*v.Name) } return nil } -func awsRestjson1_serializeDocumentTimeRangeFilter(v *types.TimeRangeFilter, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTopicFilter(v *types.TopicFilter, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Column != nil { - ok := object.Key("Column") - if err := awsRestjson1_serializeDocumentColumnIdentifier(v.Column, ok); err != nil { + if v.CategoryFilter != nil { + ok := object.Key("CategoryFilter") + if err := awsRestjson1_serializeDocumentTopicCategoryFilter(v.CategoryFilter, ok); err != nil { return err } } - if v.ExcludePeriodConfiguration != nil { - ok := object.Key("ExcludePeriodConfiguration") - if err := awsRestjson1_serializeDocumentExcludePeriodConfiguration(v.ExcludePeriodConfiguration, ok); err != nil { + if v.DateRangeFilter != nil { + ok := object.Key("DateRangeFilter") + if err := awsRestjson1_serializeDocumentTopicDateRangeFilter(v.DateRangeFilter, ok); err != nil { return err } } - if v.FilterId != nil { - ok := object.Key("FilterId") - ok.String(*v.FilterId) - } - - if v.IncludeMaximum != nil { - ok := object.Key("IncludeMaximum") - ok.Boolean(*v.IncludeMaximum) + if len(v.FilterClass) > 0 { + ok := object.Key("FilterClass") + ok.String(string(v.FilterClass)) } - if v.IncludeMinimum != nil { - ok := object.Key("IncludeMinimum") - ok.Boolean(*v.IncludeMinimum) + if v.FilterDescription != nil { + ok := object.Key("FilterDescription") + ok.String(*v.FilterDescription) } - if len(v.NullOption) > 0 { - ok := object.Key("NullOption") - ok.String(string(v.NullOption)) + if v.FilterName != nil { + ok := object.Key("FilterName") + ok.String(*v.FilterName) } - if v.RangeMaximumValue != nil { - ok := object.Key("RangeMaximumValue") - if err := awsRestjson1_serializeDocumentTimeRangeFilterValue(v.RangeMaximumValue, ok); err != nil { + if v.FilterSynonyms != nil { + ok := object.Key("FilterSynonyms") + if err := awsRestjson1_serializeDocumentSynonyms(v.FilterSynonyms, ok); err != nil { return err } } - if v.RangeMinimumValue != nil { - ok := object.Key("RangeMinimumValue") - if err := awsRestjson1_serializeDocumentTimeRangeFilterValue(v.RangeMinimumValue, ok); err != nil { + if len(v.FilterType) > 0 { + ok := object.Key("FilterType") + ok.String(string(v.FilterType)) + } + + if v.NumericEqualityFilter != nil { + ok := object.Key("NumericEqualityFilter") + if err := awsRestjson1_serializeDocumentTopicNumericEqualityFilter(v.NumericEqualityFilter, ok); err != nil { return err } } - if len(v.TimeGranularity) > 0 { - ok := object.Key("TimeGranularity") - ok.String(string(v.TimeGranularity)) + if v.NumericRangeFilter != nil { + ok := object.Key("NumericRangeFilter") + if err := awsRestjson1_serializeDocumentTopicNumericRangeFilter(v.NumericRangeFilter, ok); err != nil { + return err + } } - return nil -} - -func awsRestjson1_serializeDocumentTimeRangeFilterValue(v *types.TimeRangeFilterValue, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Parameter != nil { - ok := object.Key("Parameter") - ok.String(*v.Parameter) + if v.OperandFieldName != nil { + ok := object.Key("OperandFieldName") + ok.String(*v.OperandFieldName) } - if v.RollingDate != nil { - ok := object.Key("RollingDate") - if err := awsRestjson1_serializeDocumentRollingDateConfiguration(v.RollingDate, ok); err != nil { + if v.RelativeDateFilter != nil { + ok := object.Key("RelativeDateFilter") + if err := awsRestjson1_serializeDocumentTopicRelativeDateFilter(v.RelativeDateFilter, ok); err != nil { return err } } - if v.StaticValue != nil { - ok := object.Key("StaticValue") - ok.Double(smithytime.FormatEpochSeconds(*v.StaticValue)) - } - return nil } -func awsRestjson1_serializeDocumentTooltipItem(v *types.TooltipItem, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.ColumnTooltipItem != nil { - ok := object.Key("ColumnTooltipItem") - if err := awsRestjson1_serializeDocumentColumnTooltipItem(v.ColumnTooltipItem, ok); err != nil { - return err - } - } +func awsRestjson1_serializeDocumentTopicFilters(v []types.TopicFilter, value smithyjson.Value) error { + array := value.Array() + defer array.Close() - if v.FieldTooltipItem != nil { - ok := object.Key("FieldTooltipItem") - if err := awsRestjson1_serializeDocumentFieldTooltipItem(v.FieldTooltipItem, ok); err != nil { + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentTopicFilter(&v[i], av); err != nil { return err } } - return nil } -func awsRestjson1_serializeDocumentTooltipItemList(v []types.TooltipItem, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTopicNamedEntities(v []types.TopicNamedEntity, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if err := awsRestjson1_serializeDocumentTooltipItem(&v[i], av); err != nil { + if err := awsRestjson1_serializeDocumentTopicNamedEntity(&v[i], av); err != nil { return err } } return nil } -func awsRestjson1_serializeDocumentTooltipOptions(v *types.TooltipOptions, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTopicNamedEntity(v *types.TopicNamedEntity, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.FieldBasedTooltip != nil { - ok := object.Key("FieldBasedTooltip") - if err := awsRestjson1_serializeDocumentFieldBasedTooltip(v.FieldBasedTooltip, ok); err != nil { + if v.Definition != nil { + ok := object.Key("Definition") + if err := awsRestjson1_serializeDocumentNamedEntityDefinitions(v.Definition, ok); err != nil { return err } } - if len(v.SelectedTooltipType) > 0 { - ok := object.Key("SelectedTooltipType") - ok.String(string(v.SelectedTooltipType)) + if v.EntityDescription != nil { + ok := object.Key("EntityDescription") + ok.String(*v.EntityDescription) } - if len(v.TooltipVisibility) > 0 { - ok := object.Key("TooltipVisibility") - ok.String(string(v.TooltipVisibility)) + if v.EntityName != nil { + ok := object.Key("EntityName") + ok.String(*v.EntityName) + } + + if v.EntitySynonyms != nil { + ok := object.Key("EntitySynonyms") + if err := awsRestjson1_serializeDocumentSynonyms(v.EntitySynonyms, ok); err != nil { + return err + } + } + + if v.SemanticEntityType != nil { + ok := object.Key("SemanticEntityType") + if err := awsRestjson1_serializeDocumentSemanticEntityType(v.SemanticEntityType, ok); err != nil { + return err + } } return nil } -func awsRestjson1_serializeDocumentTopBottomFilter(v *types.TopBottomFilter, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTopicNumericEqualityFilter(v *types.TopicNumericEqualityFilter, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.AggregationSortConfigurations != nil { - ok := object.Key("AggregationSortConfigurations") - if err := awsRestjson1_serializeDocumentAggregationSortConfigurationList(v.AggregationSortConfigurations, ok); err != nil { - return err - } + if len(v.Aggregation) > 0 { + ok := object.Key("Aggregation") + ok.String(string(v.Aggregation)) } - if v.Column != nil { - ok := object.Key("Column") - if err := awsRestjson1_serializeDocumentColumnIdentifier(v.Column, ok); err != nil { + if v.Constant != nil { + ok := object.Key("Constant") + if err := awsRestjson1_serializeDocumentTopicSingularFilterConstant(v.Constant, ok); err != nil { return err } } - if v.FilterId != nil { - ok := object.Key("FilterId") - ok.String(*v.FilterId) - } + return nil +} - if v.Limit != nil { - ok := object.Key("Limit") - ok.Integer(*v.Limit) +func awsRestjson1_serializeDocumentTopicNumericRangeFilter(v *types.TopicNumericRangeFilter, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if len(v.Aggregation) > 0 { + ok := object.Key("Aggregation") + ok.String(string(v.Aggregation)) } - if v.ParameterName != nil { - ok := object.Key("ParameterName") - ok.String(*v.ParameterName) + if v.Constant != nil { + ok := object.Key("Constant") + if err := awsRestjson1_serializeDocumentTopicRangeFilterConstant(v.Constant, ok); err != nil { + return err + } } - if len(v.TimeGranularity) > 0 { - ok := object.Key("TimeGranularity") - ok.String(string(v.TimeGranularity)) + if v.Inclusive { + ok := object.Key("Inclusive") + ok.Boolean(v.Inclusive) } return nil } -func awsRestjson1_serializeDocumentTopBottomMoversComputation(v *types.TopBottomMoversComputation, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTopicRangeFilterConstant(v *types.TopicRangeFilterConstant, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Category != nil { - ok := object.Key("Category") - if err := awsRestjson1_serializeDocumentDimensionField(v.Category, ok); err != nil { + if len(v.ConstantType) > 0 { + ok := object.Key("ConstantType") + ok.String(string(v.ConstantType)) + } + + if v.RangeConstant != nil { + ok := object.Key("RangeConstant") + if err := awsRestjson1_serializeDocumentRangeConstant(v.RangeConstant, ok); err != nil { return err } } - if v.ComputationId != nil { - ok := object.Key("ComputationId") - ok.String(*v.ComputationId) - } + return nil +} - if v.MoverSize != 0 { - ok := object.Key("MoverSize") - ok.Integer(v.MoverSize) +func awsRestjson1_serializeDocumentTopicRefreshSchedule(v *types.TopicRefreshSchedule, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + { + ok := object.Key("BasedOnSpiceSchedule") + ok.Boolean(v.BasedOnSpiceSchedule) } - if v.Name != nil { - ok := object.Key("Name") - ok.String(*v.Name) + if v.IsEnabled != nil { + ok := object.Key("IsEnabled") + ok.Boolean(*v.IsEnabled) } - if len(v.SortOrder) > 0 { - ok := object.Key("SortOrder") - ok.String(string(v.SortOrder)) + if v.RepeatAt != nil { + ok := object.Key("RepeatAt") + ok.String(*v.RepeatAt) } - if v.Time != nil { - ok := object.Key("Time") - if err := awsRestjson1_serializeDocumentDimensionField(v.Time, ok); err != nil { - return err - } + if v.StartingAt != nil { + ok := object.Key("StartingAt") + ok.Double(smithytime.FormatEpochSeconds(*v.StartingAt)) } - if len(v.Type) > 0 { - ok := object.Key("Type") - ok.String(string(v.Type)) + if v.Timezone != nil { + ok := object.Key("Timezone") + ok.String(*v.Timezone) } - if v.Value != nil { - ok := object.Key("Value") - if err := awsRestjson1_serializeDocumentMeasureField(v.Value, ok); err != nil { - return err - } + if len(v.TopicScheduleType) > 0 { + ok := object.Key("TopicScheduleType") + ok.String(string(v.TopicScheduleType)) } return nil } -func awsRestjson1_serializeDocumentTopBottomRankedComputation(v *types.TopBottomRankedComputation, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentTopicRelativeDateFilter(v *types.TopicRelativeDateFilter, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Category != nil { - ok := object.Key("Category") - if err := awsRestjson1_serializeDocumentDimensionField(v.Category, ok); err != nil { + if v.Constant != nil { + ok := object.Key("Constant") + if err := awsRestjson1_serializeDocumentTopicSingularFilterConstant(v.Constant, ok); err != nil { return err } } - if v.ComputationId != nil { - ok := object.Key("ComputationId") - ok.String(*v.ComputationId) + if len(v.RelativeDateFilterFunction) > 0 { + ok := object.Key("RelativeDateFilterFunction") + ok.String(string(v.RelativeDateFilterFunction)) } - if v.Name != nil { - ok := object.Key("Name") - ok.String(*v.Name) + if len(v.TimeGranularity) > 0 { + ok := object.Key("TimeGranularity") + ok.String(string(v.TimeGranularity)) } - if v.ResultSize != 0 { - ok := object.Key("ResultSize") - ok.Integer(v.ResultSize) - } + return nil +} - if len(v.Type) > 0 { - ok := object.Key("Type") - ok.String(string(v.Type)) +func awsRestjson1_serializeDocumentTopicSingularFilterConstant(v *types.TopicSingularFilterConstant, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if len(v.ConstantType) > 0 { + ok := object.Key("ConstantType") + ok.String(string(v.ConstantType)) } - if v.Value != nil { - ok := object.Key("Value") - if err := awsRestjson1_serializeDocumentMeasureField(v.Value, ok); err != nil { - return err - } + if v.SingularConstant != nil { + ok := object.Key("SingularConstant") + ok.String(*v.SingularConstant) } return nil @@ -27310,6 +30347,12 @@ func awsRestjson1_serializeDocumentTransformOperation(v types.TransformOperation return err } + case *types.TransformOperationMemberOverrideDatasetParameterOperation: + av := object.Key("OverrideDatasetParameterOperation") + if err := awsRestjson1_serializeDocumentOverrideDatasetParameterOperation(&uv.Value, av); err != nil { + return err + } + case *types.TransformOperationMemberProjectOperation: av := object.Key("ProjectOperation") if err := awsRestjson1_serializeDocumentProjectOperation(&uv.Value, av); err != nil { @@ -27592,6 +30635,17 @@ func awsRestjson1_serializeDocumentTwitterParameters(v *types.TwitterParameters, return nil } +func awsRestjson1_serializeDocumentTypeParameters(v map[string]string, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + for key := range v { + om := object.Key(key) + om.String(v[key]) + } + return nil +} + func awsRestjson1_serializeDocumentTypography(v *types.Typography, value smithyjson.Value) error { object := value.Object() defer object.Close() diff --git a/service/quicksight/types/enums.go b/service/quicksight/types/enums.go index c52aa78bb26..2ab550318d1 100644 --- a/service/quicksight/types/enums.go +++ b/service/quicksight/types/enums.go @@ -162,6 +162,44 @@ func (AuthenticationMethodOption) Values() []AuthenticationMethodOption { } } +type AuthorSpecifiedAggregation string + +// Enum values for AuthorSpecifiedAggregation +const ( + AuthorSpecifiedAggregationCount AuthorSpecifiedAggregation = "COUNT" + AuthorSpecifiedAggregationDistinctCount AuthorSpecifiedAggregation = "DISTINCT_COUNT" + AuthorSpecifiedAggregationMin AuthorSpecifiedAggregation = "MIN" + AuthorSpecifiedAggregationMax AuthorSpecifiedAggregation = "MAX" + AuthorSpecifiedAggregationMedian AuthorSpecifiedAggregation = "MEDIAN" + AuthorSpecifiedAggregationSum AuthorSpecifiedAggregation = "SUM" + AuthorSpecifiedAggregationAverage AuthorSpecifiedAggregation = "AVERAGE" + AuthorSpecifiedAggregationStdev AuthorSpecifiedAggregation = "STDEV" + AuthorSpecifiedAggregationStdevp AuthorSpecifiedAggregation = "STDEVP" + AuthorSpecifiedAggregationVar AuthorSpecifiedAggregation = "VAR" + AuthorSpecifiedAggregationVarp AuthorSpecifiedAggregation = "VARP" + AuthorSpecifiedAggregationPercentile AuthorSpecifiedAggregation = "PERCENTILE" +) + +// Values returns all known values for AuthorSpecifiedAggregation. Note that this +// can be expanded in the future, and so it is only as up to date as the client. +// The ordering of this slice is not guaranteed to be stable across updates. +func (AuthorSpecifiedAggregation) Values() []AuthorSpecifiedAggregation { + return []AuthorSpecifiedAggregation{ + "COUNT", + "DISTINCT_COUNT", + "MIN", + "MAX", + "MEDIAN", + "SUM", + "AVERAGE", + "STDEV", + "STDEVP", + "VAR", + "VARP", + "PERCENTILE", + } +} + type AxisBinding string // Enum values for AxisBinding @@ -277,6 +315,24 @@ func (CategoricalAggregationFunction) Values() []CategoricalAggregationFunction } } +type CategoryFilterFunction string + +// Enum values for CategoryFilterFunction +const ( + CategoryFilterFunctionExact CategoryFilterFunction = "EXACT" + CategoryFilterFunctionContains CategoryFilterFunction = "CONTAINS" +) + +// Values returns all known values for CategoryFilterFunction. Note that this can +// be expanded in the future, and so it is only as up to date as the client. The +// ordering of this slice is not guaranteed to be stable across updates. +func (CategoryFilterFunction) Values() []CategoryFilterFunction { + return []CategoryFilterFunction{ + "EXACT", + "CONTAINS", + } +} + type CategoryFilterMatchOperator string // Enum values for CategoryFilterMatchOperator @@ -320,6 +376,26 @@ func (CategoryFilterSelectAllOptions) Values() []CategoryFilterSelectAllOptions } } +type CategoryFilterType string + +// Enum values for CategoryFilterType +const ( + CategoryFilterTypeCustomFilter CategoryFilterType = "CUSTOM_FILTER" + CategoryFilterTypeCustomFilterList CategoryFilterType = "CUSTOM_FILTER_LIST" + CategoryFilterTypeFilterList CategoryFilterType = "FILTER_LIST" +) + +// Values returns all known values for CategoryFilterType. Note that this can be +// expanded in the future, and so it is only as up to date as the client. The +// ordering of this slice is not guaranteed to be stable across updates. +func (CategoryFilterType) Values() []CategoryFilterType { + return []CategoryFilterType{ + "CUSTOM_FILTER", + "CUSTOM_FILTER_LIST", + "FILTER_LIST", + } +} + type ColorFillType string // Enum values for ColorFillType @@ -338,6 +414,24 @@ func (ColorFillType) Values() []ColorFillType { } } +type ColumnDataRole string + +// Enum values for ColumnDataRole +const ( + ColumnDataRoleDimension ColumnDataRole = "DIMENSION" + ColumnDataRoleMeasure ColumnDataRole = "MEASURE" +) + +// Values returns all known values for ColumnDataRole. Note that this can be +// expanded in the future, and so it is only as up to date as the client. The +// ordering of this slice is not guaranteed to be stable across updates. +func (ColumnDataRole) Values() []ColumnDataRole { + return []ColumnDataRole{ + "DIMENSION", + "MEASURE", + } +} + type ColumnDataType string // Enum values for ColumnDataType @@ -360,6 +454,26 @@ func (ColumnDataType) Values() []ColumnDataType { } } +type ColumnOrderingType string + +// Enum values for ColumnOrderingType +const ( + ColumnOrderingTypeGreaterIsBetter ColumnOrderingType = "GREATER_IS_BETTER" + ColumnOrderingTypeLesserIsBetter ColumnOrderingType = "LESSER_IS_BETTER" + ColumnOrderingTypeSpecified ColumnOrderingType = "SPECIFIED" +) + +// Values returns all known values for ColumnOrderingType. Note that this can be +// expanded in the future, and so it is only as up to date as the client. The +// ordering of this slice is not guaranteed to be stable across updates. +func (ColumnOrderingType) Values() []ColumnOrderingType { + return []ColumnOrderingType{ + "GREATER_IS_BETTER", + "LESSER_IS_BETTER", + "SPECIFIED", + } +} + type ColumnRole string // Enum values for ColumnRole @@ -470,6 +584,26 @@ func (ConditionalFormattingIconSetType) Values() []ConditionalFormattingIconSetT } } +type ConstantType string + +// Enum values for ConstantType +const ( + ConstantTypeSingular ConstantType = "SINGULAR" + ConstantTypeRange ConstantType = "RANGE" + ConstantTypeCollective ConstantType = "COLLECTIVE" +) + +// Values returns all known values for ConstantType. Note that this can be +// expanded in the future, and so it is only as up to date as the client. The +// ordering of this slice is not guaranteed to be stable across updates. +func (ConstantType) Values() []ConstantType { + return []ConstantType{ + "SINGULAR", + "RANGE", + "COLLECTIVE", + } +} + type CrossDatasetTypes string // Enum values for CrossDatasetTypes @@ -735,6 +869,24 @@ func (DataSetImportMode) Values() []DataSetImportMode { } } +type DatasetParameterValueType string + +// Enum values for DatasetParameterValueType +const ( + DatasetParameterValueTypeMultiValued DatasetParameterValueType = "MULTI_VALUED" + DatasetParameterValueTypeSingleValued DatasetParameterValueType = "SINGLE_VALUED" +) + +// Values returns all known values for DatasetParameterValueType. Note that this +// can be expanded in the future, and so it is only as up to date as the client. +// The ordering of this slice is not guaranteed to be stable across updates. +func (DatasetParameterValueType) Values() []DatasetParameterValueType { + return []DatasetParameterValueType{ + "MULTI_VALUED", + "SINGLE_VALUED", + } +} + type DataSourceErrorInfoType string // Enum values for DataSourceErrorInfoType @@ -903,6 +1055,58 @@ func (DayOfWeek) Values() []DayOfWeek { } } +type DefaultAggregation string + +// Enum values for DefaultAggregation +const ( + DefaultAggregationSum DefaultAggregation = "SUM" + DefaultAggregationMax DefaultAggregation = "MAX" + DefaultAggregationMin DefaultAggregation = "MIN" + DefaultAggregationCount DefaultAggregation = "COUNT" + DefaultAggregationDistinctCount DefaultAggregation = "DISTINCT_COUNT" + DefaultAggregationAverage DefaultAggregation = "AVERAGE" +) + +// Values returns all known values for DefaultAggregation. Note that this can be +// expanded in the future, and so it is only as up to date as the client. The +// ordering of this slice is not guaranteed to be stable across updates. +func (DefaultAggregation) Values() []DefaultAggregation { + return []DefaultAggregation{ + "SUM", + "MAX", + "MIN", + "COUNT", + "DISTINCT_COUNT", + "AVERAGE", + } +} + +type DisplayFormat string + +// Enum values for DisplayFormat +const ( + DisplayFormatAuto DisplayFormat = "AUTO" + DisplayFormatPercent DisplayFormat = "PERCENT" + DisplayFormatCurrency DisplayFormat = "CURRENCY" + DisplayFormatNumber DisplayFormat = "NUMBER" + DisplayFormatDate DisplayFormat = "DATE" + DisplayFormatString DisplayFormat = "STRING" +) + +// Values returns all known values for DisplayFormat. Note that this can be +// expanded in the future, and so it is only as up to date as the client. The +// ordering of this slice is not guaranteed to be stable across updates. +func (DisplayFormat) Values() []DisplayFormat { + return []DisplayFormat{ + "AUTO", + "PERCENT", + "CURRENCY", + "NUMBER", + "DATE", + "STRING", + } +} + type Edition string // Enum values for Edition @@ -1001,6 +1205,26 @@ func (FileFormat) Values() []FileFormat { } } +type FilterClass string + +// Enum values for FilterClass +const ( + FilterClassEnforcedValueFilter FilterClass = "ENFORCED_VALUE_FILTER" + FilterClassConditionalValueFilter FilterClass = "CONDITIONAL_VALUE_FILTER" + FilterClassNamedValueFilter FilterClass = "NAMED_VALUE_FILTER" +) + +// Values returns all known values for FilterClass. Note that this can be expanded +// in the future, and so it is only as up to date as the client. The ordering of +// this slice is not guaranteed to be stable across updates. +func (FilterClass) Values() []FilterClass { + return []FilterClass{ + "ENFORCED_VALUE_FILTER", + "CONDITIONAL_VALUE_FILTER", + "NAMED_VALUE_FILTER", + } +} + type FilterNullOption string // Enum values for FilterNullOption @@ -1897,6 +2121,108 @@ func (MissingDataTreatmentOption) Values() []MissingDataTreatmentOption { } } +type NamedEntityAggType string + +// Enum values for NamedEntityAggType +const ( + NamedEntityAggTypeSum NamedEntityAggType = "SUM" + NamedEntityAggTypeMin NamedEntityAggType = "MIN" + NamedEntityAggTypeMax NamedEntityAggType = "MAX" + NamedEntityAggTypeCount NamedEntityAggType = "COUNT" + NamedEntityAggTypeAverage NamedEntityAggType = "AVERAGE" + NamedEntityAggTypeDistinctCount NamedEntityAggType = "DISTINCT_COUNT" + NamedEntityAggTypeStdev NamedEntityAggType = "STDEV" + NamedEntityAggTypeStdevp NamedEntityAggType = "STDEVP" + NamedEntityAggTypeVar NamedEntityAggType = "VAR" + NamedEntityAggTypeVarp NamedEntityAggType = "VARP" + NamedEntityAggTypePercentile NamedEntityAggType = "PERCENTILE" + NamedEntityAggTypeMedian NamedEntityAggType = "MEDIAN" + NamedEntityAggTypeCustom NamedEntityAggType = "CUSTOM" +) + +// Values returns all known values for NamedEntityAggType. Note that this can be +// expanded in the future, and so it is only as up to date as the client. The +// ordering of this slice is not guaranteed to be stable across updates. +func (NamedEntityAggType) Values() []NamedEntityAggType { + return []NamedEntityAggType{ + "SUM", + "MIN", + "MAX", + "COUNT", + "AVERAGE", + "DISTINCT_COUNT", + "STDEV", + "STDEVP", + "VAR", + "VARP", + "PERCENTILE", + "MEDIAN", + "CUSTOM", + } +} + +type NamedFilterAggType string + +// Enum values for NamedFilterAggType +const ( + NamedFilterAggTypeNoAggregation NamedFilterAggType = "NO_AGGREGATION" + NamedFilterAggTypeSum NamedFilterAggType = "SUM" + NamedFilterAggTypeAverage NamedFilterAggType = "AVERAGE" + NamedFilterAggTypeCount NamedFilterAggType = "COUNT" + NamedFilterAggTypeDistinctCount NamedFilterAggType = "DISTINCT_COUNT" + NamedFilterAggTypeMax NamedFilterAggType = "MAX" + NamedFilterAggTypeMedian NamedFilterAggType = "MEDIAN" + NamedFilterAggTypeMin NamedFilterAggType = "MIN" + NamedFilterAggTypeStdev NamedFilterAggType = "STDEV" + NamedFilterAggTypeStdevp NamedFilterAggType = "STDEVP" + NamedFilterAggTypeVar NamedFilterAggType = "VAR" + NamedFilterAggTypeVarp NamedFilterAggType = "VARP" +) + +// Values returns all known values for NamedFilterAggType. Note that this can be +// expanded in the future, and so it is only as up to date as the client. The +// ordering of this slice is not guaranteed to be stable across updates. +func (NamedFilterAggType) Values() []NamedFilterAggType { + return []NamedFilterAggType{ + "NO_AGGREGATION", + "SUM", + "AVERAGE", + "COUNT", + "DISTINCT_COUNT", + "MAX", + "MEDIAN", + "MIN", + "STDEV", + "STDEVP", + "VAR", + "VARP", + } +} + +type NamedFilterType string + +// Enum values for NamedFilterType +const ( + NamedFilterTypeCategoryFilter NamedFilterType = "CATEGORY_FILTER" + NamedFilterTypeNumericEqualityFilter NamedFilterType = "NUMERIC_EQUALITY_FILTER" + NamedFilterTypeNumericRangeFilter NamedFilterType = "NUMERIC_RANGE_FILTER" + NamedFilterTypeDateRangeFilter NamedFilterType = "DATE_RANGE_FILTER" + NamedFilterTypeRelativeDateFilter NamedFilterType = "RELATIVE_DATE_FILTER" +) + +// Values returns all known values for NamedFilterType. Note that this can be +// expanded in the future, and so it is only as up to date as the client. The +// ordering of this slice is not guaranteed to be stable across updates. +func (NamedFilterType) Values() []NamedFilterType { + return []NamedFilterType{ + "CATEGORY_FILTER", + "NUMERIC_EQUALITY_FILTER", + "NUMERIC_RANGE_FILTER", + "DATE_RANGE_FILTER", + "RELATIVE_DATE_FILTER", + } +} + type NamespaceErrorType string // Enum values for NamespaceErrorType @@ -1957,6 +2283,40 @@ func (NegativeValueDisplayMode) Values() []NegativeValueDisplayMode { } } +type NetworkInterfaceStatus string + +// Enum values for NetworkInterfaceStatus +const ( + NetworkInterfaceStatusCreating NetworkInterfaceStatus = "CREATING" + NetworkInterfaceStatusAvailable NetworkInterfaceStatus = "AVAILABLE" + NetworkInterfaceStatusCreationFailed NetworkInterfaceStatus = "CREATION_FAILED" + NetworkInterfaceStatusUpdating NetworkInterfaceStatus = "UPDATING" + NetworkInterfaceStatusUpdateFailed NetworkInterfaceStatus = "UPDATE_FAILED" + NetworkInterfaceStatusDeleting NetworkInterfaceStatus = "DELETING" + NetworkInterfaceStatusDeleted NetworkInterfaceStatus = "DELETED" + NetworkInterfaceStatusDeletionFailed NetworkInterfaceStatus = "DELETION_FAILED" + NetworkInterfaceStatusDeletionScheduled NetworkInterfaceStatus = "DELETION_SCHEDULED" + NetworkInterfaceStatusAttachmentFailedRollbackFailed NetworkInterfaceStatus = "ATTACHMENT_FAILED_ROLLBACK_FAILED" +) + +// Values returns all known values for NetworkInterfaceStatus. Note that this can +// be expanded in the future, and so it is only as up to date as the client. The +// ordering of this slice is not guaranteed to be stable across updates. +func (NetworkInterfaceStatus) Values() []NetworkInterfaceStatus { + return []NetworkInterfaceStatus{ + "CREATING", + "AVAILABLE", + "CREATION_FAILED", + "UPDATING", + "UPDATE_FAILED", + "DELETING", + "DELETED", + "DELETION_FAILED", + "DELETION_SCHEDULED", + "ATTACHMENT_FAILED_ROLLBACK_FAILED", + } +} + type NumberScale string // Enum values for NumberScale @@ -2228,6 +2588,44 @@ func (PrimaryValueDisplayType) Values() []PrimaryValueDisplayType { } } +type PropertyRole string + +// Enum values for PropertyRole +const ( + PropertyRolePrimary PropertyRole = "PRIMARY" + PropertyRoleId PropertyRole = "ID" +) + +// Values returns all known values for PropertyRole. Note that this can be +// expanded in the future, and so it is only as up to date as the client. The +// ordering of this slice is not guaranteed to be stable across updates. +func (PropertyRole) Values() []PropertyRole { + return []PropertyRole{ + "PRIMARY", + "ID", + } +} + +type PropertyUsage string + +// Enum values for PropertyUsage +const ( + PropertyUsageInherit PropertyUsage = "INHERIT" + PropertyUsageDimension PropertyUsage = "DIMENSION" + PropertyUsageMeasure PropertyUsage = "MEASURE" +) + +// Values returns all known values for PropertyUsage. Note that this can be +// expanded in the future, and so it is only as up to date as the client. The +// ordering of this slice is not guaranteed to be stable across updates. +func (PropertyUsage) Values() []PropertyUsage { + return []PropertyUsage{ + "INHERIT", + "DIMENSION", + "MEASURE", + } +} + type RadarChartShape string // Enum values for RadarChartShape @@ -3001,6 +3399,143 @@ func (TopBottomSortOrder) Values() []TopBottomSortOrder { } } +type TopicNumericSeparatorSymbol string + +// Enum values for TopicNumericSeparatorSymbol +const ( + TopicNumericSeparatorSymbolComma TopicNumericSeparatorSymbol = "COMMA" + TopicNumericSeparatorSymbolDot TopicNumericSeparatorSymbol = "DOT" +) + +// Values returns all known values for TopicNumericSeparatorSymbol. Note that this +// can be expanded in the future, and so it is only as up to date as the client. +// The ordering of this slice is not guaranteed to be stable across updates. +func (TopicNumericSeparatorSymbol) Values() []TopicNumericSeparatorSymbol { + return []TopicNumericSeparatorSymbol{ + "COMMA", + "DOT", + } +} + +type TopicRefreshStatus string + +// Enum values for TopicRefreshStatus +const ( + TopicRefreshStatusInitialized TopicRefreshStatus = "INITIALIZED" + TopicRefreshStatusRunning TopicRefreshStatus = "RUNNING" + TopicRefreshStatusFailed TopicRefreshStatus = "FAILED" + TopicRefreshStatusCompleted TopicRefreshStatus = "COMPLETED" + TopicRefreshStatusCancelled TopicRefreshStatus = "CANCELLED" +) + +// Values returns all known values for TopicRefreshStatus. Note that this can be +// expanded in the future, and so it is only as up to date as the client. The +// ordering of this slice is not guaranteed to be stable across updates. +func (TopicRefreshStatus) Values() []TopicRefreshStatus { + return []TopicRefreshStatus{ + "INITIALIZED", + "RUNNING", + "FAILED", + "COMPLETED", + "CANCELLED", + } +} + +type TopicRelativeDateFilterFunction string + +// Enum values for TopicRelativeDateFilterFunction +const ( + TopicRelativeDateFilterFunctionPrevious TopicRelativeDateFilterFunction = "PREVIOUS" + TopicRelativeDateFilterFunctionThis TopicRelativeDateFilterFunction = "THIS" + TopicRelativeDateFilterFunctionLast TopicRelativeDateFilterFunction = "LAST" + TopicRelativeDateFilterFunctionNext TopicRelativeDateFilterFunction = "NEXT" + TopicRelativeDateFilterFunctionNow TopicRelativeDateFilterFunction = "NOW" +) + +// Values returns all known values for TopicRelativeDateFilterFunction. Note that +// this can be expanded in the future, and so it is only as up to date as the +// client. The ordering of this slice is not guaranteed to be stable across +// updates. +func (TopicRelativeDateFilterFunction) Values() []TopicRelativeDateFilterFunction { + return []TopicRelativeDateFilterFunction{ + "PREVIOUS", + "THIS", + "LAST", + "NEXT", + "NOW", + } +} + +type TopicScheduleType string + +// Enum values for TopicScheduleType +const ( + TopicScheduleTypeHourly TopicScheduleType = "HOURLY" + TopicScheduleTypeDaily TopicScheduleType = "DAILY" + TopicScheduleTypeWeekly TopicScheduleType = "WEEKLY" + TopicScheduleTypeMonthly TopicScheduleType = "MONTHLY" +) + +// Values returns all known values for TopicScheduleType. Note that this can be +// expanded in the future, and so it is only as up to date as the client. The +// ordering of this slice is not guaranteed to be stable across updates. +func (TopicScheduleType) Values() []TopicScheduleType { + return []TopicScheduleType{ + "HOURLY", + "DAILY", + "WEEKLY", + "MONTHLY", + } +} + +type TopicTimeGranularity string + +// Enum values for TopicTimeGranularity +const ( + TopicTimeGranularitySecond TopicTimeGranularity = "SECOND" + TopicTimeGranularityMinute TopicTimeGranularity = "MINUTE" + TopicTimeGranularityHour TopicTimeGranularity = "HOUR" + TopicTimeGranularityDay TopicTimeGranularity = "DAY" + TopicTimeGranularityWeek TopicTimeGranularity = "WEEK" + TopicTimeGranularityMonth TopicTimeGranularity = "MONTH" + TopicTimeGranularityQuarter TopicTimeGranularity = "QUARTER" + TopicTimeGranularityYear TopicTimeGranularity = "YEAR" +) + +// Values returns all known values for TopicTimeGranularity. Note that this can be +// expanded in the future, and so it is only as up to date as the client. The +// ordering of this slice is not guaranteed to be stable across updates. +func (TopicTimeGranularity) Values() []TopicTimeGranularity { + return []TopicTimeGranularity{ + "SECOND", + "MINUTE", + "HOUR", + "DAY", + "WEEK", + "MONTH", + "QUARTER", + "YEAR", + } +} + +type UndefinedSpecifiedValueType string + +// Enum values for UndefinedSpecifiedValueType +const ( + UndefinedSpecifiedValueTypeLeast UndefinedSpecifiedValueType = "LEAST" + UndefinedSpecifiedValueTypeMost UndefinedSpecifiedValueType = "MOST" +) + +// Values returns all known values for UndefinedSpecifiedValueType. Note that this +// can be expanded in the future, and so it is only as up to date as the client. +// The ordering of this slice is not guaranteed to be stable across updates. +func (UndefinedSpecifiedValueType) Values() []UndefinedSpecifiedValueType { + return []UndefinedSpecifiedValueType{ + "LEAST", + "MOST", + } +} + type URLTargetConfiguration string // Enum values for URLTargetConfiguration @@ -3119,6 +3654,59 @@ func (VisualCustomActionTrigger) Values() []VisualCustomActionTrigger { } } +type VPCConnectionAvailabilityStatus string + +// Enum values for VPCConnectionAvailabilityStatus +const ( + VPCConnectionAvailabilityStatusAvailable VPCConnectionAvailabilityStatus = "AVAILABLE" + VPCConnectionAvailabilityStatusUnavailable VPCConnectionAvailabilityStatus = "UNAVAILABLE" + VPCConnectionAvailabilityStatusPartiallyAvailable VPCConnectionAvailabilityStatus = "PARTIALLY_AVAILABLE" +) + +// Values returns all known values for VPCConnectionAvailabilityStatus. Note that +// this can be expanded in the future, and so it is only as up to date as the +// client. The ordering of this slice is not guaranteed to be stable across +// updates. +func (VPCConnectionAvailabilityStatus) Values() []VPCConnectionAvailabilityStatus { + return []VPCConnectionAvailabilityStatus{ + "AVAILABLE", + "UNAVAILABLE", + "PARTIALLY_AVAILABLE", + } +} + +type VPCConnectionResourceStatus string + +// Enum values for VPCConnectionResourceStatus +const ( + VPCConnectionResourceStatusCreationInProgress VPCConnectionResourceStatus = "CREATION_IN_PROGRESS" + VPCConnectionResourceStatusCreationSuccessful VPCConnectionResourceStatus = "CREATION_SUCCESSFUL" + VPCConnectionResourceStatusCreationFailed VPCConnectionResourceStatus = "CREATION_FAILED" + VPCConnectionResourceStatusUpdateInProgress VPCConnectionResourceStatus = "UPDATE_IN_PROGRESS" + VPCConnectionResourceStatusUpdateSuccessful VPCConnectionResourceStatus = "UPDATE_SUCCESSFUL" + VPCConnectionResourceStatusUpdateFailed VPCConnectionResourceStatus = "UPDATE_FAILED" + VPCConnectionResourceStatusDeletionInProgress VPCConnectionResourceStatus = "DELETION_IN_PROGRESS" + VPCConnectionResourceStatusDeletionFailed VPCConnectionResourceStatus = "DELETION_FAILED" + VPCConnectionResourceStatusDeleted VPCConnectionResourceStatus = "DELETED" +) + +// Values returns all known values for VPCConnectionResourceStatus. Note that this +// can be expanded in the future, and so it is only as up to date as the client. +// The ordering of this slice is not guaranteed to be stable across updates. +func (VPCConnectionResourceStatus) Values() []VPCConnectionResourceStatus { + return []VPCConnectionResourceStatus{ + "CREATION_IN_PROGRESS", + "CREATION_SUCCESSFUL", + "CREATION_FAILED", + "UPDATE_IN_PROGRESS", + "UPDATE_SUCCESSFUL", + "UPDATE_FAILED", + "DELETION_IN_PROGRESS", + "DELETION_FAILED", + "DELETED", + } +} + type WidgetStatus string // Enum values for WidgetStatus diff --git a/service/quicksight/types/types.go b/service/quicksight/types/types.go index 04f010a1133..378e80c9b34 100644 --- a/service/quicksight/types/types.go +++ b/service/quicksight/types/types.go @@ -919,6 +919,18 @@ type BodySectionContent struct { noSmithyDocumentSerde } +// The bookmarks configuration of an embedded dashboard. +type BookmarksConfigurations struct { + + // A Boolean value that determines whether a user can bookmark an embedded + // dashboard. + // + // This member is required. + Enabled bool + + noSmithyDocumentSerde +} + // The display options for tile borders for visuals. type BorderStyle struct { @@ -1268,6 +1280,18 @@ type CategoryFilterConfiguration struct { noSmithyDocumentSerde } +// A structure that represents the cell value synonym. +type CellValueSynonym struct { + + // The cell value. + CellValue *string + + // Other names or aliases for the cell value. + Synonyms []string + + noSmithyDocumentSerde +} + // The label options for an axis on a chart. type ChartAxisLabelOptions struct { @@ -1304,6 +1328,15 @@ type ClusterMarkerConfiguration struct { noSmithyDocumentSerde } +// A structure that represents a collective constant. +type CollectiveConstant struct { + + // A list of values for the collective constant. + ValueList []string + + noSmithyDocumentSerde +} + // Determines the color scale that is applied to the visual. type ColorScale struct { @@ -1643,6 +1676,23 @@ type ComboChartVisual struct { noSmithyDocumentSerde } +// A structure that represents a comparative order. +type ComparativeOrder struct { + + // The list of columns to be used in the ordering. + SpecifedOrder []string + + // The treat of undefined specified values. Valid values for this structure are + // LEAST and MOST . + TreatUndefinedSpecifiedValues UndefinedSpecifiedValueType + + // The ordering type for a column. Valid values for this structure are + // GREATER_IS_BETTER , LESSER_IS_BETTER and SPECIFIED . + UseOrdering ColumnOrderingType + + noSmithyDocumentSerde +} + // The comparison display configuration of a KPI or gauge chart. type ComparisonConfiguration struct { @@ -2472,6 +2522,18 @@ type DashboardVisualPublishOptions struct { noSmithyDocumentSerde } +// A structure that represents a data aggregation. +type DataAggregation struct { + + // The level of time precision that is used to aggregate DateTime values. + DatasetRowDateGranularity TopicTimeGranularity + + // The column name for the default date. + DefaultDateColumnName *string + + noSmithyDocumentSerde +} + // The options for data bars. type DataBarsOptions struct { @@ -2590,6 +2652,9 @@ type DataLabelOptions struct { // Determines the position of the data labels. Position DataLabelPosition + // Determines the visibility of the total. + TotalsVisibility Visibility + // Determines the visibility of the data labels. Visibility Visibility @@ -2739,6 +2804,9 @@ type DataSet struct { // as a source. DataSetUsageConfiguration *DataSetUsageConfiguration + // The parameters that are declared in a dataset. + DatasetParameters []DatasetParameter + // The folder that contains fields and nested subfolders for your dataset. FieldFolders map[string]FieldFolder @@ -2802,6 +2870,56 @@ type DataSetIdentifierDeclaration struct { noSmithyDocumentSerde } +// A structure that represents a dataset. +type DatasetMetadata struct { + + // The Amazon Resource Name (ARN) of the dataset. + // + // This member is required. + DatasetArn *string + + // The list of calculated field definitions. + CalculatedFields []TopicCalculatedField + + // The list of column definitions. + Columns []TopicColumn + + // The definition of a data aggregation. + DataAggregation *DataAggregation + + // The description of the dataset. + DatasetDescription *string + + // The name of the dataset. + DatasetName *string + + // The list of filter definitions. + Filters []TopicFilter + + // The list of named entities definitions. + NamedEntities []TopicNamedEntity + + noSmithyDocumentSerde +} + +// A dataset parameter. +type DatasetParameter struct { + + // A date time parameter that is created in the dataset. + DateTimeDatasetParameter *DateTimeDatasetParameter + + // A decimal parameter that is created in the dataset. + DecimalDatasetParameter *DecimalDatasetParameter + + // An integer parameter that is created in the dataset. + IntegerDatasetParameter *IntegerDatasetParameter + + // A string parameter that is created in the dataset. + StringDatasetParameter *StringDatasetParameter + + noSmithyDocumentSerde +} + // Dataset reference. type DataSetReference struct { @@ -3408,6 +3526,44 @@ type DateMeasureField struct { noSmithyDocumentSerde } +// A date time parameter for a dataset. +type DateTimeDatasetParameter struct { + + // An identifier for the parameter that is created in the dataset. + // + // This member is required. + Id *string + + // The name of the date time parameter that is created in the dataset. + // + // This member is required. + Name *string + + // The value type of the dataset parameter. Valid values are single value or multi + // value . + // + // This member is required. + ValueType DatasetParameterValueType + + // A list of default values for a given date time parameter. This structure only + // accepts static values. + DefaultValues *DateTimeDatasetParameterDefaultValues + + // The time granularity of the date time parameter. + TimeGranularity TimeGranularity + + noSmithyDocumentSerde +} + +// The default values of a date time parameter. +type DateTimeDatasetParameterDefaultValues struct { + + // A list of static default values for a given date time parameter. + StaticValues []time.Time + + noSmithyDocumentSerde +} + // The default values of the DateTimeParameterDeclaration . type DateTimeDefaultValues struct { @@ -3482,6 +3638,9 @@ type DateTimeParameterDeclaration struct { // parameter, a maximum of one default value can be provided. DefaultValues *DateTimeDefaultValues + // A list of dataset parameters that are mapped to an analysis parameter. + MappedDataSetParameters []MappedDataSetParameter + // The level of time precision that is used to aggregate DateTime values. TimeGranularity TimeGranularity @@ -3519,6 +3678,41 @@ type DateTimeValueWhenUnsetConfiguration struct { noSmithyDocumentSerde } +// A decimal parameter for a dataset. +type DecimalDatasetParameter struct { + + // An identifier for the decimal parameter created in the dataset. + // + // This member is required. + Id *string + + // The name of the decimal parameter that is created in the dataset. + // + // This member is required. + Name *string + + // The value type of the dataset parameter. Valid values are single value or multi + // value . + // + // This member is required. + ValueType DatasetParameterValueType + + // A list of default values for a given decimal parameter. This structure only + // accepts static values. + DefaultValues *DecimalDatasetParameterDefaultValues + + noSmithyDocumentSerde +} + +// The default values of a decimal parameter. +type DecimalDatasetParameterDefaultValues struct { + + // A list of static default values for a given decimal parameter. + StaticValues []float64 + + noSmithyDocumentSerde +} + // The default values of the DecimalParameterDeclaration . type DecimalDefaultValues struct { @@ -3566,6 +3760,9 @@ type DecimalParameterDeclaration struct { // parameter, a maximum of one default value can be provided. DefaultValues *DecimalDefaultValues + // A list of dataset parameters that are mapped to an analysis parameter. + MappedDataSetParameters []MappedDataSetParameter + // The configuration that defines the default value of a Decimal parameter when a // value has not been set. ValueWhenUnset *DecimalValueWhenUnsetConfiguration @@ -3599,6 +3796,19 @@ type DecimalValueWhenUnsetConfiguration struct { noSmithyDocumentSerde } +// A structure that represents a default formatting definition. +type DefaultFormatting struct { + + // The display format. Valid values for this structure are AUTO , PERCENT , + // CURRENCY , NUMBER , DATE , and STRING . + DisplayFormat DisplayFormat + + // The additional options for display formatting. + DisplayFormatOptions *DisplayFormatOptions + + noSmithyDocumentSerde +} + // The options that determine the default settings of a free-form layout // configuration. type DefaultFreeFormLayoutConfiguration struct { @@ -3688,6 +3898,9 @@ type DestinationParameterValueConfiguration struct { // The configuration that selects all options. SelectAllValueOptions SelectAllValueOptions + // A column of a data set. + SourceColumn *ColumnIdentifier + // The source field ID of the destination parameter. SourceField *string @@ -3712,6 +3925,49 @@ type DimensionField struct { noSmithyDocumentSerde } +// A structure that represents additional options for display formatting. +type DisplayFormatOptions struct { + + // Determines the blank cell format. + BlankCellFormat *string + + // The currency symbol, such as USD . + CurrencySymbol *string + + // Determines the DateTime format. + DateFormat *string + + // Determines the decimal separator. + DecimalSeparator TopicNumericSeparatorSymbol + + // Determines the number of fraction digits. + FractionDigits int32 + + // Determines the grouping separator. + GroupingSeparator *string + + // The negative format. + NegativeFormat *NegativeFormat + + // The prefix value for a display format. + Prefix *string + + // The suffix value for a display format. + Suffix *string + + // The unit scaler. Valid values for this structure are: NONE , AUTO , THOUSANDS , + // MILLIONS , BILLIONS , and TRILLIONS . + UnitScaler NumberScale + + // A Boolean value that indicates whether to use blank cell format. + UseBlankCellFormat bool + + // A Boolean value that indicates whether to use grouping. + UseGrouping bool + + noSmithyDocumentSerde +} + // The label options of the label that is displayed in the center of a donut // chart. This option isn't available for pie charts. type DonutCenterOptions struct { @@ -4396,6 +4652,9 @@ type FilterOperation struct { // attributes can be defined. type FilterOperationSelectedFieldsConfiguration struct { + // The selected columns of a dataset. + SelectedColumns []ColumnIdentifier + // A structure that contains the options that choose which fields are filtered in // the CustomActionFilterOperation . Valid values are defined as follows: // - ALL_FIELDS : Applies the filter operation to all fields. @@ -5905,6 +6164,41 @@ type InsightVisual struct { noSmithyDocumentSerde } +// An integer parameter for a dataset. +type IntegerDatasetParameter struct { + + // An identifier for the integer parameter created in the dataset. + // + // This member is required. + Id *string + + // The name of the integer parameter that is created in the dataset. + // + // This member is required. + Name *string + + // The value type of the dataset parameter. Valid values are single value or multi + // value . + // + // This member is required. + ValueType DatasetParameterValueType + + // A list of default values for a given integer parameter. This structure only + // accepts static values. + DefaultValues *IntegerDatasetParameterDefaultValues + + noSmithyDocumentSerde +} + +// The default values of an integer parameter. +type IntegerDatasetParameterDefaultValues struct { + + // A list of static default values for a given integer parameter. + StaticValues []int64 + + noSmithyDocumentSerde +} + // The default values of the IntegerParameterDeclaration . type IntegerDefaultValues struct { @@ -5952,6 +6246,9 @@ type IntegerParameterDeclaration struct { // parameter, a maximum of one default value can be provided. DefaultValues *IntegerDefaultValues + // A list of dataset parameters that are mapped to an analysis parameter. + MappedDataSetParameters []MappedDataSetParameter + // A parameter declaration for the Integer data type. ValueWhenUnset *IntegerValueWhenUnsetConfiguration @@ -6647,6 +6944,22 @@ type ManifestFileLocation struct { noSmithyDocumentSerde } +// A dataset parameter that is mapped to an analysis parameter. +type MappedDataSetParameter struct { + + // A unique name that identifies a dataset within the analysis or dashboard. + // + // This member is required. + DataSetIdentifier *string + + // The name of the dataset parameter. + // + // This member is required. + DataSetParameterName *string + + noSmithyDocumentSerde +} + // The display options for margins around the outside edge of sheets. type MarginStyle struct { @@ -6819,6 +7132,42 @@ type MySqlParameters struct { noSmithyDocumentSerde } +// A structure that represents a named entity. +type NamedEntityDefinition struct { + + // The name of the entity. + FieldName *string + + // The definition of a metric. + Metric *NamedEntityDefinitionMetric + + // The property name to be used for the named entity. + PropertyName *string + + // The property role. Valid values for this structure are PRIMARY and ID . + PropertyRole PropertyRole + + // The property usage. Valid values for this structure are INHERIT , DIMENSION , + // and MEASURE . + PropertyUsage PropertyUsage + + noSmithyDocumentSerde +} + +// A structure that represents a metric. +type NamedEntityDefinitionMetric struct { + + // The aggregation of a named entity. Valid values for this structure are SUM , MIN + // , MAX , COUNT , AVERAGE , DISTINCT_COUNT , STDEV , STDEVP , VAR , VARP , + // PERCENTILE , MEDIAN , and CUSTOM . + Aggregation NamedEntityAggType + + // The additional parameters for an aggregation function. + AggregationFunctionParameters map[string]string + + noSmithyDocumentSerde +} + // Errors that occur during namespace creation. type NamespaceError struct { @@ -6855,6 +7204,18 @@ type NamespaceInfoV2 struct { noSmithyDocumentSerde } +// A structure that represents a negative format. +type NegativeFormat struct { + + // The prefix for a negative format. + Prefix *string + + // The suffix for a negative format. + Suffix *string + + noSmithyDocumentSerde +} + // The options that determine the negative value configuration. type NegativeValueConfiguration struct { @@ -6866,6 +7227,46 @@ type NegativeValueConfiguration struct { noSmithyDocumentSerde } +// The structure that contains information about a network interface. +type NetworkInterface struct { + + // The availability zone that the network interface resides in. + AvailabilityZone *string + + // An error message. + ErrorMessage *string + + // The network interface ID. + NetworkInterfaceId *string + + // The status of the network interface. + Status NetworkInterfaceStatus + + // The subnet ID associated with the network interface. + SubnetId *string + + noSmithyDocumentSerde +} + +// The configuration that overrides the existing default values for a dataset +// parameter that is inherited from another dataset. +type NewDefaultValues struct { + + // A list of static default values for a given date time parameter. + DateTimeStaticValues []time.Time + + // A list of static default values for a given decimal parameter. + DecimalStaticValues []float64 + + // A list of static default values for a given integer parameter. + IntegerStaticValues []int64 + + // A list of static default values for a given string parameter. + StringStaticValues []string + + noSmithyDocumentSerde +} + // The options that determine the null value format configuration. type NullValueFormatConfiguration struct { @@ -7141,7 +7542,7 @@ type NumericSeparatorConfiguration struct { // The parameters for Oracle. type OracleParameters struct { - // Database. + // The database. // // This member is required. Database *string @@ -7151,7 +7552,7 @@ type OracleParameters struct { // This member is required. Host *string - // Port. + // The port. // // This member is required. Port int32 @@ -7168,12 +7569,30 @@ type OutputColumn struct { // A display name for the dataset. Name *string - // Type. + // The type. Type ColumnDataType noSmithyDocumentSerde } +// A transform operation that overrides the dataset parameter values that are +// defined in another dataset. +type OverrideDatasetParameterOperation struct { + + // The name of the parameter to be overridden with different values. + // + // This member is required. + ParameterName *string + + // The new default values for the parameter. + NewDefaultValues *NewDefaultValues + + // The new name for the parameter. + NewParameterName *string + + noSmithyDocumentSerde +} + // The pagination configuration for a table visual or boxplot. type PaginationConfiguration struct { @@ -8310,6 +8729,18 @@ type RadarChartVisual struct { noSmithyDocumentSerde } +// A structure that represents a range constant. +type RangeConstant struct { + + // The maximum value for a range constant. + Maximum *string + + // The minimum value for a range constant. + Minimum *string + + noSmithyDocumentSerde +} + // The range ends label type of a data path label. type RangeEndsLabelType struct { @@ -8422,8 +8853,6 @@ type ReferenceLineDynamicDataConfiguration struct { Column *ColumnIdentifier // The aggregation function that is used in the dynamic data. - // - // This member is required. MeasureAggregationFunction *AggregationFunction noSmithyDocumentSerde @@ -8609,6 +9038,9 @@ type RegisteredUserDashboardEmbeddingConfiguration struct { // The feature configuration for an embedded dashboard. type RegisteredUserDashboardFeatureConfigurations struct { + // The bookmarks configuration for an embedded dashboard in Amazon QuickSight. + Bookmarks *BookmarksConfigurations + // The state persistence settings of an embedded dashboard. StatePersistence *StatePersistenceConfigurations @@ -9112,6 +9544,9 @@ type ScatterPlotCategoricallyAggregatedFieldWells struct { // The category field well of a scatter plot. Category []DimensionField + // The label field well of a scatter plot. + Label []DimensionField + // The size field well of a scatter plot. Size []MeasureField @@ -9165,13 +9600,11 @@ type ScatterPlotConfiguration struct { // For this structure to be valid, only one of the attributes can be defined. type ScatterPlotFieldWells struct { - // The aggregated field wells of a scatter plot. Scatter plots that have a field - // in the category (group/color) field will have aggregated field wells. The x and - // y-axes of these scatter plots are aggregated by category. + // The aggregated field wells of a scatter plot. The x and y-axes of scatter plots + // with aggregated field wells are aggregated by category, label, or both. ScatterPlotCategoricallyAggregatedFieldWells *ScatterPlotCategoricallyAggregatedFieldWells - // The unaggregated field wells of a scatter plot. Scatter plots without a - // category field well have unaggregated field wells. The x and y-axes of these + // The unaggregated field wells of a scatter plot. The x and y-axes of these // scatter plots are unaggregated. ScatterPlotUnaggregatedFieldWells *ScatterPlotUnaggregatedFieldWells @@ -9181,6 +9614,12 @@ type ScatterPlotFieldWells struct { // The unaggregated field wells of a scatter plot. type ScatterPlotUnaggregatedFieldWells struct { + // The category field well of a scatter plot. + Category []DimensionField + + // The label field well of a scatter plot. + Label []DimensionField + // The size field well of a scatter plot. Size []MeasureField @@ -9368,6 +9807,48 @@ type SelectedSheetsFilterScopeConfiguration struct { noSmithyDocumentSerde } +// A structure that represents a semantic entity type. +type SemanticEntityType struct { + + // The semantic entity sub type name. + SubTypeName *string + + // The semantic entity type name. + TypeName *string + + // The semantic entity type parameters. + TypeParameters map[string]string + + noSmithyDocumentSerde +} + +// A structure that represents a semantic type. +type SemanticType struct { + + // The semantic type falsey cell value. + FalseyCellValue *string + + // The other names or aliases for the false cell value. + FalseyCellValueSynonyms []string + + // The semantic type sub type name. + SubTypeName *string + + // The semantic type truthy cell value. + TruthyCellValue *string + + // The other names or aliases for the true cell value. + TruthyCellValueSynonyms []string + + // The semantic type name. + TypeName *string + + // The semantic type parameters. + TypeParameters map[string]string + + noSmithyDocumentSerde +} + // The series item configuration of a line chart. This is a union type structure. // For this structure to be valid, only one of the attributes can be defined. type SeriesItem struct { @@ -9796,6 +10277,41 @@ type StatePersistenceConfigurations struct { noSmithyDocumentSerde } +// A string parameter for a dataset. +type StringDatasetParameter struct { + + // An identifier for the string parameter that is created in the dataset. + // + // This member is required. + Id *string + + // The name of the string parameter that is created in the dataset. + // + // This member is required. + Name *string + + // The value type of the dataset parameter. Valid values are single value or multi + // value . + // + // This member is required. + ValueType DatasetParameterValueType + + // A list of default values for a given string dataset parameter type. This + // structure only accepts static values. + DefaultValues *StringDatasetParameterDefaultValues + + noSmithyDocumentSerde +} + +// The default values of a string parameter. +type StringDatasetParameterDefaultValues struct { + + // A list of static default values for a given string parameter. + StaticValues []string + + noSmithyDocumentSerde +} + // The default values of the StringParameterDeclaration . type StringDefaultValues struct { @@ -9855,6 +10371,9 @@ type StringParameterDeclaration struct { // parameter, a maximum of one default value can be provided. DefaultValues *StringDefaultValues + // A list of dataset parameters that are mapped to an analysis parameter. + MappedDataSetParameters []MappedDataSetParameter + // The configuration that defines the default value of a String parameter when a // value has not been set. ValueWhenUnset *StringValueWhenUnsetConfiguration @@ -11078,6 +11597,442 @@ type TopBottomRankedComputation struct { noSmithyDocumentSerde } +// A structure that represents a calculated field. +type TopicCalculatedField struct { + + // The calculated field name. + // + // This member is required. + CalculatedFieldName *string + + // The calculated field expression. + // + // This member is required. + Expression *string + + // The default aggregation. Valid values for this structure are SUM , MAX , MIN , + // COUNT , DISTINCT_COUNT , and AVERAGE . + Aggregation DefaultAggregation + + // The list of aggregation types that are allowed for the calculated field. Valid + // values for this structure are COUNT , DISTINCT_COUNT , MIN , MAX , MEDIAN , SUM + // , AVERAGE , STDEV , STDEVP , VAR , VARP , and PERCENTILE . + AllowedAggregations []AuthorSpecifiedAggregation + + // The calculated field description. + CalculatedFieldDescription *string + + // The other names or aliases for the calculated field. + CalculatedFieldSynonyms []string + + // The other names or aliases for the calculated field cell value. + CellValueSynonyms []CellValueSynonym + + // The column data role for a calculated field. Valid values for this structure + // are DIMENSION and MEASURE . + ColumnDataRole ColumnDataRole + + // The order in which data is displayed for the calculated field when it's used in + // a comparative context. + ComparativeOrder *ComparativeOrder + + // The default formatting definition. + DefaultFormatting *DefaultFormatting + + // A Boolean value that indicates if a calculated field is visible in the + // autocomplete. + DisableIndexing *bool + + // A boolean value that indicates if a calculated field is included in the topic. + IsIncludedInTopic bool + + // A Boolean value that indicates whether to never aggregate calculated field in + // filters. + NeverAggregateInFilter bool + + // The list of aggregation types that are not allowed for the calculated field. + // Valid values for this structure are COUNT , DISTINCT_COUNT , MIN , MAX , MEDIAN + // , SUM , AVERAGE , STDEV , STDEVP , VAR , VARP , and PERCENTILE . + NotAllowedAggregations []AuthorSpecifiedAggregation + + // The semantic type. + SemanticType *SemanticType + + // The level of time precision that is used to aggregate DateTime values. + TimeGranularity TopicTimeGranularity + + noSmithyDocumentSerde +} + +// A structure that represents a category filter. +type TopicCategoryFilter struct { + + // The category filter function. Valid values for this structure are EXACT and + // CONTAINS . + CategoryFilterFunction CategoryFilterFunction + + // The category filter type. This element is used to specify whether a filter is a + // simple category filter or an inverse category filter. + CategoryFilterType CategoryFilterType + + // The constant used in a category filter. + Constant *TopicCategoryFilterConstant + + // A Boolean value that indicates if the filter is inverse. + Inverse bool + + noSmithyDocumentSerde +} + +// A constant used in a category filter. +type TopicCategoryFilterConstant struct { + + // A collective constant used in a category filter. This element is used to + // specify a list of values for the constant. + CollectiveConstant *CollectiveConstant + + // The type of category filter constant. This element is used to specify whether a + // constant is a singular or collective. Valid values are SINGULAR and COLLECTIVE . + ConstantType ConstantType + + // A singular constant used in a category filter. This element is used to specify + // a single value for the constant. + SingularConstant *string + + noSmithyDocumentSerde +} + +// Represents a column in a dataset. +type TopicColumn struct { + + // The name of the column. + // + // This member is required. + ColumnName *string + + // The type of aggregation that is performed on the column data when it's queried. + // Valid values for this structure are SUM , MAX , MIN , COUNT , DISTINCT_COUNT , + // and AVERAGE . + Aggregation DefaultAggregation + + // The list of aggregation types that are allowed for the column. Valid values for + // this structure are COUNT , DISTINCT_COUNT , MIN , MAX , MEDIAN , SUM , AVERAGE , + // STDEV , STDEVP , VAR , VARP , and PERCENTILE . + AllowedAggregations []AuthorSpecifiedAggregation + + // The other names or aliases for the column cell value. + CellValueSynonyms []CellValueSynonym + + // The role of the column in the data. Valid values are DIMENSION and MEASURE . + ColumnDataRole ColumnDataRole + + // A description of the column and its contents. + ColumnDescription *string + + // A user-friendly name for the column. + ColumnFriendlyName *string + + // The other names or aliases for the column. + ColumnSynonyms []string + + // The order in which data is displayed for the column when it's used in a + // comparative context. + ComparativeOrder *ComparativeOrder + + // The default formatting used for values in the column. + DefaultFormatting *DefaultFormatting + + // A Boolean value that indicates whether the column shows in the autocomplete + // functionality. + DisableIndexing *bool + + // A Boolean value that indicates whether the column is included in the query + // results. + IsIncludedInTopic bool + + // A Boolean value that indicates whether to aggregate the column data when it's + // used in a filter context. + NeverAggregateInFilter bool + + // The list of aggregation types that are not allowed for the column. Valid values + // for this structure are COUNT , DISTINCT_COUNT , MIN , MAX , MEDIAN , SUM , + // AVERAGE , STDEV , STDEVP , VAR , VARP , and PERCENTILE . + NotAllowedAggregations []AuthorSpecifiedAggregation + + // The semantic type of data contained in the column. + SemanticType *SemanticType + + // The level of time precision that is used to aggregate DateTime values. + TimeGranularity TopicTimeGranularity + + noSmithyDocumentSerde +} + +// A filter used to restrict data based on a range of dates or times. +type TopicDateRangeFilter struct { + + // The constant used in a date range filter. + Constant *TopicRangeFilterConstant + + // A Boolean value that indicates whether the date range filter should include the + // boundary values. If set to true, the filter includes the start and end dates. If + // set to false, the filter excludes them. + Inclusive bool + + noSmithyDocumentSerde +} + +// A structure that describes the details of a topic, such as its name, +// description, and associated data sets. +type TopicDetails struct { + + // The data sets that the topic is associated with. + DataSets []DatasetMetadata + + // The description of the topic. + Description *string + + // The name of the topic. + Name *string + + noSmithyDocumentSerde +} + +// A structure that represents a filter used to select items for a topic. +type TopicFilter struct { + + // The name of the filter. + // + // This member is required. + FilterName *string + + // The name of the field that the filter operates on. + // + // This member is required. + OperandFieldName *string + + // The category filter that is associated with this filter. + CategoryFilter *TopicCategoryFilter + + // The date range filter. + DateRangeFilter *TopicDateRangeFilter + + // The class of the filter. Valid values for this structure are + // ENFORCED_VALUE_FILTER , CONDITIONAL_VALUE_FILTER , and NAMED_VALUE_FILTER . + FilterClass FilterClass + + // A description of the filter used to select items for a topic. + FilterDescription *string + + // The other names or aliases for the filter. + FilterSynonyms []string + + // The type of the filter. Valid values for this structure are CATEGORY_FILTER , + // NUMERIC_EQUALITY_FILTER , NUMERIC_RANGE_FILTER , DATE_RANGE_FILTER , and + // RELATIVE_DATE_FILTER . + FilterType NamedFilterType + + // The numeric equality filter. + NumericEqualityFilter *TopicNumericEqualityFilter + + // The numeric range filter. + NumericRangeFilter *TopicNumericRangeFilter + + // The relative date filter. + RelativeDateFilter *TopicRelativeDateFilter + + noSmithyDocumentSerde +} + +// A structure that represents a named entity. +type TopicNamedEntity struct { + + // The name of the named entity. + // + // This member is required. + EntityName *string + + // The definition of a named entity. + Definition []NamedEntityDefinition + + // The description of the named entity. + EntityDescription *string + + // The other names or aliases for the named entity. + EntitySynonyms []string + + // The type of named entity that a topic represents. + SemanticEntityType *SemanticEntityType + + noSmithyDocumentSerde +} + +// A filter that filters topics based on the value of a numeric field. The filter +// includes only topics whose numeric field value matches the specified value. +type TopicNumericEqualityFilter struct { + + // An aggregation function that specifies how to calculate the value of a numeric + // field for a topic. Valid values for this structure are NO_AGGREGATION , SUM , + // AVERAGE , COUNT , DISTINCT_COUNT , MAX , MEDIAN , MIN , STDEV , STDEVP , VAR , + // and VARP . + Aggregation NamedFilterAggType + + // The constant used in a numeric equality filter. + Constant *TopicSingularFilterConstant + + noSmithyDocumentSerde +} + +// A filter that filters topics based on the value of a numeric field. The filter +// includes only topics whose numeric field value falls within the specified range. +type TopicNumericRangeFilter struct { + + // An aggregation function that specifies how to calculate the value of a numeric + // field for a topic, Valid values for this structure are NO_AGGREGATION , SUM , + // AVERAGE , COUNT , DISTINCT_COUNT , MAX , MEDIAN , MIN , STDEV , STDEVP , VAR , + // and VARP . + Aggregation NamedFilterAggType + + // The constant used in a numeric range filter. + Constant *TopicRangeFilterConstant + + // A Boolean value that indicates whether the endpoints of the numeric range are + // included in the filter. If set to true, topics whose numeric field value is + // equal to the endpoint values will be included in the filter. If set to false, + // topics whose numeric field value is equal to the endpoint values will be + // excluded from the filter. + Inclusive bool + + noSmithyDocumentSerde +} + +// A constant value that is used in a range filter to specify the endpoints of the +// range. +type TopicRangeFilterConstant struct { + + // The data type of the constant value that is used in a range filter. Valid + // values for this structure are RANGE . + ConstantType ConstantType + + // The value of the constant that is used to specify the endpoints of a range + // filter. + RangeConstant *RangeConstant + + noSmithyDocumentSerde +} + +// The details about the refresh of a topic. +type TopicRefreshDetails struct { + + // The Amazon Resource Name (ARN) of the topic refresh. + RefreshArn *string + + // The ID of the refresh, which occurs as a result of topic creation or topic + // update. + RefreshId *string + + // The status of the refresh job that indicates whether the job is still running, + // completed successfully, or failed. + RefreshStatus TopicRefreshStatus + + noSmithyDocumentSerde +} + +// A structure that represents a topic refresh schedule. +type TopicRefreshSchedule struct { + + // A Boolean value that controls whether to schedule runs at the same schedule + // that is specified in SPICE dataset. + // + // This member is required. + BasedOnSpiceSchedule bool + + // A Boolean value that controls whether to schedule is enabled. + // + // This member is required. + IsEnabled *bool + + // The time of day when the refresh should run, for example, Monday-Sunday. + RepeatAt *string + + // The starting date and time for the refresh schedule. + StartingAt *time.Time + + // The timezone that you want the refresh schedule to use. + Timezone *string + + // The type of refresh schedule. Valid values for this structure are HOURLY , DAILY + // , WEEKLY , and MONTHLY . + TopicScheduleType TopicScheduleType + + noSmithyDocumentSerde +} + +// A summary of the refresh schedule details for a dataset. +type TopicRefreshScheduleSummary struct { + + // The Amazon Resource Name (ARN) of the dataset. + DatasetArn *string + + // The ID of the dataset. + DatasetId *string + + // The name of the dataset. + DatasetName *string + + // The definition of a refresh schedule. + RefreshSchedule *TopicRefreshSchedule + + noSmithyDocumentSerde +} + +// A structure that represents a relative date filter. +type TopicRelativeDateFilter struct { + + // The constant used in a relative date filter. + Constant *TopicSingularFilterConstant + + // The function to be used in a relative date filter to determine the range of + // dates to include in the results. Valid values for this structure are BEFORE , + // AFTER , and BETWEEN . + RelativeDateFilterFunction TopicRelativeDateFilterFunction + + // The level of time precision that is used to aggregate DateTime values. + TimeGranularity TopicTimeGranularity + + noSmithyDocumentSerde +} + +// A structure that represents a singular filter constant, used in filters to +// specify a single value to match against. +type TopicSingularFilterConstant struct { + + // The type of the singular filter constant. Valid values for this structure are + // SINGULAR . + ConstantType ConstantType + + // The value of the singular filter constant. + SingularConstant *string + + noSmithyDocumentSerde +} + +// A topic summary. +type TopicSummary struct { + + // The Amazon Resource Name (ARN) of the topic. + Arn *string + + // The name of the topic. + Name *string + + // The ID for the topic. This ID is unique per Amazon Web Services Region for each + // Amazon Web Services account. + TopicId *string + + noSmithyDocumentSerde +} + // The total aggregation computation configuration. type TotalAggregationComputation struct { @@ -11126,6 +12081,7 @@ type TotalOptions struct { // TransformOperationMemberCastColumnTypeOperation // TransformOperationMemberCreateColumnsOperation // TransformOperationMemberFilterOperation +// TransformOperationMemberOverrideDatasetParameterOperation // TransformOperationMemberProjectOperation // TransformOperationMemberRenameColumnOperation // TransformOperationMemberTagColumnOperation @@ -11162,6 +12118,16 @@ type TransformOperationMemberFilterOperation struct { func (*TransformOperationMemberFilterOperation) isTransformOperation() {} +// A transform operation that overrides the dataset parameter values that are +// defined in another dataset. +type TransformOperationMemberOverrideDatasetParameterOperation struct { + Value OverrideDatasetParameterOperation + + noSmithyDocumentSerde +} + +func (*TransformOperationMemberOverrideDatasetParameterOperation) isTransformOperation() {} + // An operation that projects columns. Operations that come after a projection can // only refer to projected columns. type TransformOperationMemberProjectOperation struct { @@ -11758,6 +12724,50 @@ type VisualTitleLabelOptions struct { noSmithyDocumentSerde } +// The structure of a VPC connection. +type VPCConnection struct { + + // The Amazon Resource Name (ARN) of the VPC connection. + Arn *string + + // The availability status of the VPC connection. + AvailabilityStatus VPCConnectionAvailabilityStatus + + // The time that the VPC connection was created. + CreatedTime *time.Time + + // A list of IP addresses of DNS resolver endpoints for the VPC connection. + DnsResolvers []string + + // The time that the VPC connection was last updated. + LastUpdatedTime *time.Time + + // The display name for the VPC connection. + Name *string + + // A list of network interfaces. + NetworkInterfaces []NetworkInterface + + // The ARN of the IAM role associated with the VPC connection. + RoleArn *string + + // The Amazon EC2 security group IDs associated with the VPC connection. + SecurityGroupIds []string + + // The status of the VPC connection. + Status VPCConnectionResourceStatus + + // The ID of the VPC connection that you're creating. This ID is a unique + // identifier for each Amazon Web Services Region in an Amazon Web Services + // account. + VPCConnectionId *string + + // The Amazon EC2 VPC ID associated with the VPC connection. + VPCId *string + + noSmithyDocumentSerde +} + // VPC connection properties. type VpcConnectionProperties struct { @@ -11769,6 +12779,50 @@ type VpcConnectionProperties struct { noSmithyDocumentSerde } +// The summary metadata that describes a VPC connection. +type VPCConnectionSummary struct { + + // The Amazon Resource Name (ARN) of the VPC connection. + Arn *string + + // The availability status of the VPC connection. + AvailabilityStatus VPCConnectionAvailabilityStatus + + // The time that the VPC connection was created. + CreatedTime *time.Time + + // A list of IP addresses of DNS resolver endpoints for the VPC connection. + DnsResolvers []string + + // The time that the VPC connection was last updated. + LastUpdatedTime *time.Time + + // The display name for the VPC connection. + Name *string + + // A list of network interfaces. + NetworkInterfaces []NetworkInterface + + // The ARN of the IAM role associated with the VPC connection. + RoleArn *string + + // The Amazon EC2 security group IDs associated with the VPC connection. + SecurityGroupIds []string + + // The status of the VPC connection. + Status VPCConnectionResourceStatus + + // The ID of the VPC connection that you're creating. This ID is a unique + // identifier for each Amazon Web Services Region in an Amazon Web Services + // account. + VPCConnectionId *string + + // The Amazon EC2 VPC ID associated with the VPC connection. + VPCId *string + + noSmithyDocumentSerde +} + // The field well configuration of a waterfall visual. type WaterfallChartAggregatedFieldWells struct { diff --git a/service/quicksight/types/types_exported_test.go b/service/quicksight/types/types_exported_test.go index 2ca6e2bccd5..e46eba8fdc0 100644 --- a/service/quicksight/types/types_exported_test.go +++ b/service/quicksight/types/types_exported_test.go @@ -152,6 +152,9 @@ func ExampleTransformOperation_outputUsage() { case *types.TransformOperationMemberFilterOperation: _ = v.Value // Value is types.FilterOperation + case *types.TransformOperationMemberOverrideDatasetParameterOperation: + _ = v.Value // Value is types.OverrideDatasetParameterOperation + case *types.TransformOperationMemberProjectOperation: _ = v.Value // Value is types.ProjectOperation @@ -173,6 +176,7 @@ func ExampleTransformOperation_outputUsage() { } } +var _ *types.OverrideDatasetParameterOperation var _ *types.CreateColumnsOperation var _ *types.FilterOperation var _ *types.ProjectOperation diff --git a/service/quicksight/validators.go b/service/quicksight/validators.go index 4dd23850a01..cb1404ce757 100644 --- a/service/quicksight/validators.go +++ b/service/quicksight/validators.go @@ -390,6 +390,66 @@ func (m *validateOpCreateTheme) HandleInitialize(ctx context.Context, in middlew return next.HandleInitialize(ctx, in) } +type validateOpCreateTopic struct { +} + +func (*validateOpCreateTopic) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpCreateTopic) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*CreateTopicInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpCreateTopicInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpCreateTopicRefreshSchedule struct { +} + +func (*validateOpCreateTopicRefreshSchedule) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpCreateTopicRefreshSchedule) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*CreateTopicRefreshScheduleInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpCreateTopicRefreshScheduleInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpCreateVPCConnection struct { +} + +func (*validateOpCreateVPCConnection) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpCreateVPCConnection) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*CreateVPCConnectionInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpCreateVPCConnectionInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpDeleteAccountCustomization struct { } @@ -750,6 +810,46 @@ func (m *validateOpDeleteTheme) HandleInitialize(ctx context.Context, in middlew return next.HandleInitialize(ctx, in) } +type validateOpDeleteTopic struct { +} + +func (*validateOpDeleteTopic) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDeleteTopic) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DeleteTopicInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDeleteTopicInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpDeleteTopicRefreshSchedule struct { +} + +func (*validateOpDeleteTopicRefreshSchedule) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDeleteTopicRefreshSchedule) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DeleteTopicRefreshScheduleInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDeleteTopicRefreshScheduleInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpDeleteUserByPrincipalId struct { } @@ -790,6 +890,26 @@ func (m *validateOpDeleteUser) HandleInitialize(ctx context.Context, in middlewa return next.HandleInitialize(ctx, in) } +type validateOpDeleteVPCConnection struct { +} + +func (*validateOpDeleteVPCConnection) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDeleteVPCConnection) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DeleteVPCConnectionInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDeleteVPCConnectionInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpDescribeAccountCustomization struct { } @@ -1410,6 +1530,86 @@ func (m *validateOpDescribeThemePermissions) HandleInitialize(ctx context.Contex return next.HandleInitialize(ctx, in) } +type validateOpDescribeTopic struct { +} + +func (*validateOpDescribeTopic) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDescribeTopic) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DescribeTopicInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDescribeTopicInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpDescribeTopicPermissions struct { +} + +func (*validateOpDescribeTopicPermissions) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDescribeTopicPermissions) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DescribeTopicPermissionsInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDescribeTopicPermissionsInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpDescribeTopicRefresh struct { +} + +func (*validateOpDescribeTopicRefresh) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDescribeTopicRefresh) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DescribeTopicRefreshInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDescribeTopicRefreshInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpDescribeTopicRefreshSchedule struct { +} + +func (*validateOpDescribeTopicRefreshSchedule) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDescribeTopicRefreshSchedule) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DescribeTopicRefreshScheduleInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDescribeTopicRefreshScheduleInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpDescribeUser struct { } @@ -1430,6 +1630,26 @@ func (m *validateOpDescribeUser) HandleInitialize(ctx context.Context, in middle return next.HandleInitialize(ctx, in) } +type validateOpDescribeVPCConnection struct { +} + +func (*validateOpDescribeVPCConnection) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDescribeVPCConnection) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DescribeVPCConnectionInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDescribeVPCConnectionInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpGenerateEmbedUrlForAnonymousUser struct { } @@ -1930,6 +2150,46 @@ func (m *validateOpListThemeVersions) HandleInitialize(ctx context.Context, in m return next.HandleInitialize(ctx, in) } +type validateOpListTopicRefreshSchedules struct { +} + +func (*validateOpListTopicRefreshSchedules) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpListTopicRefreshSchedules) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*ListTopicRefreshSchedulesInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpListTopicRefreshSchedulesInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpListTopics struct { +} + +func (*validateOpListTopics) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpListTopics) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*ListTopicsInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpListTopicsInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpListUserGroups struct { } @@ -1970,6 +2230,26 @@ func (m *validateOpListUsers) HandleInitialize(ctx context.Context, in middlewar return next.HandleInitialize(ctx, in) } +type validateOpListVPCConnections struct { +} + +func (*validateOpListVPCConnections) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpListVPCConnections) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*ListVPCConnectionsInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpListVPCConnectionsInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpPutDataSetRefreshProperties struct { } @@ -2670,6 +2950,66 @@ func (m *validateOpUpdateThemePermissions) HandleInitialize(ctx context.Context, return next.HandleInitialize(ctx, in) } +type validateOpUpdateTopic struct { +} + +func (*validateOpUpdateTopic) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpUpdateTopic) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*UpdateTopicInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpUpdateTopicInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpUpdateTopicPermissions struct { +} + +func (*validateOpUpdateTopicPermissions) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpUpdateTopicPermissions) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*UpdateTopicPermissionsInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpUpdateTopicPermissionsInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpUpdateTopicRefreshSchedule struct { +} + +func (*validateOpUpdateTopicRefreshSchedule) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpUpdateTopicRefreshSchedule) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*UpdateTopicRefreshScheduleInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpUpdateTopicRefreshScheduleInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpUpdateUser struct { } @@ -2690,6 +3030,26 @@ func (m *validateOpUpdateUser) HandleInitialize(ctx context.Context, in middlewa return next.HandleInitialize(ctx, in) } +type validateOpUpdateVPCConnection struct { +} + +func (*validateOpUpdateVPCConnection) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpUpdateVPCConnection) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*UpdateVPCConnectionInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpUpdateVPCConnectionInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + func addOpCancelIngestionValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpCancelIngestion{}, middleware.After) } @@ -2766,6 +3126,18 @@ func addOpCreateThemeValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpCreateTheme{}, middleware.After) } +func addOpCreateTopicValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpCreateTopic{}, middleware.After) +} + +func addOpCreateTopicRefreshScheduleValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpCreateTopicRefreshSchedule{}, middleware.After) +} + +func addOpCreateVPCConnectionValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpCreateVPCConnection{}, middleware.After) +} + func addOpDeleteAccountCustomizationValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDeleteAccountCustomization{}, middleware.After) } @@ -2838,6 +3210,14 @@ func addOpDeleteThemeValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDeleteTheme{}, middleware.After) } +func addOpDeleteTopicValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDeleteTopic{}, middleware.After) +} + +func addOpDeleteTopicRefreshScheduleValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDeleteTopicRefreshSchedule{}, middleware.After) +} + func addOpDeleteUserByPrincipalIdValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDeleteUserByPrincipalId{}, middleware.After) } @@ -2846,6 +3226,10 @@ func addOpDeleteUserValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDeleteUser{}, middleware.After) } +func addOpDeleteVPCConnectionValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDeleteVPCConnection{}, middleware.After) +} + func addOpDescribeAccountCustomizationValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDescribeAccountCustomization{}, middleware.After) } @@ -2970,10 +3354,30 @@ func addOpDescribeThemePermissionsValidationMiddleware(stack *middleware.Stack) return stack.Initialize.Add(&validateOpDescribeThemePermissions{}, middleware.After) } +func addOpDescribeTopicValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDescribeTopic{}, middleware.After) +} + +func addOpDescribeTopicPermissionsValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDescribeTopicPermissions{}, middleware.After) +} + +func addOpDescribeTopicRefreshValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDescribeTopicRefresh{}, middleware.After) +} + +func addOpDescribeTopicRefreshScheduleValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDescribeTopicRefreshSchedule{}, middleware.After) +} + func addOpDescribeUserValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDescribeUser{}, middleware.After) } +func addOpDescribeVPCConnectionValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDescribeVPCConnection{}, middleware.After) +} + func addOpGenerateEmbedUrlForAnonymousUserValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpGenerateEmbedUrlForAnonymousUser{}, middleware.After) } @@ -3074,6 +3478,14 @@ func addOpListThemeVersionsValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpListThemeVersions{}, middleware.After) } +func addOpListTopicRefreshSchedulesValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpListTopicRefreshSchedules{}, middleware.After) +} + +func addOpListTopicsValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpListTopics{}, middleware.After) +} + func addOpListUserGroupsValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpListUserGroups{}, middleware.After) } @@ -3082,6 +3494,10 @@ func addOpListUsersValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpListUsers{}, middleware.After) } +func addOpListVPCConnectionsValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpListVPCConnections{}, middleware.After) +} + func addOpPutDataSetRefreshPropertiesValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpPutDataSetRefreshProperties{}, middleware.After) } @@ -3222,10 +3638,26 @@ func addOpUpdateThemePermissionsValidationMiddleware(stack *middleware.Stack) er return stack.Initialize.Add(&validateOpUpdateThemePermissions{}, middleware.After) } +func addOpUpdateTopicValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpUpdateTopic{}, middleware.After) +} + +func addOpUpdateTopicPermissionsValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpUpdateTopicPermissions{}, middleware.After) +} + +func addOpUpdateTopicRefreshScheduleValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpUpdateTopicRefreshSchedule{}, middleware.After) +} + func addOpUpdateUserValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpUpdateUser{}, middleware.After) } +func addOpUpdateVPCConnectionValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpUpdateVPCConnection{}, middleware.After) +} + func validateAggregationSortConfiguration(v *types.AggregationSortConfiguration) error { if v == nil { return nil @@ -3807,6 +4239,18 @@ func validateBodySectionContent(v *types.BodySectionContent) error { } } +func validateBookmarksConfigurations(v *types.BookmarksConfigurations) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "BookmarksConfigurations"} + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateBoxPlotAggregatedFieldWells(v *types.BoxPlotAggregatedFieldWells) error { if v == nil { return nil @@ -5002,6 +5446,23 @@ func validateCurrencyDisplayFormatConfiguration(v *types.CurrencyDisplayFormatCo } } +func validateCustomActionColumnList(v []types.ColumnIdentifier) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CustomActionColumnList"} + for i := range v { + if err := validateColumnIdentifier(&v[i]); err != nil { + invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateCustomActionFilterOperation(v *types.CustomActionFilterOperation) error { if v == nil { return nil @@ -5009,6 +5470,10 @@ func validateCustomActionFilterOperation(v *types.CustomActionFilterOperation) e invalidParams := smithy.InvalidParamsError{Context: "CustomActionFilterOperation"} if v.SelectedFieldsConfiguration == nil { invalidParams.Add(smithy.NewErrParamRequired("SelectedFieldsConfiguration")) + } else if v.SelectedFieldsConfiguration != nil { + if err := validateFilterOperationSelectedFieldsConfiguration(v.SelectedFieldsConfiguration); err != nil { + invalidParams.AddNested("SelectedFieldsConfiguration", err.(smithy.InvalidParamsError)) + } } if v.TargetVisualsConfiguration == nil { invalidParams.Add(smithy.NewErrParamRequired("TargetVisualsConfiguration")) @@ -5512,6 +5977,90 @@ func validateDataSetIdentifierDeclarationList(v []types.DataSetIdentifierDeclara } } +func validateDatasetMetadata(v *types.DatasetMetadata) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DatasetMetadata"} + if v.DatasetArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("DatasetArn")) + } + if v.Filters != nil { + if err := validateTopicFilters(v.Filters); err != nil { + invalidParams.AddNested("Filters", err.(smithy.InvalidParamsError)) + } + } + if v.Columns != nil { + if err := validateTopicColumns(v.Columns); err != nil { + invalidParams.AddNested("Columns", err.(smithy.InvalidParamsError)) + } + } + if v.CalculatedFields != nil { + if err := validateTopicCalculatedFields(v.CalculatedFields); err != nil { + invalidParams.AddNested("CalculatedFields", err.(smithy.InvalidParamsError)) + } + } + if v.NamedEntities != nil { + if err := validateTopicNamedEntities(v.NamedEntities); err != nil { + invalidParams.AddNested("NamedEntities", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateDatasetParameter(v *types.DatasetParameter) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DatasetParameter"} + if v.StringDatasetParameter != nil { + if err := validateStringDatasetParameter(v.StringDatasetParameter); err != nil { + invalidParams.AddNested("StringDatasetParameter", err.(smithy.InvalidParamsError)) + } + } + if v.DecimalDatasetParameter != nil { + if err := validateDecimalDatasetParameter(v.DecimalDatasetParameter); err != nil { + invalidParams.AddNested("DecimalDatasetParameter", err.(smithy.InvalidParamsError)) + } + } + if v.IntegerDatasetParameter != nil { + if err := validateIntegerDatasetParameter(v.IntegerDatasetParameter); err != nil { + invalidParams.AddNested("IntegerDatasetParameter", err.(smithy.InvalidParamsError)) + } + } + if v.DateTimeDatasetParameter != nil { + if err := validateDateTimeDatasetParameter(v.DateTimeDatasetParameter); err != nil { + invalidParams.AddNested("DateTimeDatasetParameter", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateDatasetParameterList(v []types.DatasetParameter) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DatasetParameterList"} + for i := range v { + if err := validateDatasetParameter(&v[i]); err != nil { + invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateDataSetReference(v *types.DataSetReference) error { if v == nil { return nil @@ -5566,6 +6115,23 @@ func validateDataSetRefreshProperties(v *types.DataSetRefreshProperties) error { } } +func validateDatasets(v []types.DatasetMetadata) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "Datasets"} + for i := range v { + if err := validateDatasetMetadata(&v[i]); err != nil { + invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateDataSetSearchFilter(v *types.DataSetSearchFilter) error { if v == nil { return nil @@ -5854,6 +6420,27 @@ func validateDateMeasureField(v *types.DateMeasureField) error { } } +func validateDateTimeDatasetParameter(v *types.DateTimeDatasetParameter) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DateTimeDatasetParameter"} + if v.Id == nil { + invalidParams.Add(smithy.NewErrParamRequired("Id")) + } + if v.Name == nil { + invalidParams.Add(smithy.NewErrParamRequired("Name")) + } + if len(v.ValueType) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("ValueType")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateDateTimeDefaultValues(v *types.DateTimeDefaultValues) error { if v == nil { return nil @@ -5949,6 +6536,11 @@ func validateDateTimeParameterDeclaration(v *types.DateTimeParameterDeclaration) invalidParams.AddNested("DefaultValues", err.(smithy.InvalidParamsError)) } } + if v.MappedDataSetParameters != nil { + if err := validateMappedDataSetParameters(v.MappedDataSetParameters); err != nil { + invalidParams.AddNested("MappedDataSetParameters", err.(smithy.InvalidParamsError)) + } + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -5973,6 +6565,27 @@ func validateDateTimeParameterList(v []types.DateTimeParameter) error { } } +func validateDecimalDatasetParameter(v *types.DecimalDatasetParameter) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DecimalDatasetParameter"} + if v.Id == nil { + invalidParams.Add(smithy.NewErrParamRequired("Id")) + } + if v.Name == nil { + invalidParams.Add(smithy.NewErrParamRequired("Name")) + } + if len(v.ValueType) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("ValueType")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateDecimalDefaultValues(v *types.DecimalDefaultValues) error { if v == nil { return nil @@ -6024,6 +6637,11 @@ func validateDecimalParameterDeclaration(v *types.DecimalParameterDeclaration) e invalidParams.AddNested("DefaultValues", err.(smithy.InvalidParamsError)) } } + if v.MappedDataSetParameters != nil { + if err := validateMappedDataSetParameters(v.MappedDataSetParameters); err != nil { + invalidParams.AddNested("MappedDataSetParameters", err.(smithy.InvalidParamsError)) + } + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -6187,6 +6805,11 @@ func validateDestinationParameterValueConfiguration(v *types.DestinationParamete invalidParams.AddNested("CustomValuesConfiguration", err.(smithy.InvalidParamsError)) } } + if v.SourceColumn != nil { + if err := validateColumnIdentifier(v.SourceColumn); err != nil { + invalidParams.AddNested("SourceColumn", err.(smithy.InvalidParamsError)) + } + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -7030,6 +7653,23 @@ func validateFilterOperation(v *types.FilterOperation) error { } } +func validateFilterOperationSelectedFieldsConfiguration(v *types.FilterOperationSelectedFieldsConfiguration) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "FilterOperationSelectedFieldsConfiguration"} + if v.SelectedColumns != nil { + if err := validateCustomActionColumnList(v.SelectedColumns); err != nil { + invalidParams.AddNested("SelectedColumns", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateFilterRelativeDateTimeControl(v *types.FilterRelativeDateTimeControl) error { if v == nil { return nil @@ -8522,6 +9162,27 @@ func validateInsightVisual(v *types.InsightVisual) error { } } +func validateIntegerDatasetParameter(v *types.IntegerDatasetParameter) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "IntegerDatasetParameter"} + if v.Id == nil { + invalidParams.Add(smithy.NewErrParamRequired("Id")) + } + if v.Name == nil { + invalidParams.Add(smithy.NewErrParamRequired("Name")) + } + if len(v.ValueType) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("ValueType")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateIntegerDefaultValues(v *types.IntegerDefaultValues) error { if v == nil { return nil @@ -8573,6 +9234,11 @@ func validateIntegerParameterDeclaration(v *types.IntegerParameterDeclaration) e invalidParams.AddNested("DefaultValues", err.(smithy.InvalidParamsError)) } } + if v.MappedDataSetParameters != nil { + if err := validateMappedDataSetParameters(v.MappedDataSetParameters); err != nil { + invalidParams.AddNested("MappedDataSetParameters", err.(smithy.InvalidParamsError)) + } + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -9198,6 +9864,41 @@ func validateManifestFileLocation(v *types.ManifestFileLocation) error { } } +func validateMappedDataSetParameter(v *types.MappedDataSetParameter) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "MappedDataSetParameter"} + if v.DataSetIdentifier == nil { + invalidParams.Add(smithy.NewErrParamRequired("DataSetIdentifier")) + } + if v.DataSetParameterName == nil { + invalidParams.Add(smithy.NewErrParamRequired("DataSetParameterName")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateMappedDataSetParameters(v []types.MappedDataSetParameter) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "MappedDataSetParameters"} + for i := range v { + if err := validateMappedDataSetParameter(&v[i]); err != nil { + invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateMariaDbParameters(v *types.MariaDbParameters) error { if v == nil { return nil @@ -9594,6 +10295,21 @@ func validateOracleParameters(v *types.OracleParameters) error { } } +func validateOverrideDatasetParameterOperation(v *types.OverrideDatasetParameterOperation) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "OverrideDatasetParameterOperation"} + if v.ParameterName == nil { + invalidParams.Add(smithy.NewErrParamRequired("ParameterName")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validatePaginationConfiguration(v *types.PaginationConfiguration) error { if v == nil { return nil @@ -10949,9 +11665,6 @@ func validateReferenceLineDynamicDataConfiguration(v *types.ReferenceLineDynamic invalidParams.AddNested("Column", err.(smithy.InvalidParamsError)) } } - if v.MeasureAggregationFunction == nil { - invalidParams.Add(smithy.NewErrParamRequired("MeasureAggregationFunction")) - } if v.Calculation == nil { invalidParams.Add(smithy.NewErrParamRequired("Calculation")) } @@ -11136,6 +11849,11 @@ func validateRegisteredUserDashboardFeatureConfigurations(v *types.RegisteredUse invalidParams.AddNested("StatePersistence", err.(smithy.InvalidParamsError)) } } + if v.Bookmarks != nil { + if err := validateBookmarksConfigurations(v.Bookmarks); err != nil { + invalidParams.AddNested("Bookmarks", err.(smithy.InvalidParamsError)) + } + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -11601,6 +12319,11 @@ func validateScatterPlotCategoricallyAggregatedFieldWells(v *types.ScatterPlotCa invalidParams.AddNested("Size", err.(smithy.InvalidParamsError)) } } + if v.Label != nil { + if err := validateDimensionFieldList(v.Label); err != nil { + invalidParams.AddNested("Label", err.(smithy.InvalidParamsError)) + } + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -11687,6 +12410,16 @@ func validateScatterPlotUnaggregatedFieldWells(v *types.ScatterPlotUnaggregatedF invalidParams.AddNested("Size", err.(smithy.InvalidParamsError)) } } + if v.Category != nil { + if err := validateDimensionFieldList(v.Category); err != nil { + invalidParams.AddNested("Category", err.(smithy.InvalidParamsError)) + } + } + if v.Label != nil { + if err := validateDimensionFieldList(v.Label); err != nil { + invalidParams.AddNested("Label", err.(smithy.InvalidParamsError)) + } + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -12243,6 +12976,27 @@ func validateStatePersistenceConfigurations(v *types.StatePersistenceConfigurati } } +func validateStringDatasetParameter(v *types.StringDatasetParameter) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "StringDatasetParameter"} + if v.Id == nil { + invalidParams.Add(smithy.NewErrParamRequired("Id")) + } + if v.Name == nil { + invalidParams.Add(smithy.NewErrParamRequired("Name")) + } + if len(v.ValueType) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("ValueType")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateStringDefaultValues(v *types.StringDefaultValues) error { if v == nil { return nil @@ -12316,6 +13070,11 @@ func validateStringParameterDeclaration(v *types.StringParameterDeclaration) err invalidParams.AddNested("DefaultValues", err.(smithy.InvalidParamsError)) } } + if v.MappedDataSetParameters != nil { + if err := validateMappedDataSetParameters(v.MappedDataSetParameters); err != nil { + invalidParams.AddNested("MappedDataSetParameters", err.(smithy.InvalidParamsError)) + } + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -13203,6 +13962,172 @@ func validateTopBottomRankedComputation(v *types.TopBottomRankedComputation) err } } +func validateTopicCalculatedField(v *types.TopicCalculatedField) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "TopicCalculatedField"} + if v.CalculatedFieldName == nil { + invalidParams.Add(smithy.NewErrParamRequired("CalculatedFieldName")) + } + if v.Expression == nil { + invalidParams.Add(smithy.NewErrParamRequired("Expression")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateTopicCalculatedFields(v []types.TopicCalculatedField) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "TopicCalculatedFields"} + for i := range v { + if err := validateTopicCalculatedField(&v[i]); err != nil { + invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateTopicColumn(v *types.TopicColumn) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "TopicColumn"} + if v.ColumnName == nil { + invalidParams.Add(smithy.NewErrParamRequired("ColumnName")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateTopicColumns(v []types.TopicColumn) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "TopicColumns"} + for i := range v { + if err := validateTopicColumn(&v[i]); err != nil { + invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateTopicDetails(v *types.TopicDetails) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "TopicDetails"} + if v.DataSets != nil { + if err := validateDatasets(v.DataSets); err != nil { + invalidParams.AddNested("DataSets", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateTopicFilter(v *types.TopicFilter) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "TopicFilter"} + if v.FilterName == nil { + invalidParams.Add(smithy.NewErrParamRequired("FilterName")) + } + if v.OperandFieldName == nil { + invalidParams.Add(smithy.NewErrParamRequired("OperandFieldName")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateTopicFilters(v []types.TopicFilter) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "TopicFilters"} + for i := range v { + if err := validateTopicFilter(&v[i]); err != nil { + invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateTopicNamedEntities(v []types.TopicNamedEntity) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "TopicNamedEntities"} + for i := range v { + if err := validateTopicNamedEntity(&v[i]); err != nil { + invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateTopicNamedEntity(v *types.TopicNamedEntity) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "TopicNamedEntity"} + if v.EntityName == nil { + invalidParams.Add(smithy.NewErrParamRequired("EntityName")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateTopicRefreshSchedule(v *types.TopicRefreshSchedule) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "TopicRefreshSchedule"} + if v.IsEnabled == nil { + invalidParams.Add(smithy.NewErrParamRequired("IsEnabled")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateTotalAggregationComputation(v *types.TotalAggregationComputation) error { if v == nil { return nil @@ -13246,6 +14171,11 @@ func validateTransformOperation(v types.TransformOperation) error { invalidParams.AddNested("[FilterOperation]", err.(smithy.InvalidParamsError)) } + case *types.TransformOperationMemberOverrideDatasetParameterOperation: + if err := validateOverrideDatasetParameterOperation(&uv.Value); err != nil { + invalidParams.AddNested("[OverrideDatasetParameterOperation]", err.(smithy.InvalidParamsError)) + } + case *types.TransformOperationMemberProjectOperation: if err := validateProjectOperation(&uv.Value); err != nil { invalidParams.AddNested("[ProjectOperation]", err.(smithy.InvalidParamsError)) @@ -14391,6 +15321,11 @@ func validateOpCreateDataSetInput(v *CreateDataSetInput) error { invalidParams.AddNested("Tags", err.(smithy.InvalidParamsError)) } } + if v.DatasetParameters != nil { + if err := validateDatasetParameterList(v.DatasetParameters); err != nil { + invalidParams.AddNested("DatasetParameters", err.(smithy.InvalidParamsError)) + } + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -14702,22 +15637,117 @@ func validateOpCreateTemplateInput(v *CreateTemplateInput) error { } } -func validateOpCreateThemeAliasInput(v *CreateThemeAliasInput) error { +func validateOpCreateThemeAliasInput(v *CreateThemeAliasInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CreateThemeAliasInput"} + if v.AwsAccountId == nil { + invalidParams.Add(smithy.NewErrParamRequired("AwsAccountId")) + } + if v.ThemeId == nil { + invalidParams.Add(smithy.NewErrParamRequired("ThemeId")) + } + if v.AliasName == nil { + invalidParams.Add(smithy.NewErrParamRequired("AliasName")) + } + if v.ThemeVersionNumber == nil { + invalidParams.Add(smithy.NewErrParamRequired("ThemeVersionNumber")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpCreateThemeInput(v *CreateThemeInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CreateThemeInput"} + if v.AwsAccountId == nil { + invalidParams.Add(smithy.NewErrParamRequired("AwsAccountId")) + } + if v.ThemeId == nil { + invalidParams.Add(smithy.NewErrParamRequired("ThemeId")) + } + if v.Name == nil { + invalidParams.Add(smithy.NewErrParamRequired("Name")) + } + if v.BaseThemeId == nil { + invalidParams.Add(smithy.NewErrParamRequired("BaseThemeId")) + } + if v.Configuration == nil { + invalidParams.Add(smithy.NewErrParamRequired("Configuration")) + } + if v.Permissions != nil { + if err := validateResourcePermissionList(v.Permissions); err != nil { + invalidParams.AddNested("Permissions", err.(smithy.InvalidParamsError)) + } + } + if v.Tags != nil { + if err := validateTagList(v.Tags); err != nil { + invalidParams.AddNested("Tags", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpCreateTopicInput(v *CreateTopicInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CreateTopicInput"} + if v.AwsAccountId == nil { + invalidParams.Add(smithy.NewErrParamRequired("AwsAccountId")) + } + if v.TopicId == nil { + invalidParams.Add(smithy.NewErrParamRequired("TopicId")) + } + if v.Topic == nil { + invalidParams.Add(smithy.NewErrParamRequired("Topic")) + } else if v.Topic != nil { + if err := validateTopicDetails(v.Topic); err != nil { + invalidParams.AddNested("Topic", err.(smithy.InvalidParamsError)) + } + } + if v.Tags != nil { + if err := validateTagList(v.Tags); err != nil { + invalidParams.AddNested("Tags", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpCreateTopicRefreshScheduleInput(v *CreateTopicRefreshScheduleInput) error { if v == nil { return nil } - invalidParams := smithy.InvalidParamsError{Context: "CreateThemeAliasInput"} + invalidParams := smithy.InvalidParamsError{Context: "CreateTopicRefreshScheduleInput"} if v.AwsAccountId == nil { invalidParams.Add(smithy.NewErrParamRequired("AwsAccountId")) } - if v.ThemeId == nil { - invalidParams.Add(smithy.NewErrParamRequired("ThemeId")) + if v.TopicId == nil { + invalidParams.Add(smithy.NewErrParamRequired("TopicId")) } - if v.AliasName == nil { - invalidParams.Add(smithy.NewErrParamRequired("AliasName")) + if v.DatasetArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("DatasetArn")) } - if v.ThemeVersionNumber == nil { - invalidParams.Add(smithy.NewErrParamRequired("ThemeVersionNumber")) + if v.RefreshSchedule == nil { + invalidParams.Add(smithy.NewErrParamRequired("RefreshSchedule")) + } else if v.RefreshSchedule != nil { + if err := validateTopicRefreshSchedule(v.RefreshSchedule); err != nil { + invalidParams.AddNested("RefreshSchedule", err.(smithy.InvalidParamsError)) + } } if invalidParams.Len() > 0 { return invalidParams @@ -14726,30 +15756,28 @@ func validateOpCreateThemeAliasInput(v *CreateThemeAliasInput) error { } } -func validateOpCreateThemeInput(v *CreateThemeInput) error { +func validateOpCreateVPCConnectionInput(v *CreateVPCConnectionInput) error { if v == nil { return nil } - invalidParams := smithy.InvalidParamsError{Context: "CreateThemeInput"} + invalidParams := smithy.InvalidParamsError{Context: "CreateVPCConnectionInput"} if v.AwsAccountId == nil { invalidParams.Add(smithy.NewErrParamRequired("AwsAccountId")) } - if v.ThemeId == nil { - invalidParams.Add(smithy.NewErrParamRequired("ThemeId")) + if v.VPCConnectionId == nil { + invalidParams.Add(smithy.NewErrParamRequired("VPCConnectionId")) } if v.Name == nil { invalidParams.Add(smithy.NewErrParamRequired("Name")) } - if v.BaseThemeId == nil { - invalidParams.Add(smithy.NewErrParamRequired("BaseThemeId")) + if v.SubnetIds == nil { + invalidParams.Add(smithy.NewErrParamRequired("SubnetIds")) } - if v.Configuration == nil { - invalidParams.Add(smithy.NewErrParamRequired("Configuration")) + if v.SecurityGroupIds == nil { + invalidParams.Add(smithy.NewErrParamRequired("SecurityGroupIds")) } - if v.Permissions != nil { - if err := validateResourcePermissionList(v.Permissions); err != nil { - invalidParams.AddNested("Permissions", err.(smithy.InvalidParamsError)) - } + if v.RoleArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("RoleArn")) } if v.Tags != nil { if err := validateTagList(v.Tags); err != nil { @@ -15108,6 +16136,45 @@ func validateOpDeleteThemeInput(v *DeleteThemeInput) error { } } +func validateOpDeleteTopicInput(v *DeleteTopicInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DeleteTopicInput"} + if v.AwsAccountId == nil { + invalidParams.Add(smithy.NewErrParamRequired("AwsAccountId")) + } + if v.TopicId == nil { + invalidParams.Add(smithy.NewErrParamRequired("TopicId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpDeleteTopicRefreshScheduleInput(v *DeleteTopicRefreshScheduleInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DeleteTopicRefreshScheduleInput"} + if v.AwsAccountId == nil { + invalidParams.Add(smithy.NewErrParamRequired("AwsAccountId")) + } + if v.TopicId == nil { + invalidParams.Add(smithy.NewErrParamRequired("TopicId")) + } + if v.DatasetId == nil { + invalidParams.Add(smithy.NewErrParamRequired("DatasetId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpDeleteUserByPrincipalIdInput(v *DeleteUserByPrincipalIdInput) error { if v == nil { return nil @@ -15150,6 +16217,24 @@ func validateOpDeleteUserInput(v *DeleteUserInput) error { } } +func validateOpDeleteVPCConnectionInput(v *DeleteVPCConnectionInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DeleteVPCConnectionInput"} + if v.AwsAccountId == nil { + invalidParams.Add(smithy.NewErrParamRequired("AwsAccountId")) + } + if v.VPCConnectionId == nil { + invalidParams.Add(smithy.NewErrParamRequired("VPCConnectionId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpDescribeAccountCustomizationInput(v *DescribeAccountCustomizationInput) error { if v == nil { return nil @@ -15720,6 +16805,84 @@ func validateOpDescribeThemePermissionsInput(v *DescribeThemePermissionsInput) e } } +func validateOpDescribeTopicInput(v *DescribeTopicInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DescribeTopicInput"} + if v.AwsAccountId == nil { + invalidParams.Add(smithy.NewErrParamRequired("AwsAccountId")) + } + if v.TopicId == nil { + invalidParams.Add(smithy.NewErrParamRequired("TopicId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpDescribeTopicPermissionsInput(v *DescribeTopicPermissionsInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DescribeTopicPermissionsInput"} + if v.AwsAccountId == nil { + invalidParams.Add(smithy.NewErrParamRequired("AwsAccountId")) + } + if v.TopicId == nil { + invalidParams.Add(smithy.NewErrParamRequired("TopicId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpDescribeTopicRefreshInput(v *DescribeTopicRefreshInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DescribeTopicRefreshInput"} + if v.AwsAccountId == nil { + invalidParams.Add(smithy.NewErrParamRequired("AwsAccountId")) + } + if v.TopicId == nil { + invalidParams.Add(smithy.NewErrParamRequired("TopicId")) + } + if v.RefreshId == nil { + invalidParams.Add(smithy.NewErrParamRequired("RefreshId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpDescribeTopicRefreshScheduleInput(v *DescribeTopicRefreshScheduleInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DescribeTopicRefreshScheduleInput"} + if v.AwsAccountId == nil { + invalidParams.Add(smithy.NewErrParamRequired("AwsAccountId")) + } + if v.TopicId == nil { + invalidParams.Add(smithy.NewErrParamRequired("TopicId")) + } + if v.DatasetId == nil { + invalidParams.Add(smithy.NewErrParamRequired("DatasetId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpDescribeUserInput(v *DescribeUserInput) error { if v == nil { return nil @@ -15741,6 +16904,24 @@ func validateOpDescribeUserInput(v *DescribeUserInput) error { } } +func validateOpDescribeVPCConnectionInput(v *DescribeVPCConnectionInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DescribeVPCConnectionInput"} + if v.AwsAccountId == nil { + invalidParams.Add(smithy.NewErrParamRequired("AwsAccountId")) + } + if v.VPCConnectionId == nil { + invalidParams.Add(smithy.NewErrParamRequired("VPCConnectionId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpGenerateEmbedUrlForAnonymousUserInput(v *GenerateEmbedUrlForAnonymousUserInput) error { if v == nil { return nil @@ -16192,6 +17373,39 @@ func validateOpListThemeVersionsInput(v *ListThemeVersionsInput) error { } } +func validateOpListTopicRefreshSchedulesInput(v *ListTopicRefreshSchedulesInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ListTopicRefreshSchedulesInput"} + if v.AwsAccountId == nil { + invalidParams.Add(smithy.NewErrParamRequired("AwsAccountId")) + } + if v.TopicId == nil { + invalidParams.Add(smithy.NewErrParamRequired("TopicId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpListTopicsInput(v *ListTopicsInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ListTopicsInput"} + if v.AwsAccountId == nil { + invalidParams.Add(smithy.NewErrParamRequired("AwsAccountId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpListUserGroupsInput(v *ListUserGroupsInput) error { if v == nil { return nil @@ -16231,6 +17445,21 @@ func validateOpListUsersInput(v *ListUsersInput) error { } } +func validateOpListVPCConnectionsInput(v *ListVPCConnectionsInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ListVPCConnectionsInput"} + if v.AwsAccountId == nil { + invalidParams.Add(smithy.NewErrParamRequired("AwsAccountId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpPutDataSetRefreshPropertiesInput(v *PutDataSetRefreshPropertiesInput) error { if v == nil { return nil @@ -16707,6 +17936,11 @@ func validateOpUpdateDataSetInput(v *UpdateDataSetInput) error { invalidParams.AddNested("RowLevelPermissionTagConfiguration", err.(smithy.InvalidParamsError)) } } + if v.DatasetParameters != nil { + if err := validateDatasetParameterList(v.DatasetParameters); err != nil { + invalidParams.AddNested("DatasetParameters", err.(smithy.InvalidParamsError)) + } + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -17105,6 +18339,87 @@ func validateOpUpdateThemePermissionsInput(v *UpdateThemePermissionsInput) error } } +func validateOpUpdateTopicInput(v *UpdateTopicInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "UpdateTopicInput"} + if v.AwsAccountId == nil { + invalidParams.Add(smithy.NewErrParamRequired("AwsAccountId")) + } + if v.TopicId == nil { + invalidParams.Add(smithy.NewErrParamRequired("TopicId")) + } + if v.Topic == nil { + invalidParams.Add(smithy.NewErrParamRequired("Topic")) + } else if v.Topic != nil { + if err := validateTopicDetails(v.Topic); err != nil { + invalidParams.AddNested("Topic", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpUpdateTopicPermissionsInput(v *UpdateTopicPermissionsInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "UpdateTopicPermissionsInput"} + if v.AwsAccountId == nil { + invalidParams.Add(smithy.NewErrParamRequired("AwsAccountId")) + } + if v.TopicId == nil { + invalidParams.Add(smithy.NewErrParamRequired("TopicId")) + } + if v.GrantPermissions != nil { + if err := validateUpdateResourcePermissionList(v.GrantPermissions); err != nil { + invalidParams.AddNested("GrantPermissions", err.(smithy.InvalidParamsError)) + } + } + if v.RevokePermissions != nil { + if err := validateUpdateResourcePermissionList(v.RevokePermissions); err != nil { + invalidParams.AddNested("RevokePermissions", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpUpdateTopicRefreshScheduleInput(v *UpdateTopicRefreshScheduleInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "UpdateTopicRefreshScheduleInput"} + if v.AwsAccountId == nil { + invalidParams.Add(smithy.NewErrParamRequired("AwsAccountId")) + } + if v.TopicId == nil { + invalidParams.Add(smithy.NewErrParamRequired("TopicId")) + } + if v.DatasetId == nil { + invalidParams.Add(smithy.NewErrParamRequired("DatasetId")) + } + if v.RefreshSchedule == nil { + invalidParams.Add(smithy.NewErrParamRequired("RefreshSchedule")) + } else if v.RefreshSchedule != nil { + if err := validateTopicRefreshSchedule(v.RefreshSchedule); err != nil { + invalidParams.AddNested("RefreshSchedule", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpUpdateUserInput(v *UpdateUserInput) error { if v == nil { return nil @@ -17131,3 +18446,33 @@ func validateOpUpdateUserInput(v *UpdateUserInput) error { return nil } } + +func validateOpUpdateVPCConnectionInput(v *UpdateVPCConnectionInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "UpdateVPCConnectionInput"} + if v.AwsAccountId == nil { + invalidParams.Add(smithy.NewErrParamRequired("AwsAccountId")) + } + if v.VPCConnectionId == nil { + invalidParams.Add(smithy.NewErrParamRequired("VPCConnectionId")) + } + if v.Name == nil { + invalidParams.Add(smithy.NewErrParamRequired("Name")) + } + if v.SubnetIds == nil { + invalidParams.Add(smithy.NewErrParamRequired("SubnetIds")) + } + if v.SecurityGroupIds == nil { + invalidParams.Add(smithy.NewErrParamRequired("SecurityGroupIds")) + } + if v.RoleArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("RoleArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} diff --git a/service/ram/internal/endpoints/endpoints.go b/service/ram/internal/endpoints/endpoints.go index 538ff136ddf..12f9f30f3d5 100644 --- a/service/ram/internal/endpoints/endpoints.go +++ b/service/ram/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -391,6 +393,27 @@ var defaultPartitions = endpoints.Partitions{ }: endpoints.Endpoint{}, }, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "ram-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "ram.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/rbin/internal/endpoints/endpoints.go b/service/rbin/internal/endpoints/endpoints.go index 19c1a4b1d39..a284192867b 100644 --- a/service/rbin/internal/endpoints/endpoints.go +++ b/service/rbin/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -378,6 +380,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "rbin-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "rbin.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/rds/internal/endpoints/endpoints.go b/service/rds/internal/endpoints/endpoints.go index 431c80241eb..9508cf54598 100644 --- a/service/rds/internal/endpoints/endpoints.go +++ b/service/rds/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -526,6 +528,27 @@ var defaultPartitions = endpoints.Partitions{ }: endpoints.Endpoint{}, }, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "rds-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "rds.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/rdsdata/internal/endpoints/endpoints.go b/service/rdsdata/internal/endpoints/endpoints.go index 1d759ddc8d8..4a0fa085edc 100644 --- a/service/rdsdata/internal/endpoints/endpoints.go +++ b/service/rdsdata/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -316,6 +318,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "rds-data-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "rds-data.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/redshift/internal/endpoints/endpoints.go b/service/redshift/internal/endpoints/endpoints.go index 0e29816ea7c..8edfdda06ca 100644 --- a/service/redshift/internal/endpoints/endpoints.go +++ b/service/redshift/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -391,6 +393,27 @@ var defaultPartitions = endpoints.Partitions{ }: endpoints.Endpoint{}, }, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "redshift-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "redshift.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/redshiftdata/internal/endpoints/endpoints.go b/service/redshiftdata/internal/endpoints/endpoints.go index b73cb20e4b9..e48c001d22e 100644 --- a/service/redshiftdata/internal/endpoints/endpoints.go +++ b/service/redshiftdata/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -212,6 +214,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "redshift-data-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "redshift-data.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/redshiftserverless/internal/endpoints/endpoints.go b/service/redshiftserverless/internal/endpoints/endpoints.go index 5e1c163d3ad..53dc9e3651c 100644 --- a/service/redshiftserverless/internal/endpoints/endpoints.go +++ b/service/redshiftserverless/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -259,6 +261,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "redshift-serverless-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "redshift-serverless.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/rekognition/api_op_DetectFaces.go b/service/rekognition/api_op_DetectFaces.go index aca32b58eca..5538ff72726 100644 --- a/service/rekognition/api_op_DetectFaces.go +++ b/service/rekognition/api_op_DetectFaces.go @@ -16,15 +16,15 @@ import ( // returns face details. These details include a bounding box of the face, a // confidence value (that the bounding box contains a face), and a fixed set of // attributes such as facial landmarks (for example, coordinates of eye and mouth), -// presence of beard, sunglasses, and so on. The face-detection algorithm is most -// effective on frontal faces. For non-frontal or obscured faces, the algorithm -// might not detect the faces or might detect faces with lower confidence. You pass -// the input image either as base64-encoded image bytes or as a reference to an -// image in an Amazon S3 bucket. If you use the AWS CLI to call Amazon Rekognition -// operations, passing image bytes is not supported. The image must be either a PNG -// or JPEG formatted file. This is a stateless API operation. That is, the -// operation does not persist any data. This operation requires permissions to -// perform the rekognition:DetectFaces action. +// pose, presence of facial occlusion, and so on. The face-detection algorithm is +// most effective on frontal faces. For non-frontal or obscured faces, the +// algorithm might not detect the faces or might detect faces with lower +// confidence. You pass the input image either as base64-encoded image bytes or as +// a reference to an image in an Amazon S3 bucket. If you use the AWS CLI to call +// Amazon Rekognition operations, passing image bytes is not supported. The image +// must be either a PNG or JPEG formatted file. This is a stateless API operation. +// That is, the operation does not persist any data. This operation requires +// permissions to perform the rekognition:DetectFaces action. func (c *Client) DetectFaces(ctx context.Context, params *DetectFacesInput, optFns ...func(*Options)) (*DetectFacesOutput, error) { if params == nil { params = &DetectFacesInput{} @@ -51,14 +51,14 @@ type DetectFacesInput struct { // This member is required. Image *types.Image - // An array of facial attributes you want to be returned. This can be the default - // list of attributes or all attributes. If you don't specify a value for - // Attributes or if you specify ["DEFAULT"] , the API returns the following subset - // of facial attributes: BoundingBox , Confidence , Pose , Quality , and Landmarks - // . If you provide ["ALL"] , all facial attributes are returned, but the operation - // takes longer to complete. If you provide both, ["ALL", "DEFAULT"] , the service - // uses a logical AND operator to determine which attributes to return (in this - // case, all attributes). + // An array of facial attributes you want to be returned. A DEFAULT subset of + // facial attributes - BoundingBox , Confidence , Pose , Quality , and Landmarks - + // will always be returned. You can request for specific facial attributes (in + // addition to the default list) - by using [ "DEFAULT", "FACE_OCCLUDED" ] or just [ + // "FACE_OCCLUDED" ]. You can request for all facial attributes by using [ "ALL"] . + // Requesting more attributes may increase response time. If you provide both, + // ["ALL", "DEFAULT"] , the service uses a logical "AND" operator to determine + // which attributes to return (in this case, all attributes). Attributes []types.Attribute noSmithyDocumentSerde diff --git a/service/rekognition/api_op_IndexFaces.go b/service/rekognition/api_op_IndexFaces.go index 5e54efb5a96..d6bbe03d1e9 100644 --- a/service/rekognition/api_op_IndexFaces.go +++ b/service/rekognition/api_op_IndexFaces.go @@ -64,16 +64,17 @@ import ( // and stored. // - An image ID, ImageId , assigned by the service for the input image. // -// If you request all facial attributes (by using the detectionAttributes -// parameter), Amazon Rekognition returns detailed facial attributes, such as -// facial landmarks (for example, location of eye and mouth) and other facial -// attributes. If you provide the same image, specify the same collection, and use -// the same external ID in the IndexFaces operation, Amazon Rekognition doesn't -// save duplicate face metadata. The input image is passed either as base64-encoded -// image bytes, or as a reference to an image in an Amazon S3 bucket. If you use -// the AWS CLI to call Amazon Rekognition operations, passing image bytes isn't -// supported. The image must be formatted as a PNG or JPEG file. This operation -// requires permissions to perform the rekognition:IndexFaces action. +// If you request ALL or specific facial attributes (e.g., FACE_OCCLUDED ) by using +// the detectionAttributes parameter, Amazon Rekognition returns detailed facial +// attributes, such as facial landmarks (for example, location of eye and mouth), +// facial occlusion, and other facial attributes. If you provide the same image, +// specify the same collection, and use the same external ID in the IndexFaces +// operation, Amazon Rekognition doesn't save duplicate face metadata. The input +// image is passed either as base64-encoded image bytes, or as a reference to an +// image in an Amazon S3 bucket. If you use the AWS CLI to call Amazon Rekognition +// operations, passing image bytes isn't supported. The image must be formatted as +// a PNG or JPEG file. This operation requires permissions to perform the +// rekognition:IndexFaces action. func (c *Client) IndexFaces(ctx context.Context, params *IndexFacesInput, optFns ...func(*Options)) (*IndexFacesOutput, error) { if params == nil { params = &IndexFacesInput{} @@ -106,14 +107,14 @@ type IndexFacesInput struct { // This member is required. Image *types.Image - // An array of facial attributes that you want to be returned. This can be the - // default list of attributes or all attributes. If you don't specify a value for - // Attributes or if you specify ["DEFAULT"] , the API returns the following subset - // of facial attributes: BoundingBox , Confidence , Pose , Quality , and Landmarks - // . If you provide ["ALL"] , all facial attributes are returned, but the operation - // takes longer to complete. If you provide both, ["ALL", "DEFAULT"] , the service - // uses a logical AND operator to determine which attributes to return (in this - // case, all attributes). + // An array of facial attributes you want to be returned. A DEFAULT subset of + // facial attributes - BoundingBox , Confidence , Pose , Quality , and Landmarks - + // will always be returned. You can request for specific facial attributes (in + // addition to the default list) - by using ["DEFAULT", "FACE_OCCLUDED"] or just + // ["FACE_OCCLUDED"] . You can request for all facial attributes by using ["ALL"] . + // Requesting more attributes may increase response time. If you provide both, + // ["ALL", "DEFAULT"] , the service uses a logical AND operator to determine which + // attributes to return (in this case, all attributes). DetectionAttributes []types.Attribute // The ID you want to assign to all the faces detected in the image. diff --git a/service/rekognition/deserializers.go b/service/rekognition/deserializers.go index 9cd5561b5a2..5a995253450 100644 --- a/service/rekognition/deserializers.go +++ b/service/rekognition/deserializers.go @@ -12565,6 +12565,11 @@ func awsAwsjson11_deserializeDocumentFaceDetail(v **types.FaceDetail, value inte return err } + case "FaceOccluded": + if err := awsAwsjson11_deserializeDocumentFaceOccluded(&sv.FaceOccluded, value); err != nil { + return err + } + case "Gender": if err := awsAwsjson11_deserializeDocumentGender(&sv.Gender, value); err != nil { return err @@ -12941,6 +12946,80 @@ func awsAwsjson11_deserializeDocumentFaceModelVersionList(v *[]string, value int return nil } +func awsAwsjson11_deserializeDocumentFaceOccluded(v **types.FaceOccluded, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.FaceOccluded + if *v == nil { + sv = &types.FaceOccluded{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Confidence": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.Confidence = ptr.Float32(float32(f64)) + + case string: + var f64 float64 + switch { + case strings.EqualFold(jtv, "NaN"): + f64 = math.NaN() + + case strings.EqualFold(jtv, "Infinity"): + f64 = math.Inf(1) + + case strings.EqualFold(jtv, "-Infinity"): + f64 = math.Inf(-1) + + default: + return fmt.Errorf("unknown JSON number value: %s", jtv) + + } + sv.Confidence = ptr.Float32(float32(f64)) + + default: + return fmt.Errorf("expected Percent to be a JSON Number, got %T instead", value) + + } + } + + case "Value": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + } + sv.Value = jtv + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeDocumentFaceRecord(v **types.FaceRecord, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) diff --git a/service/rekognition/internal/endpoints/endpoints.go b/service/rekognition/internal/endpoints/endpoints.go index 70bc9ed8820..9a94e275f64 100644 --- a/service/rekognition/internal/endpoints/endpoints.go +++ b/service/rekognition/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -463,6 +465,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "rekognition-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "rekognition.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/rekognition/types/enums.go b/service/rekognition/types/enums.go index 36639bbf1b2..b07c27ba023 100644 --- a/service/rekognition/types/enums.go +++ b/service/rekognition/types/enums.go @@ -6,8 +6,19 @@ type Attribute string // Enum values for Attribute const ( - AttributeDefault Attribute = "DEFAULT" - AttributeAll Attribute = "ALL" + AttributeDefault Attribute = "DEFAULT" + AttributeAll Attribute = "ALL" + AttributeAgeRange Attribute = "AGE_RANGE" + AttributeBeard Attribute = "BEARD" + AttributeEmotions Attribute = "EMOTIONS" + AttributeEyeglasses Attribute = "EYEGLASSES" + AttributeEyesOpen Attribute = "EYES_OPEN" + AttributeGender Attribute = "GENDER" + AttributeMouthOpen Attribute = "MOUTH_OPEN" + AttributeMustache Attribute = "MUSTACHE" + AttributeFaceOccluded Attribute = "FACE_OCCLUDED" + AttributeSmile Attribute = "SMILE" + AttributeSunglasses Attribute = "SUNGLASSES" ) // Values returns all known values for Attribute. Note that this can be expanded @@ -17,6 +28,17 @@ func (Attribute) Values() []Attribute { return []Attribute{ "DEFAULT", "ALL", + "AGE_RANGE", + "BEARD", + "EMOTIONS", + "EYEGLASSES", + "EYES_OPEN", + "GENDER", + "MOUTH_OPEN", + "MUSTACHE", + "FACE_OCCLUDED", + "SMILE", + "SUNGLASSES", } } diff --git a/service/rekognition/types/types.go b/service/rekognition/types/types.go index cce63791f24..f73a1cacaff 100644 --- a/service/rekognition/types/types.go +++ b/service/rekognition/types/types.go @@ -395,7 +395,8 @@ type CreateFaceLivenessSessionRequestSettings struct { // images will be stored. Note that the Amazon S3 bucket must be located in the // caller's AWS account and in the same region as the Face Liveness end-point. // Additionally, the Amazon S3 object keys are auto-generated by the Face Liveness - // system. + // system. Requires that the caller has the s3:PutObject permission on the Amazon + // S3 bucket. OutputConfig *LivenessOutputConfig noSmithyDocumentSerde @@ -886,6 +887,14 @@ type FaceDetail struct { // level in the determination. EyesOpen *EyeOpen + // FaceOccluded should return "true" with a high confidence score if a detected + // face’s eyes, nose, and mouth are partially captured or if they are covered by + // masks, dark sunglasses, cell phones, hands, or other objects. FaceOccluded + // should return "false" with a high confidence score if common occurrences that do + // not impact face verification are detected, such as eye glasses, lightly tinted + // sunglasses, strands of hair, and others. + FaceOccluded *FaceOccluded + // The predicted gender of a detected face. Gender *Gender @@ -947,6 +956,29 @@ type FaceMatch struct { noSmithyDocumentSerde } +// FaceOccluded should return "true" with a high confidence score if a detected +// face’s eyes, nose, and mouth are partially captured or if they are covered by +// masks, dark sunglasses, cell phones, hands, or other objects. FaceOccluded +// should return "false" with a high confidence score if common occurrences that do +// not impact face verification are detected, such as eye glasses, lightly tinted +// sunglasses, strands of hair, and others. You can use FaceOccluded to determine +// if an obstruction on a face negatively impacts using the image for face +// matching. +type FaceOccluded struct { + + // The confidence that the service has detected the presence of a face occlusion. + Confidence *float32 + + // True if a detected face’s eyes, nose, and mouth are partially captured or if + // they are covered by masks, dark sunglasses, cell phones, hands, or other + // objects. False if common occurrences that do not impact face verification are + // detected, such as eye glasses, lightly tinted sunglasses, strands of hair, and + // others. + Value bool + + noSmithyDocumentSerde +} + // Object containing both the face metadata (stored in the backend database), and // facial attributes that are detected but aren't stored in the database. type FaceRecord struct { diff --git a/service/resiliencehub/internal/endpoints/endpoints.go b/service/resiliencehub/internal/endpoints/endpoints.go index eec773e6b5e..4af590b610f 100644 --- a/service/resiliencehub/internal/endpoints/endpoints.go +++ b/service/resiliencehub/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -274,6 +276,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "resiliencehub-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "resiliencehub.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/resourceexplorer2/internal/endpoints/endpoints.go b/service/resourceexplorer2/internal/endpoints/endpoints.go index 5954df3e6a8..80079ec0efe 100644 --- a/service/resourceexplorer2/internal/endpoints/endpoints.go +++ b/service/resourceexplorer2/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -326,6 +328,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "resource-explorer-2-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "resource-explorer-2.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/resourcegroups/internal/endpoints/endpoints.go b/service/resourcegroups/internal/endpoints/endpoints.go index f4f72183d7c..c80cabbdf72 100644 --- a/service/resourcegroups/internal/endpoints/endpoints.go +++ b/service/resourcegroups/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -368,6 +370,27 @@ var defaultPartitions = endpoints.Partitions{ }: endpoints.Endpoint{}, }, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "resource-groups-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "resource-groups.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/resourcegroupstaggingapi/internal/endpoints/endpoints.go b/service/resourcegroupstaggingapi/internal/endpoints/endpoints.go index 1bd6a55fa28..e7e686de393 100644 --- a/service/resourcegroupstaggingapi/internal/endpoints/endpoints.go +++ b/service/resourcegroupstaggingapi/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -313,6 +315,27 @@ var defaultPartitions = endpoints.Partitions{ }: endpoints.Endpoint{}, }, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "tagging-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "tagging.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/robomaker/internal/endpoints/endpoints.go b/service/robomaker/internal/endpoints/endpoints.go index 6a2b4159479..6a2496095e2 100644 --- a/service/robomaker/internal/endpoints/endpoints.go +++ b/service/robomaker/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -235,6 +237,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "robomaker-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "robomaker.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/rolesanywhere/internal/endpoints/endpoints.go b/service/rolesanywhere/internal/endpoints/endpoints.go index 9acc6875bbb..080cf03b3ea 100644 --- a/service/rolesanywhere/internal/endpoints/endpoints.go +++ b/service/rolesanywhere/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -288,6 +290,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "rolesanywhere-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "rolesanywhere.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/route53/internal/endpoints/endpoints.go b/service/route53/internal/endpoints/endpoints.go index 3e4031f5dd9..12066ecaa00 100644 --- a/service/route53/internal/endpoints/endpoints.go +++ b/service/route53/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -274,6 +276,27 @@ var defaultPartitions = endpoints.Partitions{ }, }, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "route53-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "route53.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/route53domains/internal/endpoints/endpoints.go b/service/route53domains/internal/endpoints/endpoints.go index 27ce1adbc81..c3f1d425f60 100644 --- a/service/route53domains/internal/endpoints/endpoints.go +++ b/service/route53domains/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -217,6 +219,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "route53domains-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "route53domains.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/route53recoverycluster/internal/endpoints/endpoints.go b/service/route53recoverycluster/internal/endpoints/endpoints.go index 8cdf46553d4..8ee150d6496 100644 --- a/service/route53recoverycluster/internal/endpoints/endpoints.go +++ b/service/route53recoverycluster/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -212,6 +214,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "route53-recovery-cluster-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "route53-recovery-cluster.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/route53recoverycontrolconfig/internal/endpoints/endpoints.go b/service/route53recoverycontrolconfig/internal/endpoints/endpoints.go index d6b34af06eb..024dfb75efb 100644 --- a/service/route53recoverycontrolconfig/internal/endpoints/endpoints.go +++ b/service/route53recoverycontrolconfig/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -222,6 +224,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "route53-recovery-control-config-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "route53-recovery-control-config.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/route53recoveryreadiness/internal/endpoints/endpoints.go b/service/route53recoveryreadiness/internal/endpoints/endpoints.go index bdefd28586b..884f6527689 100644 --- a/service/route53recoveryreadiness/internal/endpoints/endpoints.go +++ b/service/route53recoveryreadiness/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -212,6 +214,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "route53-recovery-readiness-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "route53-recovery-readiness.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/route53resolver/internal/endpoints/endpoints.go b/service/route53resolver/internal/endpoints/endpoints.go index ffac6072cb7..f19ca5feb14 100644 --- a/service/route53resolver/internal/endpoints/endpoints.go +++ b/service/route53resolver/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -313,6 +315,27 @@ var defaultPartitions = endpoints.Partitions{ }: endpoints.Endpoint{}, }, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "route53resolver-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "route53resolver.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/rum/internal/endpoints/endpoints.go b/service/rum/internal/endpoints/endpoints.go index 92ef63690ea..25023fc751f 100644 --- a/service/rum/internal/endpoints/endpoints.go +++ b/service/rum/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -244,6 +246,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "rum-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "rum.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/s3/api_op_AbortMultipartUpload.go b/service/s3/api_op_AbortMultipartUpload.go index 10711586869..72607462ee3 100644 --- a/service/s3/api_op_AbortMultipartUpload.go +++ b/service/s3/api_op_AbortMultipartUpload.go @@ -53,13 +53,13 @@ type AbortMultipartUploadInput struct { // action with an access point through the Amazon Web Services SDKs, you provide // the access point ARN in place of the bucket name. For more information about // access point ARNs, see Using access points (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) - // in the Amazon S3 User Guide. When using this action with Amazon S3 on Outposts, - // you must direct requests to the S3 on Outposts hostname. The S3 on Outposts - // hostname takes the form - // AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com . When - // using this action with S3 on Outposts through the Amazon Web Services SDKs, you - // provide the Outposts bucket ARN in place of the bucket name. For more - // information about S3 on Outposts ARNs, see Using Amazon S3 on Outposts (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) + // in the Amazon S3 User Guide. When you use this action with Amazon S3 on + // Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on + // Outposts hostname takes the form + // AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com . When you + // use this action with S3 on Outposts through the Amazon Web Services SDKs, you + // provide the Outposts access point ARN in place of the bucket name. For more + // information about S3 on Outposts ARNs, see What is S3 on Outposts (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) // in the Amazon S3 User Guide. // // This member is required. diff --git a/service/s3/api_op_CompleteMultipartUpload.go b/service/s3/api_op_CompleteMultipartUpload.go index f945c1d3edd..7ae2e104119 100644 --- a/service/s3/api_op_CompleteMultipartUpload.go +++ b/service/s3/api_op_CompleteMultipartUpload.go @@ -25,10 +25,16 @@ import ( // minutes to complete. After Amazon S3 begins processing the request, it sends an // HTTP response header that specifies a 200 OK response. While processing is in // progress, Amazon S3 periodically sends white space characters to keep the -// connection from timing out. Because a request could fail after the initial 200 -// OK response has been sent, it is important that you check the response body to -// determine whether the request succeeded. Note that if CompleteMultipartUpload -// fails, applications should be prepared to retry the failed requests. For more +// connection from timing out. A request could fail after the initial 200 OK +// response has been sent. This means that a 200 OK response can contain either a +// success or an error. If you call the S3 API directly, make sure to design your +// application to parse the contents of the response and handle it appropriately. +// If you use Amazon Web Services SDKs, SDKs handle this condition. The SDKs detect +// the embedded error and apply error handling per your configuration settings +// (including automatically retrying the request as appropriate). If the condition +// persists, the SDKs throws an exception (or, for the SDKs that don't use +// exceptions, they return the error). Note that if CompleteMultipartUpload fails, +// applications should be prepared to retry the failed requests. For more // information, see Amazon S3 Error Best Practices (https://docs.aws.amazon.com/AmazonS3/latest/dev/ErrorBestPractices.html) // . You cannot use Content-Type: application/x-www-form-urlencoded with Complete // Multipart Upload requests. Also, if you do not provide a Content-Type header, @@ -85,13 +91,13 @@ type CompleteMultipartUploadInput struct { // action with an access point through the Amazon Web Services SDKs, you provide // the access point ARN in place of the bucket name. For more information about // access point ARNs, see Using access points (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) - // in the Amazon S3 User Guide. When using this action with Amazon S3 on Outposts, - // you must direct requests to the S3 on Outposts hostname. The S3 on Outposts - // hostname takes the form - // AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com . When - // using this action with S3 on Outposts through the Amazon Web Services SDKs, you - // provide the Outposts bucket ARN in place of the bucket name. For more - // information about S3 on Outposts ARNs, see Using Amazon S3 on Outposts (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) + // in the Amazon S3 User Guide. When you use this action with Amazon S3 on + // Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on + // Outposts hostname takes the form + // AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com . When you + // use this action with S3 on Outposts through the Amazon Web Services SDKs, you + // provide the Outposts access point ARN in place of the bucket name. For more + // information about S3 on Outposts ARNs, see What is S3 on Outposts (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) // in the Amazon S3 User Guide. // // This member is required. @@ -181,13 +187,13 @@ type CompleteMultipartUploadOutput struct { // action with an access point through the Amazon Web Services SDKs, you provide // the access point ARN in place of the bucket name. For more information about // access point ARNs, see Using access points (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) - // in the Amazon S3 User Guide. When using this action with Amazon S3 on Outposts, - // you must direct requests to the S3 on Outposts hostname. The S3 on Outposts - // hostname takes the form - // AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com . When - // using this action with S3 on Outposts through the Amazon Web Services SDKs, you - // provide the Outposts bucket ARN in place of the bucket name. For more - // information about S3 on Outposts ARNs, see Using Amazon S3 on Outposts (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) + // in the Amazon S3 User Guide. When you use this action with Amazon S3 on + // Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on + // Outposts hostname takes the form + // AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com . When you + // use this action with S3 on Outposts through the Amazon Web Services SDKs, you + // provide the Outposts access point ARN in place of the bucket name. For more + // information about S3 on Outposts ARNs, see What is S3 on Outposts (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) // in the Amazon S3 User Guide. Bucket *string @@ -248,14 +254,12 @@ type CompleteMultipartUploadOutput struct { RequestCharged types.RequestCharged // If present, specifies the ID of the Amazon Web Services Key Management Service - // (Amazon Web Services KMS) symmetric customer managed key that was used for the - // object. + // (Amazon Web Services KMS) symmetric encryption customer managed key that was + // used for the object. SSEKMSKeyId *string - // If you specified server-side encryption either with an Amazon S3-managed - // encryption key or an Amazon Web Services KMS key in your initiate multipart - // upload request, the response includes this header. It confirms the encryption - // algorithm that Amazon S3 used to encrypt the object. + // The server-side encryption algorithm used when storing this object in Amazon S3 + // (for example, AES256, aws:kms ). ServerSideEncryption types.ServerSideEncryption // Version ID of the newly created object, in case the bucket has versioning diff --git a/service/s3/api_op_CopyObject.go b/service/s3/api_op_CopyObject.go index 82c0a80be7e..4d01a465e92 100644 --- a/service/s3/api_op_CopyObject.go +++ b/service/s3/api_op_CopyObject.go @@ -28,8 +28,13 @@ import ( // S3 is copying the files. If the error occurs before the copy action starts, you // receive a standard Amazon S3 error. If the error occurs during the copy // operation, the error response is embedded in the 200 OK response. This means -// that a 200 OK response can contain either a success or an error. Design your -// application to parse the contents of the response and handle it appropriately. +// that a 200 OK response can contain either a success or an error. If you call +// the S3 API directly, make sure to design your application to parse the contents +// of the response and handle it appropriately. If you use Amazon Web Services +// SDKs, SDKs handle this condition. The SDKs detect the embedded error and apply +// error handling per your configuration settings (including automatically retrying +// the request as appropriate). If the condition persists, the SDKs throws an +// exception (or, for the SDKs that don't use exceptions, they return the error). // If the copy is successful, you receive a response with information about the // copied object. If the request is an HTTP 1.1 request, the response is chunk // encoded. If it were not, it would not contain the content-length, and you would @@ -51,9 +56,11 @@ import ( // Policy (https://docs.aws.amazon.com/AmazonS3/latest/dev/amazon-s3-policy-keys.html) // in the Amazon S3 User Guide. For a complete list of Amazon S3-specific condition // keys, see Actions, Resources, and Condition Keys for Amazon S3 (https://docs.aws.amazon.com/AmazonS3/latest/dev/list_amazons3.html) -// . x-amz-copy-source-if Headers To only copy an object under certain conditions, -// such as whether the Etag matches or whether the object was modified before or -// after a specified date, use the following request parameters: +// . x-amz-website-redirect-location is unique to each object and must be +// specified in the request headers to copy the value. x-amz-copy-source-if Headers +// To only copy an object under certain conditions, such as whether the Etag +// matches or whether the object was modified before or after a specified date, use +// the following request parameters: // - x-amz-copy-source-if-match // - x-amz-copy-source-if-none-match // - x-amz-copy-source-if-unmodified-since @@ -73,13 +80,28 @@ import ( // - x-amz-copy-source-if-modified-since condition evaluates to true // // All headers with the x-amz- prefix, including x-amz-copy-source , must be -// signed. Server-side encryption When you perform a CopyObject operation, you can -// optionally use the appropriate encryption-related headers to encrypt the object -// using server-side encryption with Amazon Web Services managed encryption keys -// (SSE-S3 or SSE-KMS) or a customer-provided encryption key. With server-side -// encryption, Amazon S3 encrypts your data as it writes it to disks in its data -// centers and decrypts the data when you access it. For more information about -// server-side encryption, see Using Server-Side Encryption (https://docs.aws.amazon.com/AmazonS3/latest/dev/serv-side-encryption.html) +// signed. Server-side encryption Amazon S3 automatically encrypts all new objects +// that are copied to an S3 bucket. When copying an object, if you don't specify +// encryption information in your copy request, the encryption setting of the +// target object is set to the default encryption configuration of the destination +// bucket. By default, all buckets have a base level of encryption configuration +// that uses server-side encryption with Amazon S3 managed keys (SSE-S3). If the +// destination bucket has a default encryption configuration that uses server-side +// encryption with an Key Management Service (KMS) key (SSE-KMS), or a +// customer-provided encryption key (SSE-C), Amazon S3 uses the corresponding KMS +// key, or a customer-provided key to encrypt the target object copy. When you +// perform a CopyObject operation, if you want to use a different type of +// encryption setting for the target object, you can use other appropriate +// encryption-related headers to encrypt the target object with a KMS key, an +// Amazon S3 managed key, or a customer-provided key. With server-side encryption, +// Amazon S3 encrypts your data as it writes it to disks in its data centers and +// decrypts the data when you access it. If the encryption setting in your request +// is different from the default encryption configuration of the destination +// bucket, the encryption setting in your request takes precedence. If the source +// object for the copy is stored in Amazon S3 using SSE-C, you must provide the +// necessary encryption information in your request so that Amazon S3 can decrypt +// the object for copying. For more information about server-side encryption, see +// Using Server-Side Encryption (https://docs.aws.amazon.com/AmazonS3/latest/dev/serv-side-encryption.html) // . If a target object uses SSE-KMS, you can enable an S3 Bucket Key for the // object. For more information, see Amazon S3 Bucket Keys (https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-key.html) // in the Amazon S3 User Guide. Access Control List (ACL)-Specific Request Headers @@ -106,24 +128,22 @@ import ( // use the CopyObject action to change the storage class of an object that is // already stored in Amazon S3 using the StorageClass parameter. For more // information, see Storage Classes (https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html) -// in the Amazon S3 User Guide. Versioning By default, x-amz-copy-source -// identifies the current version of an object to copy. If the current version is a -// delete marker, Amazon S3 behaves as if the object was deleted. To copy a -// different version, use the versionId subresource. If you enable versioning on -// the target bucket, Amazon S3 generates a unique version ID for the object being -// copied. This version ID is different from the version ID of the source object. -// Amazon S3 returns the version ID of the copied object in the x-amz-version-id -// response header in the response. If you do not enable versioning or suspend it -// on the target bucket, the version ID that Amazon S3 generates is always null. If -// the source object's storage class is GLACIER, you must restore a copy of this -// object before you can use it as a source object for the copy operation. For more -// information, see RestoreObject (https://docs.aws.amazon.com/AmazonS3/latest/API/API_RestoreObject.html) -// . The following operations are related to CopyObject : +// in the Amazon S3 User Guide. If the source object's storage class is GLACIER, +// you must restore a copy of this object before you can use it as a source object +// for the copy operation. For more information, see RestoreObject (https://docs.aws.amazon.com/AmazonS3/latest/API/API_RestoreObject.html) +// . For more information, see Copying Objects (https://docs.aws.amazon.com/AmazonS3/latest/dev/CopyingObjectsExamples.html) +// . Versioning By default, x-amz-copy-source identifies the current version of an +// object to copy. If the current version is a delete marker, Amazon S3 behaves as +// if the object was deleted. To copy a different version, use the versionId +// subresource. If you enable versioning on the target bucket, Amazon S3 generates +// a unique version ID for the object being copied. This version ID is different +// from the version ID of the source object. Amazon S3 returns the version ID of +// the copied object in the x-amz-version-id response header in the response. If +// you do not enable versioning or suspend it on the target bucket, the version ID +// that Amazon S3 generates is always null. The following operations are related to +// CopyObject : // - PutObject (https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutObject.html) // - GetObject (https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObject.html) -// -// For more information, see Copying Objects (https://docs.aws.amazon.com/AmazonS3/latest/dev/CopyingObjectsExamples.html) -// . func (c *Client) CopyObject(ctx context.Context, params *CopyObjectInput, optFns ...func(*Options)) (*CopyObjectOutput, error) { if params == nil { params = &CopyObjectInput{} @@ -148,13 +168,13 @@ type CopyObjectInput struct { // action with an access point through the Amazon Web Services SDKs, you provide // the access point ARN in place of the bucket name. For more information about // access point ARNs, see Using access points (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) - // in the Amazon S3 User Guide. When using this action with Amazon S3 on Outposts, - // you must direct requests to the S3 on Outposts hostname. The S3 on Outposts - // hostname takes the form - // AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com . When - // using this action with S3 on Outposts through the Amazon Web Services SDKs, you - // provide the Outposts bucket ARN in place of the bucket name. For more - // information about S3 on Outposts ARNs, see Using Amazon S3 on Outposts (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) + // in the Amazon S3 User Guide. When you use this action with Amazon S3 on + // Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on + // Outposts hostname takes the form + // AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com . When you + // use this action with S3 on Outposts through the Amazon Web Services SDKs, you + // provide the Outposts access point ARN in place of the bucket name. For more + // information about S3 on Outposts ARNs, see What is S3 on Outposts (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) // in the Amazon S3 User Guide. // // This member is required. @@ -339,7 +359,7 @@ type CopyObjectInput struct { SSEKMSKeyId *string // The server-side encryption algorithm used when storing this object in Amazon S3 - // (for example, AES256, aws:kms). + // (for example, AES256, aws:kms ). ServerSideEncryption types.ServerSideEncryption // By default, Amazon S3 uses the STANDARD Storage Class to store newly created @@ -361,7 +381,9 @@ type CopyObjectInput struct { // 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. Amazon S3 stores the - // value of this header in the object metadata. + // value of this header in the object metadata. This value is unique to each object + // and is not copied when using the x-amz-metadata-directive header. Instead, you + // may opt to provide this header in combination with the directive. WebsiteRedirectLocation *string noSmithyDocumentSerde @@ -402,12 +424,12 @@ type CopyObjectOutput struct { SSEKMSEncryptionContext *string // If present, specifies the ID of the Amazon Web Services Key Management Service - // (Amazon Web Services KMS) symmetric customer managed key that was used for the - // object. + // (Amazon Web Services KMS) symmetric encryption customer managed key that was + // used for the object. SSEKMSKeyId *string // The server-side encryption algorithm used when storing this object in Amazon S3 - // (for example, AES256, aws:kms). + // (for example, AES256, aws:kms ). ServerSideEncryption types.ServerSideEncryption // Version ID of the newly created copy. diff --git a/service/s3/api_op_CreateBucket.go b/service/s3/api_op_CreateBucket.go index 4a549a9d12c..2675b0df36c 100644 --- a/service/s3/api_op_CreateBucket.go +++ b/service/s3/api_op_CreateBucket.go @@ -84,7 +84,7 @@ import ( // - Object Lock - If ObjectLockEnabledForBucket is set to true in your // CreateBucket request, s3:PutBucketObjectLockConfiguration and // s3:PutBucketVersioning permissions are required. -// - S3 Object Ownership - If your CreateBucket request includes the the +// - S3 Object Ownership - If your CreateBucket request includes the // x-amz-object-ownership header, s3:PutBucketOwnershipControls permission is // required. // diff --git a/service/s3/api_op_CreateMultipartUpload.go b/service/s3/api_op_CreateMultipartUpload.go index a2bf58cd330..471a7057e96 100644 --- a/service/s3/api_op_CreateMultipartUpload.go +++ b/service/s3/api_op_CreateMultipartUpload.go @@ -25,7 +25,7 @@ import ( // lifecycle configuration. Otherwise, the incomplete multipart upload becomes // eligible for an abort action and Amazon S3 aborts the multipart upload. For more // information, see Aborting Incomplete Multipart Uploads Using a Bucket Lifecycle -// Policy (https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuoverview.html#mpu-abort-incomplete-mpu-lifecycle-config) +// Configuration (https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuoverview.html#mpu-abort-incomplete-mpu-lifecycle-config) // . For information about the permissions required to use the multipart upload // API, see Multipart Upload and Permissions (https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html) // . For request signing, multipart upload is just a series of regular requests. @@ -38,20 +38,37 @@ import ( // being charged for storing the uploaded parts, you must either complete or abort // the multipart upload. Amazon S3 frees up the space used to store the parts and // stop charging you for storing them only after you either complete or abort a -// multipart upload. You can optionally request server-side encryption. For -// server-side encryption, Amazon S3 encrypts your data as it writes it to disks in -// its data centers and decrypts it when you access it. You can provide your own -// encryption key, or use Amazon Web Services KMS keys or Amazon S3-managed -// encryption keys. If you choose to provide your own encryption key, the request -// headers you provide in UploadPart (https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPart.html) +// multipart upload. Server-side encryption is for data encryption at rest. Amazon +// S3 encrypts your data as it writes it to disks in its data centers and decrypts +// it when you access it. Amazon S3 automatically encrypts all new objects that are +// uploaded to an S3 bucket. When doing a multipart upload, if you don't specify +// encryption information in your request, the encryption setting of the uploaded +// parts is set to the default encryption configuration of the destination bucket. +// By default, all buckets have a base level of encryption configuration that uses +// server-side encryption with Amazon S3 managed keys (SSE-S3). If the destination +// bucket has a default encryption configuration that uses server-side encryption +// with an Key Management Service (KMS) key (SSE-KMS), or a customer-provided +// encryption key (SSE-C), Amazon S3 uses the corresponding KMS key, or a +// customer-provided key to encrypt the uploaded parts. When you perform a +// CreateMultipartUpload operation, if you want to use a different type of +// encryption setting for the uploaded parts, you can request that Amazon S3 +// encrypts the object with a KMS key, an Amazon S3 managed key, or a +// customer-provided key. If the encryption setting in your request is different +// from the default encryption configuration of the destination bucket, the +// encryption setting in your request takes precedence. If you choose to provide +// your own encryption key, the request headers you provide in UploadPart (https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPart.html) // and UploadPartCopy (https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html) // requests must match the headers you used in the request to initiate the upload -// by using CreateMultipartUpload . To perform a multipart upload with encryption -// using an Amazon Web Services KMS key, the requester must have permission to the -// kms:Decrypt and kms:GenerateDataKey* actions on the key. These permissions are -// required because Amazon S3 must decrypt and read data from the encrypted file -// parts before it completes the multipart upload. For more information, see -// Multipart upload API and permissions (https://docs.aws.amazon.com/AmazonS3/latest/userguide/mpuoverview.html#mpuAndPermissions) +// by using CreateMultipartUpload . You can request that Amazon S3 save the +// uploaded parts encrypted with server-side encryption with an Amazon S3 managed +// key (SSE-S3), an Key Management Service (KMS) key (SSE-KMS), or a +// customer-provided encryption key (SSE-C). To perform a multipart upload with +// encryption by using an Amazon Web Services KMS key, the requester must have +// permission to the kms:Decrypt and kms:GenerateDataKey* actions on the key. +// These permissions are required because Amazon S3 must decrypt and read data from +// the encrypted file parts before it completes the multipart upload. For more +// information, see Multipart upload API and permissions (https://docs.aws.amazon.com/AmazonS3/latest/userguide/mpuoverview.html#mpuAndPermissions) +// and Protecting data using server-side encryption with Amazon Web Services KMS (https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingKMSEncryption.html) // in the Amazon S3 User Guide. If your Identity and Access Management (IAM) user // or role is in the same Amazon Web Services account as the KMS key, then you must // have these permissions on the key policy. If your IAM user or role belongs to a @@ -71,34 +88,37 @@ import ( // . // // You can use either a canned ACL or specify access permissions explicitly. You -// cannot do both. Server-Side- Encryption-Specific Request Headers You can -// optionally tell Amazon S3 to encrypt data at rest using server-side encryption. -// Server-side encryption is for data encryption at rest. Amazon S3 encrypts your -// data as it writes it to disks in its data centers and decrypts it when you -// access it. The option you use depends on whether you want to use Amazon Web -// Services managed encryption keys or provide your own encryption key. -// - Use encryption keys managed by Amazon S3 or customer managed key stored in -// Amazon Web Services Key Management Service (Amazon Web Services KMS) – If you -// want Amazon Web Services to manage the keys used to encrypt data, specify the -// following headers in the request. +// cannot do both. Server-Side- Encryption-Specific Request Headers Amazon S3 +// encrypts data by using server-side encryption with an Amazon S3 managed key +// (SSE-S3) by default. Server-side encryption is for data encryption at rest. +// Amazon S3 encrypts your data as it writes it to disks in its data centers and +// decrypts it when you access it. You can request that Amazon S3 encrypts data at +// rest by using server-side encryption with other key options. The option you use +// depends on whether you want to use KMS keys (SSE-KMS) or provide your own +// encryption keys (SSE-C). +// - Use KMS keys (SSE-KMS) that include the Amazon Web Services managed key ( +// aws/s3 ) and KMS customer managed keys stored in Key Management Service (KMS) +// – If you want Amazon Web Services to manage the keys used to encrypt data, +// specify the following headers in the request. // - x-amz-server-side-encryption // - x-amz-server-side-encryption-aws-kms-key-id // - x-amz-server-side-encryption-context If you specify // x-amz-server-side-encryption:aws:kms , but don't provide // x-amz-server-side-encryption-aws-kms-key-id , Amazon S3 uses the Amazon Web -// Services managed key in Amazon Web Services KMS to protect the data. All GET and -// PUT requests for an object protected by Amazon Web Services KMS fail if you -// don't make them with SSL or by using SigV4. For more information about -// server-side encryption with KMS key (SSE-KMS), see Protecting Data Using -// Server-Side Encryption with KMS keys (https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingKMSEncryption.html) +// Services managed key ( aws/s3 key) in KMS to protect the data. All GET and PUT +// requests for an object protected by KMS fail if you don't make them by using +// Secure Sockets Layer (SSL), Transport Layer Security (TLS), or Signature Version +// 4. For more information about server-side encryption with KMS keys (SSE-KMS), +// see Protecting Data Using Server-Side Encryption with KMS keys (https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingKMSEncryption.html) // . -// - Use customer-provided encryption keys – If you want to manage your own -// encryption keys, provide all the following headers in the request. +// - Use customer-provided encryption keys (SSE-C) – If you want to manage your +// own encryption keys, provide all the following headers in the request. // - x-amz-server-side-encryption-customer-algorithm // - x-amz-server-side-encryption-customer-key // - x-amz-server-side-encryption-customer-key-MD5 For more information about -// server-side encryption with KMS keys (SSE-KMS), see Protecting Data Using -// Server-Side Encryption with KMS keys (https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingKMSEncryption.html) +// server-side encryption with customer-provided encryption keys (SSE-C), see +// Protecting data using server-side encryption with customer-provided encryption +// keys (SSE-C) (https://docs.aws.amazon.com/AmazonS3/latest/userguide/ServerSideEncryptionCustomerKeys.html) // . // // Access-Control-List (ACL)-Specific Request Headers You also can use the @@ -177,13 +197,13 @@ type CreateMultipartUploadInput struct { // action with an access point through the Amazon Web Services SDKs, you provide // the access point ARN in place of the bucket name. For more information about // access point ARNs, see Using access points (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) - // in the Amazon S3 User Guide. When using this action with Amazon S3 on Outposts, - // you must direct requests to the S3 on Outposts hostname. The S3 on Outposts - // hostname takes the form - // AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com . When - // using this action with S3 on Outposts through the Amazon Web Services SDKs, you - // provide the Outposts bucket ARN in place of the bucket name. For more - // information about S3 on Outposts ARNs, see Using Amazon S3 on Outposts (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) + // in the Amazon S3 User Guide. When you use this action with Amazon S3 on + // Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on + // Outposts hostname takes the form + // AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com . When you + // use this action with S3 on Outposts through the Amazon Web Services SDKs, you + // provide the Outposts access point ARN in place of the bucket name. For more + // information about S3 on Outposts ARNs, see What is S3 on Outposts (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) // in the Amazon S3 User Guide. // // This member is required. @@ -291,17 +311,17 @@ type CreateMultipartUploadInput struct { // JSON with the encryption context key-value pairs. SSEKMSEncryptionContext *string - // Specifies the ID of the symmetric customer managed key to use for object - // encryption. All GET and PUT requests for an object protected by Amazon Web - // Services KMS will fail if not made via SSL or using SigV4. For information about - // configuring using any of the officially supported Amazon Web Services SDKs and - // Amazon Web Services CLI, see Specifying the Signature Version in Request + // Specifies the ID of the symmetric encryption customer managed key to use for + // object encryption. All GET and PUT requests for an object protected by Amazon + // Web Services KMS will fail if not made via SSL or using SigV4. For information + // about configuring using any of the officially supported Amazon Web Services SDKs + // and Amazon Web Services CLI, see Specifying the Signature Version in Request // Authentication (https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingAWSSDK.html#specify-signature-version) // in the Amazon S3 User Guide. SSEKMSKeyId *string // The server-side encryption algorithm used when storing this object in Amazon S3 - // (for example, AES256, aws:kms). + // (for example, AES256, aws:kms ). ServerSideEncryption types.ServerSideEncryption // By default, Amazon S3 uses the STANDARD Storage Class to store newly created @@ -330,7 +350,7 @@ type CreateMultipartUploadOutput struct { // object name in the request, the response includes this header. The header // indicates when the initiated multipart upload becomes eligible for an abort // operation. For more information, see Aborting Incomplete Multipart Uploads - // Using a Bucket Lifecycle Policy (https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuoverview.html#mpu-abort-incomplete-mpu-lifecycle-config) + // Using a Bucket Lifecycle Configuration (https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuoverview.html#mpu-abort-incomplete-mpu-lifecycle-config) // . The response also includes the x-amz-abort-rule-id header that provides the // ID of the lifecycle configuration rule that defines this action. AbortDate *time.Time @@ -348,13 +368,13 @@ type CreateMultipartUploadOutput struct { // action with an access point through the Amazon Web Services SDKs, you provide // the access point ARN in place of the bucket name. For more information about // access point ARNs, see Using access points (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) - // in the Amazon S3 User Guide. When using this action with Amazon S3 on Outposts, - // you must direct requests to the S3 on Outposts hostname. The S3 on Outposts - // hostname takes the form - // AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com . When - // using this action with S3 on Outposts through the Amazon Web Services SDKs, you - // provide the Outposts bucket ARN in place of the bucket name. For more - // information about S3 on Outposts ARNs, see Using Amazon S3 on Outposts (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) + // in the Amazon S3 User Guide. When you use this action with Amazon S3 on + // Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on + // Outposts hostname takes the form + // AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com . When you + // use this action with S3 on Outposts through the Amazon Web Services SDKs, you + // provide the Outposts access point ARN in place of the bucket name. For more + // information about S3 on Outposts ARNs, see What is S3 on Outposts (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) // in the Amazon S3 User Guide. Bucket *string @@ -388,12 +408,12 @@ type CreateMultipartUploadOutput struct { SSEKMSEncryptionContext *string // If present, specifies the ID of the Amazon Web Services Key Management Service - // (Amazon Web Services KMS) symmetric customer managed key that was used for the - // object. + // (Amazon Web Services KMS) symmetric encryption customer managed key that was + // used for the object. SSEKMSKeyId *string // The server-side encryption algorithm used when storing this object in Amazon S3 - // (for example, AES256, aws:kms). + // (for example, AES256, aws:kms ). ServerSideEncryption types.ServerSideEncryption // ID for the initiated multipart upload. diff --git a/service/s3/api_op_DeleteBucket.go b/service/s3/api_op_DeleteBucket.go index 1c1fceb00c2..06dee26ae6c 100644 --- a/service/s3/api_op_DeleteBucket.go +++ b/service/s3/api_op_DeleteBucket.go @@ -13,7 +13,7 @@ import ( // Deletes the S3 bucket. All objects (including all object versions and delete // markers) in the bucket must be deleted before the bucket itself can be deleted. -// Related Resources +// The following operations are related to DeleteBucket : // - CreateBucket (https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateBucket.html) // - DeleteObject (https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteObject.html) func (c *Client) DeleteBucket(ctx context.Context, params *DeleteBucketInput, optFns ...func(*Options)) (*DeleteBucketOutput, error) { diff --git a/service/s3/api_op_DeleteBucketCors.go b/service/s3/api_op_DeleteBucketCors.go index 054827b2098..1415e1a1ffd 100644 --- a/service/s3/api_op_DeleteBucketCors.go +++ b/service/s3/api_op_DeleteBucketCors.go @@ -15,7 +15,8 @@ import ( // operation, you must have permission to perform the s3:PutBucketCORS action. The // bucket owner has this permission by default and can grant this permission to // others. For information about cors , see Enabling Cross-Origin Resource Sharing (https://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html) -// in the Amazon S3 User Guide. Related Resources: +// in the Amazon S3 User Guide. The following operations are related to +// DeleteBucketCors : // - PutBucketCors (https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketCors.html) // - RESTOPTIONSobject (https://docs.aws.amazon.com/AmazonS3/latest/API/RESTOPTIONSobject.html) func (c *Client) DeleteBucketCors(ctx context.Context, params *DeleteBucketCorsInput, optFns ...func(*Options)) (*DeleteBucketCorsOutput, error) { diff --git a/service/s3/api_op_DeleteBucketEncryption.go b/service/s3/api_op_DeleteBucketEncryption.go index 7a655539cc2..e2b6626e1a3 100644 --- a/service/s3/api_op_DeleteBucketEncryption.go +++ b/service/s3/api_op_DeleteBucketEncryption.go @@ -11,16 +11,18 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// This implementation of the DELETE action removes default encryption from the -// bucket. For information about the Amazon S3 default encryption feature, see -// Amazon S3 Default Bucket Encryption (https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-encryption.html) +// This implementation of the DELETE action resets the default encryption for the +// bucket as server-side encryption with Amazon S3 managed keys (SSE-S3). For +// information about the bucket default encryption feature, see Amazon S3 Bucket +// Default Encryption (https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-encryption.html) // in the Amazon S3 User Guide. To use this operation, you must have permissions to // perform the s3:PutEncryptionConfiguration action. The bucket owner has this // permission by default. The bucket owner can grant this permission to others. For // more information about permissions, see Permissions Related to Bucket // Subresource Operations (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) // and Managing Access Permissions to your Amazon S3 Resources (https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html) -// in the Amazon S3 User Guide. Related Resources +// in the Amazon S3 User Guide. The following operations are related to +// DeleteBucketEncryption : // - PutBucketEncryption (https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketEncryption.html) // - GetBucketEncryption (https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketEncryption.html) func (c *Client) DeleteBucketEncryption(ctx context.Context, params *DeleteBucketEncryptionInput, optFns ...func(*Options)) (*DeleteBucketEncryptionOutput, error) { diff --git a/service/s3/api_op_DeleteBucketMetricsConfiguration.go b/service/s3/api_op_DeleteBucketMetricsConfiguration.go index 06332b5fa8b..c7ba9b857ff 100644 --- a/service/s3/api_op_DeleteBucketMetricsConfiguration.go +++ b/service/s3/api_op_DeleteBucketMetricsConfiguration.go @@ -48,7 +48,8 @@ type DeleteBucketMetricsConfigurationInput struct { // This member is required. Bucket *string - // The ID used to identify the metrics configuration. + // The ID used to identify the metrics configuration. The ID has a 64 character + // limit and can only contain letters, numbers, periods, dashes, and underscores. // // This member is required. Id *string diff --git a/service/s3/api_op_DeleteBucketPolicy.go b/service/s3/api_op_DeleteBucketPolicy.go index eb2befc8c77..05d0de25057 100644 --- a/service/s3/api_op_DeleteBucketPolicy.go +++ b/service/s3/api_op_DeleteBucketPolicy.go @@ -19,11 +19,14 @@ import ( // have DeleteBucketPolicy permissions, Amazon S3 returns a 403 Access Denied // error. If you have the correct permissions, but you're not using an identity // that belongs to the bucket owner's account, Amazon S3 returns a 405 Method Not -// Allowed error. As a security precaution, the root user of the Amazon Web -// Services account that owns a bucket can always use this operation, even if the -// policy explicitly denies the root user the ability to perform this action. For -// more information about bucket policies, see Using Bucket Policies and -// UserPolicies (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html) +// Allowed error. To ensure that bucket owners don't inadvertently lock themselves +// out of their own buckets, the root principal in a bucket owner's Amazon Web +// Services account can perform the GetBucketPolicy , PutBucketPolicy , and +// DeleteBucketPolicy API actions, even if their bucket policy explicitly denies +// the root principal's access. Bucket owner root principals can only be blocked +// from performing these API actions by VPC endpoint policies and Amazon Web +// Services Organizations policies. For more information about bucket policies, see +// Using Bucket Policies and UserPolicies (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html) // . The following operations are related to DeleteBucketPolicy // - CreateBucket (https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateBucket.html) // - DeleteObject (https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteObject.html) diff --git a/service/s3/api_op_DeleteObject.go b/service/s3/api_op_DeleteObject.go index 43a5b2cc8d8..27ca720bff3 100644 --- a/service/s3/api_op_DeleteObject.go +++ b/service/s3/api_op_DeleteObject.go @@ -15,14 +15,14 @@ import ( // Removes the null version (if there is one) of an object and inserts a delete // marker, which becomes the latest version of the object. If there isn't a null // version, Amazon S3 does not remove any objects but will still respond that the -// command was successful. To remove a specific version, you must be the bucket -// owner and you must use the version Id subresource. Using this subresource -// permanently deletes the version. If the object deleted is a delete marker, -// Amazon S3 sets the response header, x-amz-delete-marker , to true. If the object -// you want to delete is in a bucket where the bucket versioning configuration is -// MFA Delete enabled, you must include the x-amz-mfa request header in the DELETE -// versionId request. Requests that include x-amz-mfa must use HTTPS. For more -// information about MFA Delete, see Using MFA Delete (https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingMFADelete.html) +// command was successful. To remove a specific version, you must use the version +// Id subresource. Using this subresource permanently deletes the version. If the +// object deleted is a delete marker, Amazon S3 sets the response header, +// x-amz-delete-marker , to true. If the object you want to delete is in a bucket +// where the bucket versioning configuration is MFA Delete enabled, you must +// include the x-amz-mfa request header in the DELETE versionId request. Requests +// that include x-amz-mfa must use HTTPS. For more information about MFA Delete, +// see Using MFA Delete (https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingMFADelete.html) // . To see sample requests that use versioning, see Sample Request (https://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectDELETE.html#ExampleVersionObjectDelete) // . You can delete objects by explicitly calling DELETE Object or configure its // lifecycle ( PutBucketLifecycle (https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketLifecycle.html) @@ -55,13 +55,13 @@ type DeleteObjectInput struct { // action with an access point through the Amazon Web Services SDKs, you provide // the access point ARN in place of the bucket name. For more information about // access point ARNs, see Using access points (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) - // in the Amazon S3 User Guide. When using this action with Amazon S3 on Outposts, - // you must direct requests to the S3 on Outposts hostname. The S3 on Outposts - // hostname takes the form - // AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com . When - // using this action with S3 on Outposts through the Amazon Web Services SDKs, you - // provide the Outposts bucket ARN in place of the bucket name. For more - // information about S3 on Outposts ARNs, see Using Amazon S3 on Outposts (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) + // in the Amazon S3 User Guide. When you use this action with Amazon S3 on + // Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on + // Outposts hostname takes the form + // AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com . When you + // use this action with S3 on Outposts through the Amazon Web Services SDKs, you + // provide the Outposts access point ARN in place of the bucket name. For more + // information about S3 on Outposts ARNs, see What is S3 on Outposts (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) // in the Amazon S3 User Guide. // // This member is required. diff --git a/service/s3/api_op_DeleteObjectTagging.go b/service/s3/api_op_DeleteObjectTagging.go index 2430807966f..294d33079ec 100644 --- a/service/s3/api_op_DeleteObjectTagging.go +++ b/service/s3/api_op_DeleteObjectTagging.go @@ -17,7 +17,7 @@ import ( // s3:DeleteObjectTagging action. To delete tags of a specific object version, add // the versionId query parameter in the request. You will need permission for the // s3:DeleteObjectVersionTagging action. The following operations are related to -// DeleteBucketMetricsConfiguration : +// DeleteObjectTagging : // - PutObjectTagging (https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutObjectTagging.html) // - GetObjectTagging (https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObjectTagging.html) func (c *Client) DeleteObjectTagging(ctx context.Context, params *DeleteObjectTaggingInput, optFns ...func(*Options)) (*DeleteObjectTaggingOutput, error) { @@ -44,13 +44,13 @@ type DeleteObjectTaggingInput struct { // action with an access point through the Amazon Web Services SDKs, you provide // the access point ARN in place of the bucket name. For more information about // access point ARNs, see Using access points (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) - // in the Amazon S3 User Guide. When using this action with Amazon S3 on Outposts, - // you must direct requests to the S3 on Outposts hostname. The S3 on Outposts - // hostname takes the form - // AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com . When - // using this action with S3 on Outposts through the Amazon Web Services SDKs, you - // provide the Outposts bucket ARN in place of the bucket name. For more - // information about S3 on Outposts ARNs, see Using Amazon S3 on Outposts (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) + // in the Amazon S3 User Guide. When you use this action with Amazon S3 on + // Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on + // Outposts hostname takes the form + // AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com . When you + // use this action with S3 on Outposts through the Amazon Web Services SDKs, you + // provide the Outposts access point ARN in place of the bucket name. For more + // information about S3 on Outposts ARNs, see What is S3 on Outposts (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) // in the Amazon S3 User Guide. // // This member is required. diff --git a/service/s3/api_op_DeleteObjects.go b/service/s3/api_op_DeleteObjects.go index 07fcd78e070..7fc9cdfde87 100644 --- a/service/s3/api_op_DeleteObjects.go +++ b/service/s3/api_op_DeleteObjects.go @@ -67,13 +67,13 @@ type DeleteObjectsInput struct { // action with an access point through the Amazon Web Services SDKs, you provide // the access point ARN in place of the bucket name. For more information about // access point ARNs, see Using access points (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) - // in the Amazon S3 User Guide. When using this action with Amazon S3 on Outposts, - // you must direct requests to the S3 on Outposts hostname. The S3 on Outposts - // hostname takes the form - // AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com . When - // using this action with S3 on Outposts through the Amazon Web Services SDKs, you - // provide the Outposts bucket ARN in place of the bucket name. For more - // information about S3 on Outposts ARNs, see Using Amazon S3 on Outposts (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) + // in the Amazon S3 User Guide. When you use this action with Amazon S3 on + // Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on + // Outposts hostname takes the form + // AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com . When you + // use this action with S3 on Outposts through the Amazon Web Services SDKs, you + // provide the Outposts access point ARN in place of the bucket name. For more + // information about S3 on Outposts ARNs, see What is S3 on Outposts (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) // in the Amazon S3 User Guide. // // This member is required. diff --git a/service/s3/api_op_GetBucketAccelerateConfiguration.go b/service/s3/api_op_GetBucketAccelerateConfiguration.go index 2d66635492a..2d608c31605 100644 --- a/service/s3/api_op_GetBucketAccelerateConfiguration.go +++ b/service/s3/api_op_GetBucketAccelerateConfiguration.go @@ -28,7 +28,8 @@ import ( // that has no transfer acceleration state. A bucket has no Transfer Acceleration // state if a state has never been set on the bucket. For more information about // transfer acceleration, see Transfer Acceleration (https://docs.aws.amazon.com/AmazonS3/latest/dev/transfer-acceleration.html) -// in the Amazon S3 User Guide. Related Resources +// in the Amazon S3 User Guide. The following operations are related to +// GetBucketAccelerateConfiguration : // - PutBucketAccelerateConfiguration (https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketAccelerateConfiguration.html) func (c *Client) GetBucketAccelerateConfiguration(ctx context.Context, params *GetBucketAccelerateConfigurationInput, optFns ...func(*Options)) (*GetBucketAccelerateConfigurationOutput, error) { if params == nil { diff --git a/service/s3/api_op_GetBucketAcl.go b/service/s3/api_op_GetBucketAcl.go index 30e121b93b3..232b9717826 100644 --- a/service/s3/api_op_GetBucketAcl.go +++ b/service/s3/api_op_GetBucketAcl.go @@ -16,12 +16,20 @@ import ( // access control list (ACL) of a bucket. To use GET to return the ACL of the // bucket, you must have READ_ACP access to the bucket. If READ_ACP permission is // granted to the anonymous user, you can return the ACL of the bucket without -// using an authorization header. If your bucket uses the bucket owner enforced -// setting for S3 Object Ownership, requests to read ACLs are still supported and -// return the bucket-owner-full-control ACL with the owner being the account that -// created the bucket. For more information, see Controlling object ownership and -// disabling ACLs (https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html) -// in the Amazon S3 User Guide. Related Resources +// using an authorization header. To use this API operation against an access +// point, provide the alias of the access point in place of the bucket name. To use +// this API operation against an Object Lambda access point, provide the alias of +// the Object Lambda access point in place of the bucket name. If the Object Lambda +// access point alias in a request is not valid, the error code +// InvalidAccessPointAliasError is returned. For more information about +// InvalidAccessPointAliasError , see List of Error Codes (https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#ErrorCodeList) +// . If your bucket uses the bucket owner enforced setting for S3 Object Ownership, +// requests to read ACLs are still supported and return the +// bucket-owner-full-control ACL with the owner being the account that created the +// bucket. For more information, see Controlling object ownership and disabling +// ACLs (https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html) +// in the Amazon S3 User Guide. The following operations are related to +// GetBucketAcl : // - ListObjects (https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListObjects.html) func (c *Client) GetBucketAcl(ctx context.Context, params *GetBucketAclInput, optFns ...func(*Options)) (*GetBucketAclOutput, error) { if params == nil { @@ -40,7 +48,14 @@ func (c *Client) GetBucketAcl(ctx context.Context, params *GetBucketAclInput, op type GetBucketAclInput struct { - // Specifies the S3 bucket whose ACL is being requested. + // Specifies the S3 bucket whose ACL is being requested. To use this API operation + // against an access point, provide the alias of the access point in place of the + // bucket name. To use this API operation against an Object Lambda access point, + // provide the alias of the Object Lambda access point in place of the bucket name. + // If the Object Lambda access point alias in a request is not valid, the error + // code InvalidAccessPointAliasError is returned. For more information about + // InvalidAccessPointAliasError , see List of Error Codes (https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#ErrorCodeList) + // . // // This member is required. Bucket *string diff --git a/service/s3/api_op_GetBucketAnalyticsConfiguration.go b/service/s3/api_op_GetBucketAnalyticsConfiguration.go index 072561a114a..6b7c3370b57 100644 --- a/service/s3/api_op_GetBucketAnalyticsConfiguration.go +++ b/service/s3/api_op_GetBucketAnalyticsConfiguration.go @@ -21,7 +21,8 @@ import ( // and Managing Access Permissions to Your Amazon S3 Resources (https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html) // in the Amazon S3 User Guide. For information about Amazon S3 analytics feature, // see Amazon S3 Analytics – Storage Class Analysis (https://docs.aws.amazon.com/AmazonS3/latest/dev/analytics-storage-class.html) -// in the Amazon S3 User Guide. Related Resources +// in the Amazon S3 User Guide. The following operations are related to +// GetBucketAnalyticsConfiguration : // - DeleteBucketAnalyticsConfiguration (https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucketAnalyticsConfiguration.html) // - ListBucketAnalyticsConfigurations (https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListBucketAnalyticsConfigurations.html) // - PutBucketAnalyticsConfiguration (https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketAnalyticsConfiguration.html) diff --git a/service/s3/api_op_GetBucketCors.go b/service/s3/api_op_GetBucketCors.go index a3ba07c924e..54b526cd531 100644 --- a/service/s3/api_op_GetBucketCors.go +++ b/service/s3/api_op_GetBucketCors.go @@ -15,8 +15,14 @@ import ( // Returns the Cross-Origin Resource Sharing (CORS) configuration information set // for the bucket. To use this operation, you must have permission to perform the // s3:GetBucketCORS action. By default, the bucket owner has this permission and -// can grant it to others. For more information about CORS, see Enabling -// Cross-Origin Resource Sharing (https://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html) +// can grant it to others. To use this API operation against an access point, +// provide the alias of the access point in place of the bucket name. To use this +// API operation against an Object Lambda access point, provide the alias of the +// Object Lambda access point in place of the bucket name. If the Object Lambda +// access point alias in a request is not valid, the error code +// InvalidAccessPointAliasError is returned. For more information about +// InvalidAccessPointAliasError , see List of Error Codes (https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#ErrorCodeList) +// . For more information about CORS, see Enabling Cross-Origin Resource Sharing (https://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html) // . The following operations are related to GetBucketCors : // - PutBucketCors (https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketCors.html) // - DeleteBucketCors (https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucketCors.html) @@ -37,7 +43,14 @@ func (c *Client) GetBucketCors(ctx context.Context, params *GetBucketCorsInput, type GetBucketCorsInput struct { - // The bucket name for which to get the cors configuration. + // The bucket name for which to get the cors configuration. To use this API + // operation against an access point, provide the alias of the access point in + // place of the bucket name. To use this API operation against an Object Lambda + // access point, provide the alias of the Object Lambda access point in place of + // the bucket name. If the Object Lambda access point alias in a request is not + // valid, the error code InvalidAccessPointAliasError is returned. For more + // information about InvalidAccessPointAliasError , see List of Error Codes (https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#ErrorCodeList) + // . // // This member is required. Bucket *string diff --git a/service/s3/api_op_GetBucketEncryption.go b/service/s3/api_op_GetBucketEncryption.go index 949bef419e1..f16cd2359b6 100644 --- a/service/s3/api_op_GetBucketEncryption.go +++ b/service/s3/api_op_GetBucketEncryption.go @@ -12,16 +12,16 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Returns the default encryption configuration for an Amazon S3 bucket. If the -// bucket does not have a default encryption configuration, GetBucketEncryption -// returns ServerSideEncryptionConfigurationNotFoundError . For information about -// the Amazon S3 default encryption feature, see Amazon S3 Default Bucket +// Returns the default encryption configuration for an Amazon S3 bucket. By +// default, all buckets have a default encryption configuration that uses +// server-side encryption with Amazon S3 managed keys (SSE-S3). For information +// about the bucket default encryption feature, see Amazon S3 Bucket Default // Encryption (https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-encryption.html) -// . To use this operation, you must have permission to perform the -// s3:GetEncryptionConfiguration action. The bucket owner has this permission by -// default. The bucket owner can grant this permission to others. For more -// information about permissions, see Permissions Related to Bucket Subresource -// Operations (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) +// in the Amazon S3 User Guide. To use this operation, you must have permission to +// perform the s3:GetEncryptionConfiguration action. The bucket owner has this +// permission by default. The bucket owner can grant this permission to others. For +// more information about permissions, see Permissions Related to Bucket +// Subresource Operations (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) // and Managing Access Permissions to Your Amazon S3 Resources (https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html) // . The following operations are related to GetBucketEncryption : // - PutBucketEncryption (https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketEncryption.html) diff --git a/service/s3/api_op_GetBucketLocation.go b/service/s3/api_op_GetBucketLocation.go index 8bcfc2fcf16..6c9bbc0f713 100644 --- a/service/s3/api_op_GetBucketLocation.go +++ b/service/s3/api_op_GetBucketLocation.go @@ -22,10 +22,17 @@ import ( // Returns the Region the bucket resides in. You set the bucket's Region using the // LocationConstraint request parameter in a CreateBucket request. For more // information, see CreateBucket (https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateBucket.html) -// . To use this implementation of the operation, you must be the bucket owner. To -// use this API against an access point, provide the alias of the access point in -// place of the bucket name. The following operations are related to -// GetBucketLocation : +// . To use this API operation against an access point, provide the alias of the +// access point in place of the bucket name. To use this API operation against an +// Object Lambda access point, provide the alias of the Object Lambda access point +// in place of the bucket name. If the Object Lambda access point alias in a +// request is not valid, the error code InvalidAccessPointAliasError is returned. +// For more information about InvalidAccessPointAliasError , see List of Error +// Codes (https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#ErrorCodeList) +// . We recommend that you use HeadBucket (https://docs.aws.amazon.com/AmazonS3/latest/API/API_HeadBucket.html) +// to return the Region that a bucket resides in. For backward compatibility, +// Amazon S3 continues to support GetBucketLocation. The following operations are +// related to GetBucketLocation : // - GetObject (https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObject.html) // - CreateBucket (https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateBucket.html) func (c *Client) GetBucketLocation(ctx context.Context, params *GetBucketLocationInput, optFns ...func(*Options)) (*GetBucketLocationOutput, error) { @@ -45,7 +52,14 @@ func (c *Client) GetBucketLocation(ctx context.Context, params *GetBucketLocatio type GetBucketLocationInput struct { - // The name of the bucket for which to get the location. + // The name of the bucket for which to get the location. To use this API operation + // against an access point, provide the alias of the access point in place of the + // bucket name. To use this API operation against an Object Lambda access point, + // provide the alias of the Object Lambda access point in place of the bucket name. + // If the Object Lambda access point alias in a request is not valid, the error + // code InvalidAccessPointAliasError is returned. For more information about + // InvalidAccessPointAliasError , see List of Error Codes (https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#ErrorCodeList) + // . // // This member is required. Bucket *string diff --git a/service/s3/api_op_GetBucketLogging.go b/service/s3/api_op_GetBucketLogging.go index 8ea9ae66c80..bc101b8a1f5 100644 --- a/service/s3/api_op_GetBucketLogging.go +++ b/service/s3/api_op_GetBucketLogging.go @@ -13,8 +13,8 @@ import ( ) // Returns the logging status of a bucket and the permissions users have to view -// and modify that status. To use GET, you must be the bucket owner. The following -// operations are related to GetBucketLogging : +// and modify that status. The following operations are related to GetBucketLogging +// : // - CreateBucket (https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateBucket.html) // - PutBucketLogging (https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketLogging.html) func (c *Client) GetBucketLogging(ctx context.Context, params *GetBucketLoggingInput, optFns ...func(*Options)) (*GetBucketLoggingOutput, error) { diff --git a/service/s3/api_op_GetBucketMetricsConfiguration.go b/service/s3/api_op_GetBucketMetricsConfiguration.go index e0d69ae96c5..f18b7259bda 100644 --- a/service/s3/api_op_GetBucketMetricsConfiguration.go +++ b/service/s3/api_op_GetBucketMetricsConfiguration.go @@ -49,7 +49,8 @@ type GetBucketMetricsConfigurationInput struct { // This member is required. Bucket *string - // The ID used to identify the metrics configuration. + // The ID used to identify the metrics configuration. The ID has a 64 character + // limit and can only contain letters, numbers, periods, dashes, and underscores. // // This member is required. Id *string diff --git a/service/s3/api_op_GetBucketNotificationConfiguration.go b/service/s3/api_op_GetBucketNotificationConfiguration.go index 749730dee25..35956ee800e 100644 --- a/service/s3/api_op_GetBucketNotificationConfiguration.go +++ b/service/s3/api_op_GetBucketNotificationConfiguration.go @@ -17,9 +17,15 @@ import ( // element. By default, you must be the bucket owner to read the notification // configuration of a bucket. However, the bucket owner can use a bucket policy to // grant permission to other users to read this configuration with the -// s3:GetBucketNotification permission. For more information about setting and -// reading the notification configuration on a bucket, see Setting Up Notification -// of Bucket Events (https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html) +// s3:GetBucketNotification permission. To use this API operation against an access +// point, provide the alias of the access point in place of the bucket name. To use +// this API operation against an Object Lambda access point, provide the alias of +// the Object Lambda access point in place of the bucket name. If the Object Lambda +// access point alias in a request is not valid, the error code +// InvalidAccessPointAliasError is returned. For more information about +// InvalidAccessPointAliasError , see List of Error Codes (https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#ErrorCodeList) +// . For more information about setting and reading the notification configuration +// on a bucket, see Setting Up Notification of Bucket Events (https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html) // . For more information about bucket policies, see Using Bucket Policies (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html) // . The following action is related to GetBucketNotification : // - PutBucketNotification (https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketNotification.html) @@ -40,7 +46,14 @@ func (c *Client) GetBucketNotificationConfiguration(ctx context.Context, params type GetBucketNotificationConfigurationInput struct { - // The name of the bucket for which to get the notification configuration. + // The name of the bucket for which to get the notification configuration. To use + // this API operation against an access point, provide the alias of the access + // point in place of the bucket name. To use this API operation against an Object + // Lambda access point, provide the alias of the Object Lambda access point in + // place of the bucket name. If the Object Lambda access point alias in a request + // is not valid, the error code InvalidAccessPointAliasError is returned. For more + // information about InvalidAccessPointAliasError , see List of Error Codes (https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#ErrorCodeList) + // . // // This member is required. Bucket *string diff --git a/service/s3/api_op_GetBucketPolicy.go b/service/s3/api_op_GetBucketPolicy.go index f0fa34d151b..4ca448a08ef 100644 --- a/service/s3/api_op_GetBucketPolicy.go +++ b/service/s3/api_op_GetBucketPolicy.go @@ -18,11 +18,21 @@ import ( // If you don't have GetBucketPolicy permissions, Amazon S3 returns a 403 Access // Denied error. If you have the correct permissions, but you're not using an // identity that belongs to the bucket owner's account, Amazon S3 returns a 405 -// Method Not Allowed error. As a security precaution, the root user of the Amazon -// Web Services account that owns a bucket can always use this operation, even if -// the policy explicitly denies the root user the ability to perform this action. -// For more information about bucket policies, see Using Bucket Policies and User -// Policies (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html) +// Method Not Allowed error. To ensure that bucket owners don't inadvertently lock +// themselves out of their own buckets, the root principal in a bucket owner's +// Amazon Web Services account can perform the GetBucketPolicy , PutBucketPolicy , +// and DeleteBucketPolicy API actions, even if their bucket policy explicitly +// denies the root principal's access. Bucket owner root principals can only be +// blocked from performing these API actions by VPC endpoint policies and Amazon +// Web Services Organizations policies. To use this API operation against an access +// point, provide the alias of the access point in place of the bucket name. To use +// this API operation against an Object Lambda access point, provide the alias of +// the Object Lambda access point in place of the bucket name. If the Object Lambda +// access point alias in a request is not valid, the error code +// InvalidAccessPointAliasError is returned. For more information about +// InvalidAccessPointAliasError , see List of Error Codes (https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#ErrorCodeList) +// . For more information about bucket policies, see Using Bucket Policies and +// User Policies (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html) // . The following action is related to GetBucketPolicy : // - GetObject (https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObject.html) func (c *Client) GetBucketPolicy(ctx context.Context, params *GetBucketPolicyInput, optFns ...func(*Options)) (*GetBucketPolicyOutput, error) { @@ -42,7 +52,14 @@ func (c *Client) GetBucketPolicy(ctx context.Context, params *GetBucketPolicyInp type GetBucketPolicyInput struct { - // The bucket name for which to get the bucket policy. + // The bucket name for which to get the bucket policy. To use this API operation + // against an access point, provide the alias of the access point in place of the + // bucket name. To use this API operation against an Object Lambda access point, + // provide the alias of the Object Lambda access point in place of the bucket name. + // If the Object Lambda access point alias in a request is not valid, the error + // code InvalidAccessPointAliasError is returned. For more information about + // InvalidAccessPointAliasError , see List of Error Codes (https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#ErrorCodeList) + // . // // This member is required. Bucket *string diff --git a/service/s3/api_op_GetBucketWebsite.go b/service/s3/api_op_GetBucketWebsite.go index f35b3f7d843..a3e72eb3fe8 100644 --- a/service/s3/api_op_GetBucketWebsite.go +++ b/service/s3/api_op_GetBucketWebsite.go @@ -19,7 +19,7 @@ import ( // the bucket owner can read the bucket website configuration. However, bucket // owners can allow other users to read the website configuration by writing a // bucket policy granting them the S3:GetBucketWebsite permission. The following -// operations are related to DeleteBucketWebsite : +// operations are related to GetBucketWebsite : // - DeleteBucketWebsite (https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucketWebsite.html) // - PutBucketWebsite (https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketWebsite.html) func (c *Client) GetBucketWebsite(ctx context.Context, params *GetBucketWebsiteInput, optFns ...func(*Options)) (*GetBucketWebsiteOutput, error) { diff --git a/service/s3/api_op_GetObject.go b/service/s3/api_op_GetObject.go index c4bf84b6261..76f352074e3 100644 --- a/service/s3/api_op_GetObject.go +++ b/service/s3/api_op_GetObject.go @@ -34,8 +34,8 @@ import ( // Deep Archive storage class, or S3 Intelligent-Tiering Archive or S3 // Intelligent-Tiering Deep Archive tiers, before you can retrieve the object you // must first restore a copy using RestoreObject (https://docs.aws.amazon.com/AmazonS3/latest/API/API_RestoreObject.html) -// . Otherwise, this action returns an InvalidObjectStateError error. For -// information about restoring archived objects, see Restoring Archived Objects (https://docs.aws.amazon.com/AmazonS3/latest/dev/restoring-objects.html) +// . Otherwise, this action returns an InvalidObjectState error. For information +// about restoring archived objects, see Restoring Archived Objects (https://docs.aws.amazon.com/AmazonS3/latest/dev/restoring-objects.html) // . Encryption request headers, like x-amz-server-side-encryption , should not be // sent for GET requests if your object uses server-side encryption with KMS keys // (SSE-KMS) or server-side encryption with Amazon S3–managed encryption keys @@ -66,7 +66,9 @@ import ( // To return a different version, use the versionId subresource. // - If you supply a versionId , you need the s3:GetObjectVersion permission to // access a specific version of an object. If you request a specific version, you -// do not need to have the s3:GetObject permission. +// do not need to have the s3:GetObject permission. If you request the current +// version without a specific version ID, only s3:GetObject permission is +// required. s3:GetObjectVersion permission won't be required. // - If the current version of the object is a delete marker, Amazon S3 behaves // as if the object was deleted and includes x-amz-delete-marker: true in the // response. @@ -93,7 +95,7 @@ import ( // - response-content-disposition // - response-content-encoding // -// Additional Considerations about Request Headers If both of the If-Match and +// Overriding Response Header Values If both of the If-Match and // If-Unmodified-Since headers are present in the request as follows: If-Match // condition evaluates to true , and; If-Unmodified-Since condition evaluates to // false ; then, S3 returns 200 OK and the data requested. If both of the @@ -130,13 +132,13 @@ type GetObjectInput struct { // access point ARNs, see Using access points (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) // in the Amazon S3 User Guide. When using an Object Lambda access point the // hostname takes the form - // AccessPointName-AccountId.s3-object-lambda.Region.amazonaws.com. When using this - // action with Amazon S3 on Outposts, you must direct requests to the S3 on + // AccessPointName-AccountId.s3-object-lambda.Region.amazonaws.com. When you use + // this action with Amazon S3 on Outposts, you must direct requests to the S3 on // Outposts hostname. The S3 on Outposts hostname takes the form - // AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com . When - // using this action with S3 on Outposts through the Amazon Web Services SDKs, you - // provide the Outposts bucket ARN in place of the bucket name. For more - // information about S3 on Outposts ARNs, see Using Amazon S3 on Outposts (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) + // AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com . When you + // use this action with S3 on Outposts through the Amazon Web Services SDKs, you + // provide the Outposts access point ARN in place of the bucket name. For more + // information about S3 on Outposts ARNs, see What is S3 on Outposts (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) // in the Amazon S3 User Guide. // // This member is required. @@ -178,7 +180,7 @@ type GetObjectInput struct { // Downloads the specified range bytes of an object. For more information about // the HTTP Range header, see - // https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35 (https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35) + // https://www.rfc-editor.org/rfc/rfc9110.html#name-range (https://www.rfc-editor.org/rfc/rfc9110.html#name-range) // . Amazon S3 doesn't support retrieving multiple ranges of data per GET request. Range *string @@ -360,12 +362,12 @@ type GetObjectOutput struct { SSECustomerKeyMD5 *string // If present, specifies the ID of the Amazon Web Services Key Management Service - // (Amazon Web Services KMS) symmetric customer managed key that was used for the - // object. + // (Amazon Web Services KMS) symmetric encryption customer managed key that was + // used for the object. SSEKMSKeyId *string // The server-side encryption algorithm used when storing this object in Amazon S3 - // (for example, AES256, aws:kms). + // (for example, AES256, aws:kms ). ServerSideEncryption types.ServerSideEncryption // Provides storage class information of the object. Amazon S3 returns this header diff --git a/service/s3/api_op_GetObjectAcl.go b/service/s3/api_op_GetObjectAcl.go index 66ae71764ff..4461cf0dd86 100644 --- a/service/s3/api_op_GetObjectAcl.go +++ b/service/s3/api_op_GetObjectAcl.go @@ -16,13 +16,13 @@ import ( // must have s3:GetObjectAcl permissions or READ_ACP access to the object. For // more information, see Mapping of ACL permissions and access policy permissions (https://docs.aws.amazon.com/AmazonS3/latest/userguide/acl-overview.html#acl-access-policy-permission-mapping) // in the Amazon S3 User Guide This action is not supported by Amazon S3 on -// Outposts. Versioning By default, GET returns ACL information about the current -// version of an object. To return ACL information about a different version, use -// the versionId subresource. If your bucket uses the bucket owner enforced setting -// for S3 Object Ownership, requests to read ACLs are still supported and return -// the bucket-owner-full-control ACL with the owner being the account that created -// the bucket. For more information, see Controlling object ownership and -// disabling ACLs (https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html) +// Outposts. By default, GET returns ACL information about the current version of +// an object. To return ACL information about a different version, use the +// versionId subresource. If your bucket uses the bucket owner enforced setting for +// S3 Object Ownership, requests to read ACLs are still supported and return the +// bucket-owner-full-control ACL with the owner being the account that created the +// bucket. For more information, see Controlling object ownership and disabling +// ACLs (https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html) // in the Amazon S3 User Guide. The following operations are related to // GetObjectAcl : // - GetObject (https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObject.html) diff --git a/service/s3/api_op_GetObjectAttributes.go b/service/s3/api_op_GetObjectAttributes.go index 72fdb7f1a61..23db9475fb7 100644 --- a/service/s3/api_op_GetObjectAttributes.go +++ b/service/s3/api_op_GetObjectAttributes.go @@ -16,14 +16,12 @@ import ( // Retrieves all the metadata from an object without returning the object itself. // This action is useful if you're interested only in an object's metadata. To use // GetObjectAttributes , you must have READ access to the object. -// GetObjectAttributes combines the functionality of GetObjectAcl , -// GetObjectLegalHold , GetObjectLockConfiguration , GetObjectRetention , -// GetObjectTagging , HeadObject , and ListParts . All of the data returned with -// each of those individual calls can be returned with a single call to -// GetObjectAttributes . If you encrypt an object by using server-side encryption -// with customer-provided encryption keys (SSE-C) when you store the object in -// Amazon S3, then when you retrieve the metadata from the object, you must use the -// following headers: +// GetObjectAttributes combines the functionality of HeadObject and ListParts . All +// of the data returned with each of those individual calls can be returned with a +// single call to GetObjectAttributes . If you encrypt an object by using +// server-side encryption with customer-provided encryption keys (SSE-C) when you +// store the object in Amazon S3, then when you retrieve the metadata from the +// object, you must use the following headers: // - x-amz-server-side-encryption-customer-algorithm // - x-amz-server-side-encryption-customer-key // - x-amz-server-side-encryption-customer-key-MD5 @@ -34,9 +32,9 @@ import ( // - Encryption request headers, such as x-amz-server-side-encryption , should // not be sent for GET requests if your object uses server-side encryption with // Amazon Web Services KMS keys stored in Amazon Web Services Key Management -// Service (SSE-KMS) or server-side encryption with Amazon S3 managed encryption -// keys (SSE-S3). If your object does use these types of keys, you'll get an HTTP -// 400 Bad Request error. +// Service (SSE-KMS) or server-side encryption with Amazon S3 managed keys +// (SSE-S3). If your object does use these types of keys, you'll get an HTTP 400 +// Bad Request error. // - The last modified property in this case is the creation date of the object. // // Consider the following when using request headers: @@ -99,13 +97,13 @@ type GetObjectAttributesInput struct { // action with an access point through the Amazon Web Services SDKs, you provide // the access point ARN in place of the bucket name. For more information about // access point ARNs, see Using access points (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) - // in the Amazon S3 User Guide. When using this action with Amazon S3 on Outposts, - // you must direct requests to the S3 on Outposts hostname. The S3 on Outposts - // hostname takes the form - // AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com . When - // using this action with S3 on Outposts through the Amazon Web Services SDKs, you - // provide the Outposts bucket ARN in place of the bucket name. For more - // information about S3 on Outposts ARNs, see Using Amazon S3 on Outposts (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) + // in the Amazon S3 User Guide. When you use this action with Amazon S3 on + // Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on + // Outposts hostname takes the form + // AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com . When you + // use this action with S3 on Outposts through the Amazon Web Services SDKs, you + // provide the Outposts access point ARN in place of the bucket name. For more + // information about S3 on Outposts ARNs, see What is S3 on Outposts (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) // in the Amazon S3 User Guide. // // This member is required. diff --git a/service/s3/api_op_GetObjectTagging.go b/service/s3/api_op_GetObjectTagging.go index f64a936b781..529fd8e3b39 100644 --- a/service/s3/api_op_GetObjectTagging.go +++ b/service/s3/api_op_GetObjectTagging.go @@ -49,13 +49,13 @@ type GetObjectTaggingInput struct { // action with an access point through the Amazon Web Services SDKs, you provide // the access point ARN in place of the bucket name. For more information about // access point ARNs, see Using access points (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) - // in the Amazon S3 User Guide. When using this action with Amazon S3 on Outposts, - // you must direct requests to the S3 on Outposts hostname. The S3 on Outposts - // hostname takes the form - // AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com . When - // using this action with S3 on Outposts through the Amazon Web Services SDKs, you - // provide the Outposts bucket ARN in place of the bucket name. For more - // information about S3 on Outposts ARNs, see Using Amazon S3 on Outposts (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) + // in the Amazon S3 User Guide. When you use this action with Amazon S3 on + // Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on + // Outposts hostname takes the form + // AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com . When you + // use this action with S3 on Outposts through the Amazon Web Services SDKs, you + // provide the Outposts access point ARN in place of the bucket name. For more + // information about S3 on Outposts ARNs, see What is S3 on Outposts (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) // in the Amazon S3 User Guide. // // This member is required. diff --git a/service/s3/api_op_GetObjectTorrent.go b/service/s3/api_op_GetObjectTorrent.go index e2549fa7e4e..1073f6e34ba 100644 --- a/service/s3/api_op_GetObjectTorrent.go +++ b/service/s3/api_op_GetObjectTorrent.go @@ -14,13 +14,11 @@ import ( ) // Returns torrent files from a bucket. BitTorrent can save you bandwidth when -// you're distributing large files. For more information about BitTorrent, see -// Using BitTorrent with Amazon S3 (https://docs.aws.amazon.com/AmazonS3/latest/dev/S3Torrent.html) -// . You can get torrent only for objects that are less than 5 GB in size, and that -// are not encrypted using server-side encryption with a customer-provided -// encryption key. To use GET, you must have READ access to the object. This action -// is not supported by Amazon S3 on Outposts. The following action is related to -// GetObjectTorrent : +// you're distributing large files. You can get torrent only for objects that are +// less than 5 GB in size, and that are not encrypted using server-side encryption +// with a customer-provided encryption key. To use GET, you must have READ access +// to the object. This action is not supported by Amazon S3 on Outposts. The +// following action is related to GetObjectTorrent : // - GetObject (https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObject.html) func (c *Client) GetObjectTorrent(ctx context.Context, params *GetObjectTorrentInput, optFns ...func(*Options)) (*GetObjectTorrentOutput, error) { if params == nil { diff --git a/service/s3/api_op_HeadBucket.go b/service/s3/api_op_HeadBucket.go index d98c1ca1199..b99fd8ba020 100644 --- a/service/s3/api_op_HeadBucket.go +++ b/service/s3/api_op_HeadBucket.go @@ -20,21 +20,26 @@ import ( // This action is useful to determine if a bucket exists and you have permission // to access it. The action returns a 200 OK if the bucket exists and you have // permission to access it. If the bucket does not exist or you do not have -// permission to access it, the HEAD request returns a generic 404 Not Found or -// 403 Forbidden code. A message body is not included, so you cannot determine the -// exception beyond these error codes. To use this operation, you must have -// permissions to perform the s3:ListBucket action. The bucket owner has this -// permission by default and can grant this permission to others. For more +// permission to access it, the HEAD request returns a generic 400 Bad Request , +// 403 Forbidden or 404 Not Found code. A message body is not included, so you +// cannot determine the exception beyond these error codes. To use this operation, +// you must have permissions to perform the s3:ListBucket action. The bucket owner +// has this permission by default and can grant this permission to others. For more // information about permissions, see Permissions Related to Bucket Subresource // Operations (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) // and Managing Access Permissions to Your Amazon S3 Resources (https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html) -// . To use this API against an access point, you must provide the alias of the -// access point in place of the bucket name or specify the access point ARN. When -// using the access point ARN, you must direct requests to the access point +// . To use this API operation against an access point, you must provide the alias +// of the access point in place of the bucket name or specify the access point ARN. +// When using the access point ARN, you must direct requests to the access point // hostname. The access point hostname takes the form // AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using the // Amazon Web Services SDKs, you provide the ARN in place of the bucket name. For -// more information see, Using access points (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) +// more information, see Using access points (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) +// . To use this API operation against an Object Lambda access point, provide the +// alias of the Object Lambda access point in place of the bucket name. If the +// Object Lambda access point alias in a request is not valid, the error code +// InvalidAccessPointAliasError is returned. For more information about +// InvalidAccessPointAliasError , see List of Error Codes (https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#ErrorCodeList) // . func (c *Client) HeadBucket(ctx context.Context, params *HeadBucketInput, optFns ...func(*Options)) (*HeadBucketOutput, error) { if params == nil { @@ -59,13 +64,17 @@ type HeadBucketInput struct { // action with an access point through the Amazon Web Services SDKs, you provide // the access point ARN in place of the bucket name. For more information about // access point ARNs, see Using access points (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) - // in the Amazon S3 User Guide. When using this action with Amazon S3 on Outposts, - // you must direct requests to the S3 on Outposts hostname. The S3 on Outposts - // hostname takes the form - // AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com . When - // using this action with S3 on Outposts through the Amazon Web Services SDKs, you - // provide the Outposts bucket ARN in place of the bucket name. For more - // information about S3 on Outposts ARNs, see Using Amazon S3 on Outposts (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) + // in the Amazon S3 User Guide. When you use this action with an Object Lambda + // access point, provide the alias of the Object Lambda access point in place of + // the bucket name. If the Object Lambda access point alias in a request is not + // valid, the error code InvalidAccessPointAliasError is returned. For more + // information about InvalidAccessPointAliasError , see List of Error Codes (https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#ErrorCodeList) + // . When you use this action with Amazon S3 on Outposts, you must direct requests + // to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form + // AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com . When you + // use this action with S3 on Outposts through the Amazon Web Services SDKs, you + // provide the Outposts access point ARN in place of the bucket name. For more + // information about S3 on Outposts ARNs, see What is S3 on Outposts (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) // in the Amazon S3 User Guide. // // This member is required. diff --git a/service/s3/api_op_HeadObject.go b/service/s3/api_op_HeadObject.go index d63731c464a..0ac66893b49 100644 --- a/service/s3/api_op_HeadObject.go +++ b/service/s3/api_op_HeadObject.go @@ -23,12 +23,12 @@ import ( // To use HEAD, you must have READ access to the object. A HEAD request has the // same options as a GET action on an object. The response is identical to the GET // response except that there is no response body. Because of this, if the HEAD -// request generates an error, it returns a generic 404 Not Found or 403 Forbidden -// code. It is not possible to retrieve the exact exception beyond these error -// codes. If you encrypt an object by using server-side encryption with -// customer-provided encryption keys (SSE-C) when you store the object in Amazon -// S3, then when you retrieve the metadata from the object, you must use the -// following headers: +// request generates an error, it returns a generic 400 Bad Request , 403 Forbidden +// or 404 Not Found code. It is not possible to retrieve the exact exception +// beyond these error codes. If you encrypt an object by using server-side +// encryption with customer-provided encryption keys (SSE-C) when you store the +// object in Amazon S3, then when you retrieve the metadata from the object, you +// must use the following headers: // - x-amz-server-side-encryption-customer-algorithm // - x-amz-server-side-encryption-customer-key // - x-amz-server-side-encryption-customer-key-MD5 @@ -59,9 +59,10 @@ import ( // // For more information about conditional requests, see RFC 7232 (https://tools.ietf.org/html/rfc7232) // . Permissions You need the relevant read object (or version) permission for this -// operation. For more information, see Specifying Permissions in a Policy (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html) -// . If the object you request does not exist, the error Amazon S3 returns depends -// on whether you also have the s3:ListBucket permission. +// operation. For more information, see Actions, resources, and condition keys for +// Amazon S3 (https://docs.aws.amazon.com/AmazonS3/latest/dev/list_amazons3.html) . +// If the object you request does not exist, the error Amazon S3 returns depends on +// whether you also have the s3:ListBucket permission. // - If you have the s3:ListBucket permission on the bucket, Amazon S3 returns an // HTTP status code 404 ("no such key") error. // - If you don’t have the s3:ListBucket permission, Amazon S3 returns an HTTP @@ -94,13 +95,13 @@ type HeadObjectInput struct { // action with an access point through the Amazon Web Services SDKs, you provide // the access point ARN in place of the bucket name. For more information about // access point ARNs, see Using access points (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) - // in the Amazon S3 User Guide. When using this action with Amazon S3 on Outposts, - // you must direct requests to the S3 on Outposts hostname. The S3 on Outposts - // hostname takes the form - // AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com . When - // using this action with S3 on Outposts through the Amazon Web Services SDKs, you - // provide the Outposts bucket ARN in place of the bucket name. For more - // information about S3 on Outposts ARNs, see Using Amazon S3 on Outposts (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) + // in the Amazon S3 User Guide. When you use this action with Amazon S3 on + // Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on + // Outposts hostname takes the form + // AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com . When you + // use this action with S3 on Outposts through the Amazon Web Services SDKs, you + // provide the Outposts access point ARN in place of the bucket name. For more + // information about S3 on Outposts ARNs, see What is S3 on Outposts (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) // in the Amazon S3 User Guide. // // This member is required. @@ -144,8 +145,9 @@ type HeadObjectInput struct { // object. PartNumber int32 - // Because HeadObject returns only the metadata for an object, this parameter has - // no effect. + // HeadObject returns only the metadata for an object. If the Range is + // satisfiable, only the ContentLength is affected in the response. If the Range + // is not satisfiable, S3 returns a 416 - Requested Range Not Satisfiable error. Range *string // Confirms that the requester knows that they will be charged for the request. @@ -345,14 +347,12 @@ type HeadObjectOutput struct { SSECustomerKeyMD5 *string // If present, specifies the ID of the Amazon Web Services Key Management Service - // (Amazon Web Services KMS) symmetric customer managed key that was used for the - // object. + // (Amazon Web Services KMS) symmetric encryption customer managed key that was + // used for the object. SSEKMSKeyId *string - // If the object is stored using server-side encryption either with an Amazon Web - // Services KMS key or an Amazon S3-managed encryption key, the response includes - // this header with the value of the server-side encryption algorithm used when - // storing this object in Amazon S3 (for example, AES256, aws:kms). + // The server-side encryption algorithm used when storing this object in Amazon S3 + // (for example, AES256, aws:kms ). ServerSideEncryption types.ServerSideEncryption // Provides storage class information of the object. Amazon S3 returns this header diff --git a/service/s3/api_op_ListBuckets.go b/service/s3/api_op_ListBuckets.go index 13f1a9fde50..ca67afc1fcd 100644 --- a/service/s3/api_op_ListBuckets.go +++ b/service/s3/api_op_ListBuckets.go @@ -13,7 +13,10 @@ import ( ) // Returns a list of all buckets owned by the authenticated sender of the request. -// To use this operation, you must have the s3:ListAllMyBuckets permission. +// To use this operation, you must have the s3:ListAllMyBuckets permission. For +// information about Amazon S3 buckets, see Creating, configuring, and working +// with Amazon S3 buckets (https://docs.aws.amazon.com/AmazonS3/latest/userguide/creating-buckets-s3.html) +// . func (c *Client) ListBuckets(ctx context.Context, params *ListBucketsInput, optFns ...func(*Options)) (*ListBucketsOutput, error) { if params == nil { params = &ListBucketsInput{} diff --git a/service/s3/api_op_ListMultipartUploads.go b/service/s3/api_op_ListMultipartUploads.go index 8076568d448..af273ddcae7 100644 --- a/service/s3/api_op_ListMultipartUploads.go +++ b/service/s3/api_op_ListMultipartUploads.go @@ -59,13 +59,13 @@ type ListMultipartUploadsInput struct { // action with an access point through the Amazon Web Services SDKs, you provide // the access point ARN in place of the bucket name. For more information about // access point ARNs, see Using access points (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) - // in the Amazon S3 User Guide. When using this action with Amazon S3 on Outposts, - // you must direct requests to the S3 on Outposts hostname. The S3 on Outposts - // hostname takes the form - // AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com . When - // using this action with S3 on Outposts through the Amazon Web Services SDKs, you - // provide the Outposts bucket ARN in place of the bucket name. For more - // information about S3 on Outposts ARNs, see Using Amazon S3 on Outposts (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) + // in the Amazon S3 User Guide. When you use this action with Amazon S3 on + // Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on + // Outposts hostname takes the form + // AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com . When you + // use this action with S3 on Outposts through the Amazon Web Services SDKs, you + // provide the Outposts access point ARN in place of the bucket name. For more + // information about S3 on Outposts ARNs, see What is S3 on Outposts (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) // in the Amazon S3 User Guide. // // This member is required. diff --git a/service/s3/api_op_ListObjects.go b/service/s3/api_op_ListObjects.go index ee474823733..01efbbd8a5b 100644 --- a/service/s3/api_op_ListObjects.go +++ b/service/s3/api_op_ListObjects.go @@ -49,13 +49,13 @@ type ListObjectsInput struct { // action with an access point through the Amazon Web Services SDKs, you provide // the access point ARN in place of the bucket name. For more information about // access point ARNs, see Using access points (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) - // in the Amazon S3 User Guide. When using this action with Amazon S3 on Outposts, - // you must direct requests to the S3 on Outposts hostname. The S3 on Outposts - // hostname takes the form - // AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com . When - // using this action with S3 on Outposts through the Amazon Web Services SDKs, you - // provide the Outposts bucket ARN in place of the bucket name. For more - // information about S3 on Outposts ARNs, see Using Amazon S3 on Outposts (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) + // in the Amazon S3 User Guide. When you use this action with Amazon S3 on + // Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on + // Outposts hostname takes the form + // AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com . When you + // use this action with S3 on Outposts through the Amazon Web Services SDKs, you + // provide the Outposts access point ARN in place of the bucket name. For more + // information about S3 on Outposts ARNs, see What is S3 on Outposts (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) // in the Amazon S3 User Guide. // // This member is required. diff --git a/service/s3/api_op_ListObjectsV2.go b/service/s3/api_op_ListObjectsV2.go index f5418bfa023..cd6c75e3578 100644 --- a/service/s3/api_op_ListObjectsV2.go +++ b/service/s3/api_op_ListObjectsV2.go @@ -59,13 +59,13 @@ type ListObjectsV2Input struct { // using this action with an access point through the Amazon Web Services SDKs, you // provide the access point ARN in place of the bucket name. For more information // about access point ARNs, see Using access points (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) - // in the Amazon S3 User Guide. When using this action with Amazon S3 on Outposts, - // you must direct requests to the S3 on Outposts hostname. The S3 on Outposts - // hostname takes the form - // AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com . When - // using this action with S3 on Outposts through the Amazon Web Services SDKs, you - // provide the Outposts bucket ARN in place of the bucket name. For more - // information about S3 on Outposts ARNs, see Using Amazon S3 on Outposts (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) + // in the Amazon S3 User Guide. When you use this action with Amazon S3 on + // Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on + // Outposts hostname takes the form + // AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com . When you + // use this action with S3 on Outposts through the Amazon Web Services SDKs, you + // provide the Outposts access point ARN in place of the bucket name. For more + // information about S3 on Outposts ARNs, see What is S3 on Outposts (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) // in the Amazon S3 User Guide. // // This member is required. @@ -148,8 +148,8 @@ type ListObjectsV2Output struct { IsTruncated bool // KeyCount is the number of keys returned with this request. KeyCount will always - // be less than or equals to MaxKeys field. Say you ask for 50 keys, your result - // will include less than equals 50 keys + // be less than or equal to the MaxKeys field. Say you ask for 50 keys, your + // result will include 50 keys or fewer. KeyCount int32 // Sets the maximum number of keys returned in the response. By default the action @@ -163,13 +163,13 @@ type ListObjectsV2Output struct { // action with an access point through the Amazon Web Services SDKs, you provide // the access point ARN in place of the bucket name. For more information about // access point ARNs, see Using access points (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) - // in the Amazon S3 User Guide. When using this action with Amazon S3 on Outposts, - // you must direct requests to the S3 on Outposts hostname. The S3 on Outposts - // hostname takes the form - // AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com . When - // using this action with S3 on Outposts through the Amazon Web Services SDKs, you - // provide the Outposts bucket ARN in place of the bucket name. For more - // information about S3 on Outposts ARNs, see Using Amazon S3 on Outposts (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) + // in the Amazon S3 User Guide. When you use this action with Amazon S3 on + // Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on + // Outposts hostname takes the form + // AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com . When you + // use this action with S3 on Outposts through the Amazon Web Services SDKs, you + // provide the Outposts access point ARN in place of the bucket name. For more + // information about S3 on Outposts ARNs, see What is S3 on Outposts (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) // in the Amazon S3 User Guide. Name *string diff --git a/service/s3/api_op_ListParts.go b/service/s3/api_op_ListParts.go index bb8148c908b..88c0e650ea1 100644 --- a/service/s3/api_op_ListParts.go +++ b/service/s3/api_op_ListParts.go @@ -60,13 +60,13 @@ type ListPartsInput struct { // action with an access point through the Amazon Web Services SDKs, you provide // the access point ARN in place of the bucket name. For more information about // access point ARNs, see Using access points (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) - // in the Amazon S3 User Guide. When using this action with Amazon S3 on Outposts, - // you must direct requests to the S3 on Outposts hostname. The S3 on Outposts - // hostname takes the form - // AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com . When - // using this action with S3 on Outposts through the Amazon Web Services SDKs, you - // provide the Outposts bucket ARN in place of the bucket name. For more - // information about S3 on Outposts ARNs, see Using Amazon S3 on Outposts (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) + // in the Amazon S3 User Guide. When you use this action with Amazon S3 on + // Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on + // Outposts hostname takes the form + // AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com . When you + // use this action with S3 on Outposts through the Amazon Web Services SDKs, you + // provide the Outposts access point ARN in place of the bucket name. For more + // information about S3 on Outposts ARNs, see What is S3 on Outposts (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) // in the Amazon S3 User Guide. // // This member is required. @@ -129,7 +129,7 @@ type ListPartsOutput struct { // object name in the request, then the response includes this header indicating // when the initiated multipart upload will become eligible for abort operation. // For more information, see Aborting Incomplete Multipart Uploads Using a Bucket - // Lifecycle Policy (https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuoverview.html#mpu-abort-incomplete-mpu-lifecycle-config) + // Lifecycle Configuration (https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuoverview.html#mpu-abort-incomplete-mpu-lifecycle-config) // . The response will also include the x-amz-abort-rule-id header that will // provide the ID of the lifecycle configuration rule that defines this action. AbortDate *time.Time diff --git a/service/s3/api_op_PutBucketAcl.go b/service/s3/api_op_PutBucketAcl.go index 68338d8d044..87aed1330f6 100644 --- a/service/s3/api_op_PutBucketAcl.go +++ b/service/s3/api_op_PutBucketAcl.go @@ -30,8 +30,8 @@ import ( // objects in it. Requests to set ACLs or update ACLs fail and return the // AccessControlListNotSupported error code. Requests to read ACLs are still // supported. For more information, see Controlling object ownership (https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html) -// in the Amazon S3 User Guide. Access Permissions You can set access permissions -// using one of the following methods: +// in the Amazon S3 User Guide. Permissions You can set access permissions using +// one of the following methods: // - Specify a canned ACL with the x-amz-acl request header. Amazon S3 supports a // set of predefined ACLs, known as canned ACLs. Each canned ACL has a predefined // set of grantees and permissions. Specify the canned ACL name as the value of @@ -76,10 +76,10 @@ import ( // - By the person's ID: <>ID<><>GranteesEmail<> DisplayName is optional and // ignored in the request // - By URI: <>http://acs.amazonaws.com/groups/global/AuthenticatedUsers<> -// - By Email address: <>Grantees@email.com<>lt;/Grantee> The grantee is resolved -// to the CanonicalUser and, in a response to a GET Object acl request, appears as -// the CanonicalUser. Using email addresses to specify a grantee is only supported -// in the following Amazon Web Services Regions: +// - By Email address: <>Grantees@email.com<>& The grantee is resolved to the +// CanonicalUser and, in a response to a GET Object acl request, appears as the +// CanonicalUser. Using email addresses to specify a grantee is only supported in +// the following Amazon Web Services Regions: // - US East (N. Virginia) // - US West (N. California) // - US West (Oregon) @@ -91,7 +91,7 @@ import ( // and endpoints, see Regions and Endpoints (https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region) // in the Amazon Web Services General Reference. // -// Related Resources +// The following operations are related to PutBucketAcl : // - CreateBucket (https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateBucket.html) // - DeleteBucket (https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucket.html) // - GetObjectAcl (https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObjectAcl.html) diff --git a/service/s3/api_op_PutBucketAnalyticsConfiguration.go b/service/s3/api_op_PutBucketAnalyticsConfiguration.go index b87ce3b2978..abad4d0cf65 100644 --- a/service/s3/api_op_PutBucketAnalyticsConfiguration.go +++ b/service/s3/api_op_PutBucketAnalyticsConfiguration.go @@ -33,7 +33,7 @@ import ( // information about permissions, see Permissions Related to Bucket Subresource // Operations (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) // and Managing Access Permissions to Your Amazon S3 Resources (https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html) -// . Special Errors +// . PutBucketAnalyticsConfiguration has the following special errors: // - HTTP Error: HTTP 400 Bad Request // - Code: InvalidArgument // - Cause: Invalid argument. @@ -47,7 +47,7 @@ import ( // the s3:PutAnalyticsConfiguration bucket permission to set the configuration on // the bucket. // -// Related Resources +// The following operations are related to PutBucketAnalyticsConfiguration : // - GetBucketAnalyticsConfiguration (https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketAnalyticsConfiguration.html) // - DeleteBucketAnalyticsConfiguration (https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucketAnalyticsConfiguration.html) // - ListBucketAnalyticsConfigurations (https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListBucketAnalyticsConfigurations.html) diff --git a/service/s3/api_op_PutBucketCors.go b/service/s3/api_op_PutBucketCors.go index a7c03fafd56..fd392a49e80 100644 --- a/service/s3/api_op_PutBucketCors.go +++ b/service/s3/api_op_PutBucketCors.go @@ -36,7 +36,8 @@ import ( // of a pre-flight request must match an AllowedHeader element. // // For more information about CORS, go to Enabling Cross-Origin Resource Sharing (https://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html) -// in the Amazon S3 User Guide. Related Resources +// in the Amazon S3 User Guide. The following operations are related to +// PutBucketCors : // - GetBucketCors (https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketCors.html) // - DeleteBucketCors (https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucketCors.html) // - RESTOPTIONSobject (https://docs.aws.amazon.com/AmazonS3/latest/API/RESTOPTIONSobject.html) diff --git a/service/s3/api_op_PutBucketEncryption.go b/service/s3/api_op_PutBucketEncryption.go index 50af8be22ee..26aa8eabc78 100644 --- a/service/s3/api_op_PutBucketEncryption.go +++ b/service/s3/api_op_PutBucketEncryption.go @@ -14,14 +14,13 @@ import ( ) // This action uses the encryption subresource to configure default encryption and -// Amazon S3 Bucket Key for an existing bucket. Default encryption for a bucket can -// use server-side encryption with Amazon S3-managed keys (SSE-S3) or customer -// managed keys (SSE-KMS). If you specify default encryption using SSE-KMS, you can -// also configure Amazon S3 Bucket Key. When the default encryption is SSE-KMS, if -// you upload an object to the bucket and do not specify the KMS key to use for -// encryption, Amazon S3 uses the default Amazon Web Services managed KMS key for -// your account. For information about default encryption, see Amazon S3 default -// bucket encryption (https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-encryption.html) +// Amazon S3 Bucket Keys for an existing bucket. By default, all buckets have a +// default encryption configuration that uses server-side encryption with Amazon S3 +// managed keys (SSE-S3). You can optionally configure default encryption for a +// bucket by using server-side encryption with an Amazon Web Services KMS key +// (SSE-KMS) or a customer-provided key (SSE-C). If you specify default encryption +// by using SSE-KMS, you can also configure Amazon S3 Bucket Keys. For information +// about bucket default encryption, see Amazon S3 bucket default encryption (https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-encryption.html) // in the Amazon S3 User Guide. For more information about S3 Bucket Keys, see // Amazon S3 Bucket Keys (https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-key.html) // in the Amazon S3 User Guide. This action requires Amazon Web Services Signature @@ -33,7 +32,8 @@ import ( // information about permissions, see Permissions Related to Bucket Subresource // Operations (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) // and Managing Access Permissions to Your Amazon S3 Resources (https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html) -// in the Amazon S3 User Guide. Related Resources +// in the Amazon S3 User Guide. The following operations are related to +// PutBucketEncryption : // - GetBucketEncryption (https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketEncryption.html) // - DeleteBucketEncryption (https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucketEncryption.html) func (c *Client) PutBucketEncryption(ctx context.Context, params *PutBucketEncryptionInput, optFns ...func(*Options)) (*PutBucketEncryptionOutput, error) { @@ -54,9 +54,12 @@ func (c *Client) PutBucketEncryption(ctx context.Context, params *PutBucketEncry type PutBucketEncryptionInput struct { // Specifies default encryption for a bucket using server-side encryption with - // Amazon S3-managed keys (SSE-S3) or customer managed keys (SSE-KMS). For - // information about the Amazon S3 default encryption feature, see Amazon S3 - // Default Bucket Encryption (https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-encryption.html) + // different key options. By default, all buckets have a default encryption + // configuration that uses server-side encryption with Amazon S3 managed keys + // (SSE-S3). You can optionally configure default encryption for a bucket by using + // server-side encryption with an Amazon Web Services KMS key (SSE-KMS) or a + // customer-provided key (SSE-C). For information about the bucket default + // encryption feature, see Amazon S3 Bucket Default Encryption (https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-encryption.html) // in the Amazon S3 User Guide. // // This member is required. diff --git a/service/s3/api_op_PutBucketIntelligentTieringConfiguration.go b/service/s3/api_op_PutBucketIntelligentTieringConfiguration.go index a5462b58c05..ffa76a7e2f5 100644 --- a/service/s3/api_op_PutBucketIntelligentTieringConfiguration.go +++ b/service/s3/api_op_PutBucketIntelligentTieringConfiguration.go @@ -34,19 +34,14 @@ import ( // // You only need S3 Intelligent-Tiering enabled on a bucket if you want to // automatically move objects stored in the S3 Intelligent-Tiering storage class to -// the Archive Access or Deep Archive Access tier. Special Errors -// - HTTP 400 Bad Request Error -// - Code: InvalidArgument -// - Cause: Invalid Argument -// - HTTP 400 Bad Request Error -// - Code: TooManyConfigurations -// - Cause: You are attempting to create a new configuration but have already -// reached the 1,000-configuration limit. -// - HTTP 403 Forbidden Error -// - Code: AccessDenied -// - Cause: You are not the owner of the specified bucket, or you do not have -// the s3:PutIntelligentTieringConfiguration bucket permission to set the -// configuration on the bucket. +// the Archive Access or Deep Archive Access tier. +// PutBucketIntelligentTieringConfiguration has the following special errors: HTTP +// 400 Bad Request Error Code: InvalidArgument Cause: Invalid Argument HTTP 400 Bad +// Request Error Code: TooManyConfigurations Cause: You are attempting to create a +// new configuration but have already reached the 1,000-configuration limit. HTTP +// 403 Forbidden Error Cause: You are not the owner of the specified bucket, or you +// do not have the s3:PutIntelligentTieringConfiguration bucket permission to set +// the configuration on the bucket. func (c *Client) PutBucketIntelligentTieringConfiguration(ctx context.Context, params *PutBucketIntelligentTieringConfigurationInput, optFns ...func(*Options)) (*PutBucketIntelligentTieringConfigurationOutput, error) { if params == nil { params = &PutBucketIntelligentTieringConfigurationInput{} diff --git a/service/s3/api_op_PutBucketInventoryConfiguration.go b/service/s3/api_op_PutBucketInventoryConfiguration.go index 96ca9dc6667..77bf46f1206 100644 --- a/service/s3/api_op_PutBucketInventoryConfiguration.go +++ b/service/s3/api_op_PutBucketInventoryConfiguration.go @@ -29,26 +29,28 @@ import ( // bucket to grant permissions to Amazon S3 to write objects to the bucket in the // defined location. For an example policy, see Granting Permissions for Amazon S3 // Inventory and Storage Class Analysis (https://docs.aws.amazon.com/AmazonS3/latest/dev/example-bucket-policies.html#example-bucket-policies-use-case-9) -// . To use this operation, you must have permissions to perform the +// . Permissions To use this operation, you must have permission to perform the // s3:PutInventoryConfiguration action. The bucket owner has this permission by -// default and can grant this permission to others. For more information about -// permissions, see Permissions Related to Bucket Subresource Operations (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) -// and Managing Access Permissions to Your Amazon S3 Resources (https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html) -// in the Amazon S3 User Guide. Special Errors -// - HTTP 400 Bad Request Error -// - Code: InvalidArgument -// - Cause: Invalid Argument -// - HTTP 400 Bad Request Error -// - Code: TooManyConfigurations -// - Cause: You are attempting to create a new configuration but have already -// reached the 1,000-configuration limit. -// - HTTP 403 Forbidden Error -// - Code: AccessDenied -// - Cause: You are not the owner of the specified bucket, or you do not have -// the s3:PutInventoryConfiguration bucket permission to set the configuration on -// the bucket. -// -// Related Resources +// default and can grant this permission to others. The +// s3:PutInventoryConfiguration permission allows a user to create an S3 Inventory (https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage-inventory.html) +// report that includes all object metadata fields available and to specify the +// destination bucket to store the inventory. A user with read access to objects in +// the destination bucket can also access all object metadata fields that are +// available in the inventory report. To restrict access to an inventory report, +// see Restricting access to an Amazon S3 Inventory report (https://docs.aws.amazon.com/AmazonS3/latest/userguide/example-bucket-policies.html#example-bucket-policies-use-case-10) +// in the Amazon S3 User Guide. For more information about the metadata fields +// available in S3 Inventory, see Amazon S3 Inventory lists (https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage-inventory.html#storage-inventory-contents) +// in the Amazon S3 User Guide. For more information about permissions, see +// Permissions related to bucket subresource operations (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) +// and Identity and access management in Amazon S3 (https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html) +// in the Amazon S3 User Guide. PutBucketInventoryConfiguration has the following +// special errors: HTTP 400 Bad Request Error Code: InvalidArgument Cause: Invalid +// Argument HTTP 400 Bad Request Error Code: TooManyConfigurations Cause: You are +// attempting to create a new configuration but have already reached the +// 1,000-configuration limit. HTTP 403 Forbidden Error Cause: You are not the owner +// of the specified bucket, or you do not have the s3:PutInventoryConfiguration +// bucket permission to set the configuration on the bucket. The following +// operations are related to PutBucketInventoryConfiguration : // - GetBucketInventoryConfiguration (https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketInventoryConfiguration.html) // - DeleteBucketInventoryConfiguration (https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucketInventoryConfiguration.html) // - ListBucketInventoryConfigurations (https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListBucketInventoryConfigurations.html) diff --git a/service/s3/api_op_PutBucketLifecycleConfiguration.go b/service/s3/api_op_PutBucketLifecycleConfiguration.go index 1d0045936fe..cb4bbeb7ac0 100644 --- a/service/s3/api_op_PutBucketLifecycleConfiguration.go +++ b/service/s3/api_op_PutBucketLifecycleConfiguration.go @@ -59,7 +59,7 @@ import ( // // For more information about permissions, see Managing Access Permissions to Your // Amazon S3 Resources (https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html) -// . The following are related to PutBucketLifecycleConfiguration : +// . The following operations are related to PutBucketLifecycleConfiguration : // - Examples of Lifecycle Configuration (https://docs.aws.amazon.com/AmazonS3/latest/dev/lifecycle-configuration-examples.html) // - GetBucketLifecycleConfiguration (https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketLifecycleConfiguration.html) // - DeleteBucketLifecycle (https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucketLifecycle.html) diff --git a/service/s3/api_op_PutBucketMetricsConfiguration.go b/service/s3/api_op_PutBucketMetricsConfiguration.go index 7f729f54c28..aec2ed9de2c 100644 --- a/service/s3/api_op_PutBucketMetricsConfiguration.go +++ b/service/s3/api_op_PutBucketMetricsConfiguration.go @@ -56,7 +56,8 @@ type PutBucketMetricsConfigurationInput struct { // This member is required. Bucket *string - // The ID used to identify the metrics configuration. + // The ID used to identify the metrics configuration. The ID has a 64 character + // limit and can only contain letters, numbers, periods, dashes, and underscores. // // This member is required. Id *string diff --git a/service/s3/api_op_PutBucketNotificationConfiguration.go b/service/s3/api_op_PutBucketNotificationConfiguration.go index f281b20d6fb..632c276afff 100644 --- a/service/s3/api_op_PutBucketNotificationConfiguration.go +++ b/service/s3/api_op_PutBucketNotificationConfiguration.go @@ -39,8 +39,8 @@ import ( // topic, SQS queue, and Lambda function configurations. When you send a PUT // request with this configuration, Amazon S3 sends test messages to your SNS // topic. If the message fails, the entire PUT action will fail, and Amazon S3 will -// not add the configuration to your bucket. Responses If the configuration in the -// request body includes only one TopicConfiguration specifying only the +// not add the configuration to your bucket. If the configuration in the request +// body includes only one TopicConfiguration specifying only the // s3:ReducedRedundancyLostObject event type, the response will also include the // x-amz-sns-test-message-id header containing the message ID of the test // notification sent to the topic. The following action is related to diff --git a/service/s3/api_op_PutBucketPolicy.go b/service/s3/api_op_PutBucketPolicy.go index 00f987a00d4..4ef087e8abb 100644 --- a/service/s3/api_op_PutBucketPolicy.go +++ b/service/s3/api_op_PutBucketPolicy.go @@ -20,10 +20,14 @@ import ( // this operation. If you don't have PutBucketPolicy permissions, Amazon S3 // returns a 403 Access Denied error. If you have the correct permissions, but // you're not using an identity that belongs to the bucket owner's account, Amazon -// S3 returns a 405 Method Not Allowed error. As a security precaution, the root -// user of the Amazon Web Services account that owns a bucket can always use this -// operation, even if the policy explicitly denies the root user the ability to -// perform this action. For more information, see Bucket policy examples (https://docs.aws.amazon.com/AmazonS3/latest/userguide/example-bucket-policies.html) +// S3 returns a 405 Method Not Allowed error. To ensure that bucket owners don't +// inadvertently lock themselves out of their own buckets, the root principal in a +// bucket owner's Amazon Web Services account can perform the GetBucketPolicy , +// PutBucketPolicy , and DeleteBucketPolicy API actions, even if their bucket +// policy explicitly denies the root principal's access. Bucket owner root +// principals can only be blocked from performing these API actions by VPC endpoint +// policies and Amazon Web Services Organizations policies. For more information, +// see Bucket policy examples (https://docs.aws.amazon.com/AmazonS3/latest/userguide/example-bucket-policies.html) // . The following operations are related to PutBucketPolicy : // - CreateBucket (https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateBucket.html) // - DeleteBucket (https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucket.html) diff --git a/service/s3/api_op_PutBucketVersioning.go b/service/s3/api_op_PutBucketVersioning.go index 7ea23afbb12..121b3effb6f 100644 --- a/service/s3/api_op_PutBucketVersioning.go +++ b/service/s3/api_op_PutBucketVersioning.go @@ -24,13 +24,13 @@ import ( // Delete in the bucket versioning configuration, you must include the x-amz-mfa // request header and the Status and the MfaDelete request elements in a request // to set the versioning state of the bucket. If you have an object expiration -// lifecycle policy in your non-versioned bucket and you want to maintain the same -// permanent delete behavior when you enable versioning, you must add a noncurrent -// expiration policy. The noncurrent expiration lifecycle policy will manage the -// deletes of the noncurrent object versions in the version-enabled bucket. (A -// version-enabled bucket maintains one current and zero or more noncurrent object -// versions.) For more information, see Lifecycle and Versioning (https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html#lifecycle-and-other-bucket-config) -// . Related Resources +// lifecycle configuration in your non-versioned bucket and you want to maintain +// the same permanent delete behavior when you enable versioning, you must add a +// noncurrent expiration policy. The noncurrent expiration lifecycle configuration +// will manage the deletes of the noncurrent object versions in the version-enabled +// bucket. (A version-enabled bucket maintains one current and zero or more +// noncurrent object versions.) For more information, see Lifecycle and Versioning (https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html#lifecycle-and-other-bucket-config) +// . The following operations are related to PutBucketVersioning : // - CreateBucket (https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateBucket.html) // - DeleteBucket (https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucket.html) // - GetBucketVersioning (https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketVersioning.html) diff --git a/service/s3/api_op_PutObject.go b/service/s3/api_op_PutObject.go index 6721fe867fc..afa810f13c0 100644 --- a/service/s3/api_op_PutObject.go +++ b/service/s3/api_op_PutObject.go @@ -18,39 +18,42 @@ import ( // Adds an object to a bucket. You must have WRITE permissions on a bucket to add // an object to it. Amazon S3 never adds partial objects; if you receive a success -// response, Amazon S3 added the entire object to the bucket. Amazon S3 is a -// distributed system. If it receives multiple write requests for the same object -// simultaneously, it overwrites all but the last object written. Amazon S3 does -// not provide object locking; if you need this, make sure to build it into your -// application layer or use versioning instead. To ensure that data is not -// corrupted traversing the network, use the Content-MD5 header. When you use this -// header, Amazon S3 checks the object against the provided MD5 value and, if they -// do not match, returns an error. Additionally, you can calculate the MD5 while -// putting an object to Amazon S3 and compare the returned ETag to the calculated -// MD5 value. +// response, Amazon S3 added the entire object to the bucket. You cannot use +// PutObject to only update a single piece of metadata for an existing object. You +// must put the entire object with updated metadata if you want to update some +// values. Amazon S3 is a distributed system. If it receives multiple write +// requests for the same object simultaneously, it overwrites all but the last +// object written. To prevent objects from being deleted or overwritten, you can +// use Amazon S3 Object Lock (https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-lock.html) +// . To ensure that data is not corrupted traversing the network, use the +// Content-MD5 header. When you use this header, Amazon S3 checks the object +// against the provided MD5 value and, if they do not match, returns an error. +// Additionally, you can calculate the MD5 while putting an object to Amazon S3 and +// compare the returned ETag to the calculated MD5 value. // - To successfully complete the PutObject request, you must have the // s3:PutObject in your IAM permissions. // - To successfully change the objects acl of your PutObject request, you must // have the s3:PutObjectAcl in your IAM permissions. +// - To successfully set the tag-set with your PutObject request, you must have +// the s3:PutObjectTagging in your IAM permissions. // - The Content-MD5 header is required for any request to upload an object with // a retention period configured using Amazon S3 Object Lock. For more information // about Amazon S3 Object Lock, see Amazon S3 Object Lock Overview (https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock-overview.html) // in the Amazon S3 User Guide. // -// Server-side Encryption You can optionally request server-side encryption. With -// server-side encryption, Amazon S3 encrypts your data as it writes it to disks in -// its data centers and decrypts the data when you access it. You have the option -// to provide your own encryption key or use Amazon Web Services managed encryption -// keys (SSE-S3 or SSE-KMS). For more information, see Using Server-Side Encryption (https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingServerSideEncryption.html) -// . If you request server-side encryption using Amazon Web Services Key Management -// Service (SSE-KMS), you can enable an S3 Bucket Key at the object-level. For more -// information, see Amazon S3 Bucket Keys (https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-key.html) -// in the Amazon S3 User Guide. Access Control List (ACL)-Specific Request Headers -// You can use headers to grant ACL- based permissions. By default, all objects are -// private. Only the owner has full access control. When adding a new object, you -// can grant permissions to individual Amazon Web Services accounts or to -// predefined groups defined by Amazon S3. These permissions are then added to the -// ACL on the object. For more information, see Access Control List (ACL) Overview (https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html) +// You have three mutually exclusive options to protect data using server-side +// encryption in Amazon S3, depending on how you choose to manage the encryption +// keys. Specifically, the encryption key options are Amazon S3 managed keys +// (SSE-S3), Amazon Web Services KMS keys (SSE-KMS), and customer-provided keys +// (SSE-C). Amazon S3 encrypts data with server-side encryption by using Amazon S3 +// managed keys (SSE-S3) by default. You can optionally tell Amazon S3 to encrypt +// data at by rest using server-side encryption with other key options. For more +// information, see Using Server-Side Encryption (https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingServerSideEncryption.html) +// . When adding a new object, you can use headers to grant ACL-based permissions +// to individual Amazon Web Services accounts or to predefined groups defined by +// Amazon S3. These permissions are then added to the ACL on the object. By +// default, all objects are private. Only the owner has full access control. For +// more information, see Access Control List (ACL) Overview (https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html) // and Managing ACLs Using the REST API (https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-using-rest-api.html) // . If the bucket that you're uploading objects to uses the bucket owner enforced // setting for S3 Object Ownership, ACLs are disabled and no longer affect @@ -63,21 +66,20 @@ import ( // see Controlling ownership of objects and disabling ACLs (https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html) // in the Amazon S3 User Guide. If your bucket uses the bucket owner enforced // setting for Object Ownership, all objects written to the bucket by any account -// will be owned by the bucket owner. Storage Class Options By default, Amazon S3 -// uses the STANDARD Storage Class to store newly created objects. The STANDARD -// storage class provides high durability and high availability. Depending on -// performance needs, you can specify a different Storage Class. Amazon S3 on -// Outposts only uses the OUTPOSTS Storage Class. For more information, see -// Storage Classes (https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html) -// in the Amazon S3 User Guide. Versioning If you enable versioning for a bucket, -// Amazon S3 automatically generates a unique version ID for the object being -// stored. Amazon S3 returns this ID in the response. When you enable versioning -// for a bucket, if Amazon S3 receives multiple write requests for the same object -// simultaneously, it stores all of the objects. For more information about -// versioning, see Adding Objects to Versioning Enabled Buckets (https://docs.aws.amazon.com/AmazonS3/latest/dev/AddingObjectstoVersioningEnabledBuckets.html) +// will be owned by the bucket owner. By default, Amazon S3 uses the STANDARD +// Storage Class to store newly created objects. The STANDARD storage class +// provides high durability and high availability. Depending on performance needs, +// you can specify a different Storage Class. Amazon S3 on Outposts only uses the +// OUTPOSTS Storage Class. For more information, see Storage Classes (https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html) +// in the Amazon S3 User Guide. If you enable versioning for a bucket, Amazon S3 +// automatically generates a unique version ID for the object being stored. Amazon +// S3 returns this ID in the response. When you enable versioning for a bucket, if +// Amazon S3 receives multiple write requests for the same object simultaneously, +// it stores all of the objects. For more information about versioning, see Adding +// Objects to Versioning-Enabled Buckets (https://docs.aws.amazon.com/AmazonS3/latest/dev/AddingObjectstoVersioningEnabledBuckets.html) // . For information about returning the versioning state of a bucket, see // GetBucketVersioning (https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketVersioning.html) -// . Related Resources +// . For more information about related Amazon S3 APIs, see the following: // - CopyObject (https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html) // - DeleteObject (https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteObject.html) func (c *Client) PutObject(ctx context.Context, params *PutObjectInput, optFns ...func(*Options)) (*PutObjectOutput, error) { @@ -104,13 +106,13 @@ type PutObjectInput struct { // action with an access point through the Amazon Web Services SDKs, you provide // the access point ARN in place of the bucket name. For more information about // access point ARNs, see Using access points (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) - // in the Amazon S3 User Guide. When using this action with Amazon S3 on Outposts, - // you must direct requests to the S3 on Outposts hostname. The S3 on Outposts - // hostname takes the form - // AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com . When - // using this action with S3 on Outposts through the Amazon Web Services SDKs, you - // provide the Outposts bucket ARN in place of the bucket name. For more - // information about S3 on Outposts ARNs, see Using Amazon S3 on Outposts (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) + // in the Amazon S3 User Guide. When you use this action with Amazon S3 on + // Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on + // Outposts hostname takes the form + // AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com . When you + // use this action with S3 on Outposts through the Amazon Web Services SDKs, you + // provide the Outposts access point ARN in place of the bucket name. For more + // information about S3 on Outposts ARNs, see What is S3 on Outposts (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) // in the Amazon S3 User Guide. // // This member is required. @@ -179,14 +181,14 @@ type PutObjectInput struct { ChecksumSHA256 *string // Specifies presentational information for the object. For more information, see - // http://www.w3.org/Protocols/rfc2616/rfc2616-sec19.html#sec19.5.1 (http://www.w3.org/Protocols/rfc2616/rfc2616-sec19.html#sec19.5.1) + // https://www.rfc-editor.org/rfc/rfc6266#section-4 (https://www.rfc-editor.org/rfc/rfc6266#section-4) // . ContentDisposition *string // 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. For more information, see - // http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.11 (http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.11) + // https://www.rfc-editor.org/rfc/rfc9110.html#field.content-encoding (https://www.rfc-editor.org/rfc/rfc9110.html#field.content-encoding) // . ContentEncoding *string @@ -195,7 +197,7 @@ type PutObjectInput struct { // Size of the body in bytes. This parameter is useful when the size of the body // cannot be determined automatically. For more information, see - // http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.13 (http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.13) + // https://www.rfc-editor.org/rfc/rfc9110.html#name-content-length (https://www.rfc-editor.org/rfc/rfc9110.html#name-content-length) // . ContentLength int64 @@ -209,7 +211,7 @@ type PutObjectInput struct { ContentMD5 *string // A standard MIME type describing the format of the contents. For more - // information, see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17 (http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17) + // information, see https://www.rfc-editor.org/rfc/rfc9110.html#name-content-type (https://www.rfc-editor.org/rfc/rfc9110.html#name-content-type) // . ContentType *string @@ -219,7 +221,7 @@ type PutObjectInput struct { ExpectedBucketOwner *string // The date and time at which the object is no longer cacheable. For more - // information, see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.21 (http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.21) + // information, see https://www.rfc-editor.org/rfc/rfc7234#section-5.3 (https://www.rfc-editor.org/rfc/rfc7234#section-5.3) // . Expires *time.Time @@ -279,12 +281,14 @@ type PutObjectInput struct { // Specifies the Amazon Web Services KMS Encryption Context to use for object // encryption. The value of this header is a base64-encoded UTF-8 string holding - // JSON with the encryption context key-value pairs. + // JSON with the encryption context key-value pairs. This value is stored as object + // metadata and automatically gets passed on to Amazon Web Services KMS for future + // GetObject or CopyObject operations on this object. SSEKMSEncryptionContext *string - // If x-amz-server-side-encryption is present and has the value of aws:kms , this - // header specifies the ID of the Amazon Web Services Key Management Service - // (Amazon Web Services KMS) symmetrical customer managed key that was used for the + // If x-amz-server-side-encryption has a valid value of aws:kms , this header + // specifies the ID of the Amazon Web Services Key Management Service (Amazon Web + // Services KMS) symmetric encryption customer managed key that was used for the // object. If you specify x-amz-server-side-encryption:aws:kms , but do not provide // x-amz-server-side-encryption-aws-kms-key-id , Amazon S3 uses the Amazon Web // Services managed key to protect the data. If the KMS key does not exist in the @@ -292,7 +296,7 @@ type PutObjectInput struct { SSEKMSKeyId *string // The server-side encryption algorithm used when storing this object in Amazon S3 - // (for example, AES256, aws:kms). + // (for example, AES256, aws:kms ). ServerSideEncryption types.ServerSideEncryption // By default, Amazon S3 uses the STANDARD Storage Class to store newly created @@ -384,19 +388,19 @@ type PutObjectOutput struct { // If present, specifies the Amazon Web Services KMS Encryption Context to use for // object encryption. The value of this header is a base64-encoded UTF-8 string - // holding JSON with the encryption context key-value pairs. + // holding JSON with the encryption context key-value pairs. This value is stored + // as object metadata and automatically gets passed on to Amazon Web Services KMS + // for future GetObject or CopyObject operations on this object. SSEKMSEncryptionContext *string - // If x-amz-server-side-encryption is present and has the value of aws:kms , this - // header specifies the ID of the Amazon Web Services Key Management Service - // (Amazon Web Services KMS) symmetric customer managed key that was used for the + // If x-amz-server-side-encryption is has a valid value of aws:kms , this header + // specifies the ID of the Amazon Web Services Key Management Service (Amazon Web + // Services KMS) symmetric encryption customer managed key that was used for the // object. SSEKMSKeyId *string - // If you specified server-side encryption either with an Amazon Web Services KMS - // key or Amazon S3-managed encryption key in your PUT request, the response - // includes this header. It confirms the encryption algorithm that Amazon S3 used - // to encrypt the object. + // The server-side encryption algorithm used when storing this object in Amazon S3 + // (for example, AES256, aws:kms ). ServerSideEncryption types.ServerSideEncryption // Version of the object. diff --git a/service/s3/api_op_PutObjectAcl.go b/service/s3/api_op_PutObjectAcl.go index 9e87f3cee4c..f32ac453efa 100644 --- a/service/s3/api_op_PutObjectAcl.go +++ b/service/s3/api_op_PutObjectAcl.go @@ -29,8 +29,8 @@ import ( // objects in it. Requests to set ACLs or update ACLs fail and return the // AccessControlListNotSupported error code. Requests to read ACLs are still // supported. For more information, see Controlling object ownership (https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html) -// in the Amazon S3 User Guide. Access Permissions You can set access permissions -// using one of the following methods: +// in the Amazon S3 User Guide. Permissions You can set access permissions using +// one of the following methods: // - Specify a canned ACL with the x-amz-acl request header. Amazon S3 supports a // set of predefined ACLs, known as canned ACLs. Each canned ACL has a predefined // set of grantees and permissions. Specify the canned ACL name as the value of @@ -90,7 +90,8 @@ import ( // // Versioning The ACL of an object is set at the object version level. By default, // PUT sets the ACL of the current version of an object. To set the ACL of a -// different version, use the versionId subresource. Related Resources +// different version, use the versionId subresource. The following operations are +// related to PutObjectAcl : // - CopyObject (https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html) // - GetObject (https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObject.html) func (c *Client) PutObjectAcl(ctx context.Context, params *PutObjectAclInput, optFns ...func(*Options)) (*PutObjectAclOutput, error) { @@ -129,13 +130,13 @@ type PutObjectAclInput struct { // action with an access point through the Amazon Web Services SDKs, you provide // the access point ARN in place of the bucket name. For more information about // access point ARNs, see Using access points (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) - // in the Amazon S3 User Guide. When using this action with Amazon S3 on Outposts, - // you must direct requests to the S3 on Outposts hostname. The S3 on Outposts - // hostname takes the form - // AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com . When - // using this action with S3 on Outposts through the Amazon Web Services SDKs, you - // provide the Outposts bucket ARN in place of the bucket name. For more - // information about S3 on Outposts ARNs, see Using Amazon S3 on Outposts (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) + // in the Amazon S3 User Guide. When you use this action with Amazon S3 on + // Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on + // Outposts hostname takes the form + // AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com . When you + // use this action with S3 on Outposts through the Amazon Web Services SDKs, you + // provide the Outposts access point ARN in place of the bucket name. For more + // information about S3 on Outposts ARNs, see What is S3 on Outposts (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) // in the Amazon S3 User Guide. // // This member is required. diff --git a/service/s3/api_op_PutObjectTagging.go b/service/s3/api_op_PutObjectTagging.go index 208e72dbcaf..85387309cf9 100644 --- a/service/s3/api_op_PutObjectTagging.go +++ b/service/s3/api_op_PutObjectTagging.go @@ -27,7 +27,7 @@ import ( // versionId query parameter. You also need permission for the // s3:PutObjectVersionTagging action. For information about the Amazon S3 object // tagging feature, see Object Tagging (https://docs.aws.amazon.com/AmazonS3/latest/dev/object-tagging.html) -// . Special Errors +// . PutObjectTagging has the following special errors: // - Code: InvalidTagError // - Cause: The tag provided was not a valid tag. This error can occur if the // tag did not pass input validation. For more information, see Object Tagging (https://docs.aws.amazon.com/AmazonS3/latest/dev/object-tagging.html) @@ -40,7 +40,7 @@ import ( // - Code: InternalError // - Cause: The service was unable to apply the provided tag to the object. // -// Related Resources +// The following operations are related to PutObjectTagging : // - GetObjectTagging (https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObjectTagging.html) // - DeleteObjectTagging (https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteObjectTagging.html) func (c *Client) PutObjectTagging(ctx context.Context, params *PutObjectTaggingInput, optFns ...func(*Options)) (*PutObjectTaggingOutput, error) { @@ -67,13 +67,13 @@ type PutObjectTaggingInput struct { // action with an access point through the Amazon Web Services SDKs, you provide // the access point ARN in place of the bucket name. For more information about // access point ARNs, see Using access points (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) - // in the Amazon S3 User Guide. When using this action with Amazon S3 on Outposts, - // you must direct requests to the S3 on Outposts hostname. The S3 on Outposts - // hostname takes the form - // AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com . When - // using this action with S3 on Outposts through the Amazon Web Services SDKs, you - // provide the Outposts bucket ARN in place of the bucket name. For more - // information about S3 on Outposts ARNs, see Using Amazon S3 on Outposts (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) + // in the Amazon S3 User Guide. When you use this action with Amazon S3 on + // Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on + // Outposts hostname takes the form + // AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com . When you + // use this action with S3 on Outposts through the Amazon Web Services SDKs, you + // provide the Outposts access point ARN in place of the bucket name. For more + // information about S3 on Outposts ARNs, see What is S3 on Outposts (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) // in the Amazon S3 User Guide. // // This member is required. diff --git a/service/s3/api_op_PutPublicAccessBlock.go b/service/s3/api_op_PutPublicAccessBlock.go index 2ff4462056a..e133a894b22 100644 --- a/service/s3/api_op_PutPublicAccessBlock.go +++ b/service/s3/api_op_PutPublicAccessBlock.go @@ -24,7 +24,7 @@ import ( // account, Amazon S3 uses the most restrictive combination of the bucket-level and // account-level settings. For more information about when Amazon S3 considers a // bucket or an object public, see The Meaning of "Public" (https://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-block-public-access.html#access-control-block-public-access-policy-status) -// . Related Resources +// . The following operations are related to PutPublicAccessBlock : // - GetPublicAccessBlock (https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetPublicAccessBlock.html) // - DeletePublicAccessBlock (https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeletePublicAccessBlock.html) // - GetBucketPolicyStatus (https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketPolicyStatus.html) diff --git a/service/s3/api_op_RestoreObject.go b/service/s3/api_op_RestoreObject.go index 27e7d5a472d..01ad5420cf2 100644 --- a/service/s3/api_op_RestoreObject.go +++ b/service/s3/api_op_RestoreObject.go @@ -19,36 +19,17 @@ import ( // - select - Perform a select query on an archived object // - restore an archive - Restore an archived object // -// To use this operation, you must have permissions to perform the s3:RestoreObject -// action. The bucket owner has this permission by default and can grant this -// permission to others. For more information about permissions, see Permissions -// Related to Bucket Subresource Operations (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) -// and Managing Access Permissions to Your Amazon S3 Resources (https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html) -// in the Amazon S3 User Guide. Querying Archives with Select Requests You use a -// select type of request to perform SQL queries on archived objects. The archived -// objects that are being queried by the select request must be formatted as -// uncompressed comma-separated values (CSV) files. You can run queries and custom -// analytics on your archived data without having to restore your data to a hotter -// Amazon S3 tier. For an overview about select requests, see Querying Archived -// Objects (https://docs.aws.amazon.com/AmazonS3/latest/dev/querying-glacier-archives.html) -// in the Amazon S3 User Guide. When making a select request, do the following: -// - Define an output location for the select query's output. This must be an -// Amazon S3 bucket in the same Amazon Web Services Region as the bucket that -// contains the archive object that is being queried. The Amazon Web Services -// account that initiates the job must have permissions to write to the S3 bucket. -// You can specify the storage class and encryption for the output objects stored -// in the bucket. For more information about output, see Querying Archived -// Objects (https://docs.aws.amazon.com/AmazonS3/latest/dev/querying-glacier-archives.html) -// in the Amazon S3 User Guide. For more information about the S3 structure in -// the request body, see the following: +// For more information about the S3 structure in the request body, see the +// following: // - PutObject (https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutObject.html) // - Managing Access with ACLs (https://docs.aws.amazon.com/AmazonS3/latest/dev/S3_ACLs_UsingACLs.html) // in the Amazon S3 User Guide // - Protecting Data Using Server-Side Encryption (https://docs.aws.amazon.com/AmazonS3/latest/dev/serv-side-encryption.html) // in the Amazon S3 User Guide -// - Define the SQL expression for the SELECT type of restoration for your query -// in the request body's SelectParameters structure. You can use expressions like -// the following examples. +// +// Define the SQL expression for the SELECT type of restoration for your query in +// the request body's SelectParameters structure. You can use expressions like the +// following examples. // - The following expression returns all records from the specified object. // SELECT * FROM Object // - Assuming that you are not using any headers for data stored in the object, @@ -60,10 +41,7 @@ import ( // You cannot mix ordinal positions with header column names. SELECT s.Id, // s.FirstName, s.SSN FROM S3Object s // -// For more information about using SQL with S3 Glacier Select restore, see SQL -// Reference for Amazon S3 Select and S3 Glacier Select (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-glacier-select-sql-reference.html) -// in the Amazon S3 User Guide. When making a select request, you can also do the -// following: +// When making a select request, you can also do the following: // - To expedite your queries, specify the Expedited tier. For more information // about tiers, see "Restoring Archives," later in this topic. // - Specify details about the data serialization format of both the input @@ -71,53 +49,60 @@ import ( // results. // // The following are additional important facts about the select feature: -// // - The output results are new Amazon S3 objects. Unlike archive retrievals, -// they are stored until explicitly deleted-manually or through a lifecycle policy. -// +// they are stored until explicitly deleted-manually or through a lifecycle +// configuration. // - You can issue more than one select request on the same Amazon S3 object. -// Amazon S3 doesn't deduplicate requests, so avoid issuing duplicate requests. -// +// Amazon S3 doesn't duplicate requests, so avoid issuing duplicate requests. // - Amazon S3 accepts a select request even if the object has already been // restored. A select request doesn’t return error response 409 . // -// Restoring objects Objects that you archive to the S3 Glacier or S3 Glacier Deep -// Archive storage class, and S3 Intelligent-Tiering Archive or S3 -// Intelligent-Tiering Deep Archive tiers are not accessible in real time. For -// objects in Archive Access or Deep Archive Access tiers you must first initiate a -// restore request, and then wait until the object is moved into the Frequent -// Access tier. For objects in S3 Glacier or S3 Glacier Deep Archive storage -// classes you must first initiate a restore request, and then wait until a -// temporary copy of the object is available. To access an archived object, you -// must restore the object for the duration (number of days) that you specify. To -// restore a specific object version, you can provide a version ID. If you don't -// provide a version ID, Amazon S3 restores the current version. When restoring an -// archived object (or using a select request), you can specify one of the -// following data access tier options in the Tier element of the request body: +// Permissions To use this operation, you must have permissions to perform the +// s3:RestoreObject action. The bucket owner has this permission by default and can +// grant this permission to others. For more information about permissions, see +// Permissions Related to Bucket Subresource Operations (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources) +// and Managing Access Permissions to Your Amazon S3 Resources (https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html) +// in the Amazon S3 User Guide. Restoring objects Objects that you archive to the +// S3 Glacier Flexible Retrieval or S3 Glacier Deep Archive storage class, and S3 +// Intelligent-Tiering Archive or S3 Intelligent-Tiering Deep Archive tiers, are +// not accessible in real time. For objects in the S3 Glacier Flexible Retrieval or +// S3 Glacier Deep Archive storage classes, you must first initiate a restore +// request, and then wait until a temporary copy of the object is available. If you +// want a permanent copy of the object, create a copy of it in the Amazon S3 +// Standard storage class in your S3 bucket. To access an archived object, you must +// restore the object for the duration (number of days) that you specify. For +// objects in the Archive Access or Deep Archive Access tiers of S3 +// Intelligent-Tiering, you must first initiate a restore request, and then wait +// until the object is moved into the Frequent Access tier. To restore a specific +// object version, you can provide a version ID. If you don't provide a version ID, +// Amazon S3 restores the current version. When restoring an archived object, you +// can specify one of the following data access tier options in the Tier element +// of the request body: // - Expedited - Expedited retrievals allow you to quickly access your data -// stored in the S3 Glacier storage class or S3 Intelligent-Tiering Archive tier -// when occasional urgent requests for a subset of archives are required. For all -// but the largest archived objects (250 MB+), data accessed using Expedited -// retrievals is typically made available within 1–5 minutes. Provisioned capacity -// ensures that retrieval capacity for Expedited retrievals is available when you -// need it. Expedited retrievals and provisioned capacity are not available for -// objects stored in the S3 Glacier Deep Archive storage class or S3 -// Intelligent-Tiering Deep Archive tier. +// stored in the S3 Glacier Flexible Retrieval storage class or S3 +// Intelligent-Tiering Archive tier when occasional urgent requests for restoring +// archives are required. For all but the largest archived objects (250 MB+), data +// accessed using Expedited retrievals is typically made available within 1–5 +// minutes. Provisioned capacity ensures that retrieval capacity for Expedited +// retrievals is available when you need it. Expedited retrievals and provisioned +// capacity are not available for objects stored in the S3 Glacier Deep Archive +// storage class or S3 Intelligent-Tiering Deep Archive tier. // - Standard - Standard retrievals allow you to access any of your archived // objects within several hours. This is the default option for retrieval requests // that do not specify the retrieval option. Standard retrievals typically finish -// within 3–5 hours for objects stored in the S3 Glacier storage class or S3 -// Intelligent-Tiering Archive tier. They typically finish within 12 hours for -// objects stored in the S3 Glacier Deep Archive storage class or S3 +// within 3–5 hours for objects stored in the S3 Glacier Flexible Retrieval storage +// class or S3 Intelligent-Tiering Archive tier. They typically finish within 12 +// hours for objects stored in the S3 Glacier Deep Archive storage class or S3 // Intelligent-Tiering Deep Archive tier. Standard retrievals are free for objects // stored in S3 Intelligent-Tiering. -// - Bulk - Bulk retrievals are the lowest-cost retrieval option in S3 Glacier, -// enabling you to retrieve large amounts, even petabytes, of data inexpensively. -// Bulk retrievals typically finish within 5–12 hours for objects stored in the S3 -// Glacier storage class or S3 Intelligent-Tiering Archive tier. They typically -// finish within 48 hours for objects stored in the S3 Glacier Deep Archive storage -// class or S3 Intelligent-Tiering Deep Archive tier. Bulk retrievals are free for -// objects stored in S3 Intelligent-Tiering. +// - Bulk - Bulk retrievals free for objects stored in the S3 Glacier Flexible +// Retrieval and S3 Intelligent-Tiering storage classes, enabling you to retrieve +// large amounts, even petabytes, of data at no cost. Bulk retrievals typically +// finish within 5–12 hours for objects stored in the S3 Glacier Flexible Retrieval +// storage class or S3 Intelligent-Tiering Archive tier. Bulk retrievals are also +// the lowest-cost retrieval option when restoring objects from S3 Glacier Deep +// Archive. They typically finish within 48 hours for objects stored in the S3 +// Glacier Deep Archive storage class or S3 Intelligent-Tiering Deep Archive tier. // // For more information about archive retrieval options and provisioned capacity // for Expedited data access, see Restoring Archived Objects (https://docs.aws.amazon.com/AmazonS3/latest/dev/restoring-objects.html) @@ -143,30 +128,38 @@ import ( // and Object Lifecycle Management (https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html) // in Amazon S3 User Guide. Responses A successful action returns either the 200 OK // or 202 Accepted status code. +// // - If the object is not previously restored, then Amazon S3 returns 202 // Accepted in the response. +// // - If the object is previously restored, Amazon S3 returns 200 OK in the // response. // -// Special Errors +// - Special errors: +// // - Code: RestoreAlreadyInProgress +// // - Cause: Object restore is already in progress. (This error does not apply to // SELECT type requests.) +// // - HTTP Status Code: 409 Conflict +// // - SOAP Fault Code Prefix: Client +// // - Code: GlacierExpeditedRetrievalNotAvailable +// // - Cause: expedited retrievals are currently not available. Try again later. // (Returned if there is insufficient capacity to process the Expedited request. // This error applies only to Expedited retrievals and not to S3 Standard or Bulk // retrievals.) +// // - HTTP Status Code: 503 +// // - SOAP Fault Code Prefix: N/A // -// Related Resources +// The following operations are related to RestoreObject : // - PutBucketLifecycleConfiguration (https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketLifecycleConfiguration.html) // - GetBucketNotificationConfiguration (https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketNotificationConfiguration.html) -// - SQL Reference for Amazon S3 Select and S3 Glacier Select (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-glacier-select-sql-reference.html) -// in the Amazon S3 User Guide func (c *Client) RestoreObject(ctx context.Context, params *RestoreObjectInput, optFns ...func(*Options)) (*RestoreObjectOutput, error) { if params == nil { params = &RestoreObjectInput{} @@ -191,13 +184,13 @@ type RestoreObjectInput struct { // action with an access point through the Amazon Web Services SDKs, you provide // the access point ARN in place of the bucket name. For more information about // access point ARNs, see Using access points (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) - // in the Amazon S3 User Guide. When using this action with Amazon S3 on Outposts, - // you must direct requests to the S3 on Outposts hostname. The S3 on Outposts - // hostname takes the form - // AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com . When - // using this action with S3 on Outposts through the Amazon Web Services SDKs, you - // provide the Outposts bucket ARN in place of the bucket name. For more - // information about S3 on Outposts ARNs, see Using Amazon S3 on Outposts (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) + // in the Amazon S3 User Guide. When you use this action with Amazon S3 on + // Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on + // Outposts hostname takes the form + // AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com . When you + // use this action with S3 on Outposts through the Amazon Web Services SDKs, you + // provide the Outposts access point ARN in place of the bucket name. For more + // information about S3 on Outposts ARNs, see What is S3 on Outposts (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) // in the Amazon S3 User Guide. // // This member is required. diff --git a/service/s3/api_op_SelectObjectContent.go b/service/s3/api_op_SelectObjectContent.go index 077b23bc3fb..01220796d39 100644 --- a/service/s3/api_op_SelectObjectContent.go +++ b/service/s3/api_op_SelectObjectContent.go @@ -23,8 +23,6 @@ import ( // action is not supported by Amazon S3 on Outposts. For more information about // Amazon S3 Select, see Selecting Content from Objects (https://docs.aws.amazon.com/AmazonS3/latest/dev/selecting-content-from-objects.html) // and SELECT Command (https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-glacier-select-sql-reference-select.html) -// in the Amazon S3 User Guide. For more information about using SQL with Amazon S3 -// Select, see SQL Reference for Amazon S3 Select and S3 Glacier Select (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-glacier-select-sql-reference.html) // in the Amazon S3 User Guide. Permissions You must have s3:GetObject permission // for this operation. Amazon S3 Select does not support anonymous access. For more // information about permissions, see Specifying Permissions in a Policy (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html) @@ -44,10 +42,10 @@ import ( // . For more information about SSE-C, see Server-Side Encryption (Using // Customer-Provided Encryption Keys) (https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html) // in the Amazon S3 User Guide. For objects that are encrypted with Amazon S3 -// managed encryption keys (SSE-S3) and Amazon Web Services KMS keys (SSE-KMS), -// server-side encryption is handled transparently, so you don't need to specify -// anything. For more information about server-side encryption, including SSE-S3 -// and SSE-KMS, see Protecting Data Using Server-Side Encryption (https://docs.aws.amazon.com/AmazonS3/latest/dev/serv-side-encryption.html) +// managed keys (SSE-S3) and Amazon Web Services KMS keys (SSE-KMS), server-side +// encryption is handled transparently, so you don't need to specify anything. For +// more information about server-side encryption, including SSE-S3 and SSE-KMS, see +// Protecting Data Using Server-Side Encryption (https://docs.aws.amazon.com/AmazonS3/latest/dev/serv-side-encryption.html) // in the Amazon S3 User Guide. // // Working with the Response Body Given the response size is unknown, Amazon S3 @@ -68,7 +66,7 @@ import ( // // Special Errors For a list of special errors for this operation, see List of // SELECT Object Content Error Codes (https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#SelectObjectContentErrorCodeList) -// Related Resources +// The following operations are related to SelectObjectContent : // - GetObject (https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObject.html) // - GetBucketLifecycleConfiguration (https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketLifecycleConfiguration.html) // - PutBucketLifecycleConfiguration (https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketLifecycleConfiguration.html) diff --git a/service/s3/api_op_UploadPart.go b/service/s3/api_op_UploadPart.go index ca3f0b0c0f5..5f317e242ca 100644 --- a/service/s3/api_op_UploadPart.go +++ b/service/s3/api_op_UploadPart.go @@ -44,35 +44,43 @@ import ( // Multipart Upload Overview (https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuoverview.html) // in the Amazon S3 User Guide . For information on the permissions required to use // the multipart upload API, go to Multipart Upload and Permissions (https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html) -// in the Amazon S3 User Guide. You can optionally request server-side encryption -// where Amazon S3 encrypts your data as it writes it to disks in its data centers -// and decrypts it for you when you access it. You have the option of providing -// your own encryption key, or you can use the Amazon Web Services managed -// encryption keys. If you choose to provide your own encryption key, the request -// headers you provide in the request must match the headers you used in the -// request to initiate the upload by using CreateMultipartUpload (https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateMultipartUpload.html) +// in the Amazon S3 User Guide. Server-side encryption is for data encryption at +// rest. Amazon S3 encrypts your data as it writes it to disks in its data centers +// and decrypts it when you access it. You have three mutually exclusive options to +// protect data using server-side encryption in Amazon S3, depending on how you +// choose to manage the encryption keys. Specifically, the encryption key options +// are Amazon S3 managed keys (SSE-S3), Amazon Web Services KMS keys (SSE-KMS), and +// Customer-Provided Keys (SSE-C). Amazon S3 encrypts data with server-side +// encryption using Amazon S3 managed keys (SSE-S3) by default. You can optionally +// tell Amazon S3 to encrypt data at rest using server-side encryption with other +// key options. The option you use depends on whether you want to use KMS keys +// (SSE-KMS) or provide your own encryption key (SSE-C). If you choose to provide +// your own encryption key, the request headers you provide in the request must +// match the headers you used in the request to initiate the upload by using +// CreateMultipartUpload (https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateMultipartUpload.html) // . For more information, go to Using Server-Side Encryption (https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingServerSideEncryption.html) // in the Amazon S3 User Guide. Server-side encryption is supported by the S3 // Multipart Upload actions. Unless you are using a customer-provided encryption -// key, you don't need to specify the encryption parameters in each UploadPart -// request. Instead, you only need to specify the server-side encryption parameters -// in the initial Initiate Multipart request. For more information, see +// key (SSE-C), you don't need to specify the encryption parameters in each +// UploadPart request. Instead, you only need to specify the server-side encryption +// parameters in the initial Initiate Multipart request. For more information, see // CreateMultipartUpload (https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateMultipartUpload.html) // . If you requested server-side encryption using a customer-provided encryption -// key in your initiate multipart upload request, you must provide identical -// encryption information in each part upload using the following headers. +// key (SSE-C) in your initiate multipart upload request, you must provide +// identical encryption information in each part upload using the following +// headers. // - x-amz-server-side-encryption-customer-algorithm // - x-amz-server-side-encryption-customer-key // - x-amz-server-side-encryption-customer-key-MD5 // -// Special Errors +// UploadPart has the following special errors: // - Code: NoSuchUpload // - Cause: The specified multipart upload does not exist. The upload ID might // be invalid, or the multipart upload might have been aborted or completed. // - HTTP Status Code: 404 Not Found // - SOAP Fault Code Prefix: Client // -// Related Resources +// The following operations are related to UploadPart : // - CreateMultipartUpload (https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateMultipartUpload.html) // - CompleteMultipartUpload (https://docs.aws.amazon.com/AmazonS3/latest/API/API_CompleteMultipartUpload.html) // - AbortMultipartUpload (https://docs.aws.amazon.com/AmazonS3/latest/API/API_AbortMultipartUpload.html) @@ -102,13 +110,13 @@ type UploadPartInput struct { // action with an access point through the Amazon Web Services SDKs, you provide // the access point ARN in place of the bucket name. For more information about // access point ARNs, see Using access points (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) - // in the Amazon S3 User Guide. When using this action with Amazon S3 on Outposts, - // you must direct requests to the S3 on Outposts hostname. The S3 on Outposts - // hostname takes the form - // AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com . When - // using this action with S3 on Outposts through the Amazon Web Services SDKs, you - // provide the Outposts bucket ARN in place of the bucket name. For more - // information about S3 on Outposts ARNs, see Using Amazon S3 on Outposts (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) + // in the Amazon S3 User Guide. When you use this action with Amazon S3 on + // Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on + // Outposts hostname takes the form + // AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com . When you + // use this action with S3 on Outposts through the Amazon Web Services SDKs, you + // provide the Outposts access point ARN in place of the bucket name. For more + // information about S3 on Outposts ARNs, see What is S3 on Outposts (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) // in the Amazon S3 User Guide. // // This member is required. @@ -266,12 +274,12 @@ type UploadPartOutput struct { SSECustomerKeyMD5 *string // If present, specifies the ID of the Amazon Web Services Key Management Service - // (Amazon Web Services KMS) symmetric customer managed key was used for the - // object. + // (Amazon Web Services KMS) symmetric encryption customer managed key was used for + // the object. SSEKMSKeyId *string // The server-side encryption algorithm used when storing this object in Amazon S3 - // (for example, AES256, aws:kms). + // (for example, AES256, aws:kms ). ServerSideEncryption types.ServerSideEncryption // Metadata pertaining to the operation's result. diff --git a/service/s3/api_op_UploadPartCopy.go b/service/s3/api_op_UploadPartCopy.go index ae946a497e3..afa41fdbc62 100644 --- a/service/s3/api_op_UploadPartCopy.go +++ b/service/s3/api_op_UploadPartCopy.go @@ -64,7 +64,7 @@ import ( // version for the x-amz-copy-source . You can optionally specify a specific // version of the source object to copy by adding the versionId subresource as // shown in the following example: x-amz-copy-source: -// /bucket/object?versionId=version id Special Errors +// /bucket/object?versionId=version id Special errors // - Code: NoSuchUpload // - Cause: The specified multipart upload does not exist. The upload ID might // be invalid, or the multipart upload might have been aborted or completed. @@ -74,7 +74,7 @@ import ( // source. // - HTTP Status Code: 400 Bad Request // -// Related Resources +// The following operations are related to UploadPartCopy : // - CreateMultipartUpload (https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateMultipartUpload.html) // - UploadPart (https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPart.html) // - CompleteMultipartUpload (https://docs.aws.amazon.com/AmazonS3/latest/API/API_CompleteMultipartUpload.html) @@ -104,13 +104,13 @@ type UploadPartCopyInput struct { // action with an access point through the Amazon Web Services SDKs, you provide // the access point ARN in place of the bucket name. For more information about // access point ARNs, see Using access points (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) - // in the Amazon S3 User Guide. When using this action with Amazon S3 on Outposts, - // you must direct requests to the S3 on Outposts hostname. The S3 on Outposts - // hostname takes the form - // AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com . When - // using this action with S3 on Outposts through the Amazon Web Services SDKs, you - // provide the Outposts bucket ARN in place of the bucket name. For more - // information about S3 on Outposts ARNs, see Using Amazon S3 on Outposts (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) + // in the Amazon S3 User Guide. When you use this action with Amazon S3 on + // Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on + // Outposts hostname takes the form + // AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com . When you + // use this action with S3 on Outposts through the Amazon Web Services SDKs, you + // provide the Outposts access point ARN in place of the bucket name. For more + // information about S3 on Outposts ARNs, see What is S3 on Outposts (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) // in the Amazon S3 User Guide. // // This member is required. @@ -263,12 +263,12 @@ type UploadPartCopyOutput struct { SSECustomerKeyMD5 *string // If present, specifies the ID of the Amazon Web Services Key Management Service - // (Amazon Web Services KMS) symmetric customer managed key that was used for the - // object. + // (Amazon Web Services KMS) symmetric encryption customer managed key that was + // used for the object. SSEKMSKeyId *string // The server-side encryption algorithm used when storing this object in Amazon S3 - // (for example, AES256, aws:kms). + // (for example, AES256, aws:kms ). ServerSideEncryption types.ServerSideEncryption // Metadata pertaining to the operation's result. diff --git a/service/s3/api_op_WriteGetObjectResponse.go b/service/s3/api_op_WriteGetObjectResponse.go index c2c602c1552..a60cbae8880 100644 --- a/service/s3/api_op_WriteGetObjectResponse.go +++ b/service/s3/api_op_WriteGetObjectResponse.go @@ -237,16 +237,16 @@ type WriteGetObjectResponseInput struct { SSECustomerKeyMD5 *string // If present, specifies the ID of the Amazon Web Services Key Management Service - // (Amazon Web Services KMS) symmetric customer managed key that was used for - // stored in Amazon S3 object. + // (Amazon Web Services KMS) symmetric encryption customer managed key that was + // used for stored in Amazon S3 object. SSEKMSKeyId *string // The server-side encryption algorithm used when storing requested object in - // Amazon S3 (for example, AES256, aws:kms). + // Amazon S3 (for example, AES256, aws:kms ). ServerSideEncryption types.ServerSideEncryption // The integer status code for an HTTP response of a corresponding GetObject - // request. Status Codes + // request. The following is a list of status codes. // - 200 - OK // - 206 - Partial Content // - 304 - Not Modified diff --git a/service/s3/internal/endpoints/endpoints.go b/service/s3/internal/endpoints/endpoints.go index dc0215c99be..1def65592ef 100644 --- a/service/s3/internal/endpoints/endpoints.go +++ b/service/s3/internal/endpoints/endpoints.go @@ -91,6 +91,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -98,6 +99,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -656,6 +658,27 @@ var defaultPartitions = endpoints.Partitions{ }: endpoints.Endpoint{}, }, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "s3-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "s3.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ @@ -821,6 +844,19 @@ func GetDNSSuffix(id string, options Options) (string, error) { } + case strings.EqualFold(id, "aws-iso-e"): + switch variant { + case endpoints.FIPSVariant: + return "cloud.adc-e.uk", nil + + case 0: + return "cloud.adc-e.uk", nil + + default: + return "", fmt.Errorf("unsupported endpoint variant %v, in partition %s", variant, id) + + } + case strings.EqualFold(id, "aws-us-gov"): switch variant { case endpoints.DualStackVariant: @@ -862,6 +898,9 @@ func GetDNSSuffixFromRegion(region string, options Options) (string, error) { case partitionRegexp.AwsIsoB.MatchString(region): return GetDNSSuffix("aws-iso-b", options) + case partitionRegexp.AwsIsoE.MatchString(region): + return GetDNSSuffix("aws-iso-e", options) + case partitionRegexp.AwsUsGov.MatchString(region): return GetDNSSuffix("aws-us-gov", options) diff --git a/service/s3/types/types.go b/service/s3/types/types.go index a0f47e11004..16d30099dc6 100644 --- a/service/s3/types/types.go +++ b/service/s3/types/types.go @@ -10,7 +10,7 @@ import ( // Specifies the days since the initiation of an incomplete multipart upload that // Amazon S3 will wait before permanently removing all parts of the upload. For // more information, see Aborting Incomplete Multipart Uploads Using a Bucket -// Lifecycle Policy (https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuoverview.html#mpu-abort-incomplete-mpu-lifecycle-config) +// Lifecycle Configuration (https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuoverview.html#mpu-abort-incomplete-mpu-lifecycle-config) // in the Amazon S3 User Guide. type AbortIncompleteMultipartUpload struct { @@ -492,7 +492,7 @@ type CSVInput struct { // A single character used to indicate that a row should be ignored when the // character is present at the start of that row. You can specify any character to - // indicate a comment line. + // indicate a comment line. The default character is # . Default: # Comments *string // A single character used to separate individual fields in a record. You can @@ -709,7 +709,7 @@ type Destination struct { type Encryption struct { // The server-side encryption algorithm used when storing job results in Amazon S3 - // (for example, AES256, aws:kms). + // (for example, AES256, aws:kms ). // // This member is required. EncryptionType ServerSideEncryption @@ -719,9 +719,9 @@ type Encryption struct { KMSContext *string // If the encryption type is aws:kms , this optional value specifies the ID of the - // symmetric customer managed key to use for encryption of job results. Amazon S3 - // only supports symmetric keys. For more information, see Using symmetric and - // asymmetric keys (https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html) + // symmetric encryption customer managed key to use for encryption of job results. + // Amazon S3 only supports symmetric encryption KMS keys. For more information, see + // Asymmetric keys in Amazon Web Services KMS (https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html) // in the Amazon Web Services Key Management Service Developer Guide. KMSKeyId *string @@ -735,8 +735,8 @@ type EncryptionConfiguration struct { // 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. Amazon S3 uses this key to encrypt replica objects. - // Amazon S3 only supports symmetric, customer managed KMS keys. For more - // information, see Using symmetric and asymmetric keys (https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html) + // Amazon S3 only supports symmetric encryption KMS keys. For more information, see + // Asymmetric keys in Amazon Web Services KMS (https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html) // in the Amazon Web Services Key Management Service Developer Guide. ReplicaKmsKeyID *string @@ -755,7 +755,9 @@ type Error struct { // The error code is a string that uniquely identifies an error condition. It is // meant to be read and understood by programs that detect and handle errors by - // type. Amazon S3 error codes + // type. The following is a list of Amazon S3 error codes. For more information, + // see Error responses (https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html) + // . // - Code: AccessDenied // - Description: Access Denied // - HTTP Status Code: 403 Forbidden @@ -1129,7 +1131,7 @@ type Error struct { // - HTTP Status Code: 403 Forbidden // - SOAP Fault Code Prefix: Client // - Code: ServiceUnavailable - // - Description: Reduce your request rate. + // - Description: Service is unable to handle request. // - HTTP Status Code: 503 Service Unavailable // - SOAP Fault Code Prefix: Server // - Code: SlowDown @@ -1206,7 +1208,7 @@ type EventBridgeConfiguration struct { // in the Amazon S3 User Guide. type ExistingObjectReplication struct { - // + // Specifies whether Amazon S3 replicates existing source bucket objects. // // This member is required. Status ExistingObjectReplicationStatus @@ -1592,7 +1594,7 @@ type LambdaFunctionConfiguration struct { LambdaFunctionArn *string // Specifies object key name filtering rules. For information about key name - // filtering, see Configuring Event Notifications (https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html) + // filtering, see Configuring event notifications using object key name filtering (https://docs.aws.amazon.com/AmazonS3/latest/userguide/notification-how-to-filtering.html) // in the Amazon S3 User Guide. Filter *NotificationConfigurationFilter @@ -1603,11 +1605,13 @@ type LambdaFunctionConfiguration struct { noSmithyDocumentSerde } -// Container for the expiration for the lifecycle of the object. +// Container for the expiration for the lifecycle of the object. For more +// information see, Managing your storage lifecycle (https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-lifecycle-mgmt.html) +// in the Amazon S3 User Guide. type LifecycleExpiration struct { - // Indicates at what date the object is to be moved or deleted. Should be in GMT - // ISO 8601 Format. + // Indicates at what date the object is to be moved or deleted. The date value + // must conform to the ISO 8601 format. The time is always midnight UTC. Date *time.Time // Indicates the lifetime, in days, of the objects that are subject to the rule. @@ -1623,7 +1627,9 @@ type LifecycleExpiration struct { noSmithyDocumentSerde } -// A lifecycle rule for individual objects in an Amazon S3 bucket. +// A lifecycle rule for individual objects in an Amazon S3 bucket. For more +// information see, Managing your storage lifecycle (https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-lifecycle-mgmt.html) +// in the Amazon S3 User Guide. type LifecycleRule struct { // If 'Enabled', the rule is currently being applied. If 'Disabled', the rule is @@ -1635,7 +1641,7 @@ type LifecycleRule struct { // Specifies the days since the initiation of an incomplete multipart upload that // Amazon S3 will wait before permanently removing all parts of the upload. For // more information, see Aborting Incomplete Multipart Uploads Using a Bucket - // Lifecycle Policy (https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuoverview.html#mpu-abort-incomplete-mpu-lifecycle-config) + // Lifecycle Configuration (https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuoverview.html#mpu-abort-incomplete-mpu-lifecycle-config) // in the Amazon S3 User Guide. AbortIncompleteMultipartUpload *AbortIncompleteMultipartUpload @@ -1850,7 +1856,8 @@ type MetricsAndOperator struct { // . type MetricsConfiguration struct { - // The ID used to identify the metrics configuration. + // The ID used to identify the metrics configuration. The ID has a 64 character + // limit and can only contain letters, numbers, periods, dashes, and underscores. // // This member is required. Id *string @@ -2020,7 +2027,7 @@ type NotificationConfiguration struct { } // Specifies object key name filtering rules. For information about key name -// filtering, see Configuring Event Notifications (https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html) +// filtering, see Configuring event notifications using object key name filtering (https://docs.aws.amazon.com/AmazonS3/latest/userguide/notification-how-to-filtering.html) // in the Amazon S3 User Guide. type NotificationConfigurationFilter struct { @@ -2237,7 +2244,16 @@ type OutputSerialization struct { // Container for the owner's display name and ID. type Owner struct { - // Container for the display name of the owner. + // Container for the display name of the owner. This value is only supported in + // the following Amazon Web Services Regions: + // - US East (N. Virginia) + // - US West (N. California) + // - US West (Oregon) + // - Asia Pacific (Singapore) + // - Asia Pacific (Sydney) + // - Asia Pacific (Tokyo) + // - Europe (Ireland) + // - South America (São Paulo) DisplayName *string // Container for the ID of the owner. @@ -2422,7 +2438,7 @@ type QueueConfiguration struct { QueueArn *string // Specifies object key name filtering rules. For information about key name - // filtering, see Configuring Event Notifications (https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html) + // filtering, see Configuring event notifications using object key name filtering (https://docs.aws.amazon.com/AmazonS3/latest/userguide/notification-how-to-filtering.html) // in the Amazon S3 User Guide. Filter *NotificationConfigurationFilter @@ -2561,7 +2577,9 @@ type ReplicationRule struct { // . DeleteMarkerReplication *DeleteMarkerReplication - // + // Optional configuration to replicate existing source bucket objects. For more + // information, see Replicating Existing Objects (https://docs.aws.amazon.com/AmazonS3/latest/dev/replication-what-is-isnot-replicated.html#existing-object-replication) + // in the Amazon S3 User Guide. ExistingObjectReplication *ExistingObjectReplication // A filter that identifies the subset of objects to which the replication rule @@ -2941,16 +2959,17 @@ type ServerSideEncryptionByDefault struct { // Amazon Web Services Key Management Service (KMS) customer Amazon Web Services // KMS key ID to use for the default encryption. This parameter is allowed if and // only if SSEAlgorithm is set to aws:kms . You can specify the key ID or the - // Amazon Resource Name (ARN) of the KMS key. However, if you are using encryption - // with cross-account or Amazon Web Services service operations you must use a - // fully qualified KMS key ARN. For more information, see Using encryption for - // cross-account operations (https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-encryption.html#bucket-encryption-update-bucket-policy) - // . For example: + // Amazon Resource Name (ARN) of the KMS key. If you use a key ID, you can run into + // a LogDestination undeliverable error when creating a VPC flow log. If you are + // using encryption with cross-account or Amazon Web Services service operations + // you must use a fully qualified KMS key ARN. For more information, see Using + // encryption for cross-account operations (https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-encryption.html#bucket-encryption-update-bucket-policy) + // . // - Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab // - Key ARN: // arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab - // Amazon S3 only supports symmetric KMS keys and not asymmetric KMS keys. For - // more information, see Using symmetric and asymmetric keys (https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html) + // Amazon S3 only supports symmetric encryption KMS keys. For more information, + // see Asymmetric keys in Amazon Web Services KMS (https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html) // in the Amazon Web Services Key Management Service Developer Guide. KMSMasterKeyID *string @@ -3016,8 +3035,8 @@ type SourceSelectionCriteria struct { type SSEKMS struct { // Specifies the ID of the Amazon Web Services Key Management Service (Amazon Web - // Services KMS) symmetric customer managed key to use for encrypting inventory - // reports. + // Services KMS) symmetric encryption customer managed key to use for encrypting + // inventory reports. // // This member is required. KeyId *string @@ -3181,7 +3200,7 @@ type TopicConfiguration struct { TopicArn *string // Specifies object key name filtering rules. For information about key name - // filtering, see Configuring Event Notifications (https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html) + // filtering, see Configuring event notifications using object key name filtering (https://docs.aws.amazon.com/AmazonS3/latest/userguide/notification-how-to-filtering.html) // in the Amazon S3 User Guide. Filter *NotificationConfigurationFilter diff --git a/service/s3control/internal/endpoints/endpoints.go b/service/s3control/internal/endpoints/endpoints.go index 05d28ff0200..b2b04fec02a 100644 --- a/service/s3control/internal/endpoints/endpoints.go +++ b/service/s3control/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -727,6 +729,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "s3-control-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "s3-control.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/s3control/internal/endpoints/s3/endpoints.go b/service/s3control/internal/endpoints/s3/endpoints.go index 3225ffff83d..820c5662999 100644 --- a/service/s3control/internal/endpoints/s3/endpoints.go +++ b/service/s3control/internal/endpoints/s3/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -654,6 +656,27 @@ var defaultPartitions = endpoints.Partitions{ }: endpoints.Endpoint{}, }, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "s3-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "s3.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/s3outposts/internal/endpoints/endpoints.go b/service/s3outposts/internal/endpoints/endpoints.go index 3811286a943..aa6698a92b7 100644 --- a/service/s3outposts/internal/endpoints/endpoints.go +++ b/service/s3outposts/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -325,6 +327,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "s3-outposts-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "s3-outposts.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/sagemaker/internal/endpoints/endpoints.go b/service/sagemaker/internal/endpoints/endpoints.go index db2bd09c2e9..eedc4053b9f 100644 --- a/service/sagemaker/internal/endpoints/endpoints.go +++ b/service/sagemaker/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -365,6 +367,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "api.sagemaker-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "api.sagemaker.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/sagemaker/types/enums.go b/service/sagemaker/types/enums.go index 6e2b7fe4e04..77dd34250e2 100644 --- a/service/sagemaker/types/enums.go +++ b/service/sagemaker/types/enums.go @@ -4063,6 +4063,12 @@ const ( ProductionVariantInstanceTypeMlR6gd12xlarge ProductionVariantInstanceType = "ml.r6gd.12xlarge" ProductionVariantInstanceTypeMlR6gd16xlarge ProductionVariantInstanceType = "ml.r6gd.16xlarge" ProductionVariantInstanceTypeMlP4de24xlarge ProductionVariantInstanceType = "ml.p4de.24xlarge" + ProductionVariantInstanceTypeMlTrn12xlarge ProductionVariantInstanceType = "ml.trn1.2xlarge" + ProductionVariantInstanceTypeMlTrn132xlarge ProductionVariantInstanceType = "ml.trn1.32xlarge" + ProductionVariantInstanceTypeMlInf2Xlarge ProductionVariantInstanceType = "ml.inf2.xlarge" + ProductionVariantInstanceTypeMlInf28xlarge ProductionVariantInstanceType = "ml.inf2.8xlarge" + ProductionVariantInstanceTypeMlInf224xlarge ProductionVariantInstanceType = "ml.inf2.24xlarge" + ProductionVariantInstanceTypeMlInf248xlarge ProductionVariantInstanceType = "ml.inf2.48xlarge" ) // Values returns all known values for ProductionVariantInstanceType. Note that @@ -4212,6 +4218,12 @@ func (ProductionVariantInstanceType) Values() []ProductionVariantInstanceType { "ml.r6gd.12xlarge", "ml.r6gd.16xlarge", "ml.p4de.24xlarge", + "ml.trn1.2xlarge", + "ml.trn1.32xlarge", + "ml.inf2.xlarge", + "ml.inf2.8xlarge", + "ml.inf2.24xlarge", + "ml.inf2.48xlarge", } } diff --git a/service/sagemakera2iruntime/internal/endpoints/endpoints.go b/service/sagemakera2iruntime/internal/endpoints/endpoints.go index 74c21f4fd40..c0a8731af2e 100644 --- a/service/sagemakera2iruntime/internal/endpoints/endpoints.go +++ b/service/sagemakera2iruntime/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -212,6 +214,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "a2i-runtime.sagemaker-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "a2i-runtime.sagemaker.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/sagemakeredge/internal/endpoints/endpoints.go b/service/sagemakeredge/internal/endpoints/endpoints.go index 5ec1d91ebe1..3b8460b3fe6 100644 --- a/service/sagemakeredge/internal/endpoints/endpoints.go +++ b/service/sagemakeredge/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -232,6 +234,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "edge.sagemaker-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "edge.sagemaker.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/sagemakerfeaturestoreruntime/internal/endpoints/endpoints.go b/service/sagemakerfeaturestoreruntime/internal/endpoints/endpoints.go index eec31a7a571..e5e10f0e05a 100644 --- a/service/sagemakerfeaturestoreruntime/internal/endpoints/endpoints.go +++ b/service/sagemakerfeaturestoreruntime/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -212,6 +214,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "featurestore-runtime.sagemaker-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "featurestore-runtime.sagemaker.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/sagemakergeospatial/internal/endpoints/endpoints.go b/service/sagemakergeospatial/internal/endpoints/endpoints.go index 0eb374682a0..a4e07b1a4bd 100644 --- a/service/sagemakergeospatial/internal/endpoints/endpoints.go +++ b/service/sagemakergeospatial/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -217,6 +219,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "sagemaker-geospatial-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "sagemaker-geospatial.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/sagemakermetrics/internal/endpoints/endpoints.go b/service/sagemakermetrics/internal/endpoints/endpoints.go index 05b324f9d19..d1ef326082d 100644 --- a/service/sagemakermetrics/internal/endpoints/endpoints.go +++ b/service/sagemakermetrics/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -307,6 +309,27 @@ var defaultPartitions = endpoints.Partitions{ }: endpoints.Endpoint{}, }, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "metrics.sagemaker-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "metrics.sagemaker.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/sagemakerruntime/internal/endpoints/endpoints.go b/service/sagemakerruntime/internal/endpoints/endpoints.go index e5356674ede..377a88d4900 100644 --- a/service/sagemakerruntime/internal/endpoints/endpoints.go +++ b/service/sagemakerruntime/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -365,6 +367,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "runtime.sagemaker-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "runtime.sagemaker.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/savingsplans/internal/endpoints/endpoints.go b/service/savingsplans/internal/endpoints/endpoints.go index fd475bb3251..d6d2bb2a906 100644 --- a/service/savingsplans/internal/endpoints/endpoints.go +++ b/service/savingsplans/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -223,6 +225,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "savingsplans-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "savingsplans.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/scheduler/internal/endpoints/endpoints.go b/service/scheduler/internal/endpoints/endpoints.go index 1ad236c89d4..80fb888535e 100644 --- a/service/scheduler/internal/endpoints/endpoints.go +++ b/service/scheduler/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -295,6 +297,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "scheduler-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "scheduler.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/schemas/internal/endpoints/endpoints.go b/service/schemas/internal/endpoints/endpoints.go index e7c5937b14c..8545e042e57 100644 --- a/service/schemas/internal/endpoints/endpoints.go +++ b/service/schemas/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -265,6 +267,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "schemas-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "schemas.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/secretsmanager/internal/endpoints/endpoints.go b/service/secretsmanager/internal/endpoints/endpoints.go index 1963a58d602..a7553908d4c 100644 --- a/service/secretsmanager/internal/endpoints/endpoints.go +++ b/service/secretsmanager/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -391,6 +393,27 @@ var defaultPartitions = endpoints.Partitions{ }: endpoints.Endpoint{}, }, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "secretsmanager-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "secretsmanager.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/securityhub/api_op_GetFindingHistory.go b/service/securityhub/api_op_GetFindingHistory.go new file mode 100644 index 00000000000..b0b3e4c3c0b --- /dev/null +++ b/service/securityhub/api_op_GetFindingHistory.go @@ -0,0 +1,265 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package securityhub + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/securityhub/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "time" +) + +// Returns history for a Security Hub finding in the last 90 days. The history +// includes changes made to any fields in the Amazon Web Services Security Finding +// Format (ASFF). +func (c *Client) GetFindingHistory(ctx context.Context, params *GetFindingHistoryInput, optFns ...func(*Options)) (*GetFindingHistoryOutput, error) { + if params == nil { + params = &GetFindingHistoryInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "GetFindingHistory", params, optFns, c.addOperationGetFindingHistoryMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*GetFindingHistoryOutput) + out.ResultMetadata = metadata + return out, nil +} + +type GetFindingHistoryInput struct { + + // Identifies which finding to get the finding history for. + // + // This member is required. + FindingIdentifier *types.AwsSecurityFindingIdentifier + + // An ISO 8601-formatted timestamp that indicates the end time of the requested + // finding history. A correctly formatted example is 2020-05-21T20:16:34.724Z . The + // value cannot contain spaces, and date and time should be separated by T . For + // more information, see RFC 3339 section 5.6, Internet Date/Time Format (https://www.rfc-editor.org/rfc/rfc3339#section-5.6) + // . If you provide values for both StartTime and EndTime , Security Hub returns + // finding history for the specified time period. If you provide a value for + // StartTime but not for EndTime , Security Hub returns finding history from the + // StartTime to the time at which the API is called. If you provide a value for + // EndTime but not for StartTime , Security Hub returns finding history from the + // CreatedAt (https://docs.aws.amazon.com/securityhub/1.0/APIReference/API_AwsSecurityFindingFilters.html#securityhub-Type-AwsSecurityFindingFilters-CreatedAt) + // timestamp of the finding to the EndTime . If you provide neither StartTime nor + // EndTime , Security Hub returns finding history from the CreatedAt timestamp of + // the finding to the time at which the API is called. In all of these scenarios, + // the response is limited to 100 results, and the maximum time period is limited + // to 90 days. + EndTime *time.Time + + // The maximum number of results to be returned. If you don’t provide it, Security + // Hub returns up to 100 results of finding history. + MaxResults int32 + + // A token for pagination purposes. Provide NULL as the initial value. In + // subsequent requests, provide the token included in the response to get up to an + // additional 100 results of finding history. If you don’t provide NextToken , + // Security Hub returns up to 100 results of finding history for each request. + NextToken *string + + // An ISO 8601-formatted timestamp that indicates the start time of the requested + // finding history. A correctly formatted example is 2020-05-21T20:16:34.724Z . The + // value cannot contain spaces, and date and time should be separated by T . For + // more information, see RFC 3339 section 5.6, Internet Date/Time Format (https://www.rfc-editor.org/rfc/rfc3339#section-5.6) + // . If you provide values for both StartTime and EndTime , Security Hub returns + // finding history for the specified time period. If you provide a value for + // StartTime but not for EndTime , Security Hub returns finding history from the + // StartTime to the time at which the API is called. If you provide a value for + // EndTime but not for StartTime , Security Hub returns finding history from the + // CreatedAt (https://docs.aws.amazon.com/securityhub/1.0/APIReference/API_AwsSecurityFindingFilters.html#securityhub-Type-AwsSecurityFindingFilters-CreatedAt) + // timestamp of the finding to the EndTime . If you provide neither StartTime nor + // EndTime , Security Hub returns finding history from the CreatedAt timestamp of + // the finding to the time at which the API is called. In all of these scenarios, + // the response is limited to 100 results, and the maximum time period is limited + // to 90 days. + StartTime *time.Time + + noSmithyDocumentSerde +} + +type GetFindingHistoryOutput struct { + + // A token for pagination purposes. Provide this token in the subsequent request + // to GetFindingsHistory to get up to an additional 100 results of history for the + // same finding that you specified in your initial request. + NextToken *string + + // A list of events that altered the specified finding during the specified time + // period. + Records []types.FindingHistoryRecord + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationGetFindingHistoryMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpGetFindingHistory{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetFindingHistory{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpGetFindingHistoryValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetFindingHistory(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +// GetFindingHistoryAPIClient is a client that implements the GetFindingHistory +// operation. +type GetFindingHistoryAPIClient interface { + GetFindingHistory(context.Context, *GetFindingHistoryInput, ...func(*Options)) (*GetFindingHistoryOutput, error) +} + +var _ GetFindingHistoryAPIClient = (*Client)(nil) + +// GetFindingHistoryPaginatorOptions is the paginator options for GetFindingHistory +type GetFindingHistoryPaginatorOptions struct { + // The maximum number of results to be returned. If you don’t provide it, Security + // Hub returns up to 100 results of finding history. + Limit int32 + + // Set to true if pagination should stop if the service returns a pagination token + // that matches the most recent token provided to the service. + StopOnDuplicateToken bool +} + +// GetFindingHistoryPaginator is a paginator for GetFindingHistory +type GetFindingHistoryPaginator struct { + options GetFindingHistoryPaginatorOptions + client GetFindingHistoryAPIClient + params *GetFindingHistoryInput + nextToken *string + firstPage bool +} + +// NewGetFindingHistoryPaginator returns a new GetFindingHistoryPaginator +func NewGetFindingHistoryPaginator(client GetFindingHistoryAPIClient, params *GetFindingHistoryInput, optFns ...func(*GetFindingHistoryPaginatorOptions)) *GetFindingHistoryPaginator { + if params == nil { + params = &GetFindingHistoryInput{} + } + + options := GetFindingHistoryPaginatorOptions{} + if params.MaxResults != 0 { + options.Limit = params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &GetFindingHistoryPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + nextToken: params.NextToken, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *GetFindingHistoryPaginator) HasMorePages() bool { + return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) +} + +// NextPage retrieves the next GetFindingHistory page. +func (p *GetFindingHistoryPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*GetFindingHistoryOutput, error) { + if !p.HasMorePages() { + return nil, fmt.Errorf("no more pages available") + } + + params := *p.params + params.NextToken = p.nextToken + + params.MaxResults = p.options.Limit + + result, err := p.client.GetFindingHistory(ctx, ¶ms, optFns...) + if err != nil { + return nil, err + } + p.firstPage = false + + prevToken := p.nextToken + p.nextToken = result.NextToken + + if p.options.StopOnDuplicateToken && + prevToken != nil && + p.nextToken != nil && + *prevToken == *p.nextToken { + p.nextToken = nil + } + + return result, nil +} + +func newServiceMetadataMiddleware_opGetFindingHistory(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "securityhub", + OperationName: "GetFindingHistory", + } +} diff --git a/service/securityhub/deserializers.go b/service/securityhub/deserializers.go index 528b37fce35..f7b076c4bf2 100644 --- a/service/securityhub/deserializers.go +++ b/service/securityhub/deserializers.go @@ -5361,6 +5361,171 @@ func awsRestjson1_deserializeOpDocumentGetFindingAggregatorOutput(v **GetFinding return nil } +type awsRestjson1_deserializeOpGetFindingHistory struct { +} + +func (*awsRestjson1_deserializeOpGetFindingHistory) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpGetFindingHistory) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorGetFindingHistory(response, &metadata) + } + output := &GetFindingHistoryOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsRestjson1_deserializeOpDocumentGetFindingHistoryOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorGetFindingHistory(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("InternalException", errorCode): + return awsRestjson1_deserializeErrorInternalException(response, errorBody) + + case strings.EqualFold("InvalidAccessException", errorCode): + return awsRestjson1_deserializeErrorInvalidAccessException(response, errorBody) + + case strings.EqualFold("InvalidInputException", errorCode): + return awsRestjson1_deserializeErrorInvalidInputException(response, errorBody) + + case strings.EqualFold("LimitExceededException", errorCode): + return awsRestjson1_deserializeErrorLimitExceededException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentGetFindingHistoryOutput(v **GetFindingHistoryOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *GetFindingHistoryOutput + if *v == nil { + sv = &GetFindingHistoryOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "NextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + case "Records": + if err := awsRestjson1_deserializeDocumentFindingHistoryRecordList(&sv.Records, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + type awsRestjson1_deserializeOpGetFindings struct { } @@ -47096,6 +47261,258 @@ func awsRestjson1_deserializeDocumentFindingAggregatorList(v *[]types.FindingAgg return nil } +func awsRestjson1_deserializeDocumentFindingHistoryRecord(v **types.FindingHistoryRecord, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.FindingHistoryRecord + if *v == nil { + sv = &types.FindingHistoryRecord{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "FindingCreated": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + } + sv.FindingCreated = jtv + } + + case "FindingIdentifier": + if err := awsRestjson1_deserializeDocumentAwsSecurityFindingIdentifier(&sv.FindingIdentifier, value); err != nil { + return err + } + + case "NextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + case "Updates": + if err := awsRestjson1_deserializeDocumentFindingHistoryUpdatesList(&sv.Updates, value); err != nil { + return err + } + + case "UpdateSource": + if err := awsRestjson1_deserializeDocumentFindingHistoryUpdateSource(&sv.UpdateSource, value); err != nil { + return err + } + + case "UpdateTime": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Timestamp to be of type string, got %T instead", value) + } + t, err := smithytime.ParseDateTime(jtv) + if err != nil { + return err + } + sv.UpdateTime = ptr.Time(t) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentFindingHistoryRecordList(v *[]types.FindingHistoryRecord, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.FindingHistoryRecord + if *v == nil { + cv = []types.FindingHistoryRecord{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.FindingHistoryRecord + destAddr := &col + if err := awsRestjson1_deserializeDocumentFindingHistoryRecord(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentFindingHistoryUpdate(v **types.FindingHistoryUpdate, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.FindingHistoryUpdate + if *v == nil { + sv = &types.FindingHistoryUpdate{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "NewValue": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.NewValue = ptr.String(jtv) + } + + case "OldValue": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.OldValue = ptr.String(jtv) + } + + case "UpdatedField": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.UpdatedField = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentFindingHistoryUpdatesList(v *[]types.FindingHistoryUpdate, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.FindingHistoryUpdate + if *v == nil { + cv = []types.FindingHistoryUpdate{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.FindingHistoryUpdate + destAddr := &col + if err := awsRestjson1_deserializeDocumentFindingHistoryUpdate(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentFindingHistoryUpdateSource(v **types.FindingHistoryUpdateSource, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.FindingHistoryUpdateSource + if *v == nil { + sv = &types.FindingHistoryUpdateSource{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Identity": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString to be of type string, got %T instead", value) + } + sv.Identity = ptr.String(jtv) + } + + case "Type": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected FindingHistoryUpdateSourceType to be of type string, got %T instead", value) + } + sv.Type = types.FindingHistoryUpdateSourceType(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsRestjson1_deserializeDocumentFindingProviderFields(v **types.FindingProviderFields, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) diff --git a/service/securityhub/generated.json b/service/securityhub/generated.json index b09d909264d..c51949c0e10 100644 --- a/service/securityhub/generated.json +++ b/service/securityhub/generated.json @@ -45,6 +45,7 @@ "api_op_GetAdministratorAccount.go", "api_op_GetEnabledStandards.go", "api_op_GetFindingAggregator.go", + "api_op_GetFindingHistory.go", "api_op_GetFindings.go", "api_op_GetInsightResults.go", "api_op_GetInsights.go", diff --git a/service/securityhub/internal/endpoints/endpoints.go b/service/securityhub/internal/endpoints/endpoints.go index 6f71a9d761c..cfdd7303e3d 100644 --- a/service/securityhub/internal/endpoints/endpoints.go +++ b/service/securityhub/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -360,6 +362,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "securityhub-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "securityhub.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/securityhub/serializers.go b/service/securityhub/serializers.go index c8e5b197b06..7b394e21ea0 100644 --- a/service/securityhub/serializers.go +++ b/service/securityhub/serializers.go @@ -11,6 +11,7 @@ import ( "github.com/aws/smithy-go/encoding/httpbinding" smithyjson "github.com/aws/smithy-go/encoding/json" "github.com/aws/smithy-go/middleware" + smithytime "github.com/aws/smithy-go/time" smithyhttp "github.com/aws/smithy-go/transport/http" "math" ) @@ -2487,6 +2488,96 @@ func awsRestjson1_serializeOpHttpBindingsGetFindingAggregatorInput(v *GetFinding return nil } +type awsRestjson1_serializeOpGetFindingHistory struct { +} + +func (*awsRestjson1_serializeOpGetFindingHistory) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpGetFindingHistory) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*GetFindingHistoryInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/findingHistory/get") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentGetFindingHistoryInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsGetFindingHistoryInput(v *GetFindingHistoryInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + return nil +} + +func awsRestjson1_serializeOpDocumentGetFindingHistoryInput(v *GetFindingHistoryInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.EndTime != nil { + ok := object.Key("EndTime") + ok.String(smithytime.FormatDateTime(*v.EndTime)) + } + + if v.FindingIdentifier != nil { + ok := object.Key("FindingIdentifier") + if err := awsRestjson1_serializeDocumentAwsSecurityFindingIdentifier(v.FindingIdentifier, ok); err != nil { + return err + } + } + + if v.MaxResults != 0 { + ok := object.Key("MaxResults") + ok.Integer(v.MaxResults) + } + + if v.NextToken != nil { + ok := object.Key("NextToken") + ok.String(*v.NextToken) + } + + if v.StartTime != nil { + ok := object.Key("StartTime") + ok.String(smithytime.FormatDateTime(*v.StartTime)) + } + + return nil +} + type awsRestjson1_serializeOpGetFindings struct { } diff --git a/service/securityhub/types/enums.go b/service/securityhub/types/enums.go index 1fa0b180629..01e5067e981 100644 --- a/service/securityhub/types/enums.go +++ b/service/securityhub/types/enums.go @@ -167,6 +167,25 @@ func (DateRangeUnit) Values() []DateRangeUnit { } } +type FindingHistoryUpdateSourceType string + +// Enum values for FindingHistoryUpdateSourceType +const ( + FindingHistoryUpdateSourceTypeBatchUpdateFindings FindingHistoryUpdateSourceType = "BATCH_UPDATE_FINDINGS" + FindingHistoryUpdateSourceTypeBatchImportFindings FindingHistoryUpdateSourceType = "BATCH_IMPORT_FINDINGS" +) + +// Values returns all known values for FindingHistoryUpdateSourceType. Note that +// this can be expanded in the future, and so it is only as up to date as the +// client. The ordering of this slice is not guaranteed to be stable across +// updates. +func (FindingHistoryUpdateSourceType) Values() []FindingHistoryUpdateSourceType { + return []FindingHistoryUpdateSourceType{ + "BATCH_UPDATE_FINDINGS", + "BATCH_IMPORT_FINDINGS", + } +} + type IntegrationType string // Enum values for IntegrationType diff --git a/service/securityhub/types/types.go b/service/securityhub/types/types.go index 80f1086eb53..598287c6668 100644 --- a/service/securityhub/types/types.go +++ b/service/securityhub/types/types.go @@ -9541,7 +9541,7 @@ type AwsSecurityFinding struct { // This member is required. AwsAccountId *string - // Indicates when the security-findings provider created the potential security + // Indicates when the security findings provider created the potential security // issue that a finding captured. Uses the date-time format specified in RFC 3339 // section 5.6, Internet Date/Time Format (https://tools.ietf.org/html/rfc3339#section-5.6) // . The value cannot contain spaces, and date and time should be separated by T . @@ -9556,7 +9556,7 @@ type AwsSecurityFinding struct { Description *string // The identifier for the solution-specific component (a discrete unit of logic) - // that generated a finding. In various security-findings providers' solutions, + // that generated a finding. In various security findings providers' solutions, // this generator can be called a rule, a check, a detector, a plugin, etc. // // This member is required. @@ -9590,7 +9590,7 @@ type AwsSecurityFinding struct { // This member is required. Title *string - // Indicates when the security-findings provider last updated the finding record. + // Indicates when the security findings provider last updated the finding record. // Uses the date-time format specified in RFC 3339 section 5.6, Internet Date/Time // Format (https://tools.ietf.org/html/rfc3339#section-5.6) . The value cannot // contain spaces, and date and time should be separated by T . For example, @@ -9631,14 +9631,14 @@ type AwsSecurityFinding struct { // findings, severity, and types. FindingProviderFields *FindingProviderFields - // Indicates when the security-findings provider first observed the potential + // Indicates when the security findings provider first observed the potential // security issue that a finding captured. Uses the date-time format specified in // RFC 3339 section 5.6, Internet Date/Time Format (https://tools.ietf.org/html/rfc3339#section-5.6) // . The value cannot contain spaces, and date and time should be separated by T . // For example, 2020-03-22T13:22:13.933Z . FirstObservedAt *string - // Indicates when the security-findings provider most recently observed the + // Indicates when the security findings provider most recently observed the // potential security issue that a finding captured. Uses the date-time format // specified in RFC 3339 section 5.6, Internet Date/Time Format (https://tools.ietf.org/html/rfc3339#section-5.6) // . The value cannot contain spaces, and date and time should be separated by T . @@ -9665,7 +9665,7 @@ type AwsSecurityFinding struct { // The details of process-related information about a finding. Process *ProcessDetails - // A data type where security-findings providers can include additional + // A data type where security findings providers can include additional // solution-specific details that aren't part of the defined AwsSecurityFinding // format. Can contain up to 50 key-value pairs. For each key-value pair, the key // can contain up to 128 characters, and the value can contain up to 2048 @@ -9699,7 +9699,7 @@ type AwsSecurityFinding struct { // A finding's severity. Severity *Severity - // A URL that links to a page about the current finding in the security-findings + // A URL that links to a page about the current finding in the security findings // provider's solution. SourceUrl *string @@ -9771,7 +9771,7 @@ type AwsSecurityFindingFilters struct { // percent confidence and 100 means 100 percent confidence. Confidence []NumberFilter - // An ISO8601-formatted timestamp that indicates when the security-findings + // An ISO8601-formatted timestamp that indicates when the security findings // provider captured the potential security issue that a finding captured. A // correctly formatted example is 2020-05-21T20:16:34.724Z . The value cannot // contain spaces, and date and time should be separated by T . For more @@ -9820,7 +9820,7 @@ type AwsSecurityFindingFilters struct { // Unusual Behaviors | Sensitive Data Identifications FindingProviderFieldsTypes []StringFilter - // An ISO8601-formatted timestamp that indicates when the security-findings + // An ISO8601-formatted timestamp that indicates when the security findings // provider first observed the potential security issue that a finding captured. A // correctly formatted example is 2020-05-21T20:16:34.724Z . The value cannot // contain spaces, and date and time should be separated by T . For more @@ -9829,7 +9829,7 @@ type AwsSecurityFindingFilters struct { FirstObservedAt []DateFilter // The identifier for the solution-specific component (a discrete unit of logic) - // that generated a finding. In various security-findings providers' solutions, + // that generated a finding. In various security findings providers' solutions, // this generator can be called a rule, a check, a detector, a plugin, etc. GeneratorId []StringFilter @@ -9841,7 +9841,7 @@ type AwsSecurityFindingFilters struct { // Deprecated: The Keyword property is deprecated. Keyword []KeywordFilter - // An ISO8601-formatted timestamp that indicates when the security-findings + // An ISO8601-formatted timestamp that indicates when the security findings // provider most recently observed the potential security issue that a finding // captured. A correctly formatted example is 2020-05-21T20:16:34.724Z . The value // cannot contain spaces, and date and time should be separated by T . For more @@ -9936,7 +9936,7 @@ type AwsSecurityFindingFilters struct { // that generates findings) is registered with Security Hub. ProductArn []StringFilter - // A data type where security-findings providers can include additional + // A data type where security findings providers can include additional // solution-specific details that aren't part of the defined AwsSecurityFinding // format. ProductFields []MapFilter @@ -10059,14 +10059,14 @@ type AwsSecurityFindingFilters struct { // FindingProviderFieldsSeverityLabel. SeverityNormalized []NumberFilter - // The native severity as defined by the security-findings provider's solution + // The native severity as defined by the security findings provider's solution // that generated the finding. // // Deprecated: This filter is deprecated. Instead, use // FindingProviderSeverityOriginal. SeverityProduct []NumberFilter - // A URL that links to a page about the current finding in the security-findings + // A URL that links to a page about the current finding in the security findings // provider's solution. SourceUrl []StringFilter @@ -10096,7 +10096,7 @@ type AwsSecurityFindingFilters struct { // finding. Type []StringFilter - // An ISO8601-formatted timestamp that indicates when the security-findings + // An ISO8601-formatted timestamp that indicates when the security findings // provider last updated the finding record. A correctly formatted example is // 2020-05-21T20:16:34.724Z . The value cannot contain spaces, and date and time // should be separated by T . For more information, see RFC 3339 section 5.6, @@ -10144,7 +10144,7 @@ type AwsSecurityFindingFilters struct { noSmithyDocumentSerde } -// Identifies a finding to update using BatchUpdateFindings . +// Identifies which finding to get the finding history for. type AwsSecurityFindingIdentifier struct { // The identifier of the finding that was specified by the finding provider. @@ -11425,6 +11425,85 @@ type FindingAggregator struct { noSmithyDocumentSerde } +// A list of events that changed the specified finding during the specified time +// period. Each record represents a single finding change event. +type FindingHistoryRecord struct { + + // Identifies whether the event marks the creation of a new finding. A value of + // True means that the finding is newly created. A value of False means that the + // finding isn’t newly created. + FindingCreated bool + + // Identifies which finding to get the finding history for. + FindingIdentifier *AwsSecurityFindingIdentifier + + // A token for pagination purposes. Provide this token in the subsequent request + // to GetFindingsHistory (https://docs.aws.amazon.com/securityhub/1.0/APIReference/API_GetFindingsHistory.html) + // to get up to an additional 100 results of history for the same finding that you + // specified in your initial request. + NextToken *string + + // Identifies the source of the event that changed the finding. For example, an + // integrated Amazon Web Service or third-party partner integration may call + // BatchImportFindings (https://docs.aws.amazon.com/securityhub/1.0/APIReference/API_BatchImportFindings.html) + // , or an Security Hub customer may call BatchUpdateFindings (https://docs.aws.amazon.com/securityhub/1.0/APIReference/API_BatchUpdateFindings.html) + // . + UpdateSource *FindingHistoryUpdateSource + + // An ISO 8601-formatted timestamp that indicates when the security findings + // provider last updated the finding record. A correctly formatted example is + // 2020-05-21T20:16:34.724Z . The value cannot contain spaces, and date and time + // should be separated by T . For more information, see RFC 3339 section 5.6, + // Internet Date/Time Format (https://www.rfc-editor.org/rfc/rfc3339#section-5.6) . + UpdateTime *time.Time + + // An array of objects that provides details about the finding change event, + // including the Amazon Web Services Security Finding Format (ASFF) field that + // changed, the value of the field before the change, and the value of the field + // after the change. + Updates []FindingHistoryUpdate + + noSmithyDocumentSerde +} + +// An array of objects that provides details about a change to a finding, +// including the Amazon Web Services Security Finding Format (ASFF) field that +// changed, the value of the field before the change, and the value of the field +// after the change. +type FindingHistoryUpdate struct { + + // The value of the ASFF field after the finding change event. To preserve storage + // and readability, Security Hub omits this value if FindingHistoryRecord (https://docs.aws.amazon.com/securityhub/1.0/APIReference/API_FindingHistoryRecord.html) + // exceeds database limits. + NewValue *string + + // The value of the ASFF field before the finding change event. + OldValue *string + + // The ASFF field that changed during the finding change event. + UpdatedField *string + + noSmithyDocumentSerde +} + +// Identifies the source of the finding change event. +type FindingHistoryUpdateSource struct { + + // The identity of the source that initiated the finding change event. For + // example, the Amazon Resource Name (ARN) of a partner that calls + // BatchImportFindings or of a customer that calls BatchUpdateFindings. + Identity *string + + // Describes the type of finding change event, such as a call to + // BatchImportFindings (https://docs.aws.amazon.com/securityhub/1.0/APIReference/API_BatchImportFindings.html) + // (by an integrated Amazon Web Service or third party partner integration) or + // BatchUpdateFindings (https://docs.aws.amazon.com/securityhub/1.0/APIReference/API_BatchUpdateFindings.html) + // (by a Security Hub customer). + Type FindingHistoryUpdateSourceType + + noSmithyDocumentSerde +} + // In a BatchImportFindings request, finding providers use FindingProviderFields // to provide and update values for confidence, criticality, related findings, // severity, and types. diff --git a/service/securityhub/validators.go b/service/securityhub/validators.go index 6cb1b01b1ff..26891243b30 100644 --- a/service/securityhub/validators.go +++ b/service/securityhub/validators.go @@ -530,6 +530,26 @@ func (m *validateOpGetFindingAggregator) HandleInitialize(ctx context.Context, i return next.HandleInitialize(ctx, in) } +type validateOpGetFindingHistory struct { +} + +func (*validateOpGetFindingHistory) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpGetFindingHistory) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*GetFindingHistoryInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpGetFindingHistoryInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpGetInsightResults struct { } @@ -894,6 +914,10 @@ func addOpGetFindingAggregatorValidationMiddleware(stack *middleware.Stack) erro return stack.Initialize.Add(&validateOpGetFindingAggregator{}, middleware.After) } +func addOpGetFindingHistoryValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpGetFindingHistory{}, middleware.After) +} + func addOpGetInsightResultsValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpGetInsightResults{}, middleware.After) } @@ -1932,6 +1956,25 @@ func validateOpGetFindingAggregatorInput(v *GetFindingAggregatorInput) error { } } +func validateOpGetFindingHistoryInput(v *GetFindingHistoryInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GetFindingHistoryInput"} + if v.FindingIdentifier == nil { + invalidParams.Add(smithy.NewErrParamRequired("FindingIdentifier")) + } else if v.FindingIdentifier != nil { + if err := validateAwsSecurityFindingIdentifier(v.FindingIdentifier); err != nil { + invalidParams.AddNested("FindingIdentifier", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpGetInsightResultsInput(v *GetInsightResultsInput) error { if v == nil { return nil diff --git a/service/securitylake/internal/endpoints/endpoints.go b/service/securitylake/internal/endpoints/endpoints.go index 6a9b7dcb341..b7a136b271d 100644 --- a/service/securitylake/internal/endpoints/endpoints.go +++ b/service/securitylake/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -244,6 +246,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "securitylake-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "securitylake.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/serverlessapplicationrepository/internal/endpoints/endpoints.go b/service/serverlessapplicationrepository/internal/endpoints/endpoints.go index a0b89aa37d5..395e1a65da3 100644 --- a/service/serverlessapplicationrepository/internal/endpoints/endpoints.go +++ b/service/serverlessapplicationrepository/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -316,6 +318,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "serverlessrepo-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "serverlessrepo.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/servicecatalog/internal/endpoints/endpoints.go b/service/servicecatalog/internal/endpoints/endpoints.go index 3b17c816b39..9168e98bcc9 100644 --- a/service/servicecatalog/internal/endpoints/endpoints.go +++ b/service/servicecatalog/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -363,6 +365,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "servicecatalog-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "servicecatalog.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/servicecatalogappregistry/internal/endpoints/endpoints.go b/service/servicecatalogappregistry/internal/endpoints/endpoints.go index cfe19d59933..2acd6163afe 100644 --- a/service/servicecatalogappregistry/internal/endpoints/endpoints.go +++ b/service/servicecatalogappregistry/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -358,6 +360,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "servicecatalog-appregistry-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "servicecatalog-appregistry.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/servicediscovery/internal/endpoints/endpoints.go b/service/servicediscovery/internal/endpoints/endpoints.go index da87703aae5..1849948f12e 100644 --- a/service/servicediscovery/internal/endpoints/endpoints.go +++ b/service/servicediscovery/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -579,6 +581,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "servicediscovery-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "servicediscovery.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/servicequotas/internal/endpoints/endpoints.go b/service/servicequotas/internal/endpoints/endpoints.go index f86a427d26c..1982f65f2e1 100644 --- a/service/servicequotas/internal/endpoints/endpoints.go +++ b/service/servicequotas/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -303,6 +305,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "servicequotas-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "servicequotas.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/ses/internal/endpoints/endpoints.go b/service/ses/internal/endpoints/endpoints.go index 922ab3cdc50..0f934c1a404 100644 --- a/service/ses/internal/endpoints/endpoints.go +++ b/service/ses/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -307,6 +309,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "email-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "email.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/sesv2/internal/endpoints/endpoints.go b/service/sesv2/internal/endpoints/endpoints.go index b72d8540d1a..f919029b1de 100644 --- a/service/sesv2/internal/endpoints/endpoints.go +++ b/service/sesv2/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -307,6 +309,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "email-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "email.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/sfn/internal/endpoints/endpoints.go b/service/sfn/internal/endpoints/endpoints.go index 76960638522..86e223eef14 100644 --- a/service/sfn/internal/endpoints/endpoints.go +++ b/service/sfn/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -376,6 +378,27 @@ var defaultPartitions = endpoints.Partitions{ }: endpoints.Endpoint{}, }, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "states-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "states.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/shield/internal/endpoints/endpoints.go b/service/shield/internal/endpoints/endpoints.go index ad15b4b96fc..8d903749e6c 100644 --- a/service/shield/internal/endpoints/endpoints.go +++ b/service/shield/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -241,6 +243,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "shield-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "shield.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/signer/internal/endpoints/endpoints.go b/service/signer/internal/endpoints/endpoints.go index 3cbde5e89d9..cbf1957061b 100644 --- a/service/signer/internal/endpoints/endpoints.go +++ b/service/signer/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -342,6 +344,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "signer-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "signer.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/simspaceweaver/internal/endpoints/endpoints.go b/service/simspaceweaver/internal/endpoints/endpoints.go index 0973ab4c498..eea48bfbbbc 100644 --- a/service/simspaceweaver/internal/endpoints/endpoints.go +++ b/service/simspaceweaver/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -238,6 +240,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "simspaceweaver-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "simspaceweaver.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/sms/internal/endpoints/endpoints.go b/service/sms/internal/endpoints/endpoints.go index 41ebd89cbd2..f4b3a0539f4 100644 --- a/service/sms/internal/endpoints/endpoints.go +++ b/service/sms/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -342,6 +344,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "sms-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "sms.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/snowball/internal/endpoints/endpoints.go b/service/snowball/internal/endpoints/endpoints.go index 6e0949ef12c..cb9ad92ecc1 100644 --- a/service/snowball/internal/endpoints/endpoints.go +++ b/service/snowball/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -568,6 +570,27 @@ var defaultPartitions = endpoints.Partitions{ }: endpoints.Endpoint{}, }, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "snowball-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "snowball.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/snowdevicemanagement/internal/endpoints/endpoints.go b/service/snowdevicemanagement/internal/endpoints/endpoints.go index a82e9d17bff..6290675b27b 100644 --- a/service/snowdevicemanagement/internal/endpoints/endpoints.go +++ b/service/snowdevicemanagement/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -212,6 +214,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "snow-device-management-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "snow-device-management.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/sns/internal/endpoints/endpoints.go b/service/sns/internal/endpoints/endpoints.go index 0f64e31bf82..14e9f85964a 100644 --- a/service/sns/internal/endpoints/endpoints.go +++ b/service/sns/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -378,6 +380,27 @@ var defaultPartitions = endpoints.Partitions{ }: endpoints.Endpoint{}, }, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "sns-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "sns.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/sqs/api_op_AddPermission.go b/service/sqs/api_op_AddPermission.go index 81ab109d1a1..b432d4d3c9e 100644 --- a/service/sqs/api_op_AddPermission.go +++ b/service/sqs/api_op_AddPermission.go @@ -20,17 +20,14 @@ import ( // upload your policy. For more information, see Using Custom Policies with the // Amazon SQS Access Policy Language (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-creating-custom-policies.html) // in the Amazon SQS Developer Guide. -// - An Amazon SQS policy can have a maximum of 7 actions. +// - An Amazon SQS policy can have a maximum of seven actions per statement. // - To remove the ability to change queue permissions, you must deny permission // to the AddPermission , RemovePermission , and SetQueueAttributes actions in // your IAM policy. +// - Amazon SQS AddPermission does not support adding a non-account principal. // -// Some actions take lists of parameters. These lists are specified using the -// param.n notation. Values of n are integers starting from 1. For example, a -// parameter list with two elements looks like this: &AttributeName.1=first -// &AttributeName.2=second Cross-account permissions don't apply to this action. -// For more information, see Grant cross-account permissions to a role and a user -// name (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-customer-managed-policy-examples.html#grant-cross-account-permissions-to-role-and-user-name) +// Cross-account permissions don't apply to this action. For more information, see +// Grant cross-account permissions to a role and a username (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-customer-managed-policy-examples.html#grant-cross-account-permissions-to-role-and-user-name) // in the Amazon SQS Developer Guide. func (c *Client) AddPermission(ctx context.Context, params *AddPermissionInput, optFns ...func(*Options)) (*AddPermissionOutput, error) { if params == nil { @@ -93,11 +90,11 @@ type AddPermissionOutput struct { } func (c *Client) addOperationAddPermissionMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsquery_serializeOpAddPermission{}, middleware.After) + err = stack.Serialize.Add(&awsAwsjson10_serializeOpAddPermission{}, middleware.After) if err != nil { return err } - err = stack.Deserialize.Add(&awsAwsquery_deserializeOpAddPermission{}, middleware.After) + err = stack.Deserialize.Add(&awsAwsjson10_deserializeOpAddPermission{}, middleware.After) if err != nil { return err } diff --git a/service/sqs/api_op_ChangeMessageVisibility.go b/service/sqs/api_op_ChangeMessageVisibility.go index 4be8a43f3fe..1cdcc6c8d26 100644 --- a/service/sqs/api_op_ChangeMessageVisibility.go +++ b/service/sqs/api_op_ChangeMessageVisibility.go @@ -14,12 +14,14 @@ import ( // value. The default visibility timeout for a message is 30 seconds. The minimum // is 0 seconds. The maximum is 12 hours. For more information, see Visibility // Timeout (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-visibility-timeout.html) -// in the Amazon SQS Developer Guide. For example, you have a message with a -// visibility timeout of 5 minutes. After 3 minutes, you call -// ChangeMessageVisibility with a timeout of 10 minutes. You can continue to call -// ChangeMessageVisibility to extend the visibility timeout to the maximum allowed -// time. If you try to extend the visibility timeout beyond the maximum, your -// request is rejected. An Amazon SQS message has three basic states: +// in the Amazon SQS Developer Guide. For example, if the default timeout for a +// queue is 60 seconds, 15 seconds have elapsed since you received the message, and +// you send a ChangeMessageVisibility call with VisibilityTimeout set to 10 +// seconds, the 10 seconds begin to count from the time that you make the +// ChangeMessageVisibility call. Thus, any attempt to change the visibility timeout +// or to delete that message 10 seconds after you initially change the visibility +// timeout (a total of 25 seconds) might result in an error. An Amazon SQS message +// has three basic states: // - Sent to a queue by a producer. // - Received from the queue by a consumer. // - Deleted from the queue. @@ -29,16 +31,16 @@ import ( // 2). There is no limit to the number of stored messages. A message is considered // to be in flight after it is received from a queue by a consumer, but not yet // deleted from the queue (that is, between states 2 and 3). There is a limit to -// the number of inflight messages. Limits that apply to inflight messages are +// the number of in flight messages. Limits that apply to in flight messages are // unrelated to the unlimited number of stored messages. For most standard queues // (depending on queue traffic and message backlog), there can be a maximum of -// approximately 120,000 inflight messages (received from a queue by a consumer, +// approximately 120,000 in flight messages (received from a queue by a consumer, // but not yet deleted from the queue). If you reach this limit, Amazon SQS returns // the OverLimit error message. To avoid reaching the limit, you should delete // messages from the queue after they're processed. You can also increase the // number of queues you use to process your messages. To request a limit increase, // file a support request (https://console.aws.amazon.com/support/home#/case/create?issueType=service-limit-increase&limitType=service-code-sqs) -// . For FIFO queues, there can be a maximum of 20,000 inflight messages (received +// . For FIFO queues, there can be a maximum of 20,000 in flight messages (received // from a queue by a consumer, but not yet deleted from the queue). If you reach // this limit, Amazon SQS returns no error messages. If you attempt to set the // VisibilityTimeout to a value greater than the maximum time left, Amazon SQS @@ -95,11 +97,11 @@ type ChangeMessageVisibilityOutput struct { } func (c *Client) addOperationChangeMessageVisibilityMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsquery_serializeOpChangeMessageVisibility{}, middleware.After) + err = stack.Serialize.Add(&awsAwsjson10_serializeOpChangeMessageVisibility{}, middleware.After) if err != nil { return err } - err = stack.Deserialize.Add(&awsAwsquery_deserializeOpChangeMessageVisibility{}, middleware.After) + err = stack.Deserialize.Add(&awsAwsjson10_deserializeOpChangeMessageVisibility{}, middleware.After) if err != nil { return err } diff --git a/service/sqs/api_op_ChangeMessageVisibilityBatch.go b/service/sqs/api_op_ChangeMessageVisibilityBatch.go index 39a16c9038b..2bf8201c0c0 100644 --- a/service/sqs/api_op_ChangeMessageVisibilityBatch.go +++ b/service/sqs/api_op_ChangeMessageVisibilityBatch.go @@ -17,11 +17,7 @@ import ( // requests with each ChangeMessageVisibilityBatch action. Because the batch // request can result in a combination of successful and unsuccessful actions, you // should check for batch errors even when the call returns an HTTP status code of -// 200 . Some actions take lists of parameters. These lists are specified using the -// param.n notation. Values of n are integers starting from 1. For example, a -// parameter list with two elements looks like this: &AttributeName.1=first -// -// &AttributeName.2=second +// 200 . func (c *Client) ChangeMessageVisibilityBatch(ctx context.Context, params *ChangeMessageVisibilityBatchInput, optFns ...func(*Options)) (*ChangeMessageVisibilityBatchOutput, error) { if params == nil { params = &ChangeMessageVisibilityBatchInput{} @@ -76,11 +72,11 @@ type ChangeMessageVisibilityBatchOutput struct { } func (c *Client) addOperationChangeMessageVisibilityBatchMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsquery_serializeOpChangeMessageVisibilityBatch{}, middleware.After) + err = stack.Serialize.Add(&awsAwsjson10_serializeOpChangeMessageVisibilityBatch{}, middleware.After) if err != nil { return err } - err = stack.Deserialize.Add(&awsAwsquery_deserializeOpChangeMessageVisibilityBatch{}, middleware.After) + err = stack.Deserialize.Add(&awsAwsjson10_deserializeOpChangeMessageVisibilityBatch{}, middleware.After) if err != nil { return err } diff --git a/service/sqs/api_op_CreateQueue.go b/service/sqs/api_op_CreateQueue.go index 43de9dd7d69..e32d3035932 100644 --- a/service/sqs/api_op_CreateQueue.go +++ b/service/sqs/api_op_CreateQueue.go @@ -36,12 +36,8 @@ import ( // - If the queue name, attribute names, or attribute values don't match an // existing queue, CreateQueue returns an error. // -// Some actions take lists of parameters. These lists are specified using the -// param.n notation. Values of n are integers starting from 1. For example, a -// parameter list with two elements looks like this: &AttributeName.1=first -// &AttributeName.2=second Cross-account permissions don't apply to this action. -// For more information, see Grant cross-account permissions to a role and a user -// name (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-customer-managed-policy-examples.html#grant-cross-account-permissions-to-role-and-user-name) +// Cross-account permissions don't apply to this action. For more information, see +// Grant cross-account permissions to a role and a username (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-customer-managed-policy-examples.html#grant-cross-account-permissions-to-role-and-user-name) // in the Amazon SQS Developer Guide. func (c *Client) CreateQueue(ctx context.Context, params *CreateQueueInput, optFns ...func(*Options)) (*CreateQueueOutput, error) { if params == nil { @@ -80,33 +76,54 @@ type CreateQueueInput struct { // to 262,144 bytes (256 KiB). Default: 262,144 (256 KiB). // - MessageRetentionPeriod – The length of time, in seconds, for which Amazon // SQS retains a message. Valid values: An integer from 60 seconds (1 minute) to - // 1,209,600 seconds (14 days). Default: 345,600 (4 days). + // 1,209,600 seconds (14 days). Default: 345,600 (4 days). When you change a + // queue's attributes, the change can take up to 60 seconds for most of the + // attributes to propagate throughout the Amazon SQS system. Changes made to the + // MessageRetentionPeriod attribute can take up to 15 minutes and will impact + // existing messages in the queue potentially causing them to be expired and + // deleted if the MessageRetentionPeriod is reduced below the age of existing + // messages. // - Policy – The queue's policy. A valid Amazon Web Services policy. For more // information about policy structure, see Overview of Amazon Web Services IAM // Policies (https://docs.aws.amazon.com/IAM/latest/UserGuide/PoliciesOverview.html) - // in the Amazon IAM User Guide. + // in the IAM User Guide. // - ReceiveMessageWaitTimeSeconds – The length of time, in seconds, for which a // ReceiveMessage action waits for a message to arrive. Valid values: An integer // from 0 to 20 (seconds). Default: 0. - // - RedrivePolicy – The string that includes the parameters for the dead-letter - // queue functionality of the source queue as a JSON object. For more information - // about the redrive policy and dead-letter queues, see Using Amazon SQS - // Dead-Letter Queues (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-dead-letter-queues.html) + // - VisibilityTimeout – The visibility timeout for the queue, in seconds. Valid + // values: An integer from 0 to 43,200 (12 hours). Default: 30. For more + // information about the visibility timeout, see Visibility Timeout (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-visibility-timeout.html) // in the Amazon SQS Developer Guide. + // The following attributes apply only to dead-letter queues: (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-dead-letter-queues.html) + // - RedrivePolicy – The string that includes the parameters for the dead-letter + // queue functionality of the source queue as a JSON object. The parameters are as + // follows: // - deadLetterTargetArn – The Amazon Resource Name (ARN) of the dead-letter // queue to which Amazon SQS moves messages after the value of maxReceiveCount is // exceeded. // - maxReceiveCount – The number of times a message is delivered to the source - // queue before being moved to the dead-letter queue. When the ReceiveCount for a - // message exceeds the maxReceiveCount for a queue, Amazon SQS moves the message - // to the dead-letter-queue. The dead-letter queue of a FIFO queue must also be - // a FIFO queue. Similarly, the dead-letter queue of a standard queue must also be - // a standard queue. - // - VisibilityTimeout – The visibility timeout for the queue, in seconds. Valid - // values: An integer from 0 to 43,200 (12 hours). Default: 30. For more - // information about the visibility timeout, see Visibility Timeout (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-visibility-timeout.html) - // in the Amazon SQS Developer Guide. - // The following attributes apply only to server-side-encryption (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html) + // queue before being moved to the dead-letter queue. Default: 10. When the + // ReceiveCount for a message exceeds the maxReceiveCount for a queue, Amazon SQS + // moves the message to the dead-letter-queue. + // - RedriveAllowPolicy – The string that includes the parameters for the + // permissions for the dead-letter queue redrive permission and which source queues + // can specify dead-letter queues as a JSON object. The parameters are as follows: + // - redrivePermission – The permission type that defines which source queues can + // specify the current queue as the dead-letter queue. Valid values are: + // - allowAll – (Default) Any source queues in this Amazon Web Services account + // in the same Region can specify this queue as the dead-letter queue. + // - denyAll – No source queues can specify this queue as the dead-letter queue. + // - byQueue – Only queues specified by the sourceQueueArns parameter can specify + // this queue as the dead-letter queue. + // - sourceQueueArns – The Amazon Resource Names (ARN)s of the source queues that + // can specify this queue as the dead-letter queue and redrive messages. You can + // specify this parameter only when the redrivePermission parameter is set to + // byQueue . You can specify up to 10 source queue ARNs. To allow more than 10 + // source queues to specify dead-letter queues, set the redrivePermission + // parameter to allowAll . + // The dead-letter queue of a FIFO queue must also be a FIFO queue. Similarly, the + // dead-letter queue of a standard queue must also be a standard queue. The + // following attributes apply only to server-side-encryption (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html) // : // - KmsMasterKeyId – The ID of an Amazon Web Services managed customer master // key (CMK) for Amazon SQS or a custom CMK. For more information, see Key Terms (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html#sqs-sse-key-terms) @@ -121,10 +138,9 @@ type CreateQueueInput struct { // 300 (5 minutes). A shorter time period provides better security but results in // more calls to KMS which might incur charges after Free Tier. For more // information, see How Does the Data Key Reuse Period Work? (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html#sqs-how-does-the-data-key-reuse-period-work) - // . // - SqsManagedSseEnabled – Enables server-side queue encryption using SQS owned // encryption keys. Only one server-side encryption option is supported per queue - // (e.g. SSE-KMS (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-configure-sse-existing-queue.html) + // (for example, SSE-KMS (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-configure-sse-existing-queue.html) // or SSE-SQS (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-configure-sqs-sse-queue.html) // ). // The following attributes apply only to FIFO (first-in-first-out) queues (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html) @@ -188,7 +204,7 @@ type CreateQueueInput struct { // in the Amazon SQS Developer Guide. To be able to tag a queue on creation, you // must have the sqs:CreateQueue and sqs:TagQueue permissions. Cross-account // permissions don't apply to this action. For more information, see Grant - // cross-account permissions to a role and a user name (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-customer-managed-policy-examples.html#grant-cross-account-permissions-to-role-and-user-name) + // cross-account permissions to a role and a username (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-customer-managed-policy-examples.html#grant-cross-account-permissions-to-role-and-user-name) // in the Amazon SQS Developer Guide. Tags map[string]string @@ -208,11 +224,11 @@ type CreateQueueOutput struct { } func (c *Client) addOperationCreateQueueMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsquery_serializeOpCreateQueue{}, middleware.After) + err = stack.Serialize.Add(&awsAwsjson10_serializeOpCreateQueue{}, middleware.After) if err != nil { return err } - err = stack.Deserialize.Add(&awsAwsquery_deserializeOpCreateQueue{}, middleware.After) + err = stack.Deserialize.Add(&awsAwsjson10_deserializeOpCreateQueue{}, middleware.After) if err != nil { return err } diff --git a/service/sqs/api_op_DeleteMessage.go b/service/sqs/api_op_DeleteMessage.go index 008d3c17bae..338dc9d1ec9 100644 --- a/service/sqs/api_op_DeleteMessage.go +++ b/service/sqs/api_op_DeleteMessage.go @@ -20,7 +20,7 @@ import ( // than once, the ReceiptHandle is different each time you receive a message. When // you use the DeleteMessage action, you must provide the most recently received // ReceiptHandle for the message (otherwise, the request succeeds, but the message -// might not be deleted). For standard queues, it is possible to receive a message +// will not be deleted). For standard queues, it is possible to receive a message // even after you delete it. This might happen on rare occasions if one of the // servers which stores a copy of the message is unavailable when you send the // request to delete the message. The copy remains on the server and might be @@ -66,11 +66,11 @@ type DeleteMessageOutput struct { } func (c *Client) addOperationDeleteMessageMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsquery_serializeOpDeleteMessage{}, middleware.After) + err = stack.Serialize.Add(&awsAwsjson10_serializeOpDeleteMessage{}, middleware.After) if err != nil { return err } - err = stack.Deserialize.Add(&awsAwsquery_deserializeOpDeleteMessage{}, middleware.After) + err = stack.Deserialize.Add(&awsAwsjson10_deserializeOpDeleteMessage{}, middleware.After) if err != nil { return err } diff --git a/service/sqs/api_op_DeleteMessageBatch.go b/service/sqs/api_op_DeleteMessageBatch.go index 5cbd6ef444f..90095d5c85e 100644 --- a/service/sqs/api_op_DeleteMessageBatch.go +++ b/service/sqs/api_op_DeleteMessageBatch.go @@ -15,12 +15,7 @@ import ( // DeleteMessage . The result of the action on each message is reported // individually in the response. Because the batch request can result in a // combination of successful and unsuccessful actions, you should check for batch -// errors even when the call returns an HTTP status code of 200 . Some actions take -// lists of parameters. These lists are specified using the param.n notation. -// Values of n are integers starting from 1. For example, a parameter list with -// two elements looks like this: &AttributeName.1=first -// -// &AttributeName.2=second +// errors even when the call returns an HTTP status code of 200 . func (c *Client) DeleteMessageBatch(ctx context.Context, params *DeleteMessageBatchInput, optFns ...func(*Options)) (*DeleteMessageBatchOutput, error) { if params == nil { params = &DeleteMessageBatchInput{} @@ -74,11 +69,11 @@ type DeleteMessageBatchOutput struct { } func (c *Client) addOperationDeleteMessageBatchMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsquery_serializeOpDeleteMessageBatch{}, middleware.After) + err = stack.Serialize.Add(&awsAwsjson10_serializeOpDeleteMessageBatch{}, middleware.After) if err != nil { return err } - err = stack.Deserialize.Add(&awsAwsquery_deserializeOpDeleteMessageBatch{}, middleware.After) + err = stack.Deserialize.Add(&awsAwsjson10_deserializeOpDeleteMessageBatch{}, middleware.After) if err != nil { return err } diff --git a/service/sqs/api_op_DeleteQueue.go b/service/sqs/api_op_DeleteQueue.go index 9522a92baae..1a1a556be31 100644 --- a/service/sqs/api_op_DeleteQueue.go +++ b/service/sqs/api_op_DeleteQueue.go @@ -19,8 +19,8 @@ import ( // exist. When you delete a queue, you must wait at least 60 seconds before // creating a queue with the same name. Cross-account permissions don't apply to // this action. For more information, see Grant cross-account permissions to a -// role and a user name (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-customer-managed-policy-examples.html#grant-cross-account-permissions-to-role-and-user-name) -// in the Amazon SQS Developer Guide. +// role and a username (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-customer-managed-policy-examples.html#grant-cross-account-permissions-to-role-and-user-name) +// in the Amazon SQS Developer Guide. The delete operation uses the HTTP GET verb. func (c *Client) DeleteQueue(ctx context.Context, params *DeleteQueueInput, optFns ...func(*Options)) (*DeleteQueueOutput, error) { if params == nil { params = &DeleteQueueInput{} @@ -55,11 +55,11 @@ type DeleteQueueOutput struct { } func (c *Client) addOperationDeleteQueueMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsquery_serializeOpDeleteQueue{}, middleware.After) + err = stack.Serialize.Add(&awsAwsjson10_serializeOpDeleteQueue{}, middleware.After) if err != nil { return err } - err = stack.Deserialize.Add(&awsAwsquery_deserializeOpDeleteQueue{}, middleware.After) + err = stack.Deserialize.Add(&awsAwsjson10_deserializeOpDeleteQueue{}, middleware.After) if err != nil { return err } diff --git a/service/sqs/api_op_GetQueueAttributes.go b/service/sqs/api_op_GetQueueAttributes.go index 37a999e4ee5..0328c06b144 100644 --- a/service/sqs/api_op_GetQueueAttributes.go +++ b/service/sqs/api_op_GetQueueAttributes.go @@ -36,15 +36,15 @@ type GetQueueAttributesInput struct { // This member is required. QueueUrl *string - // A list of attributes for which to retrieve information. The AttributeName.N + // A list of attributes for which to retrieve information. The AttributeNames // parameter is optional, but if you don't specify values for this parameter, the // request returns empty results. In the future, new attributes might be added. If // you write code that calls this action, we recommend that you structure your code // so that it can handle new attributes gracefully. The following attributes are // supported: The ApproximateNumberOfMessagesDelayed , - // ApproximateNumberOfMessagesNotVisible , and ApproximateNumberOfMessagesVisible - // metrics may not achieve consistency until at least 1 minute after the producers - // stop sending messages. This period is required for the queue metadata to reach + // ApproximateNumberOfMessagesNotVisible , and ApproximateNumberOfMessages metrics + // may not achieve consistency until at least 1 minute after the producers stop + // sending messages. This period is required for the queue metadata to reach // eventual consistency. // - All – Returns all values. // - ApproximateNumberOfMessages – Returns the approximate number of messages @@ -65,27 +65,49 @@ type GetQueueAttributesInput struct { // - MaximumMessageSize – Returns the limit of how many bytes a message can // contain before Amazon SQS rejects it. // - MessageRetentionPeriod – Returns the length of time, in seconds, for which - // Amazon SQS retains a message. + // Amazon SQS retains a message. When you change a queue's attributes, the change + // can take up to 60 seconds for most of the attributes to propagate throughout the + // Amazon SQS system. Changes made to the MessageRetentionPeriod attribute can + // take up to 15 minutes and will impact existing messages in the queue potentially + // causing them to be expired and deleted if the MessageRetentionPeriod is + // reduced below the age of existing messages. // - Policy – Returns the policy of the queue. // - QueueArn – Returns the Amazon resource name (ARN) of the queue. // - ReceiveMessageWaitTimeSeconds – Returns the length of time, in seconds, for // which the ReceiveMessage action waits for a message to arrive. - // - RedrivePolicy – The string that includes the parameters for the dead-letter - // queue functionality of the source queue as a JSON object. For more information - // about the redrive policy and dead-letter queues, see Using Amazon SQS - // Dead-Letter Queues (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-dead-letter-queues.html) + // - VisibilityTimeout – Returns the visibility timeout for the queue. For more + // information about the visibility timeout, see Visibility Timeout (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-visibility-timeout.html) // in the Amazon SQS Developer Guide. + // The following attributes apply only to dead-letter queues: (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-dead-letter-queues.html) + // - RedrivePolicy – The string that includes the parameters for the dead-letter + // queue functionality of the source queue as a JSON object. The parameters are as + // follows: // - deadLetterTargetArn – The Amazon Resource Name (ARN) of the dead-letter // queue to which Amazon SQS moves messages after the value of maxReceiveCount is // exceeded. // - maxReceiveCount – The number of times a message is delivered to the source - // queue before being moved to the dead-letter queue. When the ReceiveCount for a - // message exceeds the maxReceiveCount for a queue, Amazon SQS moves the message - // to the dead-letter-queue. - // - VisibilityTimeout – Returns the visibility timeout for the queue. For more - // information about the visibility timeout, see Visibility Timeout (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-visibility-timeout.html) - // in the Amazon SQS Developer Guide. - // The following attributes apply only to server-side-encryption (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html) + // queue before being moved to the dead-letter queue. Default: 10. When the + // ReceiveCount for a message exceeds the maxReceiveCount for a queue, Amazon SQS + // moves the message to the dead-letter-queue. + // - RedriveAllowPolicy – The string that includes the parameters for the + // permissions for the dead-letter queue redrive permission and which source queues + // can specify dead-letter queues as a JSON object. The parameters are as follows: + // - redrivePermission – The permission type that defines which source queues can + // specify the current queue as the dead-letter queue. Valid values are: + // - allowAll – (Default) Any source queues in this Amazon Web Services account + // in the same Region can specify this queue as the dead-letter queue. + // - denyAll – No source queues can specify this queue as the dead-letter queue. + // - byQueue – Only queues specified by the sourceQueueArns parameter can specify + // this queue as the dead-letter queue. + // - sourceQueueArns – The Amazon Resource Names (ARN)s of the source queues that + // can specify this queue as the dead-letter queue and redrive messages. You can + // specify this parameter only when the redrivePermission parameter is set to + // byQueue . You can specify up to 10 source queue ARNs. To allow more than 10 + // source queues to specify dead-letter queues, set the redrivePermission + // parameter to allowAll . + // The dead-letter queue of a FIFO queue must also be a FIFO queue. Similarly, the + // dead-letter queue of a standard queue must also be a standard queue. The + // following attributes apply only to server-side-encryption (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html) // : // - KmsMasterKeyId – Returns the ID of an Amazon Web Services managed customer // master key (CMK) for Amazon SQS or a custom CMK. For more information, see @@ -98,7 +120,7 @@ type GetQueueAttributesInput struct { // . // - SqsManagedSseEnabled – Returns information about whether the queue is using // SSE-SQS encryption using SQS owned encryption keys. Only one server-side - // encryption option is supported per queue (e.g. SSE-KMS (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-configure-sse-existing-queue.html) + // encryption option is supported per queue (for example, SSE-KMS (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-configure-sse-existing-queue.html) // or SSE-SQS (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-configure-sqs-sse-queue.html) // ). // The following attributes apply only to FIFO (first-in-first-out) queues (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html) @@ -144,11 +166,11 @@ type GetQueueAttributesOutput struct { } func (c *Client) addOperationGetQueueAttributesMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsquery_serializeOpGetQueueAttributes{}, middleware.After) + err = stack.Serialize.Add(&awsAwsjson10_serializeOpGetQueueAttributes{}, middleware.After) if err != nil { return err } - err = stack.Deserialize.Add(&awsAwsquery_deserializeOpGetQueueAttributes{}, middleware.After) + err = stack.Deserialize.Add(&awsAwsjson10_deserializeOpGetQueueAttributes{}, middleware.After) if err != nil { return err } diff --git a/service/sqs/api_op_GetQueueUrl.go b/service/sqs/api_op_GetQueueUrl.go index c2dad2593c2..0fee101c368 100644 --- a/service/sqs/api_op_GetQueueUrl.go +++ b/service/sqs/api_op_GetQueueUrl.go @@ -60,11 +60,11 @@ type GetQueueUrlOutput struct { } func (c *Client) addOperationGetQueueUrlMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsquery_serializeOpGetQueueUrl{}, middleware.After) + err = stack.Serialize.Add(&awsAwsjson10_serializeOpGetQueueUrl{}, middleware.After) if err != nil { return err } - err = stack.Deserialize.Add(&awsAwsquery_deserializeOpGetQueueUrl{}, middleware.After) + err = stack.Deserialize.Add(&awsAwsjson10_deserializeOpGetQueueUrl{}, middleware.After) if err != nil { return err } diff --git a/service/sqs/api_op_ListDeadLetterSourceQueues.go b/service/sqs/api_op_ListDeadLetterSourceQueues.go index 0dca4b99597..e9a8bf7968f 100644 --- a/service/sqs/api_op_ListDeadLetterSourceQueues.go +++ b/service/sqs/api_op_ListDeadLetterSourceQueues.go @@ -75,11 +75,11 @@ type ListDeadLetterSourceQueuesOutput struct { } func (c *Client) addOperationListDeadLetterSourceQueuesMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsquery_serializeOpListDeadLetterSourceQueues{}, middleware.After) + err = stack.Serialize.Add(&awsAwsjson10_serializeOpListDeadLetterSourceQueues{}, middleware.After) if err != nil { return err } - err = stack.Deserialize.Add(&awsAwsquery_deserializeOpListDeadLetterSourceQueues{}, middleware.After) + err = stack.Deserialize.Add(&awsAwsjson10_deserializeOpListDeadLetterSourceQueues{}, middleware.After) if err != nil { return err } diff --git a/service/sqs/api_op_ListQueueTags.go b/service/sqs/api_op_ListQueueTags.go index 0f59d4e8415..72d1e87ee47 100644 --- a/service/sqs/api_op_ListQueueTags.go +++ b/service/sqs/api_op_ListQueueTags.go @@ -14,7 +14,7 @@ import ( // overview, see Tagging Your Amazon SQS Queues (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-queue-tags.html) // in the Amazon SQS Developer Guide. Cross-account permissions don't apply to this // action. For more information, see Grant cross-account permissions to a role and -// a user name (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-customer-managed-policy-examples.html#grant-cross-account-permissions-to-role-and-user-name) +// a username (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-customer-managed-policy-examples.html#grant-cross-account-permissions-to-role-and-user-name) // in the Amazon SQS Developer Guide. func (c *Client) ListQueueTags(ctx context.Context, params *ListQueueTagsInput, optFns ...func(*Options)) (*ListQueueTagsOutput, error) { if params == nil { @@ -53,11 +53,11 @@ type ListQueueTagsOutput struct { } func (c *Client) addOperationListQueueTagsMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsquery_serializeOpListQueueTags{}, middleware.After) + err = stack.Serialize.Add(&awsAwsjson10_serializeOpListQueueTags{}, middleware.After) if err != nil { return err } - err = stack.Deserialize.Add(&awsAwsquery_deserializeOpListQueueTags{}, middleware.After) + err = stack.Deserialize.Add(&awsAwsjson10_deserializeOpListQueueTags{}, middleware.After) if err != nil { return err } diff --git a/service/sqs/api_op_ListQueues.go b/service/sqs/api_op_ListQueues.go index db5b1126764..1840b6f40d1 100644 --- a/service/sqs/api_op_ListQueues.go +++ b/service/sqs/api_op_ListQueues.go @@ -21,7 +21,7 @@ import ( // additional results to display, the response includes a value for NextToken . Use // NextToken as a parameter in your next request to listQueues to receive the next // page of results. Cross-account permissions don't apply to this action. For more -// information, see Grant cross-account permissions to a role and a user name (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-customer-managed-policy-examples.html#grant-cross-account-permissions-to-role-and-user-name) +// information, see Grant cross-account permissions to a role and a username (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-customer-managed-policy-examples.html#grant-cross-account-permissions-to-role-and-user-name) // in the Amazon SQS Developer Guide. func (c *Client) ListQueues(ctx context.Context, params *ListQueuesInput, optFns ...func(*Options)) (*ListQueuesOutput, error) { if params == nil { @@ -74,11 +74,11 @@ type ListQueuesOutput struct { } func (c *Client) addOperationListQueuesMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsquery_serializeOpListQueues{}, middleware.After) + err = stack.Serialize.Add(&awsAwsjson10_serializeOpListQueues{}, middleware.After) if err != nil { return err } - err = stack.Deserialize.Add(&awsAwsquery_deserializeOpListQueues{}, middleware.After) + err = stack.Deserialize.Add(&awsAwsjson10_deserializeOpListQueues{}, middleware.After) if err != nil { return err } diff --git a/service/sqs/api_op_PurgeQueue.go b/service/sqs/api_op_PurgeQueue.go index 80b3a4667a2..681a2dddbd1 100644 --- a/service/sqs/api_op_PurgeQueue.go +++ b/service/sqs/api_op_PurgeQueue.go @@ -51,11 +51,11 @@ type PurgeQueueOutput struct { } func (c *Client) addOperationPurgeQueueMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsquery_serializeOpPurgeQueue{}, middleware.After) + err = stack.Serialize.Add(&awsAwsjson10_serializeOpPurgeQueue{}, middleware.After) if err != nil { return err } - err = stack.Deserialize.Add(&awsAwsquery_deserializeOpPurgeQueue{}, middleware.After) + err = stack.Deserialize.Add(&awsAwsjson10_deserializeOpPurgeQueue{}, middleware.After) if err != nil { return err } diff --git a/service/sqs/api_op_ReceiveMessage.go b/service/sqs/api_op_ReceiveMessage.go index be5ba1b60e0..af528b3d334 100644 --- a/service/sqs/api_op_ReceiveMessage.go +++ b/service/sqs/api_op_ReceiveMessage.go @@ -76,15 +76,14 @@ type ReceiveMessageInput struct { // received across all queues but not deleted. // - AWSTraceHeader – Returns the X-Ray trace header string. // - SenderId - // - For an IAM user, returns the IAM user ID, for example ABCDEFGHI1JKLMNOPQ23R - // . + // - For a user, returns the user ID, for example ABCDEFGHI1JKLMNOPQ23R . // - For an IAM role, returns the IAM role ID, for example // ABCDE1F2GH3I4JK5LMNOP:i-a123b456 . // - SentTimestamp – Returns the time the message was sent to the queue ( epoch // time (http://en.wikipedia.org/wiki/Unix_time) in milliseconds). // - SqsManagedSseEnabled – Enables server-side queue encryption using SQS owned // encryption keys. Only one server-side encryption option is supported per queue - // (e.g. SSE-KMS (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-configure-sse-existing-queue.html) + // (for example, SSE-KMS (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-configure-sse-existing-queue.html) // or SSE-SQS (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-configure-sqs-sse-queue.html) // ). // - MessageDeduplicationId – Returns the value provided by the producer that @@ -111,9 +110,9 @@ type ReceiveMessageInput struct { // periods in succession ( .. ). // - The name can be up to 256 characters long. // When using ReceiveMessage , you can send a list of attribute names to receive, - // or you can return all of the attributes by specifying All or . in your request. - // You can also use all message attributes starting with a prefix, for example bar. - // . + // or you can return all of the attributes by specifying All or .* in your + // request. You can also use all message attributes starting with a prefix, for + // example bar.* . MessageAttributeNames []string // This parameter applies only to FIFO (first-in-first-out) queues. The token used @@ -189,11 +188,11 @@ type ReceiveMessageOutput struct { } func (c *Client) addOperationReceiveMessageMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsquery_serializeOpReceiveMessage{}, middleware.After) + err = stack.Serialize.Add(&awsAwsjson10_serializeOpReceiveMessage{}, middleware.After) if err != nil { return err } - err = stack.Deserialize.Add(&awsAwsquery_deserializeOpReceiveMessage{}, middleware.After) + err = stack.Deserialize.Add(&awsAwsjson10_deserializeOpReceiveMessage{}, middleware.After) if err != nil { return err } diff --git a/service/sqs/api_op_RemovePermission.go b/service/sqs/api_op_RemovePermission.go index f59a98d156e..53db48ba51b 100644 --- a/service/sqs/api_op_RemovePermission.go +++ b/service/sqs/api_op_RemovePermission.go @@ -14,7 +14,7 @@ import ( // parameter. // - Only the owner of a queue can remove permissions from it. // - Cross-account permissions don't apply to this action. For more information, -// see Grant cross-account permissions to a role and a user name (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-customer-managed-policy-examples.html#grant-cross-account-permissions-to-role-and-user-name) +// see Grant cross-account permissions to a role and a username (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-customer-managed-policy-examples.html#grant-cross-account-permissions-to-role-and-user-name) // in the Amazon SQS Developer Guide. // - To remove the ability to change queue permissions, you must deny permission // to the AddPermission , RemovePermission , and SetQueueAttributes actions in @@ -59,11 +59,11 @@ type RemovePermissionOutput struct { } func (c *Client) addOperationRemovePermissionMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsquery_serializeOpRemovePermission{}, middleware.After) + err = stack.Serialize.Add(&awsAwsjson10_serializeOpRemovePermission{}, middleware.After) if err != nil { return err } - err = stack.Deserialize.Add(&awsAwsquery_deserializeOpRemovePermission{}, middleware.After) + err = stack.Deserialize.Add(&awsAwsjson10_deserializeOpRemovePermission{}, middleware.After) if err != nil { return err } diff --git a/service/sqs/api_op_SendMessage.go b/service/sqs/api_op_SendMessage.go index 40f840d74fc..fbf9369fd71 100644 --- a/service/sqs/api_op_SendMessage.go +++ b/service/sqs/api_op_SendMessage.go @@ -34,7 +34,7 @@ func (c *Client) SendMessage(ctx context.Context, params *SendMessageInput, optF type SendMessageInput struct { // The message to send. The minimum size is one character. The maximum size is 256 - // KB. A message can include only XML, JSON, and unformatted text. The following + // KiB. A message can include only XML, JSON, and unformatted text. The following // Unicode characters are allowed: #x9 | #xA | #xD | #x20 to #xD7FF | #xE000 to // #xFFFD | #x10000 to #x10FFFF Any characters not included in this list will be // rejected. For more information, see the W3C specification for characters (http://www.w3.org/TR/REC-xml/#charsets) @@ -169,11 +169,11 @@ type SendMessageOutput struct { } func (c *Client) addOperationSendMessageMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsquery_serializeOpSendMessage{}, middleware.After) + err = stack.Serialize.Add(&awsAwsjson10_serializeOpSendMessage{}, middleware.After) if err != nil { return err } - err = stack.Deserialize.Add(&awsAwsquery_deserializeOpSendMessage{}, middleware.After) + err = stack.Deserialize.Add(&awsAwsjson10_deserializeOpSendMessage{}, middleware.After) if err != nil { return err } diff --git a/service/sqs/api_op_SendMessageBatch.go b/service/sqs/api_op_SendMessageBatch.go index 69bdf379c33..64075e71a22 100644 --- a/service/sqs/api_op_SendMessageBatch.go +++ b/service/sqs/api_op_SendMessageBatch.go @@ -11,25 +11,22 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Delivers up to ten messages to the specified queue. This is a batch version of -// SendMessage . For a FIFO queue, multiple messages within a single batch are -// enqueued in the order they are sent. The result of sending each message is -// reported individually in the response. Because the batch request can result in a -// combination of successful and unsuccessful actions, you should check for batch -// errors even when the call returns an HTTP status code of 200 . The maximum -// allowed individual message size and the maximum total payload size (the sum of -// the individual lengths of all of the batched messages) are both 256 KB (262,144 -// bytes). A message can include only XML, JSON, and unformatted text. The -// following Unicode characters are allowed: #x9 | #xA | #xD | #x20 to #xD7FF | -// #xE000 to #xFFFD | #x10000 to #x10FFFF Any characters not included in this list -// will be rejected. For more information, see the W3C specification for characters (http://www.w3.org/TR/REC-xml/#charsets) +// 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). This is a batch version of SendMessage . For a FIFO +// queue, multiple messages within a single batch are enqueued in the order they +// are sent. The result of sending each message is reported individually in the +// response. Because the batch request can result in a combination of successful +// and unsuccessful actions, you should check for batch errors even when the call +// returns an HTTP status code of 200 . The maximum allowed individual message size +// and the maximum total payload size (the sum of the individual lengths of all of +// the batched messages) are both 256 KiB (262,144 bytes). A message can include +// only XML, JSON, and unformatted text. The following Unicode characters are +// allowed: #x9 | #xA | #xD | #x20 to #xD7FF | #xE000 to #xFFFD | #x10000 to +// #x10FFFF Any characters not included in this list will be rejected. For more +// information, see the W3C specification for characters (http://www.w3.org/TR/REC-xml/#charsets) // . If you don't specify the DelaySeconds parameter for an entry, Amazon SQS uses -// the default value for the queue. Some actions take lists of parameters. These -// lists are specified using the param.n notation. Values of n are integers -// starting from 1. For example, a parameter list with two elements looks like -// this: &AttributeName.1=first -// -// &AttributeName.2=second +// the default value for the queue. func (c *Client) SendMessageBatch(ctx context.Context, params *SendMessageBatchInput, optFns ...func(*Options)) (*SendMessageBatchOutput, error) { if params == nil { params = &SendMessageBatchInput{} @@ -84,11 +81,11 @@ type SendMessageBatchOutput struct { } func (c *Client) addOperationSendMessageBatchMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsquery_serializeOpSendMessageBatch{}, middleware.After) + err = stack.Serialize.Add(&awsAwsjson10_serializeOpSendMessageBatch{}, middleware.After) if err != nil { return err } - err = stack.Deserialize.Add(&awsAwsquery_deserializeOpSendMessageBatch{}, middleware.After) + err = stack.Deserialize.Add(&awsAwsjson10_deserializeOpSendMessageBatch{}, middleware.After) if err != nil { return err } diff --git a/service/sqs/api_op_SetQueueAttributes.go b/service/sqs/api_op_SetQueueAttributes.go index ddf5dfb15b6..2e1a19f4e41 100644 --- a/service/sqs/api_op_SetQueueAttributes.go +++ b/service/sqs/api_op_SetQueueAttributes.go @@ -13,12 +13,15 @@ import ( // Sets the value of one or more queue attributes. When you change a queue's // attributes, the change can take up to 60 seconds for most of the attributes to // propagate throughout the Amazon SQS system. Changes made to the -// MessageRetentionPeriod attribute can take up to 15 minutes. +// MessageRetentionPeriod attribute can take up to 15 minutes and will impact +// existing messages in the queue potentially causing them to be expired and +// deleted if the MessageRetentionPeriod is reduced below the age of existing +// messages. // - In the future, new attributes might be added. If you write code that calls // this action, we recommend that you structure your code so that it can handle new // attributes gracefully. // - Cross-account permissions don't apply to this action. For more information, -// see Grant cross-account permissions to a role and a user name (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-customer-managed-policy-examples.html#grant-cross-account-permissions-to-role-and-user-name) +// see Grant cross-account permissions to a role and a username (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-customer-managed-policy-examples.html#grant-cross-account-permissions-to-role-and-user-name) // in the Amazon SQS Developer Guide. // - To remove the ability to change queue permissions, you must deny permission // to the AddPermission , RemovePermission , and SetQueueAttributes actions in @@ -51,7 +54,13 @@ type SetQueueAttributesInput struct { // up to 262,144 bytes (256 KiB). Default: 262,144 (256 KiB). // - MessageRetentionPeriod – The length of time, in seconds, for which Amazon // SQS retains a message. Valid values: An integer representing seconds, from 60 (1 - // minute) to 1,209,600 (14 days). Default: 345,600 (4 days). + // minute) to 1,209,600 (14 days). Default: 345,600 (4 days). When you change a + // queue's attributes, the change can take up to 60 seconds for most of the + // attributes to propagate throughout the Amazon SQS system. Changes made to the + // MessageRetentionPeriod attribute can take up to 15 minutes and will impact + // existing messages in the queue potentially causing them to be expired and + // deleted if the MessageRetentionPeriod is reduced below the age of existing + // messages. // - Policy – The queue's policy. A valid Amazon Web Services policy. For more // information about policy structure, see Overview of Amazon Web Services IAM // Policies (https://docs.aws.amazon.com/IAM/latest/UserGuide/PoliciesOverview.html) @@ -59,27 +68,41 @@ type SetQueueAttributesInput struct { // - ReceiveMessageWaitTimeSeconds – The length of time, in seconds, for which a // ReceiveMessage action waits for a message to arrive. Valid values: An integer // from 0 to 20 (seconds). Default: 0. - // - RedrivePolicy – The string that includes the parameters for the dead-letter - // queue functionality of the source queue as a JSON object. For more information - // about the redrive policy and dead-letter queues, see Using Amazon SQS - // Dead-Letter Queues (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-dead-letter-queues.html) + // - VisibilityTimeout – The visibility timeout for the queue, in seconds. Valid + // values: An integer from 0 to 43,200 (12 hours). Default: 30. For more + // information about the visibility timeout, see Visibility Timeout (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-visibility-timeout.html) // in the Amazon SQS Developer Guide. + // The following attributes apply only to dead-letter queues: (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-dead-letter-queues.html) + // - RedrivePolicy – The string that includes the parameters for the dead-letter + // queue functionality of the source queue as a JSON object. The parameters are as + // follows: // - deadLetterTargetArn – The Amazon Resource Name (ARN) of the dead-letter // queue to which Amazon SQS moves messages after the value of maxReceiveCount is // exceeded. // - maxReceiveCount – The number of times a message is delivered to the source - // queue before being moved to the dead-letter queue. When the ReceiveCount for a - // message exceeds the maxReceiveCount for a queue, Amazon SQS moves the message - // to the dead-letter-queue. The dead-letter queue of a FIFO queue must also be - // a FIFO queue. Similarly, the dead-letter queue of a standard queue must also be - // a standard queue. - // - VisibilityTimeout – The visibility timeout for the queue, in seconds. Valid - // values: An integer from 0 to 43,200 (12 hours). Default: 30. For more - // information about the visibility timeout, see Visibility Timeout (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-visibility-timeout.html) - // in the Amazon SQS Developer Guide. - // The following attributes apply only to server-side-encryption (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html) + // queue before being moved to the dead-letter queue. Default: 10. When the + // ReceiveCount for a message exceeds the maxReceiveCount for a queue, Amazon SQS + // moves the message to the dead-letter-queue. + // - RedriveAllowPolicy – The string that includes the parameters for the + // permissions for the dead-letter queue redrive permission and which source queues + // can specify dead-letter queues as a JSON object. The parameters are as follows: + // - redrivePermission – The permission type that defines which source queues can + // specify the current queue as the dead-letter queue. Valid values are: + // - allowAll – (Default) Any source queues in this Amazon Web Services account + // in the same Region can specify this queue as the dead-letter queue. + // - denyAll – No source queues can specify this queue as the dead-letter queue. + // - byQueue – Only queues specified by the sourceQueueArns parameter can specify + // this queue as the dead-letter queue. + // - sourceQueueArns – The Amazon Resource Names (ARN)s of the source queues that + // can specify this queue as the dead-letter queue and redrive messages. You can + // specify this parameter only when the redrivePermission parameter is set to + // byQueue . You can specify up to 10 source queue ARNs. To allow more than 10 + // source queues to specify dead-letter queues, set the redrivePermission + // parameter to allowAll . + // The dead-letter queue of a FIFO queue must also be a FIFO queue. Similarly, the + // dead-letter queue of a standard queue must also be a standard queue. The + // following attributes apply only to server-side-encryption (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html) // : - // // - KmsMasterKeyId – The ID of an Amazon Web Services managed customer master // key (CMK) for Amazon SQS or a custom CMK. For more information, see Key Terms (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html#sqs-sse-key-terms) // . While the alias of the AWS-managed CMK for Amazon SQS is always @@ -96,7 +119,7 @@ type SetQueueAttributesInput struct { // . // - SqsManagedSseEnabled – Enables server-side queue encryption using SQS owned // encryption keys. Only one server-side encryption option is supported per queue - // (e.g. SSE-KMS (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-configure-sse-existing-queue.html) + // (for example, SSE-KMS (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-configure-sse-existing-queue.html) // or SSE-SQS (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-configure-sqs-sse-queue.html) // ). // The following attribute applies only to FIFO (first-in-first-out) queues (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html) @@ -121,7 +144,6 @@ type SetQueueAttributesInput struct { // another message with a MessageDeduplicationId that is the same as the one // generated for the first MessageDeduplicationId , the two messages are treated // as duplicates and only one copy of the message is delivered. - // // The following attributes apply only to high throughput for FIFO queues (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/high-throughput-fifo.html) // : // - DeduplicationScope – Specifies whether message deduplication occurs at the @@ -159,11 +181,11 @@ type SetQueueAttributesOutput struct { } func (c *Client) addOperationSetQueueAttributesMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsquery_serializeOpSetQueueAttributes{}, middleware.After) + err = stack.Serialize.Add(&awsAwsjson10_serializeOpSetQueueAttributes{}, middleware.After) if err != nil { return err } - err = stack.Deserialize.Add(&awsAwsquery_deserializeOpSetQueueAttributes{}, middleware.After) + err = stack.Deserialize.Add(&awsAwsjson10_deserializeOpSetQueueAttributes{}, middleware.After) if err != nil { return err } diff --git a/service/sqs/api_op_TagQueue.go b/service/sqs/api_op_TagQueue.go index 1ce54b5fd18..add0accb076 100644 --- a/service/sqs/api_op_TagQueue.go +++ b/service/sqs/api_op_TagQueue.go @@ -24,7 +24,7 @@ import ( // For a full list of tag restrictions, see Quotas related to queues (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-limits.html#limits-queues) // in the Amazon SQS Developer Guide. Cross-account permissions don't apply to this // action. For more information, see Grant cross-account permissions to a role and -// a user name (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-customer-managed-policy-examples.html#grant-cross-account-permissions-to-role-and-user-name) +// a username (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-customer-managed-policy-examples.html#grant-cross-account-permissions-to-role-and-user-name) // in the Amazon SQS Developer Guide. func (c *Client) TagQueue(ctx context.Context, params *TagQueueInput, optFns ...func(*Options)) (*TagQueueOutput, error) { if params == nil { @@ -64,11 +64,11 @@ type TagQueueOutput struct { } func (c *Client) addOperationTagQueueMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsquery_serializeOpTagQueue{}, middleware.After) + err = stack.Serialize.Add(&awsAwsjson10_serializeOpTagQueue{}, middleware.After) if err != nil { return err } - err = stack.Deserialize.Add(&awsAwsquery_deserializeOpTagQueue{}, middleware.After) + err = stack.Deserialize.Add(&awsAwsjson10_deserializeOpTagQueue{}, middleware.After) if err != nil { return err } diff --git a/service/sqs/api_op_UntagQueue.go b/service/sqs/api_op_UntagQueue.go index 0c8fd5e605d..30acf7530d7 100644 --- a/service/sqs/api_op_UntagQueue.go +++ b/service/sqs/api_op_UntagQueue.go @@ -14,7 +14,7 @@ import ( // overview, see Tagging Your Amazon SQS Queues (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-queue-tags.html) // in the Amazon SQS Developer Guide. Cross-account permissions don't apply to this // action. For more information, see Grant cross-account permissions to a role and -// a user name (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-customer-managed-policy-examples.html#grant-cross-account-permissions-to-role-and-user-name) +// a username (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-customer-managed-policy-examples.html#grant-cross-account-permissions-to-role-and-user-name) // in the Amazon SQS Developer Guide. func (c *Client) UntagQueue(ctx context.Context, params *UntagQueueInput, optFns ...func(*Options)) (*UntagQueueOutput, error) { if params == nil { @@ -54,11 +54,11 @@ type UntagQueueOutput struct { } func (c *Client) addOperationUntagQueueMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsquery_serializeOpUntagQueue{}, middleware.After) + err = stack.Serialize.Add(&awsAwsjson10_serializeOpUntagQueue{}, middleware.After) if err != nil { return err } - err = stack.Deserialize.Add(&awsAwsquery_deserializeOpUntagQueue{}, middleware.After) + err = stack.Deserialize.Add(&awsAwsjson10_deserializeOpUntagQueue{}, middleware.After) if err != nil { return err } diff --git a/service/sqs/deserializers.go b/service/sqs/deserializers.go index f5d654de8e4..3f36d16f6cd 100644 --- a/service/sqs/deserializers.go +++ b/service/sqs/deserializers.go @@ -6,31 +6,28 @@ import ( "bytes" "context" "encoding/base64" - "encoding/xml" + "encoding/json" "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - awsxml "github.com/aws/aws-sdk-go-v2/aws/protocol/xml" + "github.com/aws/aws-sdk-go-v2/aws/protocol/restjson" "github.com/aws/aws-sdk-go-v2/service/sqs/types" smithy "github.com/aws/smithy-go" - smithyxml "github.com/aws/smithy-go/encoding/xml" smithyio "github.com/aws/smithy-go/io" "github.com/aws/smithy-go/middleware" "github.com/aws/smithy-go/ptr" smithyhttp "github.com/aws/smithy-go/transport/http" "io" "io/ioutil" - "strconv" "strings" ) -type awsAwsquery_deserializeOpAddPermission struct { +type awsAwsjson10_deserializeOpAddPermission struct { } -func (*awsAwsquery_deserializeOpAddPermission) ID() string { +func (*awsAwsjson10_deserializeOpAddPermission) ID() string { return "OperationDeserializer" } -func (m *awsAwsquery_deserializeOpAddPermission) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson10_deserializeOpAddPermission) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -44,7 +41,7 @@ func (m *awsAwsquery_deserializeOpAddPermission) HandleDeserialize(ctx context.C } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorAddPermission(response, &metadata) + return out, metadata, awsAwsjson10_deserializeOpErrorAddPermission(response, &metadata) } output := &AddPermissionOutput{} out.Result = output @@ -58,7 +55,7 @@ func (m *awsAwsquery_deserializeOpAddPermission) HandleDeserialize(ctx context.C return out, metadata, err } -func awsAwsquery_deserializeOpErrorAddPermission(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson10_deserializeOpErrorAddPermission(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -68,25 +65,60 @@ func awsAwsquery_deserializeOpErrorAddPermission(response *smithyhttp.Response, errorCode := "UnknownError" errorMessage := errorCode - errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } return err } - if reqID := errorComponents.RequestID; len(reqID) != 0 { - awsmiddleware.SetRequestIDMetadata(metadata, reqID) - } - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message + if len(message) != 0 { + errorMessage = message } - errorBody.Seek(0, io.SeekStart) + switch { + case strings.EqualFold("InvalidAddress", errorCode): + return awsAwsjson10_deserializeErrorInvalidAddress(response, errorBody) + + case strings.EqualFold("InvalidSecurity", errorCode): + return awsAwsjson10_deserializeErrorInvalidSecurity(response, errorBody) + case strings.EqualFold("OverLimit", errorCode): - return awsAwsquery_deserializeErrorOverLimit(response, errorBody) + return awsAwsjson10_deserializeErrorOverLimit(response, errorBody) + + case strings.EqualFold("QueueDoesNotExist", errorCode): + return awsAwsjson10_deserializeErrorQueueDoesNotExist(response, errorBody) + + case strings.EqualFold("RequestThrottled", errorCode): + return awsAwsjson10_deserializeErrorRequestThrottled(response, errorBody) + + case strings.EqualFold("UnsupportedOperation", errorCode): + return awsAwsjson10_deserializeErrorUnsupportedOperation(response, errorBody) default: + awsQueryErrorCode := getAwsQueryErrorCode(response) + if awsQueryErrorCode != "" { + errorCode = awsQueryErrorCode + } genericError := &smithy.GenericAPIError{ Code: errorCode, Message: errorMessage, @@ -96,14 +128,14 @@ func awsAwsquery_deserializeOpErrorAddPermission(response *smithyhttp.Response, } } -type awsAwsquery_deserializeOpChangeMessageVisibility struct { +type awsAwsjson10_deserializeOpChangeMessageVisibility struct { } -func (*awsAwsquery_deserializeOpChangeMessageVisibility) ID() string { +func (*awsAwsjson10_deserializeOpChangeMessageVisibility) ID() string { return "OperationDeserializer" } -func (m *awsAwsquery_deserializeOpChangeMessageVisibility) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson10_deserializeOpChangeMessageVisibility) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -117,7 +149,7 @@ func (m *awsAwsquery_deserializeOpChangeMessageVisibility) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorChangeMessageVisibility(response, &metadata) + return out, metadata, awsAwsjson10_deserializeOpErrorChangeMessageVisibility(response, &metadata) } output := &ChangeMessageVisibilityOutput{} out.Result = output @@ -131,7 +163,7 @@ func (m *awsAwsquery_deserializeOpChangeMessageVisibility) HandleDeserialize(ctx return out, metadata, err } -func awsAwsquery_deserializeOpErrorChangeMessageVisibility(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson10_deserializeOpErrorChangeMessageVisibility(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -141,28 +173,57 @@ func awsAwsquery_deserializeOpErrorChangeMessageVisibility(response *smithyhttp. errorCode := "UnknownError" errorMessage := errorCode - errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } return err } - if reqID := errorComponents.RequestID; len(reqID) != 0 { - awsmiddleware.SetRequestIDMetadata(metadata, reqID) - } - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message + if len(message) != 0 { + errorMessage = message } - errorBody.Seek(0, io.SeekStart) + switch { - case strings.EqualFold("AWS.SimpleQueueService.MessageNotInflight", errorCode): - return awsAwsquery_deserializeErrorMessageNotInflight(response, errorBody) + case strings.EqualFold("MessageNotInflight", errorCode): + return awsAwsjson10_deserializeErrorMessageNotInflight(response, errorBody) + + case strings.EqualFold("QueueDoesNotExist", errorCode): + return awsAwsjson10_deserializeErrorQueueDoesNotExist(response, errorBody) case strings.EqualFold("ReceiptHandleIsInvalid", errorCode): - return awsAwsquery_deserializeErrorReceiptHandleIsInvalid(response, errorBody) + return awsAwsjson10_deserializeErrorReceiptHandleIsInvalid(response, errorBody) + + case strings.EqualFold("RequestThrottled", errorCode): + return awsAwsjson10_deserializeErrorRequestThrottled(response, errorBody) + + case strings.EqualFold("UnsupportedOperation", errorCode): + return awsAwsjson10_deserializeErrorUnsupportedOperation(response, errorBody) default: + awsQueryErrorCode := getAwsQueryErrorCode(response) + if awsQueryErrorCode != "" { + errorCode = awsQueryErrorCode + } genericError := &smithy.GenericAPIError{ Code: errorCode, Message: errorMessage, @@ -172,14 +233,14 @@ func awsAwsquery_deserializeOpErrorChangeMessageVisibility(response *smithyhttp. } } -type awsAwsquery_deserializeOpChangeMessageVisibilityBatch struct { +type awsAwsjson10_deserializeOpChangeMessageVisibilityBatch struct { } -func (*awsAwsquery_deserializeOpChangeMessageVisibilityBatch) ID() string { +func (*awsAwsjson10_deserializeOpChangeMessageVisibilityBatch) ID() string { return "OperationDeserializer" } -func (m *awsAwsquery_deserializeOpChangeMessageVisibilityBatch) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson10_deserializeOpChangeMessageVisibilityBatch) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -193,31 +254,19 @@ func (m *awsAwsquery_deserializeOpChangeMessageVisibilityBatch) HandleDeserializ } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorChangeMessageVisibilityBatch(response, &metadata) + return out, metadata, awsAwsjson10_deserializeOpErrorChangeMessageVisibilityBatch(response, &metadata) } output := &ChangeMessageVisibilityBatchOutput{} out.Result = output var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("ChangeMessageVisibilityBatchResult") - if err != nil { + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) err = &smithy.DeserializationError{ @@ -227,8 +276,7 @@ func (m *awsAwsquery_deserializeOpChangeMessageVisibilityBatch) HandleDeserializ return out, metadata, err } - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentChangeMessageVisibilityBatchOutput(&output, decoder) + err = awsAwsjson10_deserializeOpDocumentChangeMessageVisibilityBatchOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -242,7 +290,7 @@ func (m *awsAwsquery_deserializeOpChangeMessageVisibilityBatch) HandleDeserializ return out, metadata, err } -func awsAwsquery_deserializeOpErrorChangeMessageVisibilityBatch(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson10_deserializeOpErrorChangeMessageVisibilityBatch(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -252,34 +300,63 @@ func awsAwsquery_deserializeOpErrorChangeMessageVisibilityBatch(response *smithy errorCode := "UnknownError" errorMessage := errorCode - errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } return err } - if reqID := errorComponents.RequestID; len(reqID) != 0 { - awsmiddleware.SetRequestIDMetadata(metadata, reqID) - } - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message + if len(message) != 0 { + errorMessage = message } - errorBody.Seek(0, io.SeekStart) + switch { - case strings.EqualFold("AWS.SimpleQueueService.BatchEntryIdsNotDistinct", errorCode): - return awsAwsquery_deserializeErrorBatchEntryIdsNotDistinct(response, errorBody) + case strings.EqualFold("BatchEntryIdsNotDistinct", errorCode): + return awsAwsjson10_deserializeErrorBatchEntryIdsNotDistinct(response, errorBody) + + case strings.EqualFold("EmptyBatchRequest", errorCode): + return awsAwsjson10_deserializeErrorEmptyBatchRequest(response, errorBody) + + case strings.EqualFold("InvalidBatchEntryId", errorCode): + return awsAwsjson10_deserializeErrorInvalidBatchEntryId(response, errorBody) - case strings.EqualFold("AWS.SimpleQueueService.EmptyBatchRequest", errorCode): - return awsAwsquery_deserializeErrorEmptyBatchRequest(response, errorBody) + case strings.EqualFold("QueueDoesNotExist", errorCode): + return awsAwsjson10_deserializeErrorQueueDoesNotExist(response, errorBody) - case strings.EqualFold("AWS.SimpleQueueService.InvalidBatchEntryId", errorCode): - return awsAwsquery_deserializeErrorInvalidBatchEntryId(response, errorBody) + case strings.EqualFold("RequestThrottled", errorCode): + return awsAwsjson10_deserializeErrorRequestThrottled(response, errorBody) - case strings.EqualFold("AWS.SimpleQueueService.TooManyEntriesInBatchRequest", errorCode): - return awsAwsquery_deserializeErrorTooManyEntriesInBatchRequest(response, errorBody) + case strings.EqualFold("TooManyEntriesInBatchRequest", errorCode): + return awsAwsjson10_deserializeErrorTooManyEntriesInBatchRequest(response, errorBody) + + case strings.EqualFold("UnsupportedOperation", errorCode): + return awsAwsjson10_deserializeErrorUnsupportedOperation(response, errorBody) default: + awsQueryErrorCode := getAwsQueryErrorCode(response) + if awsQueryErrorCode != "" { + errorCode = awsQueryErrorCode + } genericError := &smithy.GenericAPIError{ Code: errorCode, Message: errorMessage, @@ -289,14 +366,14 @@ func awsAwsquery_deserializeOpErrorChangeMessageVisibilityBatch(response *smithy } } -type awsAwsquery_deserializeOpCreateQueue struct { +type awsAwsjson10_deserializeOpCreateQueue struct { } -func (*awsAwsquery_deserializeOpCreateQueue) ID() string { +func (*awsAwsjson10_deserializeOpCreateQueue) ID() string { return "OperationDeserializer" } -func (m *awsAwsquery_deserializeOpCreateQueue) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson10_deserializeOpCreateQueue) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -310,31 +387,19 @@ func (m *awsAwsquery_deserializeOpCreateQueue) HandleDeserialize(ctx context.Con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorCreateQueue(response, &metadata) + return out, metadata, awsAwsjson10_deserializeOpErrorCreateQueue(response, &metadata) } output := &CreateQueueOutput{} out.Result = output var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("CreateQueueResult") - if err != nil { + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) err = &smithy.DeserializationError{ @@ -344,8 +409,7 @@ func (m *awsAwsquery_deserializeOpCreateQueue) HandleDeserialize(ctx context.Con return out, metadata, err } - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentCreateQueueOutput(&output, decoder) + err = awsAwsjson10_deserializeOpDocumentCreateQueueOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -359,7 +423,7 @@ func (m *awsAwsquery_deserializeOpCreateQueue) HandleDeserialize(ctx context.Con return out, metadata, err } -func awsAwsquery_deserializeOpErrorCreateQueue(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson10_deserializeOpErrorCreateQueue(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -369,28 +433,66 @@ func awsAwsquery_deserializeOpErrorCreateQueue(response *smithyhttp.Response, me errorCode := "UnknownError" errorMessage := errorCode - errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } return err } - if reqID := errorComponents.RequestID; len(reqID) != 0 { - awsmiddleware.SetRequestIDMetadata(metadata, reqID) - } - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message + if len(message) != 0 { + errorMessage = message } - errorBody.Seek(0, io.SeekStart) + switch { - case strings.EqualFold("AWS.SimpleQueueService.QueueDeletedRecently", errorCode): - return awsAwsquery_deserializeErrorQueueDeletedRecently(response, errorBody) + case strings.EqualFold("InvalidAddress", errorCode): + return awsAwsjson10_deserializeErrorInvalidAddress(response, errorBody) + + case strings.EqualFold("InvalidAttributeName", errorCode): + return awsAwsjson10_deserializeErrorInvalidAttributeName(response, errorBody) - case strings.EqualFold("QueueAlreadyExists", errorCode): - return awsAwsquery_deserializeErrorQueueNameExists(response, errorBody) + case strings.EqualFold("InvalidAttributeValue", errorCode): + return awsAwsjson10_deserializeErrorInvalidAttributeValue(response, errorBody) + + case strings.EqualFold("InvalidSecurity", errorCode): + return awsAwsjson10_deserializeErrorInvalidSecurity(response, errorBody) + + case strings.EqualFold("QueueDeletedRecently", errorCode): + return awsAwsjson10_deserializeErrorQueueDeletedRecently(response, errorBody) + + case strings.EqualFold("QueueNameExists", errorCode): + return awsAwsjson10_deserializeErrorQueueNameExists(response, errorBody) + + case strings.EqualFold("RequestThrottled", errorCode): + return awsAwsjson10_deserializeErrorRequestThrottled(response, errorBody) + + case strings.EqualFold("UnsupportedOperation", errorCode): + return awsAwsjson10_deserializeErrorUnsupportedOperation(response, errorBody) default: + awsQueryErrorCode := getAwsQueryErrorCode(response) + if awsQueryErrorCode != "" { + errorCode = awsQueryErrorCode + } genericError := &smithy.GenericAPIError{ Code: errorCode, Message: errorMessage, @@ -400,14 +502,14 @@ func awsAwsquery_deserializeOpErrorCreateQueue(response *smithyhttp.Response, me } } -type awsAwsquery_deserializeOpDeleteMessage struct { +type awsAwsjson10_deserializeOpDeleteMessage struct { } -func (*awsAwsquery_deserializeOpDeleteMessage) ID() string { +func (*awsAwsjson10_deserializeOpDeleteMessage) ID() string { return "OperationDeserializer" } -func (m *awsAwsquery_deserializeOpDeleteMessage) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson10_deserializeOpDeleteMessage) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -421,7 +523,7 @@ func (m *awsAwsquery_deserializeOpDeleteMessage) HandleDeserialize(ctx context.C } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorDeleteMessage(response, &metadata) + return out, metadata, awsAwsjson10_deserializeOpErrorDeleteMessage(response, &metadata) } output := &DeleteMessageOutput{} out.Result = output @@ -435,7 +537,7 @@ func (m *awsAwsquery_deserializeOpDeleteMessage) HandleDeserialize(ctx context.C return out, metadata, err } -func awsAwsquery_deserializeOpErrorDeleteMessage(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson10_deserializeOpErrorDeleteMessage(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -445,28 +547,60 @@ func awsAwsquery_deserializeOpErrorDeleteMessage(response *smithyhttp.Response, errorCode := "UnknownError" errorMessage := errorCode - errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } return err } - if reqID := errorComponents.RequestID; len(reqID) != 0 { - awsmiddleware.SetRequestIDMetadata(metadata, reqID) - } - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message + if len(message) != 0 { + errorMessage = message } - errorBody.Seek(0, io.SeekStart) + switch { case strings.EqualFold("InvalidIdFormat", errorCode): - return awsAwsquery_deserializeErrorInvalidIdFormat(response, errorBody) + return awsAwsjson10_deserializeErrorInvalidIdFormat(response, errorBody) + + case strings.EqualFold("InvalidSecurity", errorCode): + return awsAwsjson10_deserializeErrorInvalidSecurity(response, errorBody) + + case strings.EqualFold("QueueDoesNotExist", errorCode): + return awsAwsjson10_deserializeErrorQueueDoesNotExist(response, errorBody) case strings.EqualFold("ReceiptHandleIsInvalid", errorCode): - return awsAwsquery_deserializeErrorReceiptHandleIsInvalid(response, errorBody) + return awsAwsjson10_deserializeErrorReceiptHandleIsInvalid(response, errorBody) + + case strings.EqualFold("RequestThrottled", errorCode): + return awsAwsjson10_deserializeErrorRequestThrottled(response, errorBody) + + case strings.EqualFold("UnsupportedOperation", errorCode): + return awsAwsjson10_deserializeErrorUnsupportedOperation(response, errorBody) default: + awsQueryErrorCode := getAwsQueryErrorCode(response) + if awsQueryErrorCode != "" { + errorCode = awsQueryErrorCode + } genericError := &smithy.GenericAPIError{ Code: errorCode, Message: errorMessage, @@ -476,14 +610,14 @@ func awsAwsquery_deserializeOpErrorDeleteMessage(response *smithyhttp.Response, } } -type awsAwsquery_deserializeOpDeleteMessageBatch struct { +type awsAwsjson10_deserializeOpDeleteMessageBatch struct { } -func (*awsAwsquery_deserializeOpDeleteMessageBatch) ID() string { +func (*awsAwsjson10_deserializeOpDeleteMessageBatch) ID() string { return "OperationDeserializer" } -func (m *awsAwsquery_deserializeOpDeleteMessageBatch) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson10_deserializeOpDeleteMessageBatch) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -497,31 +631,19 @@ func (m *awsAwsquery_deserializeOpDeleteMessageBatch) HandleDeserialize(ctx cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorDeleteMessageBatch(response, &metadata) + return out, metadata, awsAwsjson10_deserializeOpErrorDeleteMessageBatch(response, &metadata) } output := &DeleteMessageBatchOutput{} out.Result = output var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("DeleteMessageBatchResult") - if err != nil { + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) err = &smithy.DeserializationError{ @@ -531,8 +653,7 @@ func (m *awsAwsquery_deserializeOpDeleteMessageBatch) HandleDeserialize(ctx cont return out, metadata, err } - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentDeleteMessageBatchOutput(&output, decoder) + err = awsAwsjson10_deserializeOpDocumentDeleteMessageBatchOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -546,7 +667,7 @@ func (m *awsAwsquery_deserializeOpDeleteMessageBatch) HandleDeserialize(ctx cont return out, metadata, err } -func awsAwsquery_deserializeOpErrorDeleteMessageBatch(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson10_deserializeOpErrorDeleteMessageBatch(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -556,34 +677,63 @@ func awsAwsquery_deserializeOpErrorDeleteMessageBatch(response *smithyhttp.Respo errorCode := "UnknownError" errorMessage := errorCode - errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } return err } - if reqID := errorComponents.RequestID; len(reqID) != 0 { - awsmiddleware.SetRequestIDMetadata(metadata, reqID) - } - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message + if len(message) != 0 { + errorMessage = message } - errorBody.Seek(0, io.SeekStart) + switch { - case strings.EqualFold("AWS.SimpleQueueService.BatchEntryIdsNotDistinct", errorCode): - return awsAwsquery_deserializeErrorBatchEntryIdsNotDistinct(response, errorBody) + case strings.EqualFold("BatchEntryIdsNotDistinct", errorCode): + return awsAwsjson10_deserializeErrorBatchEntryIdsNotDistinct(response, errorBody) + + case strings.EqualFold("EmptyBatchRequest", errorCode): + return awsAwsjson10_deserializeErrorEmptyBatchRequest(response, errorBody) - case strings.EqualFold("AWS.SimpleQueueService.EmptyBatchRequest", errorCode): - return awsAwsquery_deserializeErrorEmptyBatchRequest(response, errorBody) + case strings.EqualFold("InvalidBatchEntryId", errorCode): + return awsAwsjson10_deserializeErrorInvalidBatchEntryId(response, errorBody) - case strings.EqualFold("AWS.SimpleQueueService.InvalidBatchEntryId", errorCode): - return awsAwsquery_deserializeErrorInvalidBatchEntryId(response, errorBody) + case strings.EqualFold("QueueDoesNotExist", errorCode): + return awsAwsjson10_deserializeErrorQueueDoesNotExist(response, errorBody) - case strings.EqualFold("AWS.SimpleQueueService.TooManyEntriesInBatchRequest", errorCode): - return awsAwsquery_deserializeErrorTooManyEntriesInBatchRequest(response, errorBody) + case strings.EqualFold("RequestThrottled", errorCode): + return awsAwsjson10_deserializeErrorRequestThrottled(response, errorBody) + + case strings.EqualFold("TooManyEntriesInBatchRequest", errorCode): + return awsAwsjson10_deserializeErrorTooManyEntriesInBatchRequest(response, errorBody) + + case strings.EqualFold("UnsupportedOperation", errorCode): + return awsAwsjson10_deserializeErrorUnsupportedOperation(response, errorBody) default: + awsQueryErrorCode := getAwsQueryErrorCode(response) + if awsQueryErrorCode != "" { + errorCode = awsQueryErrorCode + } genericError := &smithy.GenericAPIError{ Code: errorCode, Message: errorMessage, @@ -593,14 +743,14 @@ func awsAwsquery_deserializeOpErrorDeleteMessageBatch(response *smithyhttp.Respo } } -type awsAwsquery_deserializeOpDeleteQueue struct { +type awsAwsjson10_deserializeOpDeleteQueue struct { } -func (*awsAwsquery_deserializeOpDeleteQueue) ID() string { +func (*awsAwsjson10_deserializeOpDeleteQueue) ID() string { return "OperationDeserializer" } -func (m *awsAwsquery_deserializeOpDeleteQueue) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson10_deserializeOpDeleteQueue) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -614,7 +764,7 @@ func (m *awsAwsquery_deserializeOpDeleteQueue) HandleDeserialize(ctx context.Con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorDeleteQueue(response, &metadata) + return out, metadata, awsAwsjson10_deserializeOpErrorDeleteQueue(response, &metadata) } output := &DeleteQueueOutput{} out.Result = output @@ -628,7 +778,7 @@ func (m *awsAwsquery_deserializeOpDeleteQueue) HandleDeserialize(ctx context.Con return out, metadata, err } -func awsAwsquery_deserializeOpErrorDeleteQueue(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson10_deserializeOpErrorDeleteQueue(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -638,22 +788,57 @@ func awsAwsquery_deserializeOpErrorDeleteQueue(response *smithyhttp.Response, me errorCode := "UnknownError" errorMessage := errorCode - errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } return err } - if reqID := errorComponents.RequestID; len(reqID) != 0 { - awsmiddleware.SetRequestIDMetadata(metadata, reqID) - } - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message + if len(message) != 0 { + errorMessage = message } - errorBody.Seek(0, io.SeekStart) + switch { + case strings.EqualFold("InvalidAddress", errorCode): + return awsAwsjson10_deserializeErrorInvalidAddress(response, errorBody) + + case strings.EqualFold("InvalidSecurity", errorCode): + return awsAwsjson10_deserializeErrorInvalidSecurity(response, errorBody) + + case strings.EqualFold("QueueDoesNotExist", errorCode): + return awsAwsjson10_deserializeErrorQueueDoesNotExist(response, errorBody) + + case strings.EqualFold("RequestThrottled", errorCode): + return awsAwsjson10_deserializeErrorRequestThrottled(response, errorBody) + + case strings.EqualFold("UnsupportedOperation", errorCode): + return awsAwsjson10_deserializeErrorUnsupportedOperation(response, errorBody) + default: + awsQueryErrorCode := getAwsQueryErrorCode(response) + if awsQueryErrorCode != "" { + errorCode = awsQueryErrorCode + } genericError := &smithy.GenericAPIError{ Code: errorCode, Message: errorMessage, @@ -663,14 +848,14 @@ func awsAwsquery_deserializeOpErrorDeleteQueue(response *smithyhttp.Response, me } } -type awsAwsquery_deserializeOpGetQueueAttributes struct { +type awsAwsjson10_deserializeOpGetQueueAttributes struct { } -func (*awsAwsquery_deserializeOpGetQueueAttributes) ID() string { +func (*awsAwsjson10_deserializeOpGetQueueAttributes) ID() string { return "OperationDeserializer" } -func (m *awsAwsquery_deserializeOpGetQueueAttributes) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson10_deserializeOpGetQueueAttributes) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -684,31 +869,19 @@ func (m *awsAwsquery_deserializeOpGetQueueAttributes) HandleDeserialize(ctx cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorGetQueueAttributes(response, &metadata) + return out, metadata, awsAwsjson10_deserializeOpErrorGetQueueAttributes(response, &metadata) } output := &GetQueueAttributesOutput{} out.Result = output var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("GetQueueAttributesResult") - if err != nil { + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) err = &smithy.DeserializationError{ @@ -718,8 +891,7 @@ func (m *awsAwsquery_deserializeOpGetQueueAttributes) HandleDeserialize(ctx cont return out, metadata, err } - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentGetQueueAttributesOutput(&output, decoder) + err = awsAwsjson10_deserializeOpDocumentGetQueueAttributesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -733,7 +905,7 @@ func (m *awsAwsquery_deserializeOpGetQueueAttributes) HandleDeserialize(ctx cont return out, metadata, err } -func awsAwsquery_deserializeOpErrorGetQueueAttributes(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson10_deserializeOpErrorGetQueueAttributes(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -743,25 +915,57 @@ func awsAwsquery_deserializeOpErrorGetQueueAttributes(response *smithyhttp.Respo errorCode := "UnknownError" errorMessage := errorCode - errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } return err } - if reqID := errorComponents.RequestID; len(reqID) != 0 { - awsmiddleware.SetRequestIDMetadata(metadata, reqID) - } - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message + if len(message) != 0 { + errorMessage = message } - errorBody.Seek(0, io.SeekStart) + switch { case strings.EqualFold("InvalidAttributeName", errorCode): - return awsAwsquery_deserializeErrorInvalidAttributeName(response, errorBody) + return awsAwsjson10_deserializeErrorInvalidAttributeName(response, errorBody) + + case strings.EqualFold("InvalidSecurity", errorCode): + return awsAwsjson10_deserializeErrorInvalidSecurity(response, errorBody) + + case strings.EqualFold("QueueDoesNotExist", errorCode): + return awsAwsjson10_deserializeErrorQueueDoesNotExist(response, errorBody) + + case strings.EqualFold("RequestThrottled", errorCode): + return awsAwsjson10_deserializeErrorRequestThrottled(response, errorBody) + + case strings.EqualFold("UnsupportedOperation", errorCode): + return awsAwsjson10_deserializeErrorUnsupportedOperation(response, errorBody) default: + awsQueryErrorCode := getAwsQueryErrorCode(response) + if awsQueryErrorCode != "" { + errorCode = awsQueryErrorCode + } genericError := &smithy.GenericAPIError{ Code: errorCode, Message: errorMessage, @@ -771,14 +975,14 @@ func awsAwsquery_deserializeOpErrorGetQueueAttributes(response *smithyhttp.Respo } } -type awsAwsquery_deserializeOpGetQueueUrl struct { +type awsAwsjson10_deserializeOpGetQueueUrl struct { } -func (*awsAwsquery_deserializeOpGetQueueUrl) ID() string { +func (*awsAwsjson10_deserializeOpGetQueueUrl) ID() string { return "OperationDeserializer" } -func (m *awsAwsquery_deserializeOpGetQueueUrl) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson10_deserializeOpGetQueueUrl) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -792,31 +996,19 @@ func (m *awsAwsquery_deserializeOpGetQueueUrl) HandleDeserialize(ctx context.Con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorGetQueueUrl(response, &metadata) + return out, metadata, awsAwsjson10_deserializeOpErrorGetQueueUrl(response, &metadata) } output := &GetQueueUrlOutput{} out.Result = output var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("GetQueueUrlResult") - if err != nil { + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) err = &smithy.DeserializationError{ @@ -826,8 +1018,7 @@ func (m *awsAwsquery_deserializeOpGetQueueUrl) HandleDeserialize(ctx context.Con return out, metadata, err } - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentGetQueueUrlOutput(&output, decoder) + err = awsAwsjson10_deserializeOpDocumentGetQueueUrlOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -841,7 +1032,7 @@ func (m *awsAwsquery_deserializeOpGetQueueUrl) HandleDeserialize(ctx context.Con return out, metadata, err } -func awsAwsquery_deserializeOpErrorGetQueueUrl(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson10_deserializeOpErrorGetQueueUrl(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -851,25 +1042,57 @@ func awsAwsquery_deserializeOpErrorGetQueueUrl(response *smithyhttp.Response, me errorCode := "UnknownError" errorMessage := errorCode - errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } return err } - if reqID := errorComponents.RequestID; len(reqID) != 0 { - awsmiddleware.SetRequestIDMetadata(metadata, reqID) - } - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message + if len(message) != 0 { + errorMessage = message } - errorBody.Seek(0, io.SeekStart) + switch { - case strings.EqualFold("AWS.SimpleQueueService.NonExistentQueue", errorCode): - return awsAwsquery_deserializeErrorQueueDoesNotExist(response, errorBody) + case strings.EqualFold("InvalidAddress", errorCode): + return awsAwsjson10_deserializeErrorInvalidAddress(response, errorBody) + + case strings.EqualFold("InvalidSecurity", errorCode): + return awsAwsjson10_deserializeErrorInvalidSecurity(response, errorBody) + + case strings.EqualFold("QueueDoesNotExist", errorCode): + return awsAwsjson10_deserializeErrorQueueDoesNotExist(response, errorBody) + + case strings.EqualFold("RequestThrottled", errorCode): + return awsAwsjson10_deserializeErrorRequestThrottled(response, errorBody) + + case strings.EqualFold("UnsupportedOperation", errorCode): + return awsAwsjson10_deserializeErrorUnsupportedOperation(response, errorBody) default: + awsQueryErrorCode := getAwsQueryErrorCode(response) + if awsQueryErrorCode != "" { + errorCode = awsQueryErrorCode + } genericError := &smithy.GenericAPIError{ Code: errorCode, Message: errorMessage, @@ -879,14 +1102,14 @@ func awsAwsquery_deserializeOpErrorGetQueueUrl(response *smithyhttp.Response, me } } -type awsAwsquery_deserializeOpListDeadLetterSourceQueues struct { +type awsAwsjson10_deserializeOpListDeadLetterSourceQueues struct { } -func (*awsAwsquery_deserializeOpListDeadLetterSourceQueues) ID() string { +func (*awsAwsjson10_deserializeOpListDeadLetterSourceQueues) ID() string { return "OperationDeserializer" } -func (m *awsAwsquery_deserializeOpListDeadLetterSourceQueues) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson10_deserializeOpListDeadLetterSourceQueues) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -900,42 +1123,29 @@ func (m *awsAwsquery_deserializeOpListDeadLetterSourceQueues) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorListDeadLetterSourceQueues(response, &metadata) + return out, metadata, awsAwsjson10_deserializeOpErrorListDeadLetterSourceQueues(response, &metadata) } output := &ListDeadLetterSourceQueuesOutput{} out.Result = output var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("ListDeadLetterSourceQueuesResult") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ + err = &smithy.DeserializationError{ Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } return out, metadata, err } - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentListDeadLetterSourceQueuesOutput(&output, decoder) + err = awsAwsjson10_deserializeOpDocumentListDeadLetterSourceQueuesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -949,7 +1159,7 @@ func (m *awsAwsquery_deserializeOpListDeadLetterSourceQueues) HandleDeserialize( return out, metadata, err } -func awsAwsquery_deserializeOpErrorListDeadLetterSourceQueues(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson10_deserializeOpErrorListDeadLetterSourceQueues(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -959,25 +1169,57 @@ func awsAwsquery_deserializeOpErrorListDeadLetterSourceQueues(response *smithyht errorCode := "UnknownError" errorMessage := errorCode - errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } return err } - if reqID := errorComponents.RequestID; len(reqID) != 0 { - awsmiddleware.SetRequestIDMetadata(metadata, reqID) - } - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message + if len(message) != 0 { + errorMessage = message } - errorBody.Seek(0, io.SeekStart) + switch { - case strings.EqualFold("AWS.SimpleQueueService.NonExistentQueue", errorCode): - return awsAwsquery_deserializeErrorQueueDoesNotExist(response, errorBody) + case strings.EqualFold("InvalidAddress", errorCode): + return awsAwsjson10_deserializeErrorInvalidAddress(response, errorBody) + + case strings.EqualFold("InvalidSecurity", errorCode): + return awsAwsjson10_deserializeErrorInvalidSecurity(response, errorBody) + + case strings.EqualFold("QueueDoesNotExist", errorCode): + return awsAwsjson10_deserializeErrorQueueDoesNotExist(response, errorBody) + + case strings.EqualFold("RequestThrottled", errorCode): + return awsAwsjson10_deserializeErrorRequestThrottled(response, errorBody) + + case strings.EqualFold("UnsupportedOperation", errorCode): + return awsAwsjson10_deserializeErrorUnsupportedOperation(response, errorBody) default: + awsQueryErrorCode := getAwsQueryErrorCode(response) + if awsQueryErrorCode != "" { + errorCode = awsQueryErrorCode + } genericError := &smithy.GenericAPIError{ Code: errorCode, Message: errorMessage, @@ -987,14 +1229,14 @@ func awsAwsquery_deserializeOpErrorListDeadLetterSourceQueues(response *smithyht } } -type awsAwsquery_deserializeOpListQueues struct { +type awsAwsjson10_deserializeOpListQueues struct { } -func (*awsAwsquery_deserializeOpListQueues) ID() string { +func (*awsAwsjson10_deserializeOpListQueues) ID() string { return "OperationDeserializer" } -func (m *awsAwsquery_deserializeOpListQueues) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson10_deserializeOpListQueues) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -1008,31 +1250,19 @@ func (m *awsAwsquery_deserializeOpListQueues) HandleDeserialize(ctx context.Cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorListQueues(response, &metadata) + return out, metadata, awsAwsjson10_deserializeOpErrorListQueues(response, &metadata) } output := &ListQueuesOutput{} out.Result = output var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("ListQueuesResult") - if err != nil { + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) err = &smithy.DeserializationError{ @@ -1042,8 +1272,7 @@ func (m *awsAwsquery_deserializeOpListQueues) HandleDeserialize(ctx context.Cont return out, metadata, err } - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentListQueuesOutput(&output, decoder) + err = awsAwsjson10_deserializeOpDocumentListQueuesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -1057,7 +1286,7 @@ func (m *awsAwsquery_deserializeOpListQueues) HandleDeserialize(ctx context.Cont return out, metadata, err } -func awsAwsquery_deserializeOpErrorListQueues(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson10_deserializeOpErrorListQueues(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -1067,22 +1296,54 @@ func awsAwsquery_deserializeOpErrorListQueues(response *smithyhttp.Response, met errorCode := "UnknownError" errorMessage := errorCode - errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } return err } - if reqID := errorComponents.RequestID; len(reqID) != 0 { - awsmiddleware.SetRequestIDMetadata(metadata, reqID) - } - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message + if len(message) != 0 { + errorMessage = message } - errorBody.Seek(0, io.SeekStart) + switch { + case strings.EqualFold("InvalidAddress", errorCode): + return awsAwsjson10_deserializeErrorInvalidAddress(response, errorBody) + + case strings.EqualFold("InvalidSecurity", errorCode): + return awsAwsjson10_deserializeErrorInvalidSecurity(response, errorBody) + + case strings.EqualFold("RequestThrottled", errorCode): + return awsAwsjson10_deserializeErrorRequestThrottled(response, errorBody) + + case strings.EqualFold("UnsupportedOperation", errorCode): + return awsAwsjson10_deserializeErrorUnsupportedOperation(response, errorBody) + default: + awsQueryErrorCode := getAwsQueryErrorCode(response) + if awsQueryErrorCode != "" { + errorCode = awsQueryErrorCode + } genericError := &smithy.GenericAPIError{ Code: errorCode, Message: errorMessage, @@ -1092,14 +1353,14 @@ func awsAwsquery_deserializeOpErrorListQueues(response *smithyhttp.Response, met } } -type awsAwsquery_deserializeOpListQueueTags struct { +type awsAwsjson10_deserializeOpListQueueTags struct { } -func (*awsAwsquery_deserializeOpListQueueTags) ID() string { +func (*awsAwsjson10_deserializeOpListQueueTags) ID() string { return "OperationDeserializer" } -func (m *awsAwsquery_deserializeOpListQueueTags) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson10_deserializeOpListQueueTags) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -1113,31 +1374,19 @@ func (m *awsAwsquery_deserializeOpListQueueTags) HandleDeserialize(ctx context.C } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorListQueueTags(response, &metadata) + return out, metadata, awsAwsjson10_deserializeOpErrorListQueueTags(response, &metadata) } output := &ListQueueTagsOutput{} out.Result = output var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("ListQueueTagsResult") - if err != nil { + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) err = &smithy.DeserializationError{ @@ -1147,8 +1396,7 @@ func (m *awsAwsquery_deserializeOpListQueueTags) HandleDeserialize(ctx context.C return out, metadata, err } - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentListQueueTagsOutput(&output, decoder) + err = awsAwsjson10_deserializeOpDocumentListQueueTagsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -1162,7 +1410,7 @@ func (m *awsAwsquery_deserializeOpListQueueTags) HandleDeserialize(ctx context.C return out, metadata, err } -func awsAwsquery_deserializeOpErrorListQueueTags(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson10_deserializeOpErrorListQueueTags(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -1172,22 +1420,57 @@ func awsAwsquery_deserializeOpErrorListQueueTags(response *smithyhttp.Response, errorCode := "UnknownError" errorMessage := errorCode - errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } return err } - if reqID := errorComponents.RequestID; len(reqID) != 0 { - awsmiddleware.SetRequestIDMetadata(metadata, reqID) - } - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message + if len(message) != 0 { + errorMessage = message } - errorBody.Seek(0, io.SeekStart) + switch { + case strings.EqualFold("InvalidAddress", errorCode): + return awsAwsjson10_deserializeErrorInvalidAddress(response, errorBody) + + case strings.EqualFold("InvalidSecurity", errorCode): + return awsAwsjson10_deserializeErrorInvalidSecurity(response, errorBody) + + case strings.EqualFold("QueueDoesNotExist", errorCode): + return awsAwsjson10_deserializeErrorQueueDoesNotExist(response, errorBody) + + case strings.EqualFold("RequestThrottled", errorCode): + return awsAwsjson10_deserializeErrorRequestThrottled(response, errorBody) + + case strings.EqualFold("UnsupportedOperation", errorCode): + return awsAwsjson10_deserializeErrorUnsupportedOperation(response, errorBody) + default: + awsQueryErrorCode := getAwsQueryErrorCode(response) + if awsQueryErrorCode != "" { + errorCode = awsQueryErrorCode + } genericError := &smithy.GenericAPIError{ Code: errorCode, Message: errorMessage, @@ -1197,14 +1480,14 @@ func awsAwsquery_deserializeOpErrorListQueueTags(response *smithyhttp.Response, } } -type awsAwsquery_deserializeOpPurgeQueue struct { +type awsAwsjson10_deserializeOpPurgeQueue struct { } -func (*awsAwsquery_deserializeOpPurgeQueue) ID() string { +func (*awsAwsjson10_deserializeOpPurgeQueue) ID() string { return "OperationDeserializer" } -func (m *awsAwsquery_deserializeOpPurgeQueue) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson10_deserializeOpPurgeQueue) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -1218,7 +1501,7 @@ func (m *awsAwsquery_deserializeOpPurgeQueue) HandleDeserialize(ctx context.Cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorPurgeQueue(response, &metadata) + return out, metadata, awsAwsjson10_deserializeOpErrorPurgeQueue(response, &metadata) } output := &PurgeQueueOutput{} out.Result = output @@ -1232,7 +1515,7 @@ func (m *awsAwsquery_deserializeOpPurgeQueue) HandleDeserialize(ctx context.Cont return out, metadata, err } -func awsAwsquery_deserializeOpErrorPurgeQueue(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson10_deserializeOpErrorPurgeQueue(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -1242,28 +1525,60 @@ func awsAwsquery_deserializeOpErrorPurgeQueue(response *smithyhttp.Response, met errorCode := "UnknownError" errorMessage := errorCode - errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } return err } - if reqID := errorComponents.RequestID; len(reqID) != 0 { - awsmiddleware.SetRequestIDMetadata(metadata, reqID) - } - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message + if len(message) != 0 { + errorMessage = message } - errorBody.Seek(0, io.SeekStart) + switch { - case strings.EqualFold("AWS.SimpleQueueService.NonExistentQueue", errorCode): - return awsAwsquery_deserializeErrorQueueDoesNotExist(response, errorBody) + case strings.EqualFold("InvalidAddress", errorCode): + return awsAwsjson10_deserializeErrorInvalidAddress(response, errorBody) + + case strings.EqualFold("InvalidSecurity", errorCode): + return awsAwsjson10_deserializeErrorInvalidSecurity(response, errorBody) + + case strings.EqualFold("PurgeQueueInProgress", errorCode): + return awsAwsjson10_deserializeErrorPurgeQueueInProgress(response, errorBody) + + case strings.EqualFold("QueueDoesNotExist", errorCode): + return awsAwsjson10_deserializeErrorQueueDoesNotExist(response, errorBody) - case strings.EqualFold("AWS.SimpleQueueService.PurgeQueueInProgress", errorCode): - return awsAwsquery_deserializeErrorPurgeQueueInProgress(response, errorBody) + case strings.EqualFold("RequestThrottled", errorCode): + return awsAwsjson10_deserializeErrorRequestThrottled(response, errorBody) + + case strings.EqualFold("UnsupportedOperation", errorCode): + return awsAwsjson10_deserializeErrorUnsupportedOperation(response, errorBody) default: + awsQueryErrorCode := getAwsQueryErrorCode(response) + if awsQueryErrorCode != "" { + errorCode = awsQueryErrorCode + } genericError := &smithy.GenericAPIError{ Code: errorCode, Message: errorMessage, @@ -1273,14 +1588,14 @@ func awsAwsquery_deserializeOpErrorPurgeQueue(response *smithyhttp.Response, met } } -type awsAwsquery_deserializeOpReceiveMessage struct { +type awsAwsjson10_deserializeOpReceiveMessage struct { } -func (*awsAwsquery_deserializeOpReceiveMessage) ID() string { +func (*awsAwsjson10_deserializeOpReceiveMessage) ID() string { return "OperationDeserializer" } -func (m *awsAwsquery_deserializeOpReceiveMessage) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson10_deserializeOpReceiveMessage) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -1294,31 +1609,19 @@ func (m *awsAwsquery_deserializeOpReceiveMessage) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorReceiveMessage(response, &metadata) + return out, metadata, awsAwsjson10_deserializeOpErrorReceiveMessage(response, &metadata) } output := &ReceiveMessageOutput{} out.Result = output var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("ReceiveMessageResult") - if err != nil { + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) err = &smithy.DeserializationError{ @@ -1328,8 +1631,7 @@ func (m *awsAwsquery_deserializeOpReceiveMessage) HandleDeserialize(ctx context. return out, metadata, err } - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentReceiveMessageOutput(&output, decoder) + err = awsAwsjson10_deserializeOpDocumentReceiveMessageOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -1343,7 +1645,7 @@ func (m *awsAwsquery_deserializeOpReceiveMessage) HandleDeserialize(ctx context. return out, metadata, err } -func awsAwsquery_deserializeOpErrorReceiveMessage(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson10_deserializeOpErrorReceiveMessage(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -1353,25 +1655,78 @@ func awsAwsquery_deserializeOpErrorReceiveMessage(response *smithyhttp.Response, errorCode := "UnknownError" errorMessage := errorCode - errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } return err } - if reqID := errorComponents.RequestID; len(reqID) != 0 { - awsmiddleware.SetRequestIDMetadata(metadata, reqID) - } - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message + if len(message) != 0 { + errorMessage = message } - errorBody.Seek(0, io.SeekStart) + switch { + case strings.EqualFold("InvalidSecurity", errorCode): + return awsAwsjson10_deserializeErrorInvalidSecurity(response, errorBody) + + case strings.EqualFold("KmsAccessDenied", errorCode): + return awsAwsjson10_deserializeErrorKmsAccessDenied(response, errorBody) + + case strings.EqualFold("KmsDisabled", errorCode): + return awsAwsjson10_deserializeErrorKmsDisabled(response, errorBody) + + case strings.EqualFold("KmsInvalidKeyUsage", errorCode): + return awsAwsjson10_deserializeErrorKmsInvalidKeyUsage(response, errorBody) + + case strings.EqualFold("KmsInvalidState", errorCode): + return awsAwsjson10_deserializeErrorKmsInvalidState(response, errorBody) + + case strings.EqualFold("KmsNotFound", errorCode): + return awsAwsjson10_deserializeErrorKmsNotFound(response, errorBody) + + case strings.EqualFold("KmsOptInRequired", errorCode): + return awsAwsjson10_deserializeErrorKmsOptInRequired(response, errorBody) + + case strings.EqualFold("KmsThrottled", errorCode): + return awsAwsjson10_deserializeErrorKmsThrottled(response, errorBody) + case strings.EqualFold("OverLimit", errorCode): - return awsAwsquery_deserializeErrorOverLimit(response, errorBody) + return awsAwsjson10_deserializeErrorOverLimit(response, errorBody) + + case strings.EqualFold("QueueDoesNotExist", errorCode): + return awsAwsjson10_deserializeErrorQueueDoesNotExist(response, errorBody) + + case strings.EqualFold("RequestThrottled", errorCode): + return awsAwsjson10_deserializeErrorRequestThrottled(response, errorBody) + + case strings.EqualFold("UnsupportedOperation", errorCode): + return awsAwsjson10_deserializeErrorUnsupportedOperation(response, errorBody) default: + awsQueryErrorCode := getAwsQueryErrorCode(response) + if awsQueryErrorCode != "" { + errorCode = awsQueryErrorCode + } genericError := &smithy.GenericAPIError{ Code: errorCode, Message: errorMessage, @@ -1381,14 +1736,14 @@ func awsAwsquery_deserializeOpErrorReceiveMessage(response *smithyhttp.Response, } } -type awsAwsquery_deserializeOpRemovePermission struct { +type awsAwsjson10_deserializeOpRemovePermission struct { } -func (*awsAwsquery_deserializeOpRemovePermission) ID() string { +func (*awsAwsjson10_deserializeOpRemovePermission) ID() string { return "OperationDeserializer" } -func (m *awsAwsquery_deserializeOpRemovePermission) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson10_deserializeOpRemovePermission) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -1402,7 +1757,7 @@ func (m *awsAwsquery_deserializeOpRemovePermission) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorRemovePermission(response, &metadata) + return out, metadata, awsAwsjson10_deserializeOpErrorRemovePermission(response, &metadata) } output := &RemovePermissionOutput{} out.Result = output @@ -1416,7 +1771,7 @@ func (m *awsAwsquery_deserializeOpRemovePermission) HandleDeserialize(ctx contex return out, metadata, err } -func awsAwsquery_deserializeOpErrorRemovePermission(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson10_deserializeOpErrorRemovePermission(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -1426,22 +1781,57 @@ func awsAwsquery_deserializeOpErrorRemovePermission(response *smithyhttp.Respons errorCode := "UnknownError" errorMessage := errorCode - errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } return err } - if reqID := errorComponents.RequestID; len(reqID) != 0 { - awsmiddleware.SetRequestIDMetadata(metadata, reqID) - } - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message + if len(message) != 0 { + errorMessage = message } - errorBody.Seek(0, io.SeekStart) + switch { + case strings.EqualFold("InvalidAddress", errorCode): + return awsAwsjson10_deserializeErrorInvalidAddress(response, errorBody) + + case strings.EqualFold("InvalidSecurity", errorCode): + return awsAwsjson10_deserializeErrorInvalidSecurity(response, errorBody) + + case strings.EqualFold("QueueDoesNotExist", errorCode): + return awsAwsjson10_deserializeErrorQueueDoesNotExist(response, errorBody) + + case strings.EqualFold("RequestThrottled", errorCode): + return awsAwsjson10_deserializeErrorRequestThrottled(response, errorBody) + + case strings.EqualFold("UnsupportedOperation", errorCode): + return awsAwsjson10_deserializeErrorUnsupportedOperation(response, errorBody) + default: + awsQueryErrorCode := getAwsQueryErrorCode(response) + if awsQueryErrorCode != "" { + errorCode = awsQueryErrorCode + } genericError := &smithy.GenericAPIError{ Code: errorCode, Message: errorMessage, @@ -1451,14 +1841,14 @@ func awsAwsquery_deserializeOpErrorRemovePermission(response *smithyhttp.Respons } } -type awsAwsquery_deserializeOpSendMessage struct { +type awsAwsjson10_deserializeOpSendMessage struct { } -func (*awsAwsquery_deserializeOpSendMessage) ID() string { +func (*awsAwsjson10_deserializeOpSendMessage) ID() string { return "OperationDeserializer" } -func (m *awsAwsquery_deserializeOpSendMessage) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson10_deserializeOpSendMessage) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -1472,31 +1862,19 @@ func (m *awsAwsquery_deserializeOpSendMessage) HandleDeserialize(ctx context.Con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorSendMessage(response, &metadata) + return out, metadata, awsAwsjson10_deserializeOpErrorSendMessage(response, &metadata) } output := &SendMessageOutput{} out.Result = output var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("SendMessageResult") - if err != nil { + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) err = &smithy.DeserializationError{ @@ -1506,8 +1884,7 @@ func (m *awsAwsquery_deserializeOpSendMessage) HandleDeserialize(ctx context.Con return out, metadata, err } - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentSendMessageOutput(&output, decoder) + err = awsAwsjson10_deserializeOpDocumentSendMessageOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -1521,7 +1898,7 @@ func (m *awsAwsquery_deserializeOpSendMessage) HandleDeserialize(ctx context.Con return out, metadata, err } -func awsAwsquery_deserializeOpErrorSendMessage(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson10_deserializeOpErrorSendMessage(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -1531,28 +1908,78 @@ func awsAwsquery_deserializeOpErrorSendMessage(response *smithyhttp.Response, me errorCode := "UnknownError" errorMessage := errorCode - errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } return err } - if reqID := errorComponents.RequestID; len(reqID) != 0 { - awsmiddleware.SetRequestIDMetadata(metadata, reqID) - } - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message + if len(message) != 0 { + errorMessage = message } - errorBody.Seek(0, io.SeekStart) - switch { - case strings.EqualFold("AWS.SimpleQueueService.UnsupportedOperation", errorCode): - return awsAwsquery_deserializeErrorUnsupportedOperation(response, errorBody) + switch { case strings.EqualFold("InvalidMessageContents", errorCode): - return awsAwsquery_deserializeErrorInvalidMessageContents(response, errorBody) + return awsAwsjson10_deserializeErrorInvalidMessageContents(response, errorBody) + + case strings.EqualFold("InvalidSecurity", errorCode): + return awsAwsjson10_deserializeErrorInvalidSecurity(response, errorBody) + + case strings.EqualFold("KmsAccessDenied", errorCode): + return awsAwsjson10_deserializeErrorKmsAccessDenied(response, errorBody) + + case strings.EqualFold("KmsDisabled", errorCode): + return awsAwsjson10_deserializeErrorKmsDisabled(response, errorBody) + + case strings.EqualFold("KmsInvalidKeyUsage", errorCode): + return awsAwsjson10_deserializeErrorKmsInvalidKeyUsage(response, errorBody) + + case strings.EqualFold("KmsInvalidState", errorCode): + return awsAwsjson10_deserializeErrorKmsInvalidState(response, errorBody) + + case strings.EqualFold("KmsNotFound", errorCode): + return awsAwsjson10_deserializeErrorKmsNotFound(response, errorBody) + + case strings.EqualFold("KmsOptInRequired", errorCode): + return awsAwsjson10_deserializeErrorKmsOptInRequired(response, errorBody) + + case strings.EqualFold("KmsThrottled", errorCode): + return awsAwsjson10_deserializeErrorKmsThrottled(response, errorBody) + + case strings.EqualFold("QueueDoesNotExist", errorCode): + return awsAwsjson10_deserializeErrorQueueDoesNotExist(response, errorBody) + + case strings.EqualFold("RequestThrottled", errorCode): + return awsAwsjson10_deserializeErrorRequestThrottled(response, errorBody) + + case strings.EqualFold("UnsupportedOperation", errorCode): + return awsAwsjson10_deserializeErrorUnsupportedOperation(response, errorBody) default: + awsQueryErrorCode := getAwsQueryErrorCode(response) + if awsQueryErrorCode != "" { + errorCode = awsQueryErrorCode + } genericError := &smithy.GenericAPIError{ Code: errorCode, Message: errorMessage, @@ -1562,14 +1989,14 @@ func awsAwsquery_deserializeOpErrorSendMessage(response *smithyhttp.Response, me } } -type awsAwsquery_deserializeOpSendMessageBatch struct { +type awsAwsjson10_deserializeOpSendMessageBatch struct { } -func (*awsAwsquery_deserializeOpSendMessageBatch) ID() string { +func (*awsAwsjson10_deserializeOpSendMessageBatch) ID() string { return "OperationDeserializer" } -func (m *awsAwsquery_deserializeOpSendMessageBatch) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson10_deserializeOpSendMessageBatch) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -1583,31 +2010,19 @@ func (m *awsAwsquery_deserializeOpSendMessageBatch) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorSendMessageBatch(response, &metadata) + return out, metadata, awsAwsjson10_deserializeOpErrorSendMessageBatch(response, &metadata) } output := &SendMessageBatchOutput{} out.Result = output var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("SendMessageBatchResult") - if err != nil { + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) err = &smithy.DeserializationError{ @@ -1617,8 +2032,7 @@ func (m *awsAwsquery_deserializeOpSendMessageBatch) HandleDeserialize(ctx contex return out, metadata, err } - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentSendMessageBatchOutput(&output, decoder) + err = awsAwsjson10_deserializeOpDocumentSendMessageBatchOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -1632,7 +2046,7 @@ func (m *awsAwsquery_deserializeOpSendMessageBatch) HandleDeserialize(ctx contex return out, metadata, err } -func awsAwsquery_deserializeOpErrorSendMessageBatch(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson10_deserializeOpErrorSendMessageBatch(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -1642,57 +2056,107 @@ func awsAwsquery_deserializeOpErrorSendMessageBatch(response *smithyhttp.Respons errorCode := "UnknownError" errorMessage := errorCode - errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } return err } - if reqID := errorComponents.RequestID; len(reqID) != 0 { - awsmiddleware.SetRequestIDMetadata(metadata, reqID) - } - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message + if len(message) != 0 { + errorMessage = message } - errorBody.Seek(0, io.SeekStart) + switch { - case strings.EqualFold("AWS.SimpleQueueService.BatchEntryIdsNotDistinct", errorCode): - return awsAwsquery_deserializeErrorBatchEntryIdsNotDistinct(response, errorBody) + case strings.EqualFold("BatchEntryIdsNotDistinct", errorCode): + return awsAwsjson10_deserializeErrorBatchEntryIdsNotDistinct(response, errorBody) - case strings.EqualFold("AWS.SimpleQueueService.BatchRequestTooLong", errorCode): - return awsAwsquery_deserializeErrorBatchRequestTooLong(response, errorBody) + case strings.EqualFold("BatchRequestTooLong", errorCode): + return awsAwsjson10_deserializeErrorBatchRequestTooLong(response, errorBody) - case strings.EqualFold("AWS.SimpleQueueService.EmptyBatchRequest", errorCode): - return awsAwsquery_deserializeErrorEmptyBatchRequest(response, errorBody) + case strings.EqualFold("EmptyBatchRequest", errorCode): + return awsAwsjson10_deserializeErrorEmptyBatchRequest(response, errorBody) - case strings.EqualFold("AWS.SimpleQueueService.InvalidBatchEntryId", errorCode): - return awsAwsquery_deserializeErrorInvalidBatchEntryId(response, errorBody) + case strings.EqualFold("InvalidBatchEntryId", errorCode): + return awsAwsjson10_deserializeErrorInvalidBatchEntryId(response, errorBody) - case strings.EqualFold("AWS.SimpleQueueService.TooManyEntriesInBatchRequest", errorCode): - return awsAwsquery_deserializeErrorTooManyEntriesInBatchRequest(response, errorBody) + case strings.EqualFold("InvalidSecurity", errorCode): + return awsAwsjson10_deserializeErrorInvalidSecurity(response, errorBody) - case strings.EqualFold("AWS.SimpleQueueService.UnsupportedOperation", errorCode): - return awsAwsquery_deserializeErrorUnsupportedOperation(response, errorBody) + case strings.EqualFold("KmsAccessDenied", errorCode): + return awsAwsjson10_deserializeErrorKmsAccessDenied(response, errorBody) - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError + case strings.EqualFold("KmsDisabled", errorCode): + return awsAwsjson10_deserializeErrorKmsDisabled(response, errorBody) - } + case strings.EqualFold("KmsInvalidKeyUsage", errorCode): + return awsAwsjson10_deserializeErrorKmsInvalidKeyUsage(response, errorBody) + + case strings.EqualFold("KmsInvalidState", errorCode): + return awsAwsjson10_deserializeErrorKmsInvalidState(response, errorBody) + + case strings.EqualFold("KmsNotFound", errorCode): + return awsAwsjson10_deserializeErrorKmsNotFound(response, errorBody) + + case strings.EqualFold("KmsOptInRequired", errorCode): + return awsAwsjson10_deserializeErrorKmsOptInRequired(response, errorBody) + + case strings.EqualFold("KmsThrottled", errorCode): + return awsAwsjson10_deserializeErrorKmsThrottled(response, errorBody) + + case strings.EqualFold("QueueDoesNotExist", errorCode): + return awsAwsjson10_deserializeErrorQueueDoesNotExist(response, errorBody) + + case strings.EqualFold("RequestThrottled", errorCode): + return awsAwsjson10_deserializeErrorRequestThrottled(response, errorBody) + + case strings.EqualFold("TooManyEntriesInBatchRequest", errorCode): + return awsAwsjson10_deserializeErrorTooManyEntriesInBatchRequest(response, errorBody) + + case strings.EqualFold("UnsupportedOperation", errorCode): + return awsAwsjson10_deserializeErrorUnsupportedOperation(response, errorBody) + + default: + awsQueryErrorCode := getAwsQueryErrorCode(response) + if awsQueryErrorCode != "" { + errorCode = awsQueryErrorCode + } + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } } -type awsAwsquery_deserializeOpSetQueueAttributes struct { +type awsAwsjson10_deserializeOpSetQueueAttributes struct { } -func (*awsAwsquery_deserializeOpSetQueueAttributes) ID() string { +func (*awsAwsjson10_deserializeOpSetQueueAttributes) ID() string { return "OperationDeserializer" } -func (m *awsAwsquery_deserializeOpSetQueueAttributes) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson10_deserializeOpSetQueueAttributes) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -1706,7 +2170,7 @@ func (m *awsAwsquery_deserializeOpSetQueueAttributes) HandleDeserialize(ctx cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorSetQueueAttributes(response, &metadata) + return out, metadata, awsAwsjson10_deserializeOpErrorSetQueueAttributes(response, &metadata) } output := &SetQueueAttributesOutput{} out.Result = output @@ -1720,7 +2184,7 @@ func (m *awsAwsquery_deserializeOpSetQueueAttributes) HandleDeserialize(ctx cont return out, metadata, err } -func awsAwsquery_deserializeOpErrorSetQueueAttributes(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson10_deserializeOpErrorSetQueueAttributes(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -1730,25 +2194,66 @@ func awsAwsquery_deserializeOpErrorSetQueueAttributes(response *smithyhttp.Respo errorCode := "UnknownError" errorMessage := errorCode - errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } return err } - if reqID := errorComponents.RequestID; len(reqID) != 0 { - awsmiddleware.SetRequestIDMetadata(metadata, reqID) - } - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message + if len(message) != 0 { + errorMessage = message } - errorBody.Seek(0, io.SeekStart) + switch { + case strings.EqualFold("InvalidAddress", errorCode): + return awsAwsjson10_deserializeErrorInvalidAddress(response, errorBody) + case strings.EqualFold("InvalidAttributeName", errorCode): - return awsAwsquery_deserializeErrorInvalidAttributeName(response, errorBody) + return awsAwsjson10_deserializeErrorInvalidAttributeName(response, errorBody) + + case strings.EqualFold("InvalidAttributeValue", errorCode): + return awsAwsjson10_deserializeErrorInvalidAttributeValue(response, errorBody) + + case strings.EqualFold("InvalidSecurity", errorCode): + return awsAwsjson10_deserializeErrorInvalidSecurity(response, errorBody) + + case strings.EqualFold("OverLimit", errorCode): + return awsAwsjson10_deserializeErrorOverLimit(response, errorBody) + + case strings.EqualFold("QueueDoesNotExist", errorCode): + return awsAwsjson10_deserializeErrorQueueDoesNotExist(response, errorBody) + + case strings.EqualFold("RequestThrottled", errorCode): + return awsAwsjson10_deserializeErrorRequestThrottled(response, errorBody) + + case strings.EqualFold("UnsupportedOperation", errorCode): + return awsAwsjson10_deserializeErrorUnsupportedOperation(response, errorBody) default: + awsQueryErrorCode := getAwsQueryErrorCode(response) + if awsQueryErrorCode != "" { + errorCode = awsQueryErrorCode + } genericError := &smithy.GenericAPIError{ Code: errorCode, Message: errorMessage, @@ -1758,14 +2263,14 @@ func awsAwsquery_deserializeOpErrorSetQueueAttributes(response *smithyhttp.Respo } } -type awsAwsquery_deserializeOpTagQueue struct { +type awsAwsjson10_deserializeOpTagQueue struct { } -func (*awsAwsquery_deserializeOpTagQueue) ID() string { +func (*awsAwsjson10_deserializeOpTagQueue) ID() string { return "OperationDeserializer" } -func (m *awsAwsquery_deserializeOpTagQueue) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson10_deserializeOpTagQueue) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -1779,7 +2284,7 @@ func (m *awsAwsquery_deserializeOpTagQueue) HandleDeserialize(ctx context.Contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorTagQueue(response, &metadata) + return out, metadata, awsAwsjson10_deserializeOpErrorTagQueue(response, &metadata) } output := &TagQueueOutput{} out.Result = output @@ -1793,7 +2298,7 @@ func (m *awsAwsquery_deserializeOpTagQueue) HandleDeserialize(ctx context.Contex return out, metadata, err } -func awsAwsquery_deserializeOpErrorTagQueue(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson10_deserializeOpErrorTagQueue(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -1803,22 +2308,57 @@ func awsAwsquery_deserializeOpErrorTagQueue(response *smithyhttp.Response, metad errorCode := "UnknownError" errorMessage := errorCode - errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } return err } - if reqID := errorComponents.RequestID; len(reqID) != 0 { - awsmiddleware.SetRequestIDMetadata(metadata, reqID) - } - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message + if len(message) != 0 { + errorMessage = message } - errorBody.Seek(0, io.SeekStart) + switch { + case strings.EqualFold("InvalidAddress", errorCode): + return awsAwsjson10_deserializeErrorInvalidAddress(response, errorBody) + + case strings.EqualFold("InvalidSecurity", errorCode): + return awsAwsjson10_deserializeErrorInvalidSecurity(response, errorBody) + + case strings.EqualFold("QueueDoesNotExist", errorCode): + return awsAwsjson10_deserializeErrorQueueDoesNotExist(response, errorBody) + + case strings.EqualFold("RequestThrottled", errorCode): + return awsAwsjson10_deserializeErrorRequestThrottled(response, errorBody) + + case strings.EqualFold("UnsupportedOperation", errorCode): + return awsAwsjson10_deserializeErrorUnsupportedOperation(response, errorBody) + default: + awsQueryErrorCode := getAwsQueryErrorCode(response) + if awsQueryErrorCode != "" { + errorCode = awsQueryErrorCode + } genericError := &smithy.GenericAPIError{ Code: errorCode, Message: errorMessage, @@ -1828,14 +2368,14 @@ func awsAwsquery_deserializeOpErrorTagQueue(response *smithyhttp.Response, metad } } -type awsAwsquery_deserializeOpUntagQueue struct { +type awsAwsjson10_deserializeOpUntagQueue struct { } -func (*awsAwsquery_deserializeOpUntagQueue) ID() string { +func (*awsAwsjson10_deserializeOpUntagQueue) ID() string { return "OperationDeserializer" } -func (m *awsAwsquery_deserializeOpUntagQueue) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson10_deserializeOpUntagQueue) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -1849,7 +2389,7 @@ func (m *awsAwsquery_deserializeOpUntagQueue) HandleDeserialize(ctx context.Cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorUntagQueue(response, &metadata) + return out, metadata, awsAwsjson10_deserializeOpErrorUntagQueue(response, &metadata) } output := &UntagQueueOutput{} out.Result = output @@ -1863,7 +2403,7 @@ func (m *awsAwsquery_deserializeOpUntagQueue) HandleDeserialize(ctx context.Cont return out, metadata, err } -func awsAwsquery_deserializeOpErrorUntagQueue(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson10_deserializeOpErrorUntagQueue(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -1873,22 +2413,57 @@ func awsAwsquery_deserializeOpErrorUntagQueue(response *smithyhttp.Response, met errorCode := "UnknownError" errorMessage := errorCode - errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } return err } - if reqID := errorComponents.RequestID; len(reqID) != 0 { - awsmiddleware.SetRequestIDMetadata(metadata, reqID) - } - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message + if len(message) != 0 { + errorMessage = message } - errorBody.Seek(0, io.SeekStart) + switch { + case strings.EqualFold("InvalidAddress", errorCode): + return awsAwsjson10_deserializeErrorInvalidAddress(response, errorBody) + + case strings.EqualFold("InvalidSecurity", errorCode): + return awsAwsjson10_deserializeErrorInvalidSecurity(response, errorBody) + + case strings.EqualFold("QueueDoesNotExist", errorCode): + return awsAwsjson10_deserializeErrorQueueDoesNotExist(response, errorBody) + + case strings.EqualFold("RequestThrottled", errorCode): + return awsAwsjson10_deserializeErrorRequestThrottled(response, errorBody) + + case strings.EqualFold("UnsupportedOperation", errorCode): + return awsAwsjson10_deserializeErrorUnsupportedOperation(response, errorBody) + default: + awsQueryErrorCode := getAwsQueryErrorCode(response) + if awsQueryErrorCode != "" { + errorCode = awsQueryErrorCode + } genericError := &smithy.GenericAPIError{ Code: errorCode, Message: errorMessage, @@ -1898,825 +2473,2032 @@ func awsAwsquery_deserializeOpErrorUntagQueue(response *smithyhttp.Response, met } } -func awsAwsquery_deserializeErrorBatchEntryIdsNotDistinct(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.BatchEntryIdsNotDistinct{} - return output -} +func awsAwsjson10_deserializeErrorBatchEntryIdsNotDistinct(response *smithyhttp.Response, errorBody *bytes.Reader) error { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) -func awsAwsquery_deserializeErrorBatchRequestTooLong(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.BatchRequestTooLong{} - return output -} + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } -func awsAwsquery_deserializeErrorEmptyBatchRequest(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.EmptyBatchRequest{} - return output -} + output := &types.BatchEntryIdsNotDistinct{} + err := awsAwsjson10_deserializeDocumentBatchEntryIdsNotDistinct(&output, shape) -func awsAwsquery_deserializeErrorInvalidAttributeName(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.InvalidAttributeName{} - return output -} + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } -func awsAwsquery_deserializeErrorInvalidBatchEntryId(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.InvalidBatchEntryId{} + errorBody.Seek(0, io.SeekStart) + awsQueryErrorCode := getAwsQueryErrorCode(response) + if awsQueryErrorCode != "" { + output.ErrorCodeOverride = &awsQueryErrorCode + } return output } -func awsAwsquery_deserializeErrorInvalidIdFormat(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.InvalidIdFormat{} - return output -} +func awsAwsjson10_deserializeErrorBatchRequestTooLong(response *smithyhttp.Response, errorBody *bytes.Reader) error { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) -func awsAwsquery_deserializeErrorInvalidMessageContents(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.InvalidMessageContents{} - return output -} + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } -func awsAwsquery_deserializeErrorMessageNotInflight(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.MessageNotInflight{} - return output -} + output := &types.BatchRequestTooLong{} + err := awsAwsjson10_deserializeDocumentBatchRequestTooLong(&output, shape) -func awsAwsquery_deserializeErrorOverLimit(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.OverLimit{} - return output -} + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } -func awsAwsquery_deserializeErrorPurgeQueueInProgress(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.PurgeQueueInProgress{} + errorBody.Seek(0, io.SeekStart) + awsQueryErrorCode := getAwsQueryErrorCode(response) + if awsQueryErrorCode != "" { + output.ErrorCodeOverride = &awsQueryErrorCode + } return output } -func awsAwsquery_deserializeErrorQueueDeletedRecently(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.QueueDeletedRecently{} - return output -} +func awsAwsjson10_deserializeErrorEmptyBatchRequest(response *smithyhttp.Response, errorBody *bytes.Reader) error { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) -func awsAwsquery_deserializeErrorQueueDoesNotExist(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.QueueDoesNotExist{} - return output -} + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } -func awsAwsquery_deserializeErrorQueueNameExists(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.QueueNameExists{} - return output -} + output := &types.EmptyBatchRequest{} + err := awsAwsjson10_deserializeDocumentEmptyBatchRequest(&output, shape) -func awsAwsquery_deserializeErrorReceiptHandleIsInvalid(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.ReceiptHandleIsInvalid{} - return output -} + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } -func awsAwsquery_deserializeErrorTooManyEntriesInBatchRequest(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.TooManyEntriesInBatchRequest{} + errorBody.Seek(0, io.SeekStart) + awsQueryErrorCode := getAwsQueryErrorCode(response) + if awsQueryErrorCode != "" { + output.ErrorCodeOverride = &awsQueryErrorCode + } return output } -func awsAwsquery_deserializeErrorUnsupportedOperation(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.UnsupportedOperation{} - return output -} +func awsAwsjson10_deserializeErrorInvalidAddress(response *smithyhttp.Response, errorBody *bytes.Reader) error { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) -func awsAwsquery_deserializeDocumentBatchEntryIdsNotDistinct(v **types.BatchEntryIdsNotDistinct, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.BatchEntryIdsNotDistinct - if *v == nil { - sv = &types.BatchEntryIdsNotDistinct{} - } else { - sv = *v + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err } - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } + output := &types.InvalidAddress{} + err := awsAwsjson10_deserializeDocumentInvalidAddress(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } - decoder = originalDecoder + return err } - *v = sv - return nil -} -func awsAwsquery_deserializeDocumentBatchRequestTooLong(v **types.BatchRequestTooLong, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.BatchRequestTooLong - if *v == nil { - sv = &types.BatchRequestTooLong{} - } else { - sv = *v + errorBody.Seek(0, io.SeekStart) + awsQueryErrorCode := getAwsQueryErrorCode(response) + if awsQueryErrorCode != "" { + output.ErrorCodeOverride = &awsQueryErrorCode } + return output +} - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } +func awsAwsjson10_deserializeErrorInvalidAttributeName(response *smithyhttp.Response, errorBody *bytes.Reader) error { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } - decoder = originalDecoder + return err } - *v = sv + + output := &types.InvalidAttributeName{} + err := awsAwsjson10_deserializeDocumentInvalidAttributeName(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + awsQueryErrorCode := getAwsQueryErrorCode(response) + if awsQueryErrorCode != "" { + output.ErrorCodeOverride = &awsQueryErrorCode + } + return output +} + +func awsAwsjson10_deserializeErrorInvalidAttributeValue(response *smithyhttp.Response, errorBody *bytes.Reader) error { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + output := &types.InvalidAttributeValue{} + err := awsAwsjson10_deserializeDocumentInvalidAttributeValue(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + awsQueryErrorCode := getAwsQueryErrorCode(response) + if awsQueryErrorCode != "" { + output.ErrorCodeOverride = &awsQueryErrorCode + } + return output +} + +func awsAwsjson10_deserializeErrorInvalidBatchEntryId(response *smithyhttp.Response, errorBody *bytes.Reader) error { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + output := &types.InvalidBatchEntryId{} + err := awsAwsjson10_deserializeDocumentInvalidBatchEntryId(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + awsQueryErrorCode := getAwsQueryErrorCode(response) + if awsQueryErrorCode != "" { + output.ErrorCodeOverride = &awsQueryErrorCode + } + return output +} + +func awsAwsjson10_deserializeErrorInvalidIdFormat(response *smithyhttp.Response, errorBody *bytes.Reader) error { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + output := &types.InvalidIdFormat{} + err := awsAwsjson10_deserializeDocumentInvalidIdFormat(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + awsQueryErrorCode := getAwsQueryErrorCode(response) + if awsQueryErrorCode != "" { + output.ErrorCodeOverride = &awsQueryErrorCode + } + return output +} + +func awsAwsjson10_deserializeErrorInvalidMessageContents(response *smithyhttp.Response, errorBody *bytes.Reader) error { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + output := &types.InvalidMessageContents{} + err := awsAwsjson10_deserializeDocumentInvalidMessageContents(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + awsQueryErrorCode := getAwsQueryErrorCode(response) + if awsQueryErrorCode != "" { + output.ErrorCodeOverride = &awsQueryErrorCode + } + return output +} + +func awsAwsjson10_deserializeErrorInvalidSecurity(response *smithyhttp.Response, errorBody *bytes.Reader) error { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + output := &types.InvalidSecurity{} + err := awsAwsjson10_deserializeDocumentInvalidSecurity(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + awsQueryErrorCode := getAwsQueryErrorCode(response) + if awsQueryErrorCode != "" { + output.ErrorCodeOverride = &awsQueryErrorCode + } + return output +} + +func awsAwsjson10_deserializeErrorKmsAccessDenied(response *smithyhttp.Response, errorBody *bytes.Reader) error { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + output := &types.KmsAccessDenied{} + err := awsAwsjson10_deserializeDocumentKmsAccessDenied(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + awsQueryErrorCode := getAwsQueryErrorCode(response) + if awsQueryErrorCode != "" { + output.ErrorCodeOverride = &awsQueryErrorCode + } + return output +} + +func awsAwsjson10_deserializeErrorKmsDisabled(response *smithyhttp.Response, errorBody *bytes.Reader) error { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + output := &types.KmsDisabled{} + err := awsAwsjson10_deserializeDocumentKmsDisabled(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + awsQueryErrorCode := getAwsQueryErrorCode(response) + if awsQueryErrorCode != "" { + output.ErrorCodeOverride = &awsQueryErrorCode + } + return output +} + +func awsAwsjson10_deserializeErrorKmsInvalidKeyUsage(response *smithyhttp.Response, errorBody *bytes.Reader) error { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + output := &types.KmsInvalidKeyUsage{} + err := awsAwsjson10_deserializeDocumentKmsInvalidKeyUsage(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + awsQueryErrorCode := getAwsQueryErrorCode(response) + if awsQueryErrorCode != "" { + output.ErrorCodeOverride = &awsQueryErrorCode + } + return output +} + +func awsAwsjson10_deserializeErrorKmsInvalidState(response *smithyhttp.Response, errorBody *bytes.Reader) error { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + output := &types.KmsInvalidState{} + err := awsAwsjson10_deserializeDocumentKmsInvalidState(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + awsQueryErrorCode := getAwsQueryErrorCode(response) + if awsQueryErrorCode != "" { + output.ErrorCodeOverride = &awsQueryErrorCode + } + return output +} + +func awsAwsjson10_deserializeErrorKmsNotFound(response *smithyhttp.Response, errorBody *bytes.Reader) error { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + output := &types.KmsNotFound{} + err := awsAwsjson10_deserializeDocumentKmsNotFound(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + awsQueryErrorCode := getAwsQueryErrorCode(response) + if awsQueryErrorCode != "" { + output.ErrorCodeOverride = &awsQueryErrorCode + } + return output +} + +func awsAwsjson10_deserializeErrorKmsOptInRequired(response *smithyhttp.Response, errorBody *bytes.Reader) error { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + output := &types.KmsOptInRequired{} + err := awsAwsjson10_deserializeDocumentKmsOptInRequired(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + awsQueryErrorCode := getAwsQueryErrorCode(response) + if awsQueryErrorCode != "" { + output.ErrorCodeOverride = &awsQueryErrorCode + } + return output +} + +func awsAwsjson10_deserializeErrorKmsThrottled(response *smithyhttp.Response, errorBody *bytes.Reader) error { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + output := &types.KmsThrottled{} + err := awsAwsjson10_deserializeDocumentKmsThrottled(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + awsQueryErrorCode := getAwsQueryErrorCode(response) + if awsQueryErrorCode != "" { + output.ErrorCodeOverride = &awsQueryErrorCode + } + return output +} + +func awsAwsjson10_deserializeErrorMessageNotInflight(response *smithyhttp.Response, errorBody *bytes.Reader) error { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + output := &types.MessageNotInflight{} + err := awsAwsjson10_deserializeDocumentMessageNotInflight(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + awsQueryErrorCode := getAwsQueryErrorCode(response) + if awsQueryErrorCode != "" { + output.ErrorCodeOverride = &awsQueryErrorCode + } + return output +} + +func awsAwsjson10_deserializeErrorOverLimit(response *smithyhttp.Response, errorBody *bytes.Reader) error { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + output := &types.OverLimit{} + err := awsAwsjson10_deserializeDocumentOverLimit(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + awsQueryErrorCode := getAwsQueryErrorCode(response) + if awsQueryErrorCode != "" { + output.ErrorCodeOverride = &awsQueryErrorCode + } + return output +} + +func awsAwsjson10_deserializeErrorPurgeQueueInProgress(response *smithyhttp.Response, errorBody *bytes.Reader) error { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + output := &types.PurgeQueueInProgress{} + err := awsAwsjson10_deserializeDocumentPurgeQueueInProgress(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + awsQueryErrorCode := getAwsQueryErrorCode(response) + if awsQueryErrorCode != "" { + output.ErrorCodeOverride = &awsQueryErrorCode + } + return output +} + +func awsAwsjson10_deserializeErrorQueueDeletedRecently(response *smithyhttp.Response, errorBody *bytes.Reader) error { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + output := &types.QueueDeletedRecently{} + err := awsAwsjson10_deserializeDocumentQueueDeletedRecently(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + awsQueryErrorCode := getAwsQueryErrorCode(response) + if awsQueryErrorCode != "" { + output.ErrorCodeOverride = &awsQueryErrorCode + } + return output +} + +func awsAwsjson10_deserializeErrorQueueDoesNotExist(response *smithyhttp.Response, errorBody *bytes.Reader) error { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + output := &types.QueueDoesNotExist{} + err := awsAwsjson10_deserializeDocumentQueueDoesNotExist(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + awsQueryErrorCode := getAwsQueryErrorCode(response) + if awsQueryErrorCode != "" { + output.ErrorCodeOverride = &awsQueryErrorCode + } + return output +} + +func awsAwsjson10_deserializeErrorQueueNameExists(response *smithyhttp.Response, errorBody *bytes.Reader) error { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + output := &types.QueueNameExists{} + err := awsAwsjson10_deserializeDocumentQueueNameExists(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + awsQueryErrorCode := getAwsQueryErrorCode(response) + if awsQueryErrorCode != "" { + output.ErrorCodeOverride = &awsQueryErrorCode + } + return output +} + +func awsAwsjson10_deserializeErrorReceiptHandleIsInvalid(response *smithyhttp.Response, errorBody *bytes.Reader) error { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + output := &types.ReceiptHandleIsInvalid{} + err := awsAwsjson10_deserializeDocumentReceiptHandleIsInvalid(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + awsQueryErrorCode := getAwsQueryErrorCode(response) + if awsQueryErrorCode != "" { + output.ErrorCodeOverride = &awsQueryErrorCode + } + return output +} + +func awsAwsjson10_deserializeErrorRequestThrottled(response *smithyhttp.Response, errorBody *bytes.Reader) error { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + output := &types.RequestThrottled{} + err := awsAwsjson10_deserializeDocumentRequestThrottled(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + awsQueryErrorCode := getAwsQueryErrorCode(response) + if awsQueryErrorCode != "" { + output.ErrorCodeOverride = &awsQueryErrorCode + } + return output +} + +func awsAwsjson10_deserializeErrorTooManyEntriesInBatchRequest(response *smithyhttp.Response, errorBody *bytes.Reader) error { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + output := &types.TooManyEntriesInBatchRequest{} + err := awsAwsjson10_deserializeDocumentTooManyEntriesInBatchRequest(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + awsQueryErrorCode := getAwsQueryErrorCode(response) + if awsQueryErrorCode != "" { + output.ErrorCodeOverride = &awsQueryErrorCode + } + return output +} + +func awsAwsjson10_deserializeErrorUnsupportedOperation(response *smithyhttp.Response, errorBody *bytes.Reader) error { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + output := &types.UnsupportedOperation{} + err := awsAwsjson10_deserializeDocumentUnsupportedOperation(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + awsQueryErrorCode := getAwsQueryErrorCode(response) + if awsQueryErrorCode != "" { + output.ErrorCodeOverride = &awsQueryErrorCode + } + return output +} + +func awsAwsjson10_deserializeDocumentBatchEntryIdsNotDistinct(v **types.BatchEntryIdsNotDistinct, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.BatchEntryIdsNotDistinct + if *v == nil { + sv = &types.BatchEntryIdsNotDistinct{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeDocumentBatchRequestTooLong(v **types.BatchRequestTooLong, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.BatchRequestTooLong + if *v == nil { + sv = &types.BatchRequestTooLong{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeDocumentBatchResultErrorEntry(v **types.BatchResultErrorEntry, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.BatchResultErrorEntry + if *v == nil { + sv = &types.BatchResultErrorEntry{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Code": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Code = ptr.String(jtv) + } + + case "Id": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Id = ptr.String(jtv) + } + + case "Message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + case "SenderFault": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + } + sv.SenderFault = jtv + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeDocumentBatchResultErrorEntryList(v *[]types.BatchResultErrorEntry, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.BatchResultErrorEntry + if *v == nil { + cv = []types.BatchResultErrorEntry{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.BatchResultErrorEntry + destAddr := &col + if err := awsAwsjson10_deserializeDocumentBatchResultErrorEntry(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsAwsjson10_deserializeDocumentBinaryList(v *[][]byte, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv [][]byte + if *v == nil { + cv = [][]byte{} + } else { + cv = *v + } + + for _, value := range shape { + var col []byte + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Binary to be []byte, got %T instead", value) + } + dv, err := base64.StdEncoding.DecodeString(jtv) + if err != nil { + return fmt.Errorf("failed to base64 decode Binary, %w", err) + } + col = dv + } + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsAwsjson10_deserializeDocumentChangeMessageVisibilityBatchResultEntry(v **types.ChangeMessageVisibilityBatchResultEntry, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ChangeMessageVisibilityBatchResultEntry + if *v == nil { + sv = &types.ChangeMessageVisibilityBatchResultEntry{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Id": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Id = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeDocumentChangeMessageVisibilityBatchResultEntryList(v *[]types.ChangeMessageVisibilityBatchResultEntry, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.ChangeMessageVisibilityBatchResultEntry + if *v == nil { + cv = []types.ChangeMessageVisibilityBatchResultEntry{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.ChangeMessageVisibilityBatchResultEntry + destAddr := &col + if err := awsAwsjson10_deserializeDocumentChangeMessageVisibilityBatchResultEntry(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv return nil } -func awsAwsquery_deserializeDocumentBatchResultErrorEntry(v **types.BatchResultErrorEntry, decoder smithyxml.NodeDecoder) error { +func awsAwsjson10_deserializeDocumentDeleteMessageBatchResultEntry(v **types.DeleteMessageBatchResultEntry, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.BatchResultErrorEntry + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.DeleteMessageBatchResultEntry if *v == nil { - sv = &types.BatchResultErrorEntry{} + sv = &types.DeleteMessageBatchResultEntry{} } else { sv = *v } - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Code", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Code = ptr.String(xtv) - } - - case strings.EqualFold("Id", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Id = ptr.String(xtv) - } - - case strings.EqualFold("Message", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Message = ptr.String(xtv) - } - - case strings.EqualFold("SenderFault", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv, err := strconv.ParseBool(string(val)) - if err != nil { - return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) + for key, value := range shape { + switch key { + case "Id": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.SenderFault = xtv + sv.Id = ptr.String(jtv) } default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } + _, _ = key, value } - decoder = originalDecoder } *v = sv return nil } -func awsAwsquery_deserializeDocumentBatchResultErrorEntryList(v *[]types.BatchResultErrorEntry, decoder smithyxml.NodeDecoder) error { +func awsAwsjson10_deserializeDocumentDeleteMessageBatchResultEntryList(v *[]types.DeleteMessageBatchResultEntry, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.BatchResultErrorEntry + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.DeleteMessageBatchResultEntry if *v == nil { - sv = make([]types.BatchResultErrorEntry, 0) + cv = []types.DeleteMessageBatchResultEntry{} } else { - sv = *v + cv = *v } - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { + for _, value := range shape { + var col types.DeleteMessageBatchResultEntry + destAddr := &col + if err := awsAwsjson10_deserializeDocumentDeleteMessageBatchResultEntry(&destAddr, value); err != nil { return err } - if done { - break - } - switch { - case strings.EqualFold("member", t.Name.Local): - var col types.BatchResultErrorEntry - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsAwsquery_deserializeDocumentBatchResultErrorEntry(&destAddr, nodeDecoder); err != nil { - return err + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsAwsjson10_deserializeDocumentEmptyBatchRequest(v **types.EmptyBatchRequest, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.EmptyBatchRequest + if *v == nil { + sv = &types.EmptyBatchRequest{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) } - col = *destAddr - sv = append(sv, col) default: - err = decoder.Decoder.Skip() - if err != nil { - return err - } + _, _ = key, value } - decoder = originalDecoder } *v = sv return nil } -func awsAwsquery_deserializeDocumentBatchResultErrorEntryListUnwrapped(v *[]types.BatchResultErrorEntry, decoder smithyxml.NodeDecoder) error { - var sv []types.BatchResultErrorEntry +func awsAwsjson10_deserializeDocumentInvalidAddress(v **types.InvalidAddress, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.InvalidAddress if *v == nil { - sv = make([]types.BatchResultErrorEntry, 0) + sv = &types.InvalidAddress{} } else { sv = *v } - switch { - default: - var mv types.BatchResultErrorEntry - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsAwsquery_deserializeDocumentBatchResultErrorEntry(&destAddr, nodeDecoder); err != nil { - return err + for key, value := range shape { + switch key { + case "message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + default: + _, _ = key, value + } - mv = *destAddr - sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentBinaryList(v *[][]byte, decoder smithyxml.NodeDecoder) error { + +func awsAwsjson10_deserializeDocumentInvalidAttributeName(v **types.InvalidAttributeName, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv [][]byte + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.InvalidAttributeName if *v == nil { - sv = make([][]byte, 0) + sv = &types.InvalidAttributeName{} } else { sv = *v } - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - decoder = memberDecoder - switch { - case strings.EqualFold("BinaryListValue", t.Name.Local): - var col []byte - var data string - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - data = xtv - } - col, err = base64.StdEncoding.DecodeString(data) - if err != nil { - return err + for key, value := range shape { + switch key { + case "message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) } - sv = append(sv, col) default: - err = decoder.Decoder.Skip() - if err != nil { - return err - } + _, _ = key, value } - decoder = originalDecoder } *v = sv return nil } -func awsAwsquery_deserializeDocumentBinaryListUnwrapped(v *[][]byte, decoder smithyxml.NodeDecoder) error { - var sv [][]byte +func awsAwsjson10_deserializeDocumentInvalidAttributeValue(v **types.InvalidAttributeValue, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.InvalidAttributeValue if *v == nil { - sv = make([][]byte, 0) + sv = &types.InvalidAttributeValue{} } else { sv = *v } - switch { - default: - var mv []byte - t := decoder.StartEl - _ = t - var data string - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - data = xtv - } - mv, err = base64.StdEncoding.DecodeString(data) - if err != nil { - return err + for key, value := range shape { + switch key { + case "message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + default: + _, _ = key, value + } - sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentChangeMessageVisibilityBatchResultEntry(v **types.ChangeMessageVisibilityBatchResultEntry, decoder smithyxml.NodeDecoder) error { + +func awsAwsjson10_deserializeDocumentInvalidBatchEntryId(v **types.InvalidBatchEntryId, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.ChangeMessageVisibilityBatchResultEntry + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.InvalidBatchEntryId if *v == nil { - sv = &types.ChangeMessageVisibilityBatchResultEntry{} + sv = &types.InvalidBatchEntryId{} } else { sv = *v } - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Id", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Id = ptr.String(xtv) + for key, value := range shape { + switch key { + case "message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) } default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } + _, _ = key, value } - decoder = originalDecoder } *v = sv return nil } -func awsAwsquery_deserializeDocumentChangeMessageVisibilityBatchResultEntryList(v *[]types.ChangeMessageVisibilityBatchResultEntry, decoder smithyxml.NodeDecoder) error { +func awsAwsjson10_deserializeDocumentInvalidIdFormat(v **types.InvalidIdFormat, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.ChangeMessageVisibilityBatchResultEntry + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.InvalidIdFormat if *v == nil { - sv = make([]types.ChangeMessageVisibilityBatchResultEntry, 0) + sv = &types.InvalidIdFormat{} } else { sv = *v } - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - switch { - case strings.EqualFold("member", t.Name.Local): - var col types.ChangeMessageVisibilityBatchResultEntry - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsAwsquery_deserializeDocumentChangeMessageVisibilityBatchResultEntry(&destAddr, nodeDecoder); err != nil { - return err - } - col = *destAddr - sv = append(sv, col) - + for key, value := range shape { + switch key { default: - err = decoder.Decoder.Skip() - if err != nil { - return err - } + _, _ = key, value } - decoder = originalDecoder } *v = sv return nil } -func awsAwsquery_deserializeDocumentChangeMessageVisibilityBatchResultEntryListUnwrapped(v *[]types.ChangeMessageVisibilityBatchResultEntry, decoder smithyxml.NodeDecoder) error { - var sv []types.ChangeMessageVisibilityBatchResultEntry +func awsAwsjson10_deserializeDocumentInvalidMessageContents(v **types.InvalidMessageContents, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.InvalidMessageContents if *v == nil { - sv = make([]types.ChangeMessageVisibilityBatchResultEntry, 0) + sv = &types.InvalidMessageContents{} } else { sv = *v } - switch { - default: - var mv types.ChangeMessageVisibilityBatchResultEntry - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsAwsquery_deserializeDocumentChangeMessageVisibilityBatchResultEntry(&destAddr, nodeDecoder); err != nil { - return err + for key, value := range shape { + switch key { + case "message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + default: + _, _ = key, value + } - mv = *destAddr - sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentDeleteMessageBatchResultEntry(v **types.DeleteMessageBatchResultEntry, decoder smithyxml.NodeDecoder) error { + +func awsAwsjson10_deserializeDocumentInvalidSecurity(v **types.InvalidSecurity, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.DeleteMessageBatchResultEntry + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.InvalidSecurity if *v == nil { - sv = &types.DeleteMessageBatchResultEntry{} + sv = &types.InvalidSecurity{} } else { sv = *v } - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Id", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Id = ptr.String(xtv) + for key, value := range shape { + switch key { + case "message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) } default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } + _, _ = key, value } - decoder = originalDecoder } *v = sv return nil } -func awsAwsquery_deserializeDocumentDeleteMessageBatchResultEntryList(v *[]types.DeleteMessageBatchResultEntry, decoder smithyxml.NodeDecoder) error { +func awsAwsjson10_deserializeDocumentKmsAccessDenied(v **types.KmsAccessDenied, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.DeleteMessageBatchResultEntry + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.KmsAccessDenied if *v == nil { - sv = make([]types.DeleteMessageBatchResultEntry, 0) + sv = &types.KmsAccessDenied{} } else { sv = *v } - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - switch { - case strings.EqualFold("member", t.Name.Local): - var col types.DeleteMessageBatchResultEntry - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsAwsquery_deserializeDocumentDeleteMessageBatchResultEntry(&destAddr, nodeDecoder); err != nil { - return err + for key, value := range shape { + switch key { + case "message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) } - col = *destAddr - sv = append(sv, col) default: - err = decoder.Decoder.Skip() - if err != nil { - return err - } + _, _ = key, value } - decoder = originalDecoder } *v = sv return nil } -func awsAwsquery_deserializeDocumentDeleteMessageBatchResultEntryListUnwrapped(v *[]types.DeleteMessageBatchResultEntry, decoder smithyxml.NodeDecoder) error { - var sv []types.DeleteMessageBatchResultEntry +func awsAwsjson10_deserializeDocumentKmsDisabled(v **types.KmsDisabled, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.KmsDisabled if *v == nil { - sv = make([]types.DeleteMessageBatchResultEntry, 0) + sv = &types.KmsDisabled{} } else { sv = *v } - switch { - default: - var mv types.DeleteMessageBatchResultEntry - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsAwsquery_deserializeDocumentDeleteMessageBatchResultEntry(&destAddr, nodeDecoder); err != nil { - return err + for key, value := range shape { + switch key { + case "message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + default: + _, _ = key, value + } - mv = *destAddr - sv = append(sv, mv) } *v = sv return nil } -func awsAwsquery_deserializeDocumentEmptyBatchRequest(v **types.EmptyBatchRequest, decoder smithyxml.NodeDecoder) error { + +func awsAwsjson10_deserializeDocumentKmsInvalidKeyUsage(v **types.KmsInvalidKeyUsage, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.EmptyBatchRequest + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.KmsInvalidKeyUsage if *v == nil { - sv = &types.EmptyBatchRequest{} + sv = &types.KmsInvalidKeyUsage{} } else { sv = *v } - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err + for key, value := range shape { + switch key { + case "message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) } + default: + _, _ = key, value + } - decoder = originalDecoder } *v = sv return nil } -func awsAwsquery_deserializeDocumentInvalidAttributeName(v **types.InvalidAttributeName, decoder smithyxml.NodeDecoder) error { +func awsAwsjson10_deserializeDocumentKmsInvalidState(v **types.KmsInvalidState, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.InvalidAttributeName + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.KmsInvalidState if *v == nil { - sv = &types.InvalidAttributeName{} + sv = &types.KmsInvalidState{} } else { sv = *v } - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err + for key, value := range shape { + switch key { + case "message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) } + default: + _, _ = key, value + } - decoder = originalDecoder } *v = sv return nil } -func awsAwsquery_deserializeDocumentInvalidBatchEntryId(v **types.InvalidBatchEntryId, decoder smithyxml.NodeDecoder) error { +func awsAwsjson10_deserializeDocumentKmsNotFound(v **types.KmsNotFound, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.InvalidBatchEntryId + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.KmsNotFound if *v == nil { - sv = &types.InvalidBatchEntryId{} + sv = &types.KmsNotFound{} } else { sv = *v } - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err + for key, value := range shape { + switch key { + case "message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) } + default: + _, _ = key, value + } - decoder = originalDecoder } *v = sv return nil } -func awsAwsquery_deserializeDocumentInvalidIdFormat(v **types.InvalidIdFormat, decoder smithyxml.NodeDecoder) error { +func awsAwsjson10_deserializeDocumentKmsOptInRequired(v **types.KmsOptInRequired, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.InvalidIdFormat + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.KmsOptInRequired if *v == nil { - sv = &types.InvalidIdFormat{} + sv = &types.KmsOptInRequired{} } else { sv = *v } - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err + for key, value := range shape { + switch key { + case "message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) } + default: + _, _ = key, value + } - decoder = originalDecoder } *v = sv return nil } -func awsAwsquery_deserializeDocumentInvalidMessageContents(v **types.InvalidMessageContents, decoder smithyxml.NodeDecoder) error { +func awsAwsjson10_deserializeDocumentKmsThrottled(v **types.KmsThrottled, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.InvalidMessageContents + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.KmsThrottled if *v == nil { - sv = &types.InvalidMessageContents{} + sv = &types.KmsThrottled{} } else { sv = *v } - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err + for key, value := range shape { + switch key { + case "message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) } + default: + _, _ = key, value + } - decoder = originalDecoder } *v = sv return nil } -func awsAwsquery_deserializeDocumentMessage(v **types.Message, decoder smithyxml.NodeDecoder) error { +func awsAwsjson10_deserializeDocumentMessage(v **types.Message, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + var sv *types.Message if *v == nil { sv = &types.Message{} @@ -2724,112 +4506,85 @@ func awsAwsquery_deserializeDocumentMessage(v **types.Message, decoder smithyxml sv = *v } - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Attribute", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentMessageSystemAttributeMapUnwrapped(&sv.Attributes, nodeDecoder); err != nil { + for key, value := range shape { + switch key { + case "Attributes": + if err := awsAwsjson10_deserializeDocumentMessageSystemAttributeMap(&sv.Attributes, value); err != nil { return err } - case strings.EqualFold("Body", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Body = ptr.String(xtv) + case "Body": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Body = ptr.String(jtv) } - case strings.EqualFold("MD5OfBody", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.MD5OfBody = ptr.String(xtv) + case "MD5OfBody": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.MD5OfBody = ptr.String(jtv) } - case strings.EqualFold("MD5OfMessageAttributes", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.MD5OfMessageAttributes = ptr.String(xtv) + case "MD5OfMessageAttributes": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.MD5OfMessageAttributes = ptr.String(jtv) } - case strings.EqualFold("MessageAttribute", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentMessageBodyAttributeMapUnwrapped(&sv.MessageAttributes, nodeDecoder); err != nil { + case "MessageAttributes": + if err := awsAwsjson10_deserializeDocumentMessageBodyAttributeMap(&sv.MessageAttributes, value); err != nil { return err } - case strings.EqualFold("MessageId", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.MessageId = ptr.String(xtv) + case "MessageId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.MessageId = ptr.String(jtv) } - case strings.EqualFold("ReceiptHandle", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.ReceiptHandle = ptr.String(xtv) + case "ReceiptHandle": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.ReceiptHandle = ptr.String(jtv) } default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } + _, _ = key, value } - decoder = originalDecoder } *v = sv return nil } -func awsAwsquery_deserializeDocumentMessageAttributeValue(v **types.MessageAttributeValue, decoder smithyxml.NodeDecoder) error { +func awsAwsjson10_deserializeDocumentMessageAttributeValue(v **types.MessageAttributeValue, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + var sv *types.MessageAttributeValue if *v == nil { sv = &types.MessageAttributeValue{} @@ -2837,253 +4592,140 @@ func awsAwsquery_deserializeDocumentMessageAttributeValue(v **types.MessageAttri sv = *v } - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("BinaryListValue", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentBinaryListUnwrapped(&sv.BinaryListValues, nodeDecoder); err != nil { + for key, value := range shape { + switch key { + case "BinaryListValues": + if err := awsAwsjson10_deserializeDocumentBinaryList(&sv.BinaryListValues, value); err != nil { return err } - case strings.EqualFold("BinaryValue", t.Name.Local): - var data string - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - data = xtv - } - sv.BinaryValue, err = base64.StdEncoding.DecodeString(data) - if err != nil { - return err + case "BinaryValue": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Binary to be []byte, got %T instead", value) + } + dv, err := base64.StdEncoding.DecodeString(jtv) + if err != nil { + return fmt.Errorf("failed to base64 decode Binary, %w", err) + } + sv.BinaryValue = dv } - case strings.EqualFold("DataType", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.DataType = ptr.String(xtv) + case "DataType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.DataType = ptr.String(jtv) } - case strings.EqualFold("StringListValue", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentStringListUnwrapped(&sv.StringListValues, nodeDecoder); err != nil { + case "StringListValues": + if err := awsAwsjson10_deserializeDocumentStringList(&sv.StringListValues, value); err != nil { return err } - case strings.EqualFold("StringValue", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.StringValue = ptr.String(xtv) + case "StringValue": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.StringValue = ptr.String(jtv) } default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } + _, _ = key, value } - decoder = originalDecoder } *v = sv return nil } -func awsAwsquery_deserializeDocumentMessageBodyAttributeMap(v *map[string]types.MessageAttributeValue, decoder smithyxml.NodeDecoder) error { +func awsAwsjson10_deserializeDocumentMessageBodyAttributeMap(v *map[string]types.MessageAttributeValue, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv map[string]types.MessageAttributeValue - if *v == nil { - sv = make(map[string]types.MessageAttributeValue, 0) - } else { - sv = *v + if value == nil { + return nil } - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - switch { - case strings.EqualFold("entry", t.Name.Local): - entryDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentMessageBodyAttributeMapUnwrapped(&sv, entryDecoder); err != nil { - return err - } - - default: - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) } - *v = sv - return nil -} -func awsAwsquery_deserializeDocumentMessageBodyAttributeMapUnwrapped(v *map[string]types.MessageAttributeValue, decoder smithyxml.NodeDecoder) error { - var sv map[string]types.MessageAttributeValue + var mv map[string]types.MessageAttributeValue if *v == nil { - sv = make(map[string]types.MessageAttributeValue, 0) + mv = map[string]types.MessageAttributeValue{} } else { - sv = *v + mv = *v } - var ek string - var ev types.MessageAttributeValue - for { - t, done, err := decoder.Token() - if err != nil { + for key, value := range shape { + var parsedVal types.MessageAttributeValue + mapVar := parsedVal + destAddr := &mapVar + if err := awsAwsjson10_deserializeDocumentMessageAttributeValue(&destAddr, value); err != nil { return err } - if done { - sv[ek] = ev - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Name", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - ek = xtv - } - - case strings.EqualFold("Value", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - mapVar := ev - destAddr := &mapVar - if err := awsAwsquery_deserializeDocumentMessageAttributeValue(&destAddr, nodeDecoder); err != nil { - return err - } - ev = *destAddr - - default: - err = decoder.Decoder.Skip() - if err != nil { - return err - } + parsedVal = *destAddr + mv[key] = parsedVal - } - decoder = originalDecoder } - *v = sv + *v = mv return nil } -func awsAwsquery_deserializeDocumentMessageList(v *[]types.Message, decoder smithyxml.NodeDecoder) error { + +func awsAwsjson10_deserializeDocumentMessageList(v *[]types.Message, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.Message - if *v == nil { - sv = make([]types.Message, 0) - } else { - sv = *v + if value == nil { + return nil } - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - switch { - case strings.EqualFold("member", t.Name.Local): - var col types.Message - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsAwsquery_deserializeDocumentMessage(&destAddr, nodeDecoder); err != nil { - return err - } - col = *destAddr - sv = append(sv, col) - - default: - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) } - *v = sv - return nil -} -func awsAwsquery_deserializeDocumentMessageListUnwrapped(v *[]types.Message, decoder smithyxml.NodeDecoder) error { - var sv []types.Message + var cv []types.Message if *v == nil { - sv = make([]types.Message, 0) + cv = []types.Message{} } else { - sv = *v + cv = *v } - switch { - default: - var mv types.Message - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsAwsquery_deserializeDocumentMessage(&destAddr, nodeDecoder); err != nil { + for _, value := range shape { + var col types.Message + destAddr := &col + if err := awsAwsjson10_deserializeDocumentMessage(&destAddr, value); err != nil { return err } - mv = *destAddr - sv = append(sv, mv) + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsAwsquery_deserializeDocumentMessageNotInflight(v **types.MessageNotInflight, decoder smithyxml.NodeDecoder) error { + +func awsAwsjson10_deserializeDocumentMessageNotInflight(v **types.MessageNotInflight, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + var sv *types.MessageNotInflight if *v == nil { sv = &types.MessageNotInflight{} @@ -3091,133 +4733,66 @@ func awsAwsquery_deserializeDocumentMessageNotInflight(v **types.MessageNotInfli sv = *v } - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { + for key, value := range shape { + switch key { default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } + _, _ = key, value } - decoder = originalDecoder } *v = sv return nil } -func awsAwsquery_deserializeDocumentMessageSystemAttributeMap(v *map[string]string, decoder smithyxml.NodeDecoder) error { +func awsAwsjson10_deserializeDocumentMessageSystemAttributeMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv map[string]string - if *v == nil { - sv = make(map[string]string, 0) - } else { - sv = *v + if value == nil { + return nil } - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - switch { - case strings.EqualFold("entry", t.Name.Local): - entryDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentMessageSystemAttributeMapUnwrapped(&sv, entryDecoder); err != nil { - return err - } - - default: - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) } - *v = sv - return nil -} -func awsAwsquery_deserializeDocumentMessageSystemAttributeMapUnwrapped(v *map[string]string, decoder smithyxml.NodeDecoder) error { - var sv map[string]string + var mv map[string]string if *v == nil { - sv = make(map[string]string, 0) + mv = map[string]string{} } else { - sv = *v + mv = *v } - var ek types.MessageSystemAttributeName - var ev string - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - sv[string(ek)] = ev - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Name", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - ek = types.MessageSystemAttributeName(xtv) - } - - case strings.EqualFold("Value", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - ev = xtv - } - - default: - err = decoder.Decoder.Skip() - if err != nil { - return err + for key, value := range shape { + var parsedVal string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) } - + parsedVal = jtv } - decoder = originalDecoder + mv[key] = parsedVal + } - *v = sv + *v = mv return nil } -func awsAwsquery_deserializeDocumentOverLimit(v **types.OverLimit, decoder smithyxml.NodeDecoder) error { + +func awsAwsjson10_deserializeDocumentOverLimit(v **types.OverLimit, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + var sv *types.OverLimit if *v == nil { sv = &types.OverLimit{} @@ -3225,35 +4800,39 @@ func awsAwsquery_deserializeDocumentOverLimit(v **types.OverLimit, decoder smith sv = *v } - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err + for key, value := range shape { + switch key { + case "message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) } + default: + _, _ = key, value + } - decoder = originalDecoder } *v = sv return nil } -func awsAwsquery_deserializeDocumentPurgeQueueInProgress(v **types.PurgeQueueInProgress, decoder smithyxml.NodeDecoder) error { +func awsAwsjson10_deserializeDocumentPurgeQueueInProgress(v **types.PurgeQueueInProgress, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + var sv *types.PurgeQueueInProgress if *v == nil { sv = &types.PurgeQueueInProgress{} @@ -3261,133 +4840,75 @@ func awsAwsquery_deserializeDocumentPurgeQueueInProgress(v **types.PurgeQueueInP sv = *v } - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err + for key, value := range shape { + switch key { + case "message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) } + default: + _, _ = key, value + } - decoder = originalDecoder } *v = sv return nil } -func awsAwsquery_deserializeDocumentQueueAttributeMap(v *map[string]string, decoder smithyxml.NodeDecoder) error { +func awsAwsjson10_deserializeDocumentQueueAttributeMap(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv map[string]string - if *v == nil { - sv = make(map[string]string, 0) - } else { - sv = *v + if value == nil { + return nil } - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - switch { - case strings.EqualFold("entry", t.Name.Local): - entryDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentQueueAttributeMapUnwrapped(&sv, entryDecoder); err != nil { - return err - } - - default: - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) } - *v = sv - return nil -} -func awsAwsquery_deserializeDocumentQueueAttributeMapUnwrapped(v *map[string]string, decoder smithyxml.NodeDecoder) error { - var sv map[string]string + var mv map[string]string if *v == nil { - sv = make(map[string]string, 0) + mv = map[string]string{} } else { - sv = *v + mv = *v } - var ek types.QueueAttributeName - var ev string - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - sv[string(ek)] = ev - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Name", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - ek = types.QueueAttributeName(xtv) - } - - case strings.EqualFold("Value", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - ev = xtv - } - - default: - err = decoder.Decoder.Skip() - if err != nil { - return err + for key, value := range shape { + var parsedVal string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) } - + parsedVal = jtv } - decoder = originalDecoder + mv[key] = parsedVal + } - *v = sv + *v = mv return nil } -func awsAwsquery_deserializeDocumentQueueDeletedRecently(v **types.QueueDeletedRecently, decoder smithyxml.NodeDecoder) error { + +func awsAwsjson10_deserializeDocumentQueueDeletedRecently(v **types.QueueDeletedRecently, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + var sv *types.QueueDeletedRecently if *v == nil { sv = &types.QueueDeletedRecently{} @@ -3395,35 +4916,39 @@ func awsAwsquery_deserializeDocumentQueueDeletedRecently(v **types.QueueDeletedR sv = *v } - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err + for key, value := range shape { + switch key { + case "message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) } + default: + _, _ = key, value + } - decoder = originalDecoder } *v = sv return nil } -func awsAwsquery_deserializeDocumentQueueDoesNotExist(v **types.QueueDoesNotExist, decoder smithyxml.NodeDecoder) error { +func awsAwsjson10_deserializeDocumentQueueDoesNotExist(v **types.QueueDoesNotExist, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + var sv *types.QueueDoesNotExist if *v == nil { sv = &types.QueueDoesNotExist{} @@ -3431,35 +4956,39 @@ func awsAwsquery_deserializeDocumentQueueDoesNotExist(v **types.QueueDoesNotExis sv = *v } - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err + for key, value := range shape { + switch key { + case "message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) } + default: + _, _ = key, value + } - decoder = originalDecoder } *v = sv return nil } -func awsAwsquery_deserializeDocumentQueueNameExists(v **types.QueueNameExists, decoder smithyxml.NodeDecoder) error { +func awsAwsjson10_deserializeDocumentQueueNameExists(v **types.QueueNameExists, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + var sv *types.QueueNameExists if *v == nil { sv = &types.QueueNameExists{} @@ -3467,115 +4996,75 @@ func awsAwsquery_deserializeDocumentQueueNameExists(v **types.QueueNameExists, d sv = *v } - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err + for key, value := range shape { + switch key { + case "message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) } + default: + _, _ = key, value + } - decoder = originalDecoder } *v = sv return nil } -func awsAwsquery_deserializeDocumentQueueUrlList(v *[]string, decoder smithyxml.NodeDecoder) error { +func awsAwsjson10_deserializeDocumentQueueUrlList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []string - if *v == nil { - sv = make([]string, 0) - } else { - sv = *v + if value == nil { + return nil } - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - decoder = memberDecoder - switch { - case strings.EqualFold("member", t.Name.Local): - var col string - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - col = xtv - } - sv = append(sv, col) - - default: - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) } - *v = sv - return nil -} -func awsAwsquery_deserializeDocumentQueueUrlListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { - var sv []string + var cv []string if *v == nil { - sv = make([]string, 0) + cv = []string{} } else { - sv = *v + cv = *v } - switch { - default: - var mv string - t := decoder.StartEl - _ = t - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - mv = xtv + for _, value := range shape { + var col string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + col = jtv } - sv = append(sv, mv) + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsAwsquery_deserializeDocumentReceiptHandleIsInvalid(v **types.ReceiptHandleIsInvalid, decoder smithyxml.NodeDecoder) error { + +func awsAwsjson10_deserializeDocumentReceiptHandleIsInvalid(v **types.ReceiptHandleIsInvalid, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + var sv *types.ReceiptHandleIsInvalid if *v == nil { sv = &types.ReceiptHandleIsInvalid{} @@ -3583,395 +5072,270 @@ func awsAwsquery_deserializeDocumentReceiptHandleIsInvalid(v **types.ReceiptHand sv = *v } - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err + for key, value := range shape { + switch key { + case "message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) } + default: + _, _ = key, value + } - decoder = originalDecoder } *v = sv return nil } -func awsAwsquery_deserializeDocumentSendMessageBatchResultEntry(v **types.SendMessageBatchResultEntry, decoder smithyxml.NodeDecoder) error { +func awsAwsjson10_deserializeDocumentRequestThrottled(v **types.RequestThrottled, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.SendMessageBatchResultEntry + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.RequestThrottled if *v == nil { - sv = &types.SendMessageBatchResultEntry{} + sv = &types.RequestThrottled{} } else { sv = *v } - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Id", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Id = ptr.String(xtv) - } - - case strings.EqualFold("MD5OfMessageAttributes", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.MD5OfMessageAttributes = ptr.String(xtv) - } - - case strings.EqualFold("MD5OfMessageBody", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.MD5OfMessageBody = ptr.String(xtv) - } - - case strings.EqualFold("MD5OfMessageSystemAttributes", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.MD5OfMessageSystemAttributes = ptr.String(xtv) - } - - case strings.EqualFold("MessageId", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.MessageId = ptr.String(xtv) - } - - case strings.EqualFold("SequenceNumber", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.SequenceNumber = ptr.String(xtv) + for key, value := range shape { + switch key { + case "message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) } default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } + _, _ = key, value } - decoder = originalDecoder } *v = sv return nil } -func awsAwsquery_deserializeDocumentSendMessageBatchResultEntryList(v *[]types.SendMessageBatchResultEntry, decoder smithyxml.NodeDecoder) error { +func awsAwsjson10_deserializeDocumentSendMessageBatchResultEntry(v **types.SendMessageBatchResultEntry, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv []types.SendMessageBatchResultEntry - if *v == nil { - sv = make([]types.SendMessageBatchResultEntry, 0) - } else { - sv = *v + if value == nil { + return nil } - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - switch { - case strings.EqualFold("member", t.Name.Local): - var col types.SendMessageBatchResultEntry - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsAwsquery_deserializeDocumentSendMessageBatchResultEntry(&destAddr, nodeDecoder); err != nil { - return err - } - col = *destAddr - sv = append(sv, col) - - default: - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) } - *v = sv - return nil -} -func awsAwsquery_deserializeDocumentSendMessageBatchResultEntryListUnwrapped(v *[]types.SendMessageBatchResultEntry, decoder smithyxml.NodeDecoder) error { - var sv []types.SendMessageBatchResultEntry + var sv *types.SendMessageBatchResultEntry if *v == nil { - sv = make([]types.SendMessageBatchResultEntry, 0) + sv = &types.SendMessageBatchResultEntry{} } else { sv = *v } - switch { - default: - var mv types.SendMessageBatchResultEntry - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsAwsquery_deserializeDocumentSendMessageBatchResultEntry(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsAwsquery_deserializeDocumentStringList(v *[]string, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv []string - if *v == nil { - sv = make([]string, 0) - } else { - sv = *v - } + for key, value := range shape { + switch key { + case "Id": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Id = ptr.String(jtv) + } - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - decoder = memberDecoder - switch { - case strings.EqualFold("StringListValue", t.Name.Local): - var col string - val, err := decoder.Value() - if err != nil { - return err + case "MD5OfMessageAttributes": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.MD5OfMessageAttributes = ptr.String(jtv) + } + + case "MD5OfMessageBody": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.MD5OfMessageBody = ptr.String(jtv) + } + + case "MD5OfMessageSystemAttributes": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.MD5OfMessageSystemAttributes = ptr.String(jtv) } - if val == nil { - break + + case "MessageId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.MessageId = ptr.String(jtv) } - { - xtv := string(val) - col = xtv + + case "SequenceNumber": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.SequenceNumber = ptr.String(jtv) } - sv = append(sv, col) default: - err = decoder.Decoder.Skip() - if err != nil { - return err - } + _, _ = key, value } - decoder = originalDecoder } *v = sv return nil } -func awsAwsquery_deserializeDocumentStringListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { - var sv []string +func awsAwsjson10_deserializeDocumentSendMessageBatchResultEntryList(v *[]types.SendMessageBatchResultEntry, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.SendMessageBatchResultEntry if *v == nil { - sv = make([]string, 0) + cv = []types.SendMessageBatchResultEntry{} } else { - sv = *v + cv = *v } - switch { - default: - var mv string - t := decoder.StartEl - _ = t - val, err := decoder.Value() - if err != nil { + for _, value := range shape { + var col types.SendMessageBatchResultEntry + destAddr := &col + if err := awsAwsjson10_deserializeDocumentSendMessageBatchResultEntry(&destAddr, value); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - mv = xtv - } - sv = append(sv, mv) + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsAwsquery_deserializeDocumentTagMap(v *map[string]string, decoder smithyxml.NodeDecoder) error { + +func awsAwsjson10_deserializeDocumentStringList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv map[string]string + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []string if *v == nil { - sv = make(map[string]string, 0) + cv = []string{} } else { - sv = *v + cv = *v } - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - switch { - case strings.EqualFold("entry", t.Name.Local): - entryDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentTagMapUnwrapped(&sv, entryDecoder); err != nil { - return err - } - - default: - err = decoder.Decoder.Skip() - if err != nil { - return err + for _, value := range shape { + var col string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) } - + col = jtv } + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsAwsquery_deserializeDocumentTagMapUnwrapped(v *map[string]string, decoder smithyxml.NodeDecoder) error { - var sv map[string]string - if *v == nil { - sv = make(map[string]string, 0) - } else { - sv = *v +func awsAwsjson10_deserializeDocumentTagMap(v *map[string]string, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil } - var ek string - var ev string - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - sv[ek] = ev - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Key", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - ek = xtv - } + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } - case strings.EqualFold("Value", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - ev = xtv - } + var mv map[string]string + if *v == nil { + mv = map[string]string{} + } else { + mv = *v + } - default: - err = decoder.Decoder.Skip() - if err != nil { - return err + for key, value := range shape { + var parsedVal string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - + parsedVal = jtv } - decoder = originalDecoder + mv[key] = parsedVal + } - *v = sv + *v = mv return nil } -func awsAwsquery_deserializeDocumentTooManyEntriesInBatchRequest(v **types.TooManyEntriesInBatchRequest, decoder smithyxml.NodeDecoder) error { + +func awsAwsjson10_deserializeDocumentTooManyEntriesInBatchRequest(v **types.TooManyEntriesInBatchRequest, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + var sv *types.TooManyEntriesInBatchRequest if *v == nil { sv = &types.TooManyEntriesInBatchRequest{} @@ -3979,35 +5343,39 @@ func awsAwsquery_deserializeDocumentTooManyEntriesInBatchRequest(v **types.TooMa sv = *v } - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err + for key, value := range shape { + switch key { + case "message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) } + default: + _, _ = key, value + } - decoder = originalDecoder } *v = sv return nil } -func awsAwsquery_deserializeDocumentUnsupportedOperation(v **types.UnsupportedOperation, decoder smithyxml.NodeDecoder) error { +func awsAwsjson10_deserializeDocumentUnsupportedOperation(v **types.UnsupportedOperation, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + var sv *types.UnsupportedOperation if *v == nil { sv = &types.UnsupportedOperation{} @@ -4015,35 +5383,39 @@ func awsAwsquery_deserializeDocumentUnsupportedOperation(v **types.UnsupportedOp sv = *v } - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err + for key, value := range shape { + switch key { + case "message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) } + default: + _, _ = key, value + } - decoder = originalDecoder } *v = sv return nil } -func awsAwsquery_deserializeOpDocumentChangeMessageVisibilityBatchOutput(v **ChangeMessageVisibilityBatchOutput, decoder smithyxml.NodeDecoder) error { +func awsAwsjson10_deserializeOpDocumentChangeMessageVisibilityBatchOutput(v **ChangeMessageVisibilityBatchOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + var sv *ChangeMessageVisibilityBatchOutput if *v == nil { sv = &ChangeMessageVisibilityBatchOutput{} @@ -4051,47 +5423,40 @@ func awsAwsquery_deserializeOpDocumentChangeMessageVisibilityBatchOutput(v **Cha sv = *v } - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("BatchResultErrorEntry", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentBatchResultErrorEntryListUnwrapped(&sv.Failed, nodeDecoder); err != nil { + for key, value := range shape { + switch key { + case "Failed": + if err := awsAwsjson10_deserializeDocumentBatchResultErrorEntryList(&sv.Failed, value); err != nil { return err } - case strings.EqualFold("ChangeMessageVisibilityBatchResultEntry", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentChangeMessageVisibilityBatchResultEntryListUnwrapped(&sv.Successful, nodeDecoder); err != nil { + case "Successful": + if err := awsAwsjson10_deserializeDocumentChangeMessageVisibilityBatchResultEntryList(&sv.Successful, value); err != nil { return err } default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } + _, _ = key, value } - decoder = originalDecoder } *v = sv return nil } -func awsAwsquery_deserializeOpDocumentCreateQueueOutput(v **CreateQueueOutput, decoder smithyxml.NodeDecoder) error { +func awsAwsjson10_deserializeOpDocumentCreateQueueOutput(v **CreateQueueOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + var sv *CreateQueueOutput if *v == nil { sv = &CreateQueueOutput{} @@ -4099,48 +5464,39 @@ func awsAwsquery_deserializeOpDocumentCreateQueueOutput(v **CreateQueueOutput, d sv = *v } - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("QueueUrl", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.QueueUrl = ptr.String(xtv) + for key, value := range shape { + switch key { + case "QueueUrl": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.QueueUrl = ptr.String(jtv) } default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } + _, _ = key, value } - decoder = originalDecoder } *v = sv return nil } -func awsAwsquery_deserializeOpDocumentDeleteMessageBatchOutput(v **DeleteMessageBatchOutput, decoder smithyxml.NodeDecoder) error { +func awsAwsjson10_deserializeOpDocumentDeleteMessageBatchOutput(v **DeleteMessageBatchOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + var sv *DeleteMessageBatchOutput if *v == nil { sv = &DeleteMessageBatchOutput{} @@ -4148,47 +5504,40 @@ func awsAwsquery_deserializeOpDocumentDeleteMessageBatchOutput(v **DeleteMessage sv = *v } - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("BatchResultErrorEntry", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentBatchResultErrorEntryListUnwrapped(&sv.Failed, nodeDecoder); err != nil { + for key, value := range shape { + switch key { + case "Failed": + if err := awsAwsjson10_deserializeDocumentBatchResultErrorEntryList(&sv.Failed, value); err != nil { return err } - case strings.EqualFold("DeleteMessageBatchResultEntry", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDeleteMessageBatchResultEntryListUnwrapped(&sv.Successful, nodeDecoder); err != nil { + case "Successful": + if err := awsAwsjson10_deserializeDocumentDeleteMessageBatchResultEntryList(&sv.Successful, value); err != nil { return err } default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } + _, _ = key, value } - decoder = originalDecoder } *v = sv return nil } -func awsAwsquery_deserializeOpDocumentGetQueueAttributesOutput(v **GetQueueAttributesOutput, decoder smithyxml.NodeDecoder) error { +func awsAwsjson10_deserializeOpDocumentGetQueueAttributesOutput(v **GetQueueAttributesOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + var sv *GetQueueAttributesOutput if *v == nil { sv = &GetQueueAttributesOutput{} @@ -4196,41 +5545,35 @@ func awsAwsquery_deserializeOpDocumentGetQueueAttributesOutput(v **GetQueueAttri sv = *v } - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Attribute", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentQueueAttributeMapUnwrapped(&sv.Attributes, nodeDecoder); err != nil { + for key, value := range shape { + switch key { + case "Attributes": + if err := awsAwsjson10_deserializeDocumentQueueAttributeMap(&sv.Attributes, value); err != nil { return err } default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } + _, _ = key, value } - decoder = originalDecoder } *v = sv return nil } -func awsAwsquery_deserializeOpDocumentGetQueueUrlOutput(v **GetQueueUrlOutput, decoder smithyxml.NodeDecoder) error { +func awsAwsjson10_deserializeOpDocumentGetQueueUrlOutput(v **GetQueueUrlOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + var sv *GetQueueUrlOutput if *v == nil { sv = &GetQueueUrlOutput{} @@ -4238,48 +5581,39 @@ func awsAwsquery_deserializeOpDocumentGetQueueUrlOutput(v **GetQueueUrlOutput, d sv = *v } - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("QueueUrl", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.QueueUrl = ptr.String(xtv) + for key, value := range shape { + switch key { + case "QueueUrl": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.QueueUrl = ptr.String(jtv) } default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } + _, _ = key, value } - decoder = originalDecoder } *v = sv return nil } -func awsAwsquery_deserializeOpDocumentListDeadLetterSourceQueuesOutput(v **ListDeadLetterSourceQueuesOutput, decoder smithyxml.NodeDecoder) error { +func awsAwsjson10_deserializeOpDocumentListDeadLetterSourceQueuesOutput(v **ListDeadLetterSourceQueuesOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + var sv *ListDeadLetterSourceQueuesOutput if *v == nil { sv = &ListDeadLetterSourceQueuesOutput{} @@ -4287,54 +5621,44 @@ func awsAwsquery_deserializeOpDocumentListDeadLetterSourceQueuesOutput(v **ListD sv = *v } - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("NextToken", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.NextToken = ptr.String(xtv) + for key, value := range shape { + switch key { + case "NextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Token to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) } - case strings.EqualFold("QueueUrl", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentQueueUrlListUnwrapped(&sv.QueueUrls, nodeDecoder); err != nil { + case "queueUrls": + if err := awsAwsjson10_deserializeDocumentQueueUrlList(&sv.QueueUrls, value); err != nil { return err } default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } + _, _ = key, value } - decoder = originalDecoder } *v = sv return nil } -func awsAwsquery_deserializeOpDocumentListQueuesOutput(v **ListQueuesOutput, decoder smithyxml.NodeDecoder) error { +func awsAwsjson10_deserializeOpDocumentListQueuesOutput(v **ListQueuesOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + var sv *ListQueuesOutput if *v == nil { sv = &ListQueuesOutput{} @@ -4342,54 +5666,44 @@ func awsAwsquery_deserializeOpDocumentListQueuesOutput(v **ListQueuesOutput, dec sv = *v } - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("NextToken", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.NextToken = ptr.String(xtv) + for key, value := range shape { + switch key { + case "NextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Token to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) } - case strings.EqualFold("QueueUrl", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentQueueUrlListUnwrapped(&sv.QueueUrls, nodeDecoder); err != nil { + case "QueueUrls": + if err := awsAwsjson10_deserializeDocumentQueueUrlList(&sv.QueueUrls, value); err != nil { return err } default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } + _, _ = key, value } - decoder = originalDecoder } *v = sv return nil } -func awsAwsquery_deserializeOpDocumentListQueueTagsOutput(v **ListQueueTagsOutput, decoder smithyxml.NodeDecoder) error { +func awsAwsjson10_deserializeOpDocumentListQueueTagsOutput(v **ListQueueTagsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + var sv *ListQueueTagsOutput if *v == nil { sv = &ListQueueTagsOutput{} @@ -4397,41 +5711,35 @@ func awsAwsquery_deserializeOpDocumentListQueueTagsOutput(v **ListQueueTagsOutpu sv = *v } - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Tag", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentTagMapUnwrapped(&sv.Tags, nodeDecoder); err != nil { + for key, value := range shape { + switch key { + case "Tags": + if err := awsAwsjson10_deserializeDocumentTagMap(&sv.Tags, value); err != nil { return err } default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } + _, _ = key, value } - decoder = originalDecoder } *v = sv return nil } -func awsAwsquery_deserializeOpDocumentReceiveMessageOutput(v **ReceiveMessageOutput, decoder smithyxml.NodeDecoder) error { +func awsAwsjson10_deserializeOpDocumentReceiveMessageOutput(v **ReceiveMessageOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + var sv *ReceiveMessageOutput if *v == nil { sv = &ReceiveMessageOutput{} @@ -4439,41 +5747,35 @@ func awsAwsquery_deserializeOpDocumentReceiveMessageOutput(v **ReceiveMessageOut sv = *v } - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Message", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentMessageListUnwrapped(&sv.Messages, nodeDecoder); err != nil { + for key, value := range shape { + switch key { + case "Messages": + if err := awsAwsjson10_deserializeDocumentMessageList(&sv.Messages, value); err != nil { return err } default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } + _, _ = key, value } - decoder = originalDecoder } *v = sv return nil } -func awsAwsquery_deserializeOpDocumentSendMessageBatchOutput(v **SendMessageBatchOutput, decoder smithyxml.NodeDecoder) error { +func awsAwsjson10_deserializeOpDocumentSendMessageBatchOutput(v **SendMessageBatchOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + var sv *SendMessageBatchOutput if *v == nil { sv = &SendMessageBatchOutput{} @@ -4481,47 +5783,40 @@ func awsAwsquery_deserializeOpDocumentSendMessageBatchOutput(v **SendMessageBatc sv = *v } - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("BatchResultErrorEntry", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentBatchResultErrorEntryListUnwrapped(&sv.Failed, nodeDecoder); err != nil { + for key, value := range shape { + switch key { + case "Failed": + if err := awsAwsjson10_deserializeDocumentBatchResultErrorEntryList(&sv.Failed, value); err != nil { return err } - case strings.EqualFold("SendMessageBatchResultEntry", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentSendMessageBatchResultEntryListUnwrapped(&sv.Successful, nodeDecoder); err != nil { + case "Successful": + if err := awsAwsjson10_deserializeDocumentSendMessageBatchResultEntryList(&sv.Successful, value); err != nil { return err } default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } + _, _ = key, value } - decoder = originalDecoder } *v = sv return nil } -func awsAwsquery_deserializeOpDocumentSendMessageOutput(v **SendMessageOutput, decoder smithyxml.NodeDecoder) error { +func awsAwsjson10_deserializeOpDocumentSendMessageOutput(v **SendMessageOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + var sv *SendMessageOutput if *v == nil { sv = &SendMessageOutput{} @@ -4529,92 +5824,69 @@ func awsAwsquery_deserializeOpDocumentSendMessageOutput(v **SendMessageOutput, d sv = *v } - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("MD5OfMessageAttributes", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.MD5OfMessageAttributes = ptr.String(xtv) + for key, value := range shape { + switch key { + case "MD5OfMessageAttributes": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.MD5OfMessageAttributes = ptr.String(jtv) } - case strings.EqualFold("MD5OfMessageBody", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.MD5OfMessageBody = ptr.String(xtv) + case "MD5OfMessageBody": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.MD5OfMessageBody = ptr.String(jtv) } - case strings.EqualFold("MD5OfMessageSystemAttributes", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.MD5OfMessageSystemAttributes = ptr.String(xtv) + case "MD5OfMessageSystemAttributes": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.MD5OfMessageSystemAttributes = ptr.String(jtv) } - case strings.EqualFold("MessageId", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.MessageId = ptr.String(xtv) + case "MessageId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.MessageId = ptr.String(jtv) } - case strings.EqualFold("SequenceNumber", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.SequenceNumber = ptr.String(xtv) + case "SequenceNumber": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.SequenceNumber = ptr.String(jtv) } default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } + _, _ = key, value } - decoder = originalDecoder } *v = sv return nil } + +func getAwsQueryErrorCode(response *smithyhttp.Response) string { + queryCodeHeader := response.Header.Get("x-amzn-query-error") + if queryCodeHeader != "" { + queryCodeParts := strings.Split(queryCodeHeader, ";") + if len(queryCodeParts) == 2 { + return queryCodeParts[0] + } + } + return "" +} diff --git a/service/sqs/internal/endpoints/endpoints.go b/service/sqs/internal/endpoints/endpoints.go index 50d051cc5d1..415aaecd2e6 100644 --- a/service/sqs/internal/endpoints/endpoints.go +++ b/service/sqs/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -378,6 +380,27 @@ var defaultPartitions = endpoints.Partitions{ }: endpoints.Endpoint{}, }, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "sqs-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "sqs.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/sqs/serializers.go b/service/sqs/serializers.go index 114073aaef7..90fa110bd4a 100644 --- a/service/sqs/serializers.go +++ b/service/sqs/serializers.go @@ -6,24 +6,23 @@ import ( "bytes" "context" "fmt" - "github.com/aws/aws-sdk-go-v2/aws/protocol/query" "github.com/aws/aws-sdk-go-v2/service/sqs/types" smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/encoding/httpbinding" + smithyjson "github.com/aws/smithy-go/encoding/json" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" "path" - "sort" ) -type awsAwsquery_serializeOpAddPermission struct { +type awsAwsjson10_serializeOpAddPermission struct { } -func (*awsAwsquery_serializeOpAddPermission) ID() string { +func (*awsAwsjson10_serializeOpAddPermission) ID() string { return "OperationSerializer" } -func (m *awsAwsquery_serializeOpAddPermission) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson10_serializeOpAddPermission) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -51,24 +50,15 @@ func (m *awsAwsquery_serializeOpAddPermission) HandleSerialize(ctx context.Conte if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.0") + httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSQS.AddPermission") - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("AddPermission") - body.Key("Version").String("2012-11-05") - - if err := awsAwsquery_serializeOpDocumentAddPermissionInput(input, bodyEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - err = bodyEncoder.Encode() - if err != nil { + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson10_serializeOpDocumentAddPermissionInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } - if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -80,14 +70,14 @@ func (m *awsAwsquery_serializeOpAddPermission) HandleSerialize(ctx context.Conte return next.HandleSerialize(ctx, in) } -type awsAwsquery_serializeOpChangeMessageVisibility struct { +type awsAwsjson10_serializeOpChangeMessageVisibility struct { } -func (*awsAwsquery_serializeOpChangeMessageVisibility) ID() string { +func (*awsAwsjson10_serializeOpChangeMessageVisibility) ID() string { return "OperationSerializer" } -func (m *awsAwsquery_serializeOpChangeMessageVisibility) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson10_serializeOpChangeMessageVisibility) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -115,24 +105,15 @@ func (m *awsAwsquery_serializeOpChangeMessageVisibility) HandleSerialize(ctx con if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") - - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("ChangeMessageVisibility") - body.Key("Version").String("2012-11-05") + httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.0") + httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSQS.ChangeMessageVisibility") - if err := awsAwsquery_serializeOpDocumentChangeMessageVisibilityInput(input, bodyEncoder.Value); err != nil { + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson10_serializeOpDocumentChangeMessageVisibilityInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } - err = bodyEncoder.Encode() - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -144,14 +125,14 @@ func (m *awsAwsquery_serializeOpChangeMessageVisibility) HandleSerialize(ctx con return next.HandleSerialize(ctx, in) } -type awsAwsquery_serializeOpChangeMessageVisibilityBatch struct { +type awsAwsjson10_serializeOpChangeMessageVisibilityBatch struct { } -func (*awsAwsquery_serializeOpChangeMessageVisibilityBatch) ID() string { +func (*awsAwsjson10_serializeOpChangeMessageVisibilityBatch) ID() string { return "OperationSerializer" } -func (m *awsAwsquery_serializeOpChangeMessageVisibilityBatch) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson10_serializeOpChangeMessageVisibilityBatch) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -179,24 +160,15 @@ func (m *awsAwsquery_serializeOpChangeMessageVisibilityBatch) HandleSerialize(ct if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.0") + httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSQS.ChangeMessageVisibilityBatch") - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("ChangeMessageVisibilityBatch") - body.Key("Version").String("2012-11-05") - - if err := awsAwsquery_serializeOpDocumentChangeMessageVisibilityBatchInput(input, bodyEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - err = bodyEncoder.Encode() - if err != nil { + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson10_serializeOpDocumentChangeMessageVisibilityBatchInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } - if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -208,14 +180,14 @@ func (m *awsAwsquery_serializeOpChangeMessageVisibilityBatch) HandleSerialize(ct return next.HandleSerialize(ctx, in) } -type awsAwsquery_serializeOpCreateQueue struct { +type awsAwsjson10_serializeOpCreateQueue struct { } -func (*awsAwsquery_serializeOpCreateQueue) ID() string { +func (*awsAwsjson10_serializeOpCreateQueue) ID() string { return "OperationSerializer" } -func (m *awsAwsquery_serializeOpCreateQueue) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson10_serializeOpCreateQueue) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -243,24 +215,15 @@ func (m *awsAwsquery_serializeOpCreateQueue) HandleSerialize(ctx context.Context if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.0") + httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSQS.CreateQueue") - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("CreateQueue") - body.Key("Version").String("2012-11-05") - - if err := awsAwsquery_serializeOpDocumentCreateQueueInput(input, bodyEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - err = bodyEncoder.Encode() - if err != nil { + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson10_serializeOpDocumentCreateQueueInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } - if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -272,14 +235,14 @@ func (m *awsAwsquery_serializeOpCreateQueue) HandleSerialize(ctx context.Context return next.HandleSerialize(ctx, in) } -type awsAwsquery_serializeOpDeleteMessage struct { +type awsAwsjson10_serializeOpDeleteMessage struct { } -func (*awsAwsquery_serializeOpDeleteMessage) ID() string { +func (*awsAwsjson10_serializeOpDeleteMessage) ID() string { return "OperationSerializer" } -func (m *awsAwsquery_serializeOpDeleteMessage) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson10_serializeOpDeleteMessage) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -307,24 +270,15 @@ func (m *awsAwsquery_serializeOpDeleteMessage) HandleSerialize(ctx context.Conte if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") - - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("DeleteMessage") - body.Key("Version").String("2012-11-05") + httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.0") + httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSQS.DeleteMessage") - if err := awsAwsquery_serializeOpDocumentDeleteMessageInput(input, bodyEncoder.Value); err != nil { + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson10_serializeOpDocumentDeleteMessageInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } - err = bodyEncoder.Encode() - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -336,14 +290,14 @@ func (m *awsAwsquery_serializeOpDeleteMessage) HandleSerialize(ctx context.Conte return next.HandleSerialize(ctx, in) } -type awsAwsquery_serializeOpDeleteMessageBatch struct { +type awsAwsjson10_serializeOpDeleteMessageBatch struct { } -func (*awsAwsquery_serializeOpDeleteMessageBatch) ID() string { +func (*awsAwsjson10_serializeOpDeleteMessageBatch) ID() string { return "OperationSerializer" } -func (m *awsAwsquery_serializeOpDeleteMessageBatch) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson10_serializeOpDeleteMessageBatch) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -371,24 +325,15 @@ func (m *awsAwsquery_serializeOpDeleteMessageBatch) HandleSerialize(ctx context. if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.0") + httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSQS.DeleteMessageBatch") - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("DeleteMessageBatch") - body.Key("Version").String("2012-11-05") - - if err := awsAwsquery_serializeOpDocumentDeleteMessageBatchInput(input, bodyEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - err = bodyEncoder.Encode() - if err != nil { + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson10_serializeOpDocumentDeleteMessageBatchInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } - if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -400,14 +345,14 @@ func (m *awsAwsquery_serializeOpDeleteMessageBatch) HandleSerialize(ctx context. return next.HandleSerialize(ctx, in) } -type awsAwsquery_serializeOpDeleteQueue struct { +type awsAwsjson10_serializeOpDeleteQueue struct { } -func (*awsAwsquery_serializeOpDeleteQueue) ID() string { +func (*awsAwsjson10_serializeOpDeleteQueue) ID() string { return "OperationSerializer" } -func (m *awsAwsquery_serializeOpDeleteQueue) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson10_serializeOpDeleteQueue) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -435,24 +380,15 @@ func (m *awsAwsquery_serializeOpDeleteQueue) HandleSerialize(ctx context.Context if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.0") + httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSQS.DeleteQueue") - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("DeleteQueue") - body.Key("Version").String("2012-11-05") - - if err := awsAwsquery_serializeOpDocumentDeleteQueueInput(input, bodyEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - err = bodyEncoder.Encode() - if err != nil { + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson10_serializeOpDocumentDeleteQueueInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } - if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -464,14 +400,14 @@ func (m *awsAwsquery_serializeOpDeleteQueue) HandleSerialize(ctx context.Context return next.HandleSerialize(ctx, in) } -type awsAwsquery_serializeOpGetQueueAttributes struct { +type awsAwsjson10_serializeOpGetQueueAttributes struct { } -func (*awsAwsquery_serializeOpGetQueueAttributes) ID() string { +func (*awsAwsjson10_serializeOpGetQueueAttributes) ID() string { return "OperationSerializer" } -func (m *awsAwsquery_serializeOpGetQueueAttributes) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson10_serializeOpGetQueueAttributes) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -499,24 +435,15 @@ func (m *awsAwsquery_serializeOpGetQueueAttributes) HandleSerialize(ctx context. if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") - - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("GetQueueAttributes") - body.Key("Version").String("2012-11-05") + httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.0") + httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSQS.GetQueueAttributes") - if err := awsAwsquery_serializeOpDocumentGetQueueAttributesInput(input, bodyEncoder.Value); err != nil { + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson10_serializeOpDocumentGetQueueAttributesInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } - err = bodyEncoder.Encode() - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -528,14 +455,14 @@ func (m *awsAwsquery_serializeOpGetQueueAttributes) HandleSerialize(ctx context. return next.HandleSerialize(ctx, in) } -type awsAwsquery_serializeOpGetQueueUrl struct { +type awsAwsjson10_serializeOpGetQueueUrl struct { } -func (*awsAwsquery_serializeOpGetQueueUrl) ID() string { +func (*awsAwsjson10_serializeOpGetQueueUrl) ID() string { return "OperationSerializer" } -func (m *awsAwsquery_serializeOpGetQueueUrl) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson10_serializeOpGetQueueUrl) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -563,24 +490,15 @@ func (m *awsAwsquery_serializeOpGetQueueUrl) HandleSerialize(ctx context.Context if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.0") + httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSQS.GetQueueUrl") - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("GetQueueUrl") - body.Key("Version").String("2012-11-05") - - if err := awsAwsquery_serializeOpDocumentGetQueueUrlInput(input, bodyEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - err = bodyEncoder.Encode() - if err != nil { + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson10_serializeOpDocumentGetQueueUrlInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } - if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -592,14 +510,14 @@ func (m *awsAwsquery_serializeOpGetQueueUrl) HandleSerialize(ctx context.Context return next.HandleSerialize(ctx, in) } -type awsAwsquery_serializeOpListDeadLetterSourceQueues struct { +type awsAwsjson10_serializeOpListDeadLetterSourceQueues struct { } -func (*awsAwsquery_serializeOpListDeadLetterSourceQueues) ID() string { +func (*awsAwsjson10_serializeOpListDeadLetterSourceQueues) ID() string { return "OperationSerializer" } -func (m *awsAwsquery_serializeOpListDeadLetterSourceQueues) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson10_serializeOpListDeadLetterSourceQueues) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -627,24 +545,15 @@ func (m *awsAwsquery_serializeOpListDeadLetterSourceQueues) HandleSerialize(ctx if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.0") + httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSQS.ListDeadLetterSourceQueues") - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("ListDeadLetterSourceQueues") - body.Key("Version").String("2012-11-05") - - if err := awsAwsquery_serializeOpDocumentListDeadLetterSourceQueuesInput(input, bodyEncoder.Value); err != nil { + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson10_serializeOpDocumentListDeadLetterSourceQueuesInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } - err = bodyEncoder.Encode() - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -656,14 +565,14 @@ func (m *awsAwsquery_serializeOpListDeadLetterSourceQueues) HandleSerialize(ctx return next.HandleSerialize(ctx, in) } -type awsAwsquery_serializeOpListQueues struct { +type awsAwsjson10_serializeOpListQueues struct { } -func (*awsAwsquery_serializeOpListQueues) ID() string { +func (*awsAwsjson10_serializeOpListQueues) ID() string { return "OperationSerializer" } -func (m *awsAwsquery_serializeOpListQueues) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson10_serializeOpListQueues) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -691,24 +600,15 @@ func (m *awsAwsquery_serializeOpListQueues) HandleSerialize(ctx context.Context, if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") - - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("ListQueues") - body.Key("Version").String("2012-11-05") - - if err := awsAwsquery_serializeOpDocumentListQueuesInput(input, bodyEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.0") + httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSQS.ListQueues") - err = bodyEncoder.Encode() - if err != nil { + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson10_serializeOpDocumentListQueuesInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } - if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -720,14 +620,14 @@ func (m *awsAwsquery_serializeOpListQueues) HandleSerialize(ctx context.Context, return next.HandleSerialize(ctx, in) } -type awsAwsquery_serializeOpListQueueTags struct { +type awsAwsjson10_serializeOpListQueueTags struct { } -func (*awsAwsquery_serializeOpListQueueTags) ID() string { +func (*awsAwsjson10_serializeOpListQueueTags) ID() string { return "OperationSerializer" } -func (m *awsAwsquery_serializeOpListQueueTags) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson10_serializeOpListQueueTags) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -755,24 +655,15 @@ func (m *awsAwsquery_serializeOpListQueueTags) HandleSerialize(ctx context.Conte if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") - - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("ListQueueTags") - body.Key("Version").String("2012-11-05") - - if err := awsAwsquery_serializeOpDocumentListQueueTagsInput(input, bodyEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.0") + httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSQS.ListQueueTags") - err = bodyEncoder.Encode() - if err != nil { + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson10_serializeOpDocumentListQueueTagsInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } - if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -784,14 +675,14 @@ func (m *awsAwsquery_serializeOpListQueueTags) HandleSerialize(ctx context.Conte return next.HandleSerialize(ctx, in) } -type awsAwsquery_serializeOpPurgeQueue struct { +type awsAwsjson10_serializeOpPurgeQueue struct { } -func (*awsAwsquery_serializeOpPurgeQueue) ID() string { +func (*awsAwsjson10_serializeOpPurgeQueue) ID() string { return "OperationSerializer" } -func (m *awsAwsquery_serializeOpPurgeQueue) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson10_serializeOpPurgeQueue) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -819,24 +710,15 @@ func (m *awsAwsquery_serializeOpPurgeQueue) HandleSerialize(ctx context.Context, if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") - - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("PurgeQueue") - body.Key("Version").String("2012-11-05") - - if err := awsAwsquery_serializeOpDocumentPurgeQueueInput(input, bodyEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.0") + httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSQS.PurgeQueue") - err = bodyEncoder.Encode() - if err != nil { + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson10_serializeOpDocumentPurgeQueueInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } - if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -848,14 +730,14 @@ func (m *awsAwsquery_serializeOpPurgeQueue) HandleSerialize(ctx context.Context, return next.HandleSerialize(ctx, in) } -type awsAwsquery_serializeOpReceiveMessage struct { +type awsAwsjson10_serializeOpReceiveMessage struct { } -func (*awsAwsquery_serializeOpReceiveMessage) ID() string { +func (*awsAwsjson10_serializeOpReceiveMessage) ID() string { return "OperationSerializer" } -func (m *awsAwsquery_serializeOpReceiveMessage) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson10_serializeOpReceiveMessage) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -883,24 +765,15 @@ func (m *awsAwsquery_serializeOpReceiveMessage) HandleSerialize(ctx context.Cont if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.0") + httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSQS.ReceiveMessage") - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("ReceiveMessage") - body.Key("Version").String("2012-11-05") - - if err := awsAwsquery_serializeOpDocumentReceiveMessageInput(input, bodyEncoder.Value); err != nil { + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson10_serializeOpDocumentReceiveMessageInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } - err = bodyEncoder.Encode() - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -912,14 +785,14 @@ func (m *awsAwsquery_serializeOpReceiveMessage) HandleSerialize(ctx context.Cont return next.HandleSerialize(ctx, in) } -type awsAwsquery_serializeOpRemovePermission struct { +type awsAwsjson10_serializeOpRemovePermission struct { } -func (*awsAwsquery_serializeOpRemovePermission) ID() string { +func (*awsAwsjson10_serializeOpRemovePermission) ID() string { return "OperationSerializer" } -func (m *awsAwsquery_serializeOpRemovePermission) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson10_serializeOpRemovePermission) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -947,24 +820,15 @@ func (m *awsAwsquery_serializeOpRemovePermission) HandleSerialize(ctx context.Co if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") - - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("RemovePermission") - body.Key("Version").String("2012-11-05") - - if err := awsAwsquery_serializeOpDocumentRemovePermissionInput(input, bodyEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.0") + httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSQS.RemovePermission") - err = bodyEncoder.Encode() - if err != nil { + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson10_serializeOpDocumentRemovePermissionInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } - if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -976,14 +840,14 @@ func (m *awsAwsquery_serializeOpRemovePermission) HandleSerialize(ctx context.Co return next.HandleSerialize(ctx, in) } -type awsAwsquery_serializeOpSendMessage struct { +type awsAwsjson10_serializeOpSendMessage struct { } -func (*awsAwsquery_serializeOpSendMessage) ID() string { +func (*awsAwsjson10_serializeOpSendMessage) ID() string { return "OperationSerializer" } -func (m *awsAwsquery_serializeOpSendMessage) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson10_serializeOpSendMessage) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -1011,24 +875,15 @@ func (m *awsAwsquery_serializeOpSendMessage) HandleSerialize(ctx context.Context if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") - - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("SendMessage") - body.Key("Version").String("2012-11-05") - - if err := awsAwsquery_serializeOpDocumentSendMessageInput(input, bodyEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.0") + httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSQS.SendMessage") - err = bodyEncoder.Encode() - if err != nil { + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson10_serializeOpDocumentSendMessageInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } - if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -1040,14 +895,14 @@ func (m *awsAwsquery_serializeOpSendMessage) HandleSerialize(ctx context.Context return next.HandleSerialize(ctx, in) } -type awsAwsquery_serializeOpSendMessageBatch struct { +type awsAwsjson10_serializeOpSendMessageBatch struct { } -func (*awsAwsquery_serializeOpSendMessageBatch) ID() string { +func (*awsAwsjson10_serializeOpSendMessageBatch) ID() string { return "OperationSerializer" } -func (m *awsAwsquery_serializeOpSendMessageBatch) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson10_serializeOpSendMessageBatch) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -1075,24 +930,15 @@ func (m *awsAwsquery_serializeOpSendMessageBatch) HandleSerialize(ctx context.Co if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.0") + httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSQS.SendMessageBatch") - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("SendMessageBatch") - body.Key("Version").String("2012-11-05") - - if err := awsAwsquery_serializeOpDocumentSendMessageBatchInput(input, bodyEncoder.Value); err != nil { + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson10_serializeOpDocumentSendMessageBatchInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } - err = bodyEncoder.Encode() - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -1104,14 +950,14 @@ func (m *awsAwsquery_serializeOpSendMessageBatch) HandleSerialize(ctx context.Co return next.HandleSerialize(ctx, in) } -type awsAwsquery_serializeOpSetQueueAttributes struct { +type awsAwsjson10_serializeOpSetQueueAttributes struct { } -func (*awsAwsquery_serializeOpSetQueueAttributes) ID() string { +func (*awsAwsjson10_serializeOpSetQueueAttributes) ID() string { return "OperationSerializer" } -func (m *awsAwsquery_serializeOpSetQueueAttributes) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson10_serializeOpSetQueueAttributes) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -1139,24 +985,15 @@ func (m *awsAwsquery_serializeOpSetQueueAttributes) HandleSerialize(ctx context. if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") - - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("SetQueueAttributes") - body.Key("Version").String("2012-11-05") + httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.0") + httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSQS.SetQueueAttributes") - if err := awsAwsquery_serializeOpDocumentSetQueueAttributesInput(input, bodyEncoder.Value); err != nil { + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson10_serializeOpDocumentSetQueueAttributesInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } - err = bodyEncoder.Encode() - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -1168,14 +1005,14 @@ func (m *awsAwsquery_serializeOpSetQueueAttributes) HandleSerialize(ctx context. return next.HandleSerialize(ctx, in) } -type awsAwsquery_serializeOpTagQueue struct { +type awsAwsjson10_serializeOpTagQueue struct { } -func (*awsAwsquery_serializeOpTagQueue) ID() string { +func (*awsAwsjson10_serializeOpTagQueue) ID() string { return "OperationSerializer" } -func (m *awsAwsquery_serializeOpTagQueue) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson10_serializeOpTagQueue) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -1203,24 +1040,15 @@ func (m *awsAwsquery_serializeOpTagQueue) HandleSerialize(ctx context.Context, i if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") - - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("TagQueue") - body.Key("Version").String("2012-11-05") - - if err := awsAwsquery_serializeOpDocumentTagQueueInput(input, bodyEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.0") + httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSQS.TagQueue") - err = bodyEncoder.Encode() - if err != nil { + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson10_serializeOpDocumentTagQueueInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } - if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -1232,14 +1060,14 @@ func (m *awsAwsquery_serializeOpTagQueue) HandleSerialize(ctx context.Context, i return next.HandleSerialize(ctx, in) } -type awsAwsquery_serializeOpUntagQueue struct { +type awsAwsjson10_serializeOpUntagQueue struct { } -func (*awsAwsquery_serializeOpUntagQueue) ID() string { +func (*awsAwsjson10_serializeOpUntagQueue) ID() string { return "OperationSerializer" } -func (m *awsAwsquery_serializeOpUntagQueue) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson10_serializeOpUntagQueue) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -1267,24 +1095,15 @@ func (m *awsAwsquery_serializeOpUntagQueue) HandleSerialize(ctx context.Context, if err != nil { return out, metadata, &smithy.SerializationError{Err: err} } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.0") + httpBindingEncoder.SetHeader("X-Amz-Target").String("AmazonSQS.UntagQueue") - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("UntagQueue") - body.Key("Version").String("2012-11-05") - - if err := awsAwsquery_serializeOpDocumentUntagQueueInput(input, bodyEncoder.Value); err != nil { + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson10_serializeOpDocumentUntagQueueInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } - err = bodyEncoder.Encode() - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -1295,8 +1114,9 @@ func (m *awsAwsquery_serializeOpUntagQueue) HandleSerialize(ctx context.Context, return next.HandleSerialize(ctx, in) } -func awsAwsquery_serializeDocumentActionNameList(v []string, value query.Value) error { - array := value.Array("member") +func awsAwsjson10_serializeDocumentActionNameList(v []string, value smithyjson.Value) error { + array := value.Array() + defer array.Close() for i := range v { av := array.Value() @@ -1305,8 +1125,9 @@ func awsAwsquery_serializeDocumentActionNameList(v []string, value query.Value) return nil } -func awsAwsquery_serializeDocumentAttributeNameList(v []types.QueueAttributeName, value query.Value) error { - array := value.Array("member") +func awsAwsjson10_serializeDocumentAttributeNameList(v []types.QueueAttributeName, value smithyjson.Value) error { + array := value.Array() + defer array.Close() for i := range v { av := array.Value() @@ -1315,8 +1136,9 @@ func awsAwsquery_serializeDocumentAttributeNameList(v []types.QueueAttributeName return nil } -func awsAwsquery_serializeDocumentAWSAccountIdList(v []string, value query.Value) error { - array := value.Array("member") +func awsAwsjson10_serializeDocumentAWSAccountIdList(v []string, value smithyjson.Value) error { + array := value.Array() + defer array.Close() for i := range v { av := array.Value() @@ -1325,84 +1147,88 @@ func awsAwsquery_serializeDocumentAWSAccountIdList(v []string, value query.Value return nil } -func awsAwsquery_serializeDocumentBinaryList(v [][]byte, value query.Value) error { - array := value.Array("BinaryListValue") +func awsAwsjson10_serializeDocumentBinaryList(v [][]byte, value smithyjson.Value) error { + array := value.Array() + defer array.Close() for i := range v { + av := array.Value() if vv := v[i]; vv == nil { continue } - av := array.Value() av.Base64EncodeBytes(v[i]) } return nil } -func awsAwsquery_serializeDocumentChangeMessageVisibilityBatchRequestEntry(v *types.ChangeMessageVisibilityBatchRequestEntry, value query.Value) error { +func awsAwsjson10_serializeDocumentChangeMessageVisibilityBatchRequestEntry(v *types.ChangeMessageVisibilityBatchRequestEntry, value smithyjson.Value) error { object := value.Object() - _ = object + defer object.Close() if v.Id != nil { - objectKey := object.Key("Id") - objectKey.String(*v.Id) + ok := object.Key("Id") + ok.String(*v.Id) } if v.ReceiptHandle != nil { - objectKey := object.Key("ReceiptHandle") - objectKey.String(*v.ReceiptHandle) + ok := object.Key("ReceiptHandle") + ok.String(*v.ReceiptHandle) } if v.VisibilityTimeout != 0 { - objectKey := object.Key("VisibilityTimeout") - objectKey.Integer(v.VisibilityTimeout) + ok := object.Key("VisibilityTimeout") + ok.Integer(v.VisibilityTimeout) } return nil } -func awsAwsquery_serializeDocumentChangeMessageVisibilityBatchRequestEntryList(v []types.ChangeMessageVisibilityBatchRequestEntry, value query.Value) error { - array := value.Array("member") +func awsAwsjson10_serializeDocumentChangeMessageVisibilityBatchRequestEntryList(v []types.ChangeMessageVisibilityBatchRequestEntry, value smithyjson.Value) error { + array := value.Array() + defer array.Close() for i := range v { av := array.Value() - if err := awsAwsquery_serializeDocumentChangeMessageVisibilityBatchRequestEntry(&v[i], av); err != nil { + if err := awsAwsjson10_serializeDocumentChangeMessageVisibilityBatchRequestEntry(&v[i], av); err != nil { return err } } return nil } -func awsAwsquery_serializeDocumentDeleteMessageBatchRequestEntry(v *types.DeleteMessageBatchRequestEntry, value query.Value) error { +func awsAwsjson10_serializeDocumentDeleteMessageBatchRequestEntry(v *types.DeleteMessageBatchRequestEntry, value smithyjson.Value) error { object := value.Object() - _ = object + defer object.Close() if v.Id != nil { - objectKey := object.Key("Id") - objectKey.String(*v.Id) + ok := object.Key("Id") + ok.String(*v.Id) } if v.ReceiptHandle != nil { - objectKey := object.Key("ReceiptHandle") - objectKey.String(*v.ReceiptHandle) + ok := object.Key("ReceiptHandle") + ok.String(*v.ReceiptHandle) } return nil } -func awsAwsquery_serializeDocumentDeleteMessageBatchRequestEntryList(v []types.DeleteMessageBatchRequestEntry, value query.Value) error { - array := value.Array("member") +func awsAwsjson10_serializeDocumentDeleteMessageBatchRequestEntryList(v []types.DeleteMessageBatchRequestEntry, value smithyjson.Value) error { + array := value.Array() + defer array.Close() for i := range v { av := array.Value() - if err := awsAwsquery_serializeDocumentDeleteMessageBatchRequestEntry(&v[i], av); err != nil { + if err := awsAwsjson10_serializeDocumentDeleteMessageBatchRequestEntry(&v[i], av); err != nil { return err } } return nil } -func awsAwsquery_serializeDocumentMessageAttributeNameList(v []string, value query.Value) error { - array := value.Array("member") +func awsAwsjson10_serializeDocumentMessageAttributeNameList(v []string, value smithyjson.Value) error { + array := value.Array() + defer array.Close() for i := range v { av := array.Value() @@ -1411,180 +1237,156 @@ func awsAwsquery_serializeDocumentMessageAttributeNameList(v []string, value que return nil } -func awsAwsquery_serializeDocumentMessageAttributeValue(v *types.MessageAttributeValue, value query.Value) error { +func awsAwsjson10_serializeDocumentMessageAttributeValue(v *types.MessageAttributeValue, value smithyjson.Value) error { object := value.Object() - _ = object + defer object.Close() if v.BinaryListValues != nil { - objectKey := object.FlatKey("BinaryListValue") - if err := awsAwsquery_serializeDocumentBinaryList(v.BinaryListValues, objectKey); err != nil { + ok := object.Key("BinaryListValues") + if err := awsAwsjson10_serializeDocumentBinaryList(v.BinaryListValues, ok); err != nil { return err } } if v.BinaryValue != nil { - objectKey := object.Key("BinaryValue") - objectKey.Base64EncodeBytes(v.BinaryValue) + ok := object.Key("BinaryValue") + ok.Base64EncodeBytes(v.BinaryValue) } if v.DataType != nil { - objectKey := object.Key("DataType") - objectKey.String(*v.DataType) + ok := object.Key("DataType") + ok.String(*v.DataType) } if v.StringListValues != nil { - objectKey := object.FlatKey("StringListValue") - if err := awsAwsquery_serializeDocumentStringList(v.StringListValues, objectKey); err != nil { + ok := object.Key("StringListValues") + if err := awsAwsjson10_serializeDocumentStringList(v.StringListValues, ok); err != nil { return err } } if v.StringValue != nil { - objectKey := object.Key("StringValue") - objectKey.String(*v.StringValue) + ok := object.Key("StringValue") + ok.String(*v.StringValue) } return nil } -func awsAwsquery_serializeDocumentMessageBodyAttributeMap(v map[string]types.MessageAttributeValue, value query.Value) error { - if len(v) == 0 { - return nil - } - object := value.Map("Name", "Value") +func awsAwsjson10_serializeDocumentMessageBodyAttributeMap(v map[string]types.MessageAttributeValue, value smithyjson.Value) error { + object := value.Object() + defer object.Close() - keys := make([]string, 0, len(v)) for key := range v { - keys = append(keys, key) - } - sort.Strings(keys) - - for _, key := range keys { om := object.Key(key) mapVar := v[key] - if err := awsAwsquery_serializeDocumentMessageAttributeValue(&mapVar, om); err != nil { + if err := awsAwsjson10_serializeDocumentMessageAttributeValue(&mapVar, om); err != nil { return err } } return nil } -func awsAwsquery_serializeDocumentMessageBodySystemAttributeMap(v map[string]types.MessageSystemAttributeValue, value query.Value) error { - if len(v) == 0 { - return nil - } - object := value.Map("Name", "Value") +func awsAwsjson10_serializeDocumentMessageBodySystemAttributeMap(v map[string]types.MessageSystemAttributeValue, value smithyjson.Value) error { + object := value.Object() + defer object.Close() - keys := make([]string, 0, len(v)) for key := range v { - keys = append(keys, key) - } - sort.Strings(keys) - - for _, key := range keys { om := object.Key(key) mapVar := v[key] - if err := awsAwsquery_serializeDocumentMessageSystemAttributeValue(&mapVar, om); err != nil { + if err := awsAwsjson10_serializeDocumentMessageSystemAttributeValue(&mapVar, om); err != nil { return err } } return nil } -func awsAwsquery_serializeDocumentMessageSystemAttributeValue(v *types.MessageSystemAttributeValue, value query.Value) error { +func awsAwsjson10_serializeDocumentMessageSystemAttributeValue(v *types.MessageSystemAttributeValue, value smithyjson.Value) error { object := value.Object() - _ = object + defer object.Close() if v.BinaryListValues != nil { - objectKey := object.FlatKey("BinaryListValue") - if err := awsAwsquery_serializeDocumentBinaryList(v.BinaryListValues, objectKey); err != nil { + ok := object.Key("BinaryListValues") + if err := awsAwsjson10_serializeDocumentBinaryList(v.BinaryListValues, ok); err != nil { return err } } if v.BinaryValue != nil { - objectKey := object.Key("BinaryValue") - objectKey.Base64EncodeBytes(v.BinaryValue) + ok := object.Key("BinaryValue") + ok.Base64EncodeBytes(v.BinaryValue) } if v.DataType != nil { - objectKey := object.Key("DataType") - objectKey.String(*v.DataType) + ok := object.Key("DataType") + ok.String(*v.DataType) } if v.StringListValues != nil { - objectKey := object.FlatKey("StringListValue") - if err := awsAwsquery_serializeDocumentStringList(v.StringListValues, objectKey); err != nil { + ok := object.Key("StringListValues") + if err := awsAwsjson10_serializeDocumentStringList(v.StringListValues, ok); err != nil { return err } } if v.StringValue != nil { - objectKey := object.Key("StringValue") - objectKey.String(*v.StringValue) + ok := object.Key("StringValue") + ok.String(*v.StringValue) } return nil } -func awsAwsquery_serializeDocumentQueueAttributeMap(v map[string]string, value query.Value) error { - if len(v) == 0 { - return nil - } - object := value.Map("Name", "Value") +func awsAwsjson10_serializeDocumentQueueAttributeMap(v map[string]string, value smithyjson.Value) error { + object := value.Object() + defer object.Close() - keys := make([]string, 0, len(v)) for key := range v { - keys = append(keys, key) - } - sort.Strings(keys) - - for _, key := range keys { om := object.Key(key) om.String(v[key]) } return nil } -func awsAwsquery_serializeDocumentSendMessageBatchRequestEntry(v *types.SendMessageBatchRequestEntry, value query.Value) error { +func awsAwsjson10_serializeDocumentSendMessageBatchRequestEntry(v *types.SendMessageBatchRequestEntry, value smithyjson.Value) error { object := value.Object() - _ = object + defer object.Close() if v.DelaySeconds != 0 { - objectKey := object.Key("DelaySeconds") - objectKey.Integer(v.DelaySeconds) + ok := object.Key("DelaySeconds") + ok.Integer(v.DelaySeconds) } if v.Id != nil { - objectKey := object.Key("Id") - objectKey.String(*v.Id) + ok := object.Key("Id") + ok.String(*v.Id) } if v.MessageAttributes != nil { - objectKey := object.FlatKey("MessageAttribute") - if err := awsAwsquery_serializeDocumentMessageBodyAttributeMap(v.MessageAttributes, objectKey); err != nil { + ok := object.Key("MessageAttributes") + if err := awsAwsjson10_serializeDocumentMessageBodyAttributeMap(v.MessageAttributes, ok); err != nil { return err } } if v.MessageBody != nil { - objectKey := object.Key("MessageBody") - objectKey.String(*v.MessageBody) + ok := object.Key("MessageBody") + ok.String(*v.MessageBody) } if v.MessageDeduplicationId != nil { - objectKey := object.Key("MessageDeduplicationId") - objectKey.String(*v.MessageDeduplicationId) + ok := object.Key("MessageDeduplicationId") + ok.String(*v.MessageDeduplicationId) } if v.MessageGroupId != nil { - objectKey := object.Key("MessageGroupId") - objectKey.String(*v.MessageGroupId) + ok := object.Key("MessageGroupId") + ok.String(*v.MessageGroupId) } if v.MessageSystemAttributes != nil { - objectKey := object.FlatKey("MessageSystemAttribute") - if err := awsAwsquery_serializeDocumentMessageBodySystemAttributeMap(v.MessageSystemAttributes, objectKey); err != nil { + ok := object.Key("MessageSystemAttributes") + if err := awsAwsjson10_serializeDocumentMessageBodySystemAttributeMap(v.MessageSystemAttributes, ok); err != nil { return err } } @@ -1592,20 +1394,22 @@ func awsAwsquery_serializeDocumentSendMessageBatchRequestEntry(v *types.SendMess return nil } -func awsAwsquery_serializeDocumentSendMessageBatchRequestEntryList(v []types.SendMessageBatchRequestEntry, value query.Value) error { - array := value.Array("member") +func awsAwsjson10_serializeDocumentSendMessageBatchRequestEntryList(v []types.SendMessageBatchRequestEntry, value smithyjson.Value) error { + array := value.Array() + defer array.Close() for i := range v { av := array.Value() - if err := awsAwsquery_serializeDocumentSendMessageBatchRequestEntry(&v[i], av); err != nil { + if err := awsAwsjson10_serializeDocumentSendMessageBatchRequestEntry(&v[i], av); err != nil { return err } } return nil } -func awsAwsquery_serializeDocumentStringList(v []string, value query.Value) error { - array := value.Array("StringListValue") +func awsAwsjson10_serializeDocumentStringList(v []string, value smithyjson.Value) error { + array := value.Array() + defer array.Close() for i := range v { av := array.Value() @@ -1614,8 +1418,9 @@ func awsAwsquery_serializeDocumentStringList(v []string, value query.Value) erro return nil } -func awsAwsquery_serializeDocumentTagKeyList(v []string, value query.Value) error { - array := value.Array("member") +func awsAwsjson10_serializeDocumentTagKeyList(v []string, value smithyjson.Value) error { + array := value.Array() + defer array.Close() for i := range v { av := array.Value() @@ -1624,116 +1429,108 @@ func awsAwsquery_serializeDocumentTagKeyList(v []string, value query.Value) erro return nil } -func awsAwsquery_serializeDocumentTagMap(v map[string]string, value query.Value) error { - if len(v) == 0 { - return nil - } - object := value.Map("Key", "Value") +func awsAwsjson10_serializeDocumentTagMap(v map[string]string, value smithyjson.Value) error { + object := value.Object() + defer object.Close() - keys := make([]string, 0, len(v)) for key := range v { - keys = append(keys, key) - } - sort.Strings(keys) - - for _, key := range keys { om := object.Key(key) om.String(v[key]) } return nil } -func awsAwsquery_serializeOpDocumentAddPermissionInput(v *AddPermissionInput, value query.Value) error { +func awsAwsjson10_serializeOpDocumentAddPermissionInput(v *AddPermissionInput, value smithyjson.Value) error { object := value.Object() - _ = object + defer object.Close() if v.Actions != nil { - objectKey := object.FlatKey("ActionName") - if err := awsAwsquery_serializeDocumentActionNameList(v.Actions, objectKey); err != nil { + ok := object.Key("Actions") + if err := awsAwsjson10_serializeDocumentActionNameList(v.Actions, ok); err != nil { return err } } if v.AWSAccountIds != nil { - objectKey := object.FlatKey("AWSAccountId") - if err := awsAwsquery_serializeDocumentAWSAccountIdList(v.AWSAccountIds, objectKey); err != nil { + ok := object.Key("AWSAccountIds") + if err := awsAwsjson10_serializeDocumentAWSAccountIdList(v.AWSAccountIds, ok); err != nil { return err } } if v.Label != nil { - objectKey := object.Key("Label") - objectKey.String(*v.Label) + ok := object.Key("Label") + ok.String(*v.Label) } if v.QueueUrl != nil { - objectKey := object.Key("QueueUrl") - objectKey.String(*v.QueueUrl) + ok := object.Key("QueueUrl") + ok.String(*v.QueueUrl) } return nil } -func awsAwsquery_serializeOpDocumentChangeMessageVisibilityBatchInput(v *ChangeMessageVisibilityBatchInput, value query.Value) error { +func awsAwsjson10_serializeOpDocumentChangeMessageVisibilityBatchInput(v *ChangeMessageVisibilityBatchInput, value smithyjson.Value) error { object := value.Object() - _ = object + defer object.Close() if v.Entries != nil { - objectKey := object.FlatKey("ChangeMessageVisibilityBatchRequestEntry") - if err := awsAwsquery_serializeDocumentChangeMessageVisibilityBatchRequestEntryList(v.Entries, objectKey); err != nil { + ok := object.Key("Entries") + if err := awsAwsjson10_serializeDocumentChangeMessageVisibilityBatchRequestEntryList(v.Entries, ok); err != nil { return err } } if v.QueueUrl != nil { - objectKey := object.Key("QueueUrl") - objectKey.String(*v.QueueUrl) + ok := object.Key("QueueUrl") + ok.String(*v.QueueUrl) } return nil } -func awsAwsquery_serializeOpDocumentChangeMessageVisibilityInput(v *ChangeMessageVisibilityInput, value query.Value) error { +func awsAwsjson10_serializeOpDocumentChangeMessageVisibilityInput(v *ChangeMessageVisibilityInput, value smithyjson.Value) error { object := value.Object() - _ = object + defer object.Close() if v.QueueUrl != nil { - objectKey := object.Key("QueueUrl") - objectKey.String(*v.QueueUrl) + ok := object.Key("QueueUrl") + ok.String(*v.QueueUrl) } if v.ReceiptHandle != nil { - objectKey := object.Key("ReceiptHandle") - objectKey.String(*v.ReceiptHandle) + ok := object.Key("ReceiptHandle") + ok.String(*v.ReceiptHandle) } { - objectKey := object.Key("VisibilityTimeout") - objectKey.Integer(v.VisibilityTimeout) + ok := object.Key("VisibilityTimeout") + ok.Integer(v.VisibilityTimeout) } return nil } -func awsAwsquery_serializeOpDocumentCreateQueueInput(v *CreateQueueInput, value query.Value) error { +func awsAwsjson10_serializeOpDocumentCreateQueueInput(v *CreateQueueInput, value smithyjson.Value) error { object := value.Object() - _ = object + defer object.Close() if v.Attributes != nil { - objectKey := object.FlatKey("Attribute") - if err := awsAwsquery_serializeDocumentQueueAttributeMap(v.Attributes, objectKey); err != nil { + ok := object.Key("Attributes") + if err := awsAwsjson10_serializeDocumentQueueAttributeMap(v.Attributes, ok); err != nil { return err } } if v.QueueName != nil { - objectKey := object.Key("QueueName") - objectKey.String(*v.QueueName) + ok := object.Key("QueueName") + ok.String(*v.QueueName) } if v.Tags != nil { - objectKey := object.FlatKey("Tag") - if err := awsAwsquery_serializeDocumentTagMap(v.Tags, objectKey); err != nil { + ok := object.Key("tags") + if err := awsAwsjson10_serializeDocumentTagMap(v.Tags, ok); err != nil { return err } } @@ -1741,317 +1538,317 @@ func awsAwsquery_serializeOpDocumentCreateQueueInput(v *CreateQueueInput, value return nil } -func awsAwsquery_serializeOpDocumentDeleteMessageBatchInput(v *DeleteMessageBatchInput, value query.Value) error { +func awsAwsjson10_serializeOpDocumentDeleteMessageBatchInput(v *DeleteMessageBatchInput, value smithyjson.Value) error { object := value.Object() - _ = object + defer object.Close() if v.Entries != nil { - objectKey := object.FlatKey("DeleteMessageBatchRequestEntry") - if err := awsAwsquery_serializeDocumentDeleteMessageBatchRequestEntryList(v.Entries, objectKey); err != nil { + ok := object.Key("Entries") + if err := awsAwsjson10_serializeDocumentDeleteMessageBatchRequestEntryList(v.Entries, ok); err != nil { return err } } if v.QueueUrl != nil { - objectKey := object.Key("QueueUrl") - objectKey.String(*v.QueueUrl) + ok := object.Key("QueueUrl") + ok.String(*v.QueueUrl) } return nil } -func awsAwsquery_serializeOpDocumentDeleteMessageInput(v *DeleteMessageInput, value query.Value) error { +func awsAwsjson10_serializeOpDocumentDeleteMessageInput(v *DeleteMessageInput, value smithyjson.Value) error { object := value.Object() - _ = object + defer object.Close() if v.QueueUrl != nil { - objectKey := object.Key("QueueUrl") - objectKey.String(*v.QueueUrl) + ok := object.Key("QueueUrl") + ok.String(*v.QueueUrl) } if v.ReceiptHandle != nil { - objectKey := object.Key("ReceiptHandle") - objectKey.String(*v.ReceiptHandle) + ok := object.Key("ReceiptHandle") + ok.String(*v.ReceiptHandle) } return nil } -func awsAwsquery_serializeOpDocumentDeleteQueueInput(v *DeleteQueueInput, value query.Value) error { +func awsAwsjson10_serializeOpDocumentDeleteQueueInput(v *DeleteQueueInput, value smithyjson.Value) error { object := value.Object() - _ = object + defer object.Close() if v.QueueUrl != nil { - objectKey := object.Key("QueueUrl") - objectKey.String(*v.QueueUrl) + ok := object.Key("QueueUrl") + ok.String(*v.QueueUrl) } return nil } -func awsAwsquery_serializeOpDocumentGetQueueAttributesInput(v *GetQueueAttributesInput, value query.Value) error { +func awsAwsjson10_serializeOpDocumentGetQueueAttributesInput(v *GetQueueAttributesInput, value smithyjson.Value) error { object := value.Object() - _ = object + defer object.Close() if v.AttributeNames != nil { - objectKey := object.FlatKey("AttributeName") - if err := awsAwsquery_serializeDocumentAttributeNameList(v.AttributeNames, objectKey); err != nil { + ok := object.Key("AttributeNames") + if err := awsAwsjson10_serializeDocumentAttributeNameList(v.AttributeNames, ok); err != nil { return err } } if v.QueueUrl != nil { - objectKey := object.Key("QueueUrl") - objectKey.String(*v.QueueUrl) + ok := object.Key("QueueUrl") + ok.String(*v.QueueUrl) } return nil } -func awsAwsquery_serializeOpDocumentGetQueueUrlInput(v *GetQueueUrlInput, value query.Value) error { +func awsAwsjson10_serializeOpDocumentGetQueueUrlInput(v *GetQueueUrlInput, value smithyjson.Value) error { object := value.Object() - _ = object + defer object.Close() if v.QueueName != nil { - objectKey := object.Key("QueueName") - objectKey.String(*v.QueueName) + ok := object.Key("QueueName") + ok.String(*v.QueueName) } if v.QueueOwnerAWSAccountId != nil { - objectKey := object.Key("QueueOwnerAWSAccountId") - objectKey.String(*v.QueueOwnerAWSAccountId) + ok := object.Key("QueueOwnerAWSAccountId") + ok.String(*v.QueueOwnerAWSAccountId) } return nil } -func awsAwsquery_serializeOpDocumentListDeadLetterSourceQueuesInput(v *ListDeadLetterSourceQueuesInput, value query.Value) error { +func awsAwsjson10_serializeOpDocumentListDeadLetterSourceQueuesInput(v *ListDeadLetterSourceQueuesInput, value smithyjson.Value) error { object := value.Object() - _ = object + defer object.Close() if v.MaxResults != nil { - objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + ok := object.Key("MaxResults") + ok.Integer(*v.MaxResults) } if v.NextToken != nil { - objectKey := object.Key("NextToken") - objectKey.String(*v.NextToken) + ok := object.Key("NextToken") + ok.String(*v.NextToken) } if v.QueueUrl != nil { - objectKey := object.Key("QueueUrl") - objectKey.String(*v.QueueUrl) + ok := object.Key("QueueUrl") + ok.String(*v.QueueUrl) } return nil } -func awsAwsquery_serializeOpDocumentListQueuesInput(v *ListQueuesInput, value query.Value) error { +func awsAwsjson10_serializeOpDocumentListQueuesInput(v *ListQueuesInput, value smithyjson.Value) error { object := value.Object() - _ = object + defer object.Close() if v.MaxResults != nil { - objectKey := object.Key("MaxResults") - objectKey.Integer(*v.MaxResults) + ok := object.Key("MaxResults") + ok.Integer(*v.MaxResults) } if v.NextToken != nil { - objectKey := object.Key("NextToken") - objectKey.String(*v.NextToken) + ok := object.Key("NextToken") + ok.String(*v.NextToken) } if v.QueueNamePrefix != nil { - objectKey := object.Key("QueueNamePrefix") - objectKey.String(*v.QueueNamePrefix) + ok := object.Key("QueueNamePrefix") + ok.String(*v.QueueNamePrefix) } return nil } -func awsAwsquery_serializeOpDocumentListQueueTagsInput(v *ListQueueTagsInput, value query.Value) error { +func awsAwsjson10_serializeOpDocumentListQueueTagsInput(v *ListQueueTagsInput, value smithyjson.Value) error { object := value.Object() - _ = object + defer object.Close() if v.QueueUrl != nil { - objectKey := object.Key("QueueUrl") - objectKey.String(*v.QueueUrl) + ok := object.Key("QueueUrl") + ok.String(*v.QueueUrl) } return nil } -func awsAwsquery_serializeOpDocumentPurgeQueueInput(v *PurgeQueueInput, value query.Value) error { +func awsAwsjson10_serializeOpDocumentPurgeQueueInput(v *PurgeQueueInput, value smithyjson.Value) error { object := value.Object() - _ = object + defer object.Close() if v.QueueUrl != nil { - objectKey := object.Key("QueueUrl") - objectKey.String(*v.QueueUrl) + ok := object.Key("QueueUrl") + ok.String(*v.QueueUrl) } return nil } -func awsAwsquery_serializeOpDocumentReceiveMessageInput(v *ReceiveMessageInput, value query.Value) error { +func awsAwsjson10_serializeOpDocumentReceiveMessageInput(v *ReceiveMessageInput, value smithyjson.Value) error { object := value.Object() - _ = object + defer object.Close() if v.AttributeNames != nil { - objectKey := object.FlatKey("AttributeName") - if err := awsAwsquery_serializeDocumentAttributeNameList(v.AttributeNames, objectKey); err != nil { + ok := object.Key("AttributeNames") + if err := awsAwsjson10_serializeDocumentAttributeNameList(v.AttributeNames, ok); err != nil { return err } } if v.MaxNumberOfMessages != 0 { - objectKey := object.Key("MaxNumberOfMessages") - objectKey.Integer(v.MaxNumberOfMessages) + ok := object.Key("MaxNumberOfMessages") + ok.Integer(v.MaxNumberOfMessages) } if v.MessageAttributeNames != nil { - objectKey := object.FlatKey("MessageAttributeName") - if err := awsAwsquery_serializeDocumentMessageAttributeNameList(v.MessageAttributeNames, objectKey); err != nil { + ok := object.Key("MessageAttributeNames") + if err := awsAwsjson10_serializeDocumentMessageAttributeNameList(v.MessageAttributeNames, ok); err != nil { return err } } if v.QueueUrl != nil { - objectKey := object.Key("QueueUrl") - objectKey.String(*v.QueueUrl) + ok := object.Key("QueueUrl") + ok.String(*v.QueueUrl) } if v.ReceiveRequestAttemptId != nil { - objectKey := object.Key("ReceiveRequestAttemptId") - objectKey.String(*v.ReceiveRequestAttemptId) + ok := object.Key("ReceiveRequestAttemptId") + ok.String(*v.ReceiveRequestAttemptId) } if v.VisibilityTimeout != 0 { - objectKey := object.Key("VisibilityTimeout") - objectKey.Integer(v.VisibilityTimeout) + ok := object.Key("VisibilityTimeout") + ok.Integer(v.VisibilityTimeout) } if v.WaitTimeSeconds != 0 { - objectKey := object.Key("WaitTimeSeconds") - objectKey.Integer(v.WaitTimeSeconds) + ok := object.Key("WaitTimeSeconds") + ok.Integer(v.WaitTimeSeconds) } return nil } -func awsAwsquery_serializeOpDocumentRemovePermissionInput(v *RemovePermissionInput, value query.Value) error { +func awsAwsjson10_serializeOpDocumentRemovePermissionInput(v *RemovePermissionInput, value smithyjson.Value) error { object := value.Object() - _ = object + defer object.Close() if v.Label != nil { - objectKey := object.Key("Label") - objectKey.String(*v.Label) + ok := object.Key("Label") + ok.String(*v.Label) } if v.QueueUrl != nil { - objectKey := object.Key("QueueUrl") - objectKey.String(*v.QueueUrl) + ok := object.Key("QueueUrl") + ok.String(*v.QueueUrl) } return nil } -func awsAwsquery_serializeOpDocumentSendMessageBatchInput(v *SendMessageBatchInput, value query.Value) error { +func awsAwsjson10_serializeOpDocumentSendMessageBatchInput(v *SendMessageBatchInput, value smithyjson.Value) error { object := value.Object() - _ = object + defer object.Close() if v.Entries != nil { - objectKey := object.FlatKey("SendMessageBatchRequestEntry") - if err := awsAwsquery_serializeDocumentSendMessageBatchRequestEntryList(v.Entries, objectKey); err != nil { + ok := object.Key("Entries") + if err := awsAwsjson10_serializeDocumentSendMessageBatchRequestEntryList(v.Entries, ok); err != nil { return err } } if v.QueueUrl != nil { - objectKey := object.Key("QueueUrl") - objectKey.String(*v.QueueUrl) + ok := object.Key("QueueUrl") + ok.String(*v.QueueUrl) } return nil } -func awsAwsquery_serializeOpDocumentSendMessageInput(v *SendMessageInput, value query.Value) error { +func awsAwsjson10_serializeOpDocumentSendMessageInput(v *SendMessageInput, value smithyjson.Value) error { object := value.Object() - _ = object + defer object.Close() if v.DelaySeconds != 0 { - objectKey := object.Key("DelaySeconds") - objectKey.Integer(v.DelaySeconds) + ok := object.Key("DelaySeconds") + ok.Integer(v.DelaySeconds) } if v.MessageAttributes != nil { - objectKey := object.FlatKey("MessageAttribute") - if err := awsAwsquery_serializeDocumentMessageBodyAttributeMap(v.MessageAttributes, objectKey); err != nil { + ok := object.Key("MessageAttributes") + if err := awsAwsjson10_serializeDocumentMessageBodyAttributeMap(v.MessageAttributes, ok); err != nil { return err } } if v.MessageBody != nil { - objectKey := object.Key("MessageBody") - objectKey.String(*v.MessageBody) + ok := object.Key("MessageBody") + ok.String(*v.MessageBody) } if v.MessageDeduplicationId != nil { - objectKey := object.Key("MessageDeduplicationId") - objectKey.String(*v.MessageDeduplicationId) + ok := object.Key("MessageDeduplicationId") + ok.String(*v.MessageDeduplicationId) } if v.MessageGroupId != nil { - objectKey := object.Key("MessageGroupId") - objectKey.String(*v.MessageGroupId) + ok := object.Key("MessageGroupId") + ok.String(*v.MessageGroupId) } if v.MessageSystemAttributes != nil { - objectKey := object.FlatKey("MessageSystemAttribute") - if err := awsAwsquery_serializeDocumentMessageBodySystemAttributeMap(v.MessageSystemAttributes, objectKey); err != nil { + ok := object.Key("MessageSystemAttributes") + if err := awsAwsjson10_serializeDocumentMessageBodySystemAttributeMap(v.MessageSystemAttributes, ok); err != nil { return err } } if v.QueueUrl != nil { - objectKey := object.Key("QueueUrl") - objectKey.String(*v.QueueUrl) + ok := object.Key("QueueUrl") + ok.String(*v.QueueUrl) } return nil } -func awsAwsquery_serializeOpDocumentSetQueueAttributesInput(v *SetQueueAttributesInput, value query.Value) error { +func awsAwsjson10_serializeOpDocumentSetQueueAttributesInput(v *SetQueueAttributesInput, value smithyjson.Value) error { object := value.Object() - _ = object + defer object.Close() if v.Attributes != nil { - objectKey := object.FlatKey("Attribute") - if err := awsAwsquery_serializeDocumentQueueAttributeMap(v.Attributes, objectKey); err != nil { + ok := object.Key("Attributes") + if err := awsAwsjson10_serializeDocumentQueueAttributeMap(v.Attributes, ok); err != nil { return err } } if v.QueueUrl != nil { - objectKey := object.Key("QueueUrl") - objectKey.String(*v.QueueUrl) + ok := object.Key("QueueUrl") + ok.String(*v.QueueUrl) } return nil } -func awsAwsquery_serializeOpDocumentTagQueueInput(v *TagQueueInput, value query.Value) error { +func awsAwsjson10_serializeOpDocumentTagQueueInput(v *TagQueueInput, value smithyjson.Value) error { object := value.Object() - _ = object + defer object.Close() if v.QueueUrl != nil { - objectKey := object.Key("QueueUrl") - objectKey.String(*v.QueueUrl) + ok := object.Key("QueueUrl") + ok.String(*v.QueueUrl) } if v.Tags != nil { - objectKey := object.FlatKey("Tag") - if err := awsAwsquery_serializeDocumentTagMap(v.Tags, objectKey); err != nil { + ok := object.Key("Tags") + if err := awsAwsjson10_serializeDocumentTagMap(v.Tags, ok); err != nil { return err } } @@ -2059,18 +1856,18 @@ func awsAwsquery_serializeOpDocumentTagQueueInput(v *TagQueueInput, value query. return nil } -func awsAwsquery_serializeOpDocumentUntagQueueInput(v *UntagQueueInput, value query.Value) error { +func awsAwsjson10_serializeOpDocumentUntagQueueInput(v *UntagQueueInput, value smithyjson.Value) error { object := value.Object() - _ = object + defer object.Close() if v.QueueUrl != nil { - objectKey := object.Key("QueueUrl") - objectKey.String(*v.QueueUrl) + ok := object.Key("QueueUrl") + ok.String(*v.QueueUrl) } if v.TagKeys != nil { - objectKey := object.FlatKey("TagKey") - if err := awsAwsquery_serializeDocumentTagKeyList(v.TagKeys, objectKey); err != nil { + ok := object.Key("TagKeys") + if err := awsAwsjson10_serializeDocumentTagKeyList(v.TagKeys, ok); err != nil { return err } } diff --git a/service/sqs/types/errors.go b/service/sqs/types/errors.go index 9e5807a3fb8..3c42aa1aaff 100644 --- a/service/sqs/types/errors.go +++ b/service/sqs/types/errors.go @@ -27,7 +27,7 @@ func (e *BatchEntryIdsNotDistinct) ErrorMessage() string { } func (e *BatchEntryIdsNotDistinct) ErrorCode() string { if e == nil || e.ErrorCodeOverride == nil { - return "AWS.SimpleQueueService.BatchEntryIdsNotDistinct" + return "BatchEntryIdsNotDistinct" } return *e.ErrorCodeOverride } @@ -53,7 +53,7 @@ func (e *BatchRequestTooLong) ErrorMessage() string { } func (e *BatchRequestTooLong) ErrorCode() string { if e == nil || e.ErrorCodeOverride == nil { - return "AWS.SimpleQueueService.BatchRequestTooLong" + return "BatchRequestTooLong" } return *e.ErrorCodeOverride } @@ -79,12 +79,38 @@ func (e *EmptyBatchRequest) ErrorMessage() string { } func (e *EmptyBatchRequest) ErrorCode() string { if e == nil || e.ErrorCodeOverride == nil { - return "AWS.SimpleQueueService.EmptyBatchRequest" + return "EmptyBatchRequest" } return *e.ErrorCodeOverride } func (e *EmptyBatchRequest) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// The accountId is invalid. +type InvalidAddress struct { + Message *string + + ErrorCodeOverride *string + + noSmithyDocumentSerde +} + +func (e *InvalidAddress) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *InvalidAddress) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *InvalidAddress) ErrorCode() string { + if e == nil || e.ErrorCodeOverride == nil { + return "InvalidAddress" + } + return *e.ErrorCodeOverride +} +func (e *InvalidAddress) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + // The specified attribute doesn't exist. type InvalidAttributeName struct { Message *string @@ -111,6 +137,32 @@ func (e *InvalidAttributeName) ErrorCode() string { } func (e *InvalidAttributeName) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// A queue attribute value is invalid. +type InvalidAttributeValue struct { + Message *string + + ErrorCodeOverride *string + + noSmithyDocumentSerde +} + +func (e *InvalidAttributeValue) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *InvalidAttributeValue) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *InvalidAttributeValue) ErrorCode() string { + if e == nil || e.ErrorCodeOverride == nil { + return "InvalidAttributeValue" + } + return *e.ErrorCodeOverride +} +func (e *InvalidAttributeValue) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + // The Id of a batch entry in a batch request doesn't abide by the specification. type InvalidBatchEntryId struct { Message *string @@ -131,7 +183,7 @@ func (e *InvalidBatchEntryId) ErrorMessage() string { } func (e *InvalidBatchEntryId) ErrorCode() string { if e == nil || e.ErrorCodeOverride == nil { - return "AWS.SimpleQueueService.InvalidBatchEntryId" + return "InvalidBatchEntryId" } return *e.ErrorCodeOverride } @@ -189,6 +241,220 @@ func (e *InvalidMessageContents) ErrorCode() string { } func (e *InvalidMessageContents) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// When the request to a queue is not HTTPS and SigV4. +type InvalidSecurity struct { + Message *string + + ErrorCodeOverride *string + + noSmithyDocumentSerde +} + +func (e *InvalidSecurity) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *InvalidSecurity) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *InvalidSecurity) ErrorCode() string { + if e == nil || e.ErrorCodeOverride == nil { + return "InvalidSecurity" + } + return *e.ErrorCodeOverride +} +func (e *InvalidSecurity) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + +// The caller doesn't have the required KMS access. +type KmsAccessDenied struct { + Message *string + + ErrorCodeOverride *string + + noSmithyDocumentSerde +} + +func (e *KmsAccessDenied) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *KmsAccessDenied) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *KmsAccessDenied) ErrorCode() string { + if e == nil || e.ErrorCodeOverride == nil { + return "KmsAccessDenied" + } + return *e.ErrorCodeOverride +} +func (e *KmsAccessDenied) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + +// The request was denied due to request throttling. +type KmsDisabled struct { + Message *string + + ErrorCodeOverride *string + + noSmithyDocumentSerde +} + +func (e *KmsDisabled) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *KmsDisabled) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *KmsDisabled) ErrorCode() string { + if e == nil || e.ErrorCodeOverride == nil { + return "KmsDisabled" + } + return *e.ErrorCodeOverride +} +func (e *KmsDisabled) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + +// The request was rejected for one of the following reasons: +// - The KeyUsage value of the KMS key is incompatible with the API operation. +// - The encryption algorithm or signing algorithm specified for the operation +// is incompatible with the type of key material in the KMS key (KeySpec). +type KmsInvalidKeyUsage struct { + Message *string + + ErrorCodeOverride *string + + noSmithyDocumentSerde +} + +func (e *KmsInvalidKeyUsage) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *KmsInvalidKeyUsage) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *KmsInvalidKeyUsage) ErrorCode() string { + if e == nil || e.ErrorCodeOverride == nil { + return "KmsInvalidKeyUsage" + } + return *e.ErrorCodeOverride +} +func (e *KmsInvalidKeyUsage) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + +// The request was rejected because the state of the specified resource is not +// valid for this request. +type KmsInvalidState struct { + Message *string + + ErrorCodeOverride *string + + noSmithyDocumentSerde +} + +func (e *KmsInvalidState) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *KmsInvalidState) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *KmsInvalidState) ErrorCode() string { + if e == nil || e.ErrorCodeOverride == nil { + return "KmsInvalidState" + } + return *e.ErrorCodeOverride +} +func (e *KmsInvalidState) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + +// The request was rejected because the specified entity or resource could not be +// found. +type KmsNotFound struct { + Message *string + + ErrorCodeOverride *string + + noSmithyDocumentSerde +} + +func (e *KmsNotFound) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *KmsNotFound) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *KmsNotFound) ErrorCode() string { + if e == nil || e.ErrorCodeOverride == nil { + return "KmsNotFound" + } + return *e.ErrorCodeOverride +} +func (e *KmsNotFound) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + +// The request was rejected because the specified key policy isn't syntactically +// or semantically correct. +type KmsOptInRequired struct { + Message *string + + ErrorCodeOverride *string + + noSmithyDocumentSerde +} + +func (e *KmsOptInRequired) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *KmsOptInRequired) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *KmsOptInRequired) ErrorCode() string { + if e == nil || e.ErrorCodeOverride == nil { + return "KmsOptInRequired" + } + return *e.ErrorCodeOverride +} +func (e *KmsOptInRequired) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + +// Amazon Web Services KMS throttles requests for the following conditions. +type KmsThrottled struct { + Message *string + + ErrorCodeOverride *string + + noSmithyDocumentSerde +} + +func (e *KmsThrottled) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *KmsThrottled) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *KmsThrottled) ErrorCode() string { + if e == nil || e.ErrorCodeOverride == nil { + return "KmsThrottled" + } + return *e.ErrorCodeOverride +} +func (e *KmsThrottled) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + // The specified message isn't in flight. type MessageNotInflight struct { Message *string @@ -209,14 +475,14 @@ func (e *MessageNotInflight) ErrorMessage() string { } func (e *MessageNotInflight) ErrorCode() string { if e == nil || e.ErrorCodeOverride == nil { - return "AWS.SimpleQueueService.MessageNotInflight" + return "MessageNotInflight" } return *e.ErrorCodeOverride } func (e *MessageNotInflight) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } // The specified action violates a limit. For example, ReceiveMessage returns this -// error if the maximum number of inflight messages is reached and AddPermission +// error if the maximum number of in flight messages is reached and AddPermission // returns this error if the maximum number of permissions for the queue is // reached. type OverLimit struct { @@ -266,7 +532,7 @@ func (e *PurgeQueueInProgress) ErrorMessage() string { } func (e *PurgeQueueInProgress) ErrorCode() string { if e == nil || e.ErrorCodeOverride == nil { - return "AWS.SimpleQueueService.PurgeQueueInProgress" + return "PurgeQueueInProgress" } return *e.ErrorCodeOverride } @@ -293,7 +559,7 @@ func (e *QueueDeletedRecently) ErrorMessage() string { } func (e *QueueDeletedRecently) ErrorCode() string { if e == nil || e.ErrorCodeOverride == nil { - return "AWS.SimpleQueueService.QueueDeletedRecently" + return "QueueDeletedRecently" } return *e.ErrorCodeOverride } @@ -319,7 +585,7 @@ func (e *QueueDoesNotExist) ErrorMessage() string { } func (e *QueueDoesNotExist) ErrorCode() string { if e == nil || e.ErrorCodeOverride == nil { - return "AWS.SimpleQueueService.NonExistentQueue" + return "QueueDoesNotExist" } return *e.ErrorCodeOverride } @@ -347,7 +613,7 @@ func (e *QueueNameExists) ErrorMessage() string { } func (e *QueueNameExists) ErrorCode() string { if e == nil || e.ErrorCodeOverride == nil { - return "QueueAlreadyExists" + return "QueueNameExists" } return *e.ErrorCodeOverride } @@ -379,6 +645,41 @@ func (e *ReceiptHandleIsInvalid) ErrorCode() string { } func (e *ReceiptHandleIsInvalid) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +// The request was denied due to request throttling. +// - The rate of requests per second exceeds the AWS KMS request quota for an +// account and Region. +// - A burst or sustained high rate of requests to change the state of the same +// KMS key. This condition is often known as a "hot key." +// - Requests for operations on KMS keys in a Amazon Web Services CloudHSM key +// store might be throttled at a lower-than-expected rate when the Amazon Web +// Services CloudHSM cluster associated with the Amazon Web Services CloudHSM key +// store is processing numerous commands, including those unrelated to the Amazon +// Web Services CloudHSM key store. +type RequestThrottled struct { + Message *string + + ErrorCodeOverride *string + + noSmithyDocumentSerde +} + +func (e *RequestThrottled) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *RequestThrottled) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *RequestThrottled) ErrorCode() string { + if e == nil || e.ErrorCodeOverride == nil { + return "RequestThrottled" + } + return *e.ErrorCodeOverride +} +func (e *RequestThrottled) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + // The batch request contains more entries than permissible. type TooManyEntriesInBatchRequest struct { Message *string @@ -399,7 +700,7 @@ func (e *TooManyEntriesInBatchRequest) ErrorMessage() string { } func (e *TooManyEntriesInBatchRequest) ErrorCode() string { if e == nil || e.ErrorCodeOverride == nil { - return "AWS.SimpleQueueService.TooManyEntriesInBatchRequest" + return "TooManyEntriesInBatchRequest" } return *e.ErrorCodeOverride } @@ -425,7 +726,7 @@ func (e *UnsupportedOperation) ErrorMessage() string { } func (e *UnsupportedOperation) ErrorCode() string { if e == nil || e.ErrorCodeOverride == nil { - return "AWS.SimpleQueueService.UnsupportedOperation" + return "UnsupportedOperation" } return *e.ErrorCodeOverride } diff --git a/service/sqs/types/types.go b/service/sqs/types/types.go index 054fe3a25f3..abd7c5b4020 100644 --- a/service/sqs/types/types.go +++ b/service/sqs/types/types.go @@ -32,15 +32,7 @@ type BatchResultErrorEntry struct { } // Encloses a receipt handle and an entry id for each message in -// ChangeMessageVisibilityBatch . All of the following list parameters must be -// prefixed with ChangeMessageVisibilityBatchRequestEntry.n , where n is an -// integer value starting with 1 . For example, a parameter list for this action -// might look like this: -// &ChangeMessageVisibilityBatchRequestEntry.1.Id=change_visibility_msg_2 -// -// &ChangeMessageVisibilityBatchRequestEntry.1.ReceiptHandle=your_receipt_handle -// -// &ChangeMessageVisibilityBatchRequestEntry.1.VisibilityTimeout=45 +// ChangeMessageVisibilityBatch . type ChangeMessageVisibilityBatchRequestEntry struct { // An identifier for this particular receipt handle used to communicate the @@ -153,7 +145,8 @@ type Message struct { // attribute has the same restrictions on the content as the message body. For more // information, see SendMessage . Name , type , value and the message body must // not be empty or null. All parts of the message attribute, including Name , Type -// , and Value , are part of the message size restriction (256 KB or 262,144 bytes). +// , and Value , are part of the message size restriction (256 KiB or 262,144 +// bytes). type MessageAttributeValue struct { // Amazon SQS supports the following logical data types: String , Number , and diff --git a/service/ssm/internal/endpoints/endpoints.go b/service/ssm/internal/endpoints/endpoints.go index 991a89e4145..6d06129a7ab 100644 --- a/service/ssm/internal/endpoints/endpoints.go +++ b/service/ssm/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -391,6 +393,27 @@ var defaultPartitions = endpoints.Partitions{ }: endpoints.Endpoint{}, }, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "ssm-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "ssm.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/ssmcontacts/internal/endpoints/endpoints.go b/service/ssmcontacts/internal/endpoints/endpoints.go index 1be5154c3b0..c7f73fc59ab 100644 --- a/service/ssmcontacts/internal/endpoints/endpoints.go +++ b/service/ssmcontacts/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -212,6 +214,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "ssm-contacts-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "ssm-contacts.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/ssmincidents/internal/endpoints/endpoints.go b/service/ssmincidents/internal/endpoints/endpoints.go index a54a566c66c..e209a041efc 100644 --- a/service/ssmincidents/internal/endpoints/endpoints.go +++ b/service/ssmincidents/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -262,6 +264,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "ssm-incidents-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "ssm-incidents.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/ssmsap/internal/endpoints/endpoints.go b/service/ssmsap/internal/endpoints/endpoints.go index f55baf0798b..9c3cc975b94 100644 --- a/service/ssmsap/internal/endpoints/endpoints.go +++ b/service/ssmsap/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -355,6 +357,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "ssm-sap-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "ssm-sap.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/sso/internal/endpoints/endpoints.go b/service/sso/internal/endpoints/endpoints.go index 90e5213734c..355deee30ae 100644 --- a/service/sso/internal/endpoints/endpoints.go +++ b/service/sso/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -390,6 +392,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "portal.sso-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "portal.sso.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/ssoadmin/internal/endpoints/endpoints.go b/service/ssoadmin/internal/endpoints/endpoints.go index 94fd23914e5..c009b77f9c5 100644 --- a/service/ssoadmin/internal/endpoints/endpoints.go +++ b/service/ssoadmin/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -280,6 +282,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "sso-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "sso.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/ssooidc/internal/endpoints/endpoints.go b/service/ssooidc/internal/endpoints/endpoints.go index 2212db1c628..50c8df0843c 100644 --- a/service/ssooidc/internal/endpoints/endpoints.go +++ b/service/ssooidc/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -390,6 +392,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "oidc-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "oidc.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/storagegateway/internal/endpoints/endpoints.go b/service/storagegateway/internal/endpoints/endpoints.go index 8f9adfbc3c4..fe6410dcd12 100644 --- a/service/storagegateway/internal/endpoints/endpoints.go +++ b/service/storagegateway/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -387,6 +389,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "storagegateway-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "storagegateway.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/sts/internal/endpoints/endpoints.go b/service/sts/internal/endpoints/endpoints.go index 1f99a0209c8..93ae947dd36 100644 --- a/service/sts/internal/endpoints/endpoints.go +++ b/service/sts/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -384,6 +386,27 @@ var defaultPartitions = endpoints.Partitions{ }: endpoints.Endpoint{}, }, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "sts-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "sts.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/support/internal/endpoints/endpoints.go b/service/support/internal/endpoints/endpoints.go index 446e3b54f70..34df501c32b 100644 --- a/service/support/internal/endpoints/endpoints.go +++ b/service/support/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -252,6 +254,27 @@ var defaultPartitions = endpoints.Partitions{ }, }, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "support-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "support.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/supportapp/internal/endpoints/endpoints.go b/service/supportapp/internal/endpoints/endpoints.go index 8d5b193d40e..01f95ec06c4 100644 --- a/service/supportapp/internal/endpoints/endpoints.go +++ b/service/supportapp/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -223,6 +225,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "supportapp-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "supportapp.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/swf/internal/endpoints/endpoints.go b/service/swf/internal/endpoints/endpoints.go index 3b6dd3368d8..279a537749a 100644 --- a/service/swf/internal/endpoints/endpoints.go +++ b/service/swf/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -376,6 +378,27 @@ var defaultPartitions = endpoints.Partitions{ }: endpoints.Endpoint{}, }, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "swf-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "swf.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/synthetics/internal/endpoints/endpoints.go b/service/synthetics/internal/endpoints/endpoints.go index 36946989721..e2849ccdf28 100644 --- a/service/synthetics/internal/endpoints/endpoints.go +++ b/service/synthetics/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -376,6 +378,27 @@ var defaultPartitions = endpoints.Partitions{ }: endpoints.Endpoint{}, }, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "synthetics-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "synthetics.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/textract/internal/endpoints/endpoints.go b/service/textract/internal/endpoints/endpoints.go index 7882fabdb81..e0650e28c74 100644 --- a/service/textract/internal/endpoints/endpoints.go +++ b/service/textract/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -328,6 +330,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "textract-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "textract.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/timestreamquery/internal/endpoints/endpoints.go b/service/timestreamquery/internal/endpoints/endpoints.go index 702164c6e87..b3c7e892240 100644 --- a/service/timestreamquery/internal/endpoints/endpoints.go +++ b/service/timestreamquery/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -212,6 +214,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "query.timestream-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "query.timestream.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/timestreamwrite/internal/endpoints/endpoints.go b/service/timestreamwrite/internal/endpoints/endpoints.go index 9ba35c4ced6..00f9d839562 100644 --- a/service/timestreamwrite/internal/endpoints/endpoints.go +++ b/service/timestreamwrite/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -316,6 +318,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "ingest.timestream-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "ingest.timestream.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/tnb/internal/endpoints/endpoints.go b/service/tnb/internal/endpoints/endpoints.go index 5d4016dfd68..89adcb0058a 100644 --- a/service/tnb/internal/endpoints/endpoints.go +++ b/service/tnb/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -212,6 +214,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "tnb-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "tnb.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/transcribe/internal/endpoints/endpoints.go b/service/transcribe/internal/endpoints/endpoints.go index d5cc8259bdb..ae94c93968d 100644 --- a/service/transcribe/internal/endpoints/endpoints.go +++ b/service/transcribe/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -369,6 +371,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "transcribe-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "transcribe.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/transcribestreaming/internal/endpoints/endpoints.go b/service/transcribestreaming/internal/endpoints/endpoints.go index cf5811d2271..cd0331e21de 100644 --- a/service/transcribestreaming/internal/endpoints/endpoints.go +++ b/service/transcribestreaming/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -368,6 +370,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "transcribestreaming-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "transcribestreaming.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/transfer/internal/endpoints/endpoints.go b/service/transfer/internal/endpoints/endpoints.go index f2ad1b76ded..163788a033e 100644 --- a/service/transfer/internal/endpoints/endpoints.go +++ b/service/transfer/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -366,6 +368,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "transfer-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "transfer.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/translate/internal/endpoints/endpoints.go b/service/translate/internal/endpoints/endpoints.go index 8193a172eae..2baa75099da 100644 --- a/service/translate/internal/endpoints/endpoints.go +++ b/service/translate/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -312,6 +314,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "translate-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "translate.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/voiceid/internal/endpoints/endpoints.go b/service/voiceid/internal/endpoints/endpoints.go index c6246c228ee..f8b91e372b1 100644 --- a/service/voiceid/internal/endpoints/endpoints.go +++ b/service/voiceid/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -283,6 +285,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "voiceid-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "voiceid.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/vpclattice/internal/endpoints/endpoints.go b/service/vpclattice/internal/endpoints/endpoints.go index bb52480c194..5c9c05ebf08 100644 --- a/service/vpclattice/internal/endpoints/endpoints.go +++ b/service/vpclattice/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -235,6 +237,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "vpc-lattice-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "vpc-lattice.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/waf/internal/endpoints/endpoints.go b/service/waf/internal/endpoints/endpoints.go index 13e65bd10d2..aad7f31daa9 100644 --- a/service/waf/internal/endpoints/endpoints.go +++ b/service/waf/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -268,6 +270,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "waf-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "waf.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/wafregional/internal/endpoints/endpoints.go b/service/wafregional/internal/endpoints/endpoints.go index f89ed470f2a..6a568ce577c 100644 --- a/service/wafregional/internal/endpoints/endpoints.go +++ b/service/wafregional/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -978,6 +980,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "waf-regional-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "waf-regional.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/wafv2/internal/endpoints/endpoints.go b/service/wafv2/internal/endpoints/endpoints.go index c1f66155c12..3a1d7676e09 100644 --- a/service/wafv2/internal/endpoints/endpoints.go +++ b/service/wafv2/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -978,6 +980,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "wafv2-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "wafv2.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/wellarchitected/internal/endpoints/endpoints.go b/service/wellarchitected/internal/endpoints/endpoints.go index cce440a8c7a..ce85e700b7f 100644 --- a/service/wellarchitected/internal/endpoints/endpoints.go +++ b/service/wellarchitected/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -268,6 +270,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "wellarchitected-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "wellarchitected.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/wisdom/internal/endpoints/endpoints.go b/service/wisdom/internal/endpoints/endpoints.go index 7082718d28f..6429052e934 100644 --- a/service/wisdom/internal/endpoints/endpoints.go +++ b/service/wisdom/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -268,6 +270,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "wisdom-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "wisdom.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/workdocs/internal/endpoints/endpoints.go b/service/workdocs/internal/endpoints/endpoints.go index 2a2c15f6498..7c9040f9790 100644 --- a/service/workdocs/internal/endpoints/endpoints.go +++ b/service/workdocs/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -262,6 +264,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "workdocs-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "workdocs.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/worklink/internal/endpoints/endpoints.go b/service/worklink/internal/endpoints/endpoints.go index c4a2e232c99..be0a0b2cd6a 100644 --- a/service/worklink/internal/endpoints/endpoints.go +++ b/service/worklink/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -212,6 +214,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "worklink-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "worklink.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/workmail/internal/endpoints/endpoints.go b/service/workmail/internal/endpoints/endpoints.go index d91de5c42d9..6a4195faf33 100644 --- a/service/workmail/internal/endpoints/endpoints.go +++ b/service/workmail/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -223,6 +225,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "workmail-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "workmail.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/workmailmessageflow/internal/endpoints/endpoints.go b/service/workmailmessageflow/internal/endpoints/endpoints.go index 6f5ad6355ef..f151dd09295 100644 --- a/service/workmailmessageflow/internal/endpoints/endpoints.go +++ b/service/workmailmessageflow/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -212,6 +214,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "workmailmessageflow-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "workmailmessageflow.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/workspaces/internal/endpoints/endpoints.go b/service/workspaces/internal/endpoints/endpoints.go index 09a2e81c201..1a16d214b8b 100644 --- a/service/workspaces/internal/endpoints/endpoints.go +++ b/service/workspaces/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -301,6 +303,27 @@ var defaultPartitions = endpoints.Partitions{ }: endpoints.Endpoint{}, }, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "workspaces-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "workspaces.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ @@ -345,6 +368,9 @@ var defaultPartitions = endpoints.Partitions{ }, Deprecated: aws.TrueTernary, }, + endpoints.EndpointKey{ + Region: "us-gov-east-1", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "us-gov-west-1", }: endpoints.Endpoint{}, diff --git a/service/workspacesweb/internal/endpoints/endpoints.go b/service/workspacesweb/internal/endpoints/endpoints.go index 8f3bcd5f7cf..3d95a769d1f 100644 --- a/service/workspacesweb/internal/endpoints/endpoints.go +++ b/service/workspacesweb/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -244,6 +246,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "workspaces-web-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "workspaces-web.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ diff --git a/service/xray/internal/endpoints/endpoints.go b/service/xray/internal/endpoints/endpoints.go index ce0b6e7b67c..2b0455ec50c 100644 --- a/service/xray/internal/endpoints/endpoints.go +++ b/service/xray/internal/endpoints/endpoints.go @@ -89,6 +89,7 @@ var partitionRegexp = struct { AwsCn *regexp.Regexp AwsIso *regexp.Regexp AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp AwsUsGov *regexp.Regexp }{ @@ -96,6 +97,7 @@ var partitionRegexp = struct { AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), } @@ -363,6 +365,27 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "xray-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "xray.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, { ID: "aws-us-gov", Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{